A single substitution in ∫dt/(1+t2) proves arctanx1+arctanx2=arctan1−x1x2x1+x2, with a correction of ±π that the circle makes visible; continuity then fixes the sign in the formula for cos(y1+y2).
The definitions of §224 produce three functions, but so far we know almost nothing about them. Everything else in trigonometry (double angles, product formulae, periodicity in its usual form) follows from the addition formulae. In §225 Hardy proves the formula for tan(y1+y2) directly from the integral that defines arctan, and in §226 he deduces the formula for cos(y1+y2), settling a sign by a neat continuity argument. Both arguments are models of how to handle a “many-valued” formula carefully.
The idea
A calculation with differentials (Hardy writes it out) shows that, with z=1−xyx+y,
1+x2dx+1+y2dy=1+z2dz.
This suggestsarctanx+arctany=arctan1−xyx+y. But the suggestion cannot be right as it stands: the left side can be anything in (−π,π), while our arctan always lies in (−21π,21π). For instance arctan2+arctan3≈2.36, more than 21π. The truth is that the formula holds up to a multiple of π, and we must find out which multiple.
ExploreWhen does arctanx1+arctanx2=arctanx?
Try this.Start with x1=21, x2=31. Increase x2 slowly until x1x2 passes 1, and watch the purple point (angle y1+y2) and the hollow ochre point (angle arctanx). Then try two negative values.
angle y1=arctanx1
then y2=arctanx2
the point at angle y1+y2
line of slope x (hollow dot: angle arctanx)
y1+y2=0.4636+0.3218=0.7854; x1x2=0.1667. x=1 and arctanx=0.7854: the two points coincide and arctanx1+arctanx2=arctanx.
What to notice
The purple and ochre points always lie on the same dashed line, the line of slope x; that is why tan(y1+y2)=x in every case. While x1x2<1 the two points coincide. When x1x2>1 the sum y1+y2 passes ±21π, the two points sit at opposite ends of the line, and the angles differ by exactly π. At x1x2=1 the line is vertical and x is undefined.
Precise statements
TheoremAddition of inverse tangentsHardy: §225
Let x1,x2 be real with x1x2=1, and put x=1−x1x2x1+x2. Then
arctanx1+arctanx2=⎩⎨⎧arctanxarctanx+πarctanx−πif x1x2<1,if x1x2>1 and x1>0,if x1x2>1 and x1<0.
TheoremAddition formula for the tangentHardy: §225 (1)
For all y1,y2 such that none of y1, y2, y1+y2 is an odd multiple of 21π,
tan(y1+y2)=1−tany1tany2tany1+tany2.
TheoremAddition formulae for cosine and sineHardy: §226 (2)
The key is a substitution that shifts the variable of integration “by an angle”. For fixed x1 put
t=1−x1ux1+u,u=1+x1tt−x1.
Then dudt=(1−x1u)21+x12 and 1+t2=(1−x1u)2(1+x12)(1+u2), so 1+t2dt=1+u2du. As u increases, t increases too, except that it jumps from +∞ to −∞ (when x1>0) as u passes the point 1/x1, where the denominator vanishes. When u=−x1, t=0; when u=x2, t=x.
ProofAddition of inverse tangents
Strategy
Write arctanx as an integral in t, change the variable to u, and split the u-integral at 0 into arctanx1+arctanx2. If the range of u crosses the pole u=1/x1, the t-integral runs out to +∞ and comes back from −∞, which adds π.
The case x1x2<1: the range of u avoids the pole
If x1>0, the condition says x2<1/x1, and of course −x1<1/x1, so the u-interval between −x1 and x2 does not contain 1/x1. If x1<0 it says x2>1/x1, with the same conclusion. (If x1=0 there is nothing to prove.) On this interval the substitution is continuous and monotonic.
using that the integrand is even, so ∫−x10=∫0x1.
The case x1>0, x1x2>1: crossing the pole
Now x2>1/x1. As u runs from −x1 up to 1/x1, t runs from 0 up to +∞; as u runs on from 1/x1 to x2, t runs from −∞ up to x. Splitting the u-integral at 1/x1 and substituting in each piece,
Apply the previous case to −x1,−x2 and use that arctan is odd: the correction becomes −π.
∎
ProofAddition formula for the tangent
Strategy
Translate the theorem on inverse tangents into a statement about tan, first on the basic interval, then everywhere by the periodicity rule (6) of §224.
y1,y2 in (−21π,21π)
Put x1=tany1, x2=tany2, so yk=arctanxk. If x1x2<1, the theorem gives y1+y2=arctanx, so tan(y1+y2)=x. If x1x2>1 and x1>0, it gives y1+y2−π=arctanx, and by (6) tan(y1+y2)=tan(y1+y2−π)=x; similarly for x1<0. In every case tan(y1+y2)=x=1−tany1tany2tany1+tany2.
All other y1,y2
Both sides are unchanged when y1 or y2 is increased by π (by (6)), so the formula holds wherever both sides are defined.
∎
For the cosine, the tangent formula and the definition cos2y=1/(1+tan2y) give, after a little algebra,
first where all the tangents are defined and then everywhere by continuity. So cos(y1+y2)=±(cosy1cosy2−siny1siny2). The squares have lost the sign, and Hardy recovers it by continuity.
ProofThe sign in the cosine formula (§226)
Strategy
Fix y1 and regard both sides as continuous functions of y2: F(y2)=cos(y1+y2) and G(y2)=cosy1cosy2−siny1siny2. We know F2=G2. Where F=0 the ratio F/G is continuous and equal to ±1, so it can switch only at zeros. Show that between any two consecutive zeros there is a point where F=G.
The zeros
F(y2)=0 exactly when y1+y2 is an odd multiple of 21π: one point in every interval of length π, namely y2=(k+21)π−y1. Since F2=G2, G has the same zeros.
Between zeros the sign is constant
On each open interval between consecutive zeros, F and G are continuous and never 0, and F/G takes only the values ±1. A continuous function with values in {−1,1} on an interval is constant (intermediate value theorem).
Each interval contains a point where F=G
At y2=0, F=cosy1=G. Increasing y2 by π changes the sign of both F and G (rule (6)), so F=G at every multiple of π. Each interval between consecutive zeros has length π and so contains a multiple of π in its interior, unless cosy1=0.
Conclude
So F=G on every interval, and at the zeros too; hence cos(y1+y2)=cosy1cosy2−siny1siny2 whenever cosy1=0. The excluded values of y1 are isolated, and both sides are continuous in y1, so the formula holds for them as well. The sine formula is proved in the same way (Exercise 4).
∎
Worked examples and exercises
ExerciseEuler's formula for π●○○Hardy: §221, §225
Show that arctan21+arctan31=41π.
Hint
Check the condition x1x2<1 and compute x.
Solution
x1x2=61<1, so the sum is arctanx with x=1−1/61/2+1/3=5/65/6=1. Finally arctan1=41π from the definitions: the substitution t=1/u shows ∫011+t2dt=∫1∞1+u2du, so each is half of ∫0∞=21π.
Exercise●○○Hardy: §225
Find arctan2+arctan3 and arctan(−2)+arctan(−3).
Hint
Here x1x2=6>1.
Solution
x=1−62+3=−1 and arctan(−1)=−41π. Since x1>0 and x1x2>1, arctan2+arctan3=−41π+π=43π≈2.356. By oddness arctan(−2)+arctan(−3)=−43π. The naive formula would give −41π, which is not even positive.
Apply the addition theorem three times: arctan51+arctan51, then double again, then subtract arctan2391. Check x1x2<1 each time.
Solution
2arctan51=arctan1−1/252/5=arctan125 (product 251<1). Then 4arctan51=arctan1−25/14410/12=arctan119120 (product 14425<1). Finally, since arctan(−v)=−arctanv, arctan119120+arctan(−2391)=arctan1+120/(119⋅239)120/119−1/239 (product negative, so less than 1), and
119⋅239+120120⋅239−119=2856128561=1.
So 4arctan51−arctan2391=arctan1=41π.
ExerciseThe sine formula●●○Hardy: §226 (end)
Prove sin(y1+y2)=siny1cosy2+cosy1siny2 by Hardy’s method.
Hint
From sin2y=tan2y/(1+tan2y) and the tangent formula, show that both sides have the same square.
Hint
Zeros of sin(y1+y2), as a function of y2, are at y2=kπ−y1. Compare the two sides at multiples of π.
Solution
With tk=tanyk, sin2(y1+y2)=1+tan2(y1+y2)tan2(y1+y2)=(1−t1t2)2+(t1+t2)2(t1+t2)2=(1+t12)(1+t22)(t1+t2)2, and (siny1cosy2+cosy1siny2)2=cos2y1cos2y2(t1+t2)2 is the same. (Where tangents are undefined, use continuity.) As functions of y2, both sides change sign under y2↦y2+π; at y2=0 both equal siny1, hence they agree at every multiple of π. The zeros of sin(y1+y2) are at y2=kπ−y1, one per interval of length π, and if siny1=0 each interval between consecutive zeros contains a multiple of π in its interior. As before, the ratio is constant =1 between zeros, so the formula holds; the isolated values with siny1=0 follow by continuity in y1.
ExerciseDouble angles●○○Hardy: §226
Deduce that tan2y=1−tan2y2tany and cos2y=cos2y−sin2y=1+tan2y1−tan2y.
Hint
Put y1=y2=y.
Solution
With y1=y2=y the tangent formula gives the first (where defined), and the cosine formula gives cos2y=cos2y−sin2y=cos2y(1−tan2y)=1+tan2y1−tan2y, using cos2y=1/(1+tan2y).
Check yourself
Check yourselfEnter a number
arctan2+arctan3=cπ. What is c?
Why
x=1−65=−1, arctan(−1)=−41π, and since x1>0, x1x2=6>1, we add π: the sum is 43π, so c=0.75.
Check yourselfTrue or false?
For all real x1,x2 with x1x2=1, arctanx1+arctanx2=arctan1−x1x2x1+x2.
Why
False. The right side always lies in (−21π,21π), the left side need not. The equation holds when x1x2<1; when x1x2>1 a correction of +π (if x1>0) or −π (if x1<0) is needed. What is always true is that the tangents of the two sides are equal.
Check yourselfChoose one
In the proof, where does the extra π come from when x1x2>1?
Why
The substitution is valid on each side of the pole u=1/x1 separately. Splitting there, the t-integral covers [0,∞) and then (−∞,x], which is the interval [0,x] plus the whole line, so it exceeds arctanx by exactly π. Periodicity of tan is used only afterwards, to turn the statement about arctan into one about tan.
Check yourselfChoose one
The squares of cos(y1+y2) and cosy1cosy2−siny1siny2 agree. Why can’t the sign switch from + to − somewhere between two zeros?
Why
A jump of the ratio from 1 to −1 would need a point where one of the functions vanishes or is discontinuous. The other options are false or circular: the aim is to prove the school formula from the new definitions.
Hardy’s language
This suggests that arc tan x + arc tan y = arc tan z, but the functions are many valued, and the formula requires more careful examination.
— G. H. Hardy, §225
Summary
Summary
The substitution t=(x1+u)/(1−x1u) preserves dt/(1+t2) and proves arctanx1+arctanx2=arctan1−x1x2x1+x2 when x1x2<1.
When x1x2>1 the substituted variable passes through infinity and the formula gains ±π; the tangent formula tan(y1+y2)=1−tany1tany2tany1+tany2 holds in all cases.
cos2(y1+y2)=(cosy1cosy2−siny1siny2)2 follows by algebra; continuity in y2 and the check at multiples of π fix the sign.
With the addition formulae, all of trigonometry now rests on the single integral ∫dt/(1+t2).