mathematics / trigonometry / double, triple and half angles

Double, Triple and Half Angles

What the compound angle formulas become when the two angles are the same: sin 2A, three forms of cos 2A, the half angle formulas read backwards, the triple angle polynomials, and the substitution that turns all six functions into fractions.

By the end you can

  • get sin 2A and the three forms of cos 2A by setting B equal to A
  • choose which of the three forms of cos 2A a given problem wants
  • read the half angle formulas backwards out of the double angle ones
  • say what doubling an angle does to the shape of the graph

There is a question to try on this page

Step 1 of 6

Set B equal to A

Every double angle formula is a compound angle formula with the two angles made equal.

Page 7 gave the sine, cosine and tangent of A + B. This page sets B equal to A. That is the entire mechanism, and there is nothing new to memorise here.

One note on letters first, so you are never guessing. On this page A is the angle you set, and 2A and 3A are multiples of it. The letter θ appears in one place only, the half angle step, where the standard statement is about θ/2 and θ is the whole angle being halved.

Take sin(A + B) = sin A cos B + cos A sin B and put B = A. The right side becomes sin A cos A + cos A sin A, which is two copies of the same product:

sin 2A = 2 sin A cos A

Figure 8.1

B becomes A

ABOMPsin A cos Bcos A sin Bcos A cos Bless sin A sin B0.00.51.01.5sin 2A = 0.8662 sin A = 1.000
lower strip
sin A cos B = 0.470
upper strip
cos A sin B = 0.296
height
sin A cos B + cos A sin B = 0.470 + 0.296 = sin(A + B) = 0.766
width
cos A cos B − sin A sin B = 0.814 − 0.171 = 0.643
on the ruler
sin 2A = 0.866 and 2 sin A = 1.000

Teal: the marks down the right hand edge of the two vertical pieces, sin A cos B and cos A sin B, which stack to give the height sin(A + B), and the bar on the ruler marked sin 2A. Amber: the horizontal pieces, cos A cos B with sin A sin B taken back off it, leaving the width cos(A + B). Grey: the ruler at the right, and the fill of the two vertical pieces. Black: the bar marked 2 sin A, which is not a sine of anything.

30° = 0.5236 rad = π/6

The compound angle construction from page 7, with B on its own slider. A follows the page angle, capped so that A + B never passes 90 degrees. Two strips stack from the base to give sin(A + B), one per term. Along the base, one length from the origin has a second taken back off its end, leaving the width. At A + B = 90 degrees those two lengths are equal, the width is zero, and the strips have nothing to sit on.

Bring B onto A and the two strip rows beneath name the same product. That equality is the whole of this step. The ruler at the right compares sin 2A against 2 sin A.

Take cos(A + B) = cos A cos B − sin A sin B and put B = A:

cos 2A = cos²A − sin²A

Take tan(A + B) = (tan A + tan B) / (1 − tan A tan B) and put B = A:

tan 2A = 2 tan A / (1 − tan²A)

Now the guess these formulas exist to kill. sin 2A is not 2 sin A. Sine is not a function that you can pull a multiplier out of.

Test it at A = 30 degrees. sin(30 degrees) is 0.500, so 2 sin(30 degrees) is 1.000. But sin(60 degrees) is 0.866 to three decimal places. The wrong answer is out by about 0.134, and at A = 90 degrees it is worse: 2 sin(90 degrees) is 2.000, and no sine is ever bigger than 1. The real formula agrees: 2 sin(30 degrees) cos(30 degrees) is 2 × 0.500 × 0.866, which is 0.866 to three decimal places.

The tangent version inherits a gap from its parent. At A = 45 degrees, tan A is 1, so 1 − tan²A is 0 and the formula divides by zero. That is correct rather than broken: 2A is then 90 degrees, and page 4 established that tangent has an asymptote there.

Step 2 of 6

Three faces of cos 2A

cos 2A can be written with both functions, with sine alone, or with cosine alone, and all three are the same number.

cos 2A = cos²A − sin²A has a practical problem. It mixes both functions, and in most calculations you have only one of them.

The first Pythagorean identity from page 6 fixes that. sin²A + cos²A = 1 lets you replace either square by 1 minus the other, and the choice of which one to replace is the only choice in the whole step.

Swap one square for the other, and again the other way

value at A = 30°

  1. cos 2A = cosine squared A − sine squared A value 0.500
  2. Replace sin²A by 1 − cos²A.

    = cosine squared A − (1 − cosine squared A) value 0.500
  3. Multiply out the bracket. Minus a minus is a plus.

    = 2 cosine squared A − 1 value 0.500
  4. Go back to the first line and replace cos²A instead.

    cos 2A = (1 − sine squared A) − sine squared A value 0.500
  5. Multiply out that bracket too.

    = 1 − 2 sine squared A value 0.500
show this derivation as text
cos 2A = cosine squared A − sine squared A Value 0.500.

Replace sin²A by 1 − cos²A. = cosine squared A − (1 − cosine squared A) Value 0.500.

Multiply out the bracket. Minus a minus is a plus. = 2 cosine squared A − 1 Value 0.500.

Go back to the first line and replace cos²A instead. cos 2A = (1 − sine squared A) − sine squared A Value 0.500.

Multiply out that bracket too. = 1 − 2 sine squared A Value 0.500.

Teal underline: the sine family. Amber: the cosine family. There is no tangent in this block, so purple does not appear. The words stay in normal text colour. At A = 30°, sin A = 0.500 and cos A = 0.866. The right hand column is the value of that line, 0.500, and it is the same on all five because no step changed anything. The 1px grey boxes mark what arrived by the Pythagorean swap. Nothing here is coloured to mean plus or minus; the sign is the glyph.

So there are three forms, and they are one fact. The value column is where you check that, and at A = 30 degrees it reads 0.500 on every line, because 2A is 60 degrees and cos(60 degrees) is 0.5 exactly.

Figure 8.2

The three faces of cos 2A

−1012one unit+ cos²A = 0.750− sin²A = 0.250cos 2A = 0.500= 0.750 − 0.250 = 0.500+ 1 = 1.000− sin²A = 0.250− sin²A = 0.250cos 2A = 0.500= 1.000 − 0.500 = 0.500+ cos²A = 0.750+ cos²A = 0.750− 1 = 1.000cos 2A = 0.500= 1.500 − 1.000 = 0.500

Read straight off the circle at 2A = 60°: cos 2A = 0.500. All three rows agree with it.

The three rows as numbers.
expressionpartsresult
cos²A − sin²Acos²A, less sin²A0.500
1 − 2sin²A1, less sin²A, less sin²A0.500
2cos²A − 1cos²A, cos²A, less 10.500
cos 2A off the circle2A = 60°0.500

Under every bar is a key with one row per block, in the order the blocks are laid down: a swatch, a + or a − for whether the block is added or taken away, the block's name, and its value. A block can be zero wide, or sit exactly on top of its neighbour, and it still has its own row there. Amber blocks are cos²A = 0.750. Teal blocks are sin²A = 0.250. Grey blocks are a plain 1. An outlined block with a left-pointing arrow, and an outlined swatch, is being taken away, not added. All three rows share one scale, so the three black brackets are the same length whenever the three expressions are the same number, which is always.

30° = 0.5236 rad = π/6

Three horizontal bars, one per form of cos 2A, drawn against a common zero line. Each bar is built from its own blocks: added blocks run right from zero, and a subtracted block runs back from the end of what has been added. The far end of the bar lands on the value of cos 2A.

All three ends land in the same place at every angle, which is the claim. Look at the ends first, then at how differently the three bars get there.

The two trade buttons carry out the Pythagorean swap on the first bar. Each replaces one block with a pair of blocks whose net contribution is the same. Nothing moves between the bars.

Which one do you reach for? The one that leaves you with the function you already have. If a problem has given you cos A, use 2cos²A − 1 and never mention sine. If it has given you sin A, use 1 − 2sin²A. Choosing badly costs you an extra substitution, nothing worse.

The sine form and the cosine form matter for a second reason, which is what they look like rearranged. Nothing new is being proved here: each line does the same thing to both sides, which is why both sides of the value column move together.

Solve the sine form for the square

value at A = 30°, both sides

  1. 1 − 2 sine squared A = cos 2A value 0.500 = 0.500
  2. Add 2sin²A to both sides and subtract cos 2A from both.

    1 − cos 2A = 2 sine squared A value 0.500 = 0.500
  3. Divide both sides by 2.

    sine squared A = (1 − cos 2A) / 2 value 0.250 = 0.250
show this derivation as text
1 − 2 sine squared A = cos 2A Value 0.500 = 0.500.

Add 2sin²A to both sides and subtract cos 2A from both. 1 − cos 2A = 2 sine squared A Value 0.500 = 0.500.

Divide both sides by 2. sine squared A = (1 − cos 2A) / 2 Value 0.250 = 0.250.

Teal underline: the sine family. Amber: the cosine family. There is no tangent in this block, so purple does not appear. The words stay in normal text colour. At A = 30°, sin A = 0.500, cos A = 0.866 and cos 2A = 0.500. The right hand column prints both sides of that line. They are equal on every line, because every step was done to both sides. Nothing here is coloured to mean plus or minus; the sign is the glyph.

Solve the cosine form for the square

value at A = 30°, both sides

  1. 2 cosine squared A − 1 = cos 2A value 0.500 = 0.500
  2. Add 1 to both sides.

    2 cosine squared A = 1 + cos 2A value 1.500 = 1.500
  3. Divide both sides by 2.

    cosine squared A = (1 + cos 2A) / 2 value 0.750 = 0.750
show this derivation as text
2 cosine squared A − 1 = cos 2A Value 0.500 = 0.500.

Add 1 to both sides. 2 cosine squared A = 1 + cos 2A Value 1.500 = 1.500.

Divide both sides by 2. cosine squared A = (1 + cos 2A) / 2 Value 0.750 = 0.750.

Teal underline: the sine family. Amber: the cosine family. There is no tangent in this block, so purple does not appear. The words stay in normal text colour. At A = 30°, sin A = 0.500, cos A = 0.866 and cos 2A = 0.500. The right hand column prints both sides of that line. They are equal on every line, because every step was done to both sides. Nothing here is coloured to mean plus or minus; the sign is the glyph.

Read left to right, those turn a squared function into a plain cosine of a doubled angle. That is how sin²x gets integrated: the square has no elementary antiderivative you can write down by inspection, while (1 − cos 2x)/2 integrates term by term. The same two rearrangements are the whole of the next step.

Step 3 of 6

Half angles, backwards

Solving the cos 2A forms for the squared function gives the sine and cosine of half an angle, up to a sign.

The problem here is the opposite of the last step. You know cos θ and you want the sine or cosine of half of θ.

The last step already solved 1 − 2sin²A = cos 2A for the square. Nothing further has to be done to it: the angle has to be given the name everyone else uses, and that is the whole of this step. A rename cannot move a number, which is what the value column is there to say.

Rename 2A as θ

value at θ = 30°

  1. sine squared A = (1 − cos 2A) / 2 value 0.067
  2. Let θ = 2A, so A is θ/2. Write θ/2 wherever A appeared and θ wherever 2A appeared.

    sine squared (θ/2) = (1 − cos θ) / 2 value 0.067
show this derivation as text
sine squared A = (1 − cos 2A) / 2 Value 0.067.

Let θ = 2A, so A is θ/2. Write θ/2 wherever A appeared and θ wherever 2A appeared. sine squared (θ/2) = (1 − cos θ) / 2 Value 0.067.

Teal underline: the sine family. Amber: the cosine family. There is no tangent in this block, so purple does not appear. The words stay in normal text colour. At θ = 30°, cos θ = 0.866 and sin(θ/2) = 0.259, so both lines read 0.067. The 1px grey boxes mark the renamed angle. There are no per term numbers here: a rename changes no number, and a row of unchanged numbers would say less than the letters already do. Nothing here is coloured to mean plus or minus; the sign is the glyph.

The other form, 2cos²A − 1 = cos 2A, gives the partner the same way:

Rename 2A as θ, the cosine partner

value at θ = 30°

  1. cosine squared A = (1 + cos 2A) / 2 value 0.933
  2. Let θ = 2A, so A is θ/2. Write θ/2 wherever A appeared and θ wherever 2A appeared.

    cosine squared (θ/2) = (1 + cos θ) / 2 value 0.933
show this derivation as text
cosine squared A = (1 + cos 2A) / 2 Value 0.933.

Let θ = 2A, so A is θ/2. Write θ/2 wherever A appeared and θ wherever 2A appeared. cosine squared (θ/2) = (1 + cos θ) / 2 Value 0.933.

Teal underline: the sine family. Amber: the cosine family. There is no tangent in this block, so purple does not appear. The words stay in normal text colour. At θ = 30°, cos θ = 0.866 and cos(θ/2) = 0.966, so both lines read 0.933. The 1px grey boxes mark the renamed angle. There are no per term numbers here: a rename changes no number, and a row of unchanged numbers would say less than the letters already do. Nothing here is coloured to mean plus or minus; the sign is the glyph.

Both formulas give a square. Taking a square root introduces a sign, and the formula cannot supply it. sin(θ/2) is plus or minus the root of (1 − cos θ)/2, and which one it is depends on the that θ/2 lands in. The procedure from page 5 answers that in two steps: find the quadrant of θ/2, then read off whether sine is positive there.

Figure 8.3

Half angle, and where the sign comes from

θ/2θ/2sin θcos θsin(θ/2)cos(θ/2)
one A from each window

Both short arcs are marked θ/2 = 15°, because they are the same sweep drawn twice. Together they make θ = 30°.

The two lengths

0121 − cos θ = 0.1341 + cos θ = 1.866half of each: 0.067 and 0.933, which add to 1.000

The magnitude

√((1 − cos θ)/2) = √0.067 = 0.259

√((1 + cos θ)/2) = √0.933 = 0.966

A square root is never negative. These are magnitudes.

The sign

Q2sin +cos −Q1sin +cos +Q3sin −cos −Q4sin −cos +

θ/2 = 15°, quadrant 1. Sine is + there and cosine is + there.

sin(θ/2) = +0.259   read directly: +0.259   agree

cos(θ/2) = +0.966   read directly: +0.966   agree

Every window on the ordinary slider

AA/2quadrant of A/2sign of sin(A/2)sign of cos(A/2)
−180° to 0°−90° to 0°4−+
0° to 180°0° to 90°1++
180° to 360°90° to 180°2+−
360° to 540°180° to 270°3−−

The black radius to θ carries a filled dot, the one to θ/2 a hollow dot. The two short arcs are the same sweep drawn twice, so together they make θ. Teal is a vertical drop, sin. Amber is a horizontal run, cos. Arrowheads carry the sign, colour never does. Drag on the circle to move θ; θ/2 follows at half the speed, and the hollow dot is not draggable.

30° = 0.5236 rad = π/6

A unit circle carrying two radii. One is drawn at θ, the angle you set, and one at θ/2, half the turn from the positive x axis. Watch how much slower the second one moves: a full turn of θ carries θ/2 only from 0 to 180 degrees.

The rest of the figure is four blocks, each with its own heading. They run in the order the calculation happens: the two lengths, then the magnitude, then the sign, then a table of every window the slider covers. Read the magnitude before the sign. The formula gives a size and never a sign, and that is the point of the step.

The sign is not a formality that a better formula could remove. The right side depends on θ only through cos θ, and cosine cannot tell θ from θ + 360 degrees.

Take θ = 40 degrees and θ = 400 degrees. cos(40 degrees) and cos(400 degrees) are the same number, 0.766 to three decimal places, so the formula returns the same square, 0.117 to three decimal places, and the same magnitude, 0.342 to three decimal places.

But half of 40 is 20 degrees, where sine is plus 0.342, and half of 400 is 200 degrees, where sine is minus 0.342. Two different answers from one input. The formula gives the size and the quadrant gives the sign, and neither is optional.

Work one through. Take θ = 300 degrees, where cos θ is 0.5 exactly. Then sin²(150 degrees) is (1 − 0.5)/2, which is 0.25, so the magnitude is 0.5. And cos²(150 degrees) is (1 + 0.5)/2, which is 0.75, so that magnitude is 0.866 to three decimal places.

Half of 300 is 150 degrees, which sits in quadrant 2, where sine is positive and cosine is negative. So sin(150 degrees) is 0.5 and cos(150 degrees) is minus 0.866 to three decimal places, which is the worked example from page 5, arrived at from a different direction.

Tangent has a half angle formula too, and it comes in three versions. Dividing the two formulas above gives tan(θ/2) = ±√((1 − cos θ)/(1 + cos θ)), which carries the same sign problem. Two other versions do not:

tan(θ/2) = sin θ / (1 + cos θ) = (1 − cos θ) / sin θ

Each of those is a single fraction of ordinary signed values, so the sign takes care of itself and no quadrant test is needed. Check at θ = 60 degrees: sin(60 degrees)/(1 + cos(60 degrees)) is 0.866/1.5, which is 0.577 to three decimal places, and that is tan(30 degrees). Hold on to the first of those two fractions. It comes back in the last step of this page as the number t.

Step 4 of 6

Triple angles

Writing 3A as 2A + A and substituting collapses everything into a polynomial in one function.

Nothing stops you doing it again. There is no compound angle formula for three angles and none is needed, because 3A is 2A + A and the compound angle formulas take any two, including two that are multiples of the same one. Everything after that choice is substitution, and every substitution has to leave the value alone.

Write 3A as 2A + A, then remove every cosine

value at A = 30°

  1. 3A is 2A + A, and the compound angle formula takes any two angles.

    sin 3A = sin(2A + A) value 1.000
  2. The compound angle formula, with 2A in place of A and A in place of B.

    = sin 2A cos A + cos 2A sin A value 1.000
  3. Substitute sin 2A = 2 sin A cos A, and the sine form of cos 2A from step 2.

    = (2 sin A cos A) cos A + (1 − 2 sine squared A) sin A value 1.000
  4. Multiply out.

    = 2 sin A cosine squared A + sin A − 2 sine cubed A value 1.000
  5. One cosine is left, and it is a square, so cos²A = 1 − sin²A removes it.

    = 2 sin A (1 − sine squared A) + sin A − 2 sine cubed A value 1.000
  6. Multiply out again. Now every term is a sine.

    = 2 sin A − 2 sine cubed A + sin A − 2 sine cubed A value 1.000
  7. Reorder so like terms are next to each other. Nothing has changed but the order.

    = 2 sin A + sin A − 2 sine cubed A − 2 sine cubed A value 1.000
  8. Collect. Two sin A terms make three, and two sin³A terms make four.

    = 3 sin A − 4 sine cubed A value 1.000
show this derivation as text
3A is 2A + A, and the compound angle formula takes any two angles. sin 3A = sin(2A + A) Value 1.000.

The compound angle formula, with 2A in place of A and A in place of B. = sin 2A cos A + cos 2A sin A Value 1.000.

Substitute sin 2A = 2 sin A cos A, and the sine form of cos 2A from step 2. = (2 sin A cos A) cos A + (1 − 2 sine squared A) sin A Value 1.000.

Multiply out. = 2 sin A cosine squared A + sin A − 2 sine cubed A Value 1.000.

One cosine is left, and it is a square, so cos²A = 1 − sin²A removes it. = 2 sin A (1 − sine squared A) + sin A − 2 sine cubed A Value 1.000.

Multiply out again. Now every term is a sine. = 2 sin A − 2 sine cubed A + sin A − 2 sine cubed A Value 1.000.

Reorder so like terms are next to each other. Nothing has changed but the order. = 2 sin A + sin A − 2 sine cubed A − 2 sine cubed A Value 1.000.

Collect. Two sin A terms make three, and two sin³A terms make four. = 3 sin A − 4 sine cubed A Value 1.000.

Teal underline: the sine family. Amber: the cosine family. There is no tangent in this block, so purple does not appear: the tangent version stays in the text. The words stay in normal text colour. At A = 30°, sin A = 0.500 and cos A = 0.866. The right hand column is the value of that line, 1.000, and it is the same on all eight because no step changed anything. On the last line each collected term is drawn exactly as wide as the two terms it replaced, so the collection is visible rather than asserted. The 1px grey boxes mark what arrived by substitution. Nothing here is coloured to mean plus or minus; the sign is the glyph.

Cosine goes the same way, and the one decision worth making is which face of cos 2A to put in, so that the substitution at the end has one function to remove rather than two.

The same again, removing every sine

value at A = 30°

  1. Again 3A is 2A + A, this time in the cosine formula.

    cos 3A = cos 2A cos A − sin 2A sin A value 0.000
  2. Substitute the cosine form of cos 2A, so that no cosine has to be removed later, and sin 2A = 2 sin A cos A.

    = (2 cosine squared A − 1) cos A − (2 sin A cos A) sin A value 0.000
  3. Multiply out.

    = 2 cosine cubed A − cos A − 2 sine squared A cos A value 0.000
  4. One sine is left, and it is a square, so sin²A = 1 − cos²A removes it.

    = 2 cosine cubed A − cos A − 2(1 − cosine squared A) cos A value 0.000
  5. Multiply out and collect. Two cos³A terms make four, and the two cos A terms make three.

    = 4 cosine cubed A − 3 cos A value 0.000
show this derivation as text
Again 3A is 2A + A, this time in the cosine formula. cos 3A = cos 2A cos A − sin 2A sin A Value 0.000.

Substitute the cosine form of cos 2A, so that no cosine has to be removed later, and sin 2A = 2 sin A cos A. = (2 cosine squared A − 1) cos A − (2 sin A cos A) sin A Value 0.000.

Multiply out. = 2 cosine cubed A − cos A − 2 sine squared A cos A Value 0.000.

One sine is left, and it is a square, so sin²A = 1 − cos²A removes it. = 2 cosine cubed A − cos A − 2(1 − cosine squared A) cos A Value 0.000.

Multiply out and collect. Two cos³A terms make four, and the two cos A terms make three. = 4 cosine cubed A − 3 cos A Value 0.000.

Teal underline: the sine family. Amber: the cosine family. There is no tangent in this block, so purple does not appear: the tangent version stays in the text. The words stay in normal text colour. At A = 30°, sin A = 0.500 and cos A = 0.866. The right hand column is the value of that line, 0.000, and it is the same on all five because no step changed anything. The 1px grey boxes mark what arrived by substitution. Nothing here is coloured to mean plus or minus; the sign is the glyph.

And tangent, from tan(2A + A):

tan 3A = (3 tan A − tan³A) / (1 − 3tan²A)

Look at the shape of the first two. Each is a in a single function. Every appearance of the other function was removed by the Pythagorean identity, and the result contains one function name and nothing else. That is not something you could have predicted from the compound formula, and it is the reason these are worth writing down.

Figure 8.4

The triple angle is a cubic

try a different cubic
sin 3x, and the cubic 2s − 4s³ where s = sin x
sin 3x2s − 4s³−180°−π−90°−π/20°090°π/2180°π270°3π/2360°2π450°5π/2540°3π

Teal band: sin 3x, computed directly. Black line: the cubic 2s − 4s³ with s = sin x, computed without ever asking for a triple angle. The band is wider than the line, so an exact match shows as the black line centred inside it. Largest gap: 1.000.

Largest gap between the two curves

1.000

Gap of 1.000. That cubic is not sin 3x.

The black line leaves the band, and the number above is how far.

At A = 30°: sin 3A = 1.000, 2s − 4s³ = 0.500.

s = sin x2s − 4s³

The cubic on its own. Feed it s = sin x and it does not give back sin 3x. At x = 30°, s = 0.500 and the cubic gives 0.500, while sin 90° is 1.000.

Teal dot: sin 3x, read off the circle. Black dot: what the cubic gives. The height marked here is the height marked on the curve above.

cos 3x, and the cubic 4c³ − 2c where c = cos x
cos 3x4c³ − 2c−180°−π−90°−π/20°090°π/2180°π270°3π/2360°2π450°5π/2540°3π

Amber band: cos 3x, computed directly. Black line: the cubic 4c³ − 2c with c = cos x, computed without ever asking for a triple angle. The band is wider than the line, so an exact match shows as the black line centred inside it. Largest gap: 1.000.

Largest gap between the two curves

1.000

Gap of 1.000. That cubic is not cos 3x.

The black line leaves the band, and the number above is how far.

At A = 30°: cos 3A = 0.000, 4c³ − 2c = 0.866.

Sine has no asymptotes, so neither panel can produce an undefined value and neither curve is ever broken into branches. The only thing that can go wrong here is a wrong cubic, which is what the chips are for.

30° = 0.5236 rad = π/6

Two plots against A, one for sin 3A and one for cos 3A. Each draws the value taken from the circle as a wide band, with a thin black line laid over it for the cubic computed from sin A or cos A alone.

Look for the black line leaving its band. Each plot also prints both numbers at the current angle, so you can check the agreement as digits rather than as pixels.

Check them where you can check by hand. At A = 30 degrees, 3A is 90 degrees and sin(90 degrees) is 1. The polynomial gives 3 × 0.5 minus 4 × 0.125, which is 1.5 minus 0.5, which is exactly 1.

cos(90 degrees) is 0. cos(30 degrees) is √3/2, so cos³(30 degrees) is 3√3/8, and 4 × 3√3/8 minus 3 × √3/2 is 3√3/2 minus 3√3/2, which is exactly 0.

The tangent formula at the same angle has 1 − 3tan²(30 degrees) = 1 − 3 × (1/3) = 0 on the bottom, which is the division by zero you should want, because tan(90 degrees) does not exist.

One honest limit on the pattern. cos nA is always a polynomial in cos A, for every whole number n. sin nA is a polynomial in sin A only when n is odd. sin 2A is the counterexample sitting at the top of this page: 2 sin A cos A keeps a cosine and cannot be written in sin A alone.

The cosine family has a name. The polynomial that sends cos A to cos nA is the of the first kind, written T_n, so 2x² − 1 is T₂ and 4x³ − 3x is T₃. They are used well outside trigonometry, mostly for choosing where to sample a function when approximating it.

Step 5 of 6

What doubling does to the graph

sin 2x is sin x with the horizontal axis squeezed by two: same height, half the period, twice as many zeros.

Page 4 read the period and the amplitude off the six curves at their natural scale. This is the first time the scale changes.

sin 2x reaches at x whatever sin x reaches at 2x. Every feature therefore happens at half the x it used to, which squeezes the whole picture towards the vertical axis by a factor of two. The of sin x is 2π, or 360 degrees. The period of sin 2x is π, or 180 degrees. In general the period of sin kx is 2π/k, so sin 3x has period 2π/3, which is 120 degrees.

Figure 8.5

What doubling does to the graph

sin x
−180°−π−90°−π/20°090°π/2180°π270°3π/2360°2π450°5π/2540°3π

One full wave every 360°. Peak height 1.000.

sin 2x
−180°−π−90°−π/20°090°π/2180°π270°3π/2360°2π450°5π/2540°3π

One full wave every 180°. Peak height 1.000, exactly the same as sin x.

sin 3x
−180°−π−90°−π/20°090°π/2180°π270°3π/2360°2π450°5π/2540°3π

One full wave every 120°. Peak height 1.000, exactly the same again.

All three curves are teal because all three are sines: one function at three arguments, told apart by which lane they sit in. In every lane the grey tick is drawn at that curve's peak height, from 0° across to where the curve first reaches it, and the black dot sits on that first peak: 1.000 at 90°, 1.000 at 45° and 1.000 at 30°. The three ticks are at the same height and at different distances along, which is the whole of what doubling does. The hollow rings sitting on the axis are the zeros.

Period, peak and zero count. The window is part of the count.
functionperiodpeakzeros in 0° <= x < 360°
sin x360°1.0002
sin 2x180°1.0004
sin 3x120°1.0006

Doubling the angle does not make the wave taller. The peak column reads 1.000 three times while the period column halves and thirds, and the zero count doubles and triples inside one fixed window. The rings on each curve mark every zero across the whole plot, from −180° to 540°; the count in the table is the number of them inside 0° <= x < 360°.

30° = 0.5236 rad = π/6

sin x, sin 2x and sin 3x, drawn on one shared x scale. The chips choose the layout: one panel per curve, or all three on one axis.

Look at the tops of the curves first: every peak is the same height. Then look along the horizontal axis, where the zero crossings are drawn as rings. The table under the figure turns both of those into numbers, one row per curve.

Count the zeros over one full turn, from 0 degrees up to but not including 360 degrees. sin x is zero twice, at 0 and 180. sin 2x is zero four times, at 0, 90, 180 and 270. sin 3x is zero six times, at 0, 60, 120, 180, 240 and 300. Doubling the angle doubles the count in a fixed window, because it fits two periods where one used to go.

Now the error this step exists to correct. Doubling the angle changes the period, not the height. The of sin 2x is 1, exactly as for sin x, because the output of a sine is capped at 1 whatever you feed into it. Changing the height means multiplying the output instead: 2 sin x has amplitude 2 and period 2π, unchanged. Inside the brackets or outside the brackets, two different operations, and they do not affect the same measurement.

The formula agrees with the picture. sin 2x = 2 sin x cos x is a product of two things that never exceed 1 in size, so it never exceeds 1 in size either. The factor of 2 out the front does not raise the peak, because the two factors are never both at their maximum at the same x.

Step 6 of 6

The t-formulas

With t = tan(A/2), all six functions become fractions built from t, which turns trigonometry into algebra.

Trigonometric functions are not algebraic. You cannot factorise sin A, and an integral or an equation containing several different trigonometric functions has no mechanical method to attack it. One substitution removes that problem entirely.

Set t = tan(A/2). Then:

sin A = 2t / (1 + t²)

cos A = (1 − t²) / (1 + t²)

tan A = 2t / (1 − t²)

The derivation is two lines of this page's own material, and the second of the two is the move page 7 already made on the tangent formula: divide the top and the bottom by a square, and every sine turns into a tangent. Dividing by 1 first is what puts a denominator there to divide.

Divide by 1, then divide by cos²(A/2)

value at A = 30°

  1. The double angle formula, with A/2 in place of A.

    sin A = 2 sin(A/2) cos(A/2) value 0.500
  2. Divide by sin²(A/2) + cos²(A/2), which is 1, so nothing changes. Watch the value column.

    = 2 sin(A/2) cos(A/2) / (sine squared (A/2) + cosine squared (A/2)) value 0.500
  3. Now divide top and bottom by cos²(A/2), the same move as the tangent formula on page 7. Each small fraction below prints its own value, and t is tan(A/2).

    = (2 sin(A/2) cos(A/2) / cosine squared (A/2)) / (sine squared (A/2) / cosine squared (A/2) + cosine squared (A/2) / cosine squared (A/2)) 2 sin(A/2) cos(A/2) / cosine squared (A/2) becomes 2t. 2 sin(A/2) cos(A/2) / cosine squared (A/2) is 0.536. sine squared (A/2) / cosine squared (A/2) becomes t². sine squared (A/2) / cosine squared (A/2) is 0.072. cosine squared (A/2) / cosine squared (A/2) becomes 1. cosine squared (A/2) / cosine squared (A/2) is 1.000. value 0.500
  4. Each one is a tangent or a 1, and t is tan(A/2).

    sin A = 2t / (1 + t squared) value 0.500
show this derivation as text
The double angle formula, with A/2 in place of A. sin A = 2 sin(A/2) cos(A/2) Value 0.500.

Divide by sin²(A/2) + cos²(A/2), which is 1, so nothing changes. Watch the value column. = 2 sin(A/2) cos(A/2) / (sine squared (A/2) + cosine squared (A/2)) Value 0.500.

Now divide top and bottom by cos²(A/2), the same move as the tangent formula on page 7. Each small fraction below prints its own value, and t is tan(A/2). = (2 sin(A/2) cos(A/2) / cosine squared (A/2)) / (sine squared (A/2) / cosine squared (A/2) + cosine squared (A/2) / cosine squared (A/2)) 2 sin(A/2) cos(A/2) / cosine squared (A/2) becomes 2t. 2 sin(A/2) cos(A/2) / cosine squared (A/2) is 0.536. sine squared (A/2) / cosine squared (A/2) becomes t². sine squared (A/2) / cosine squared (A/2) is 0.072. cosine squared (A/2) / cosine squared (A/2) becomes 1. cosine squared (A/2) / cosine squared (A/2) is 1.000. Value 0.500.

Each one is a tangent or a 1, and t is tan(A/2). sin A = 2t / (1 + t squared) Value 0.500.

Teal underline: the sine family. Amber: the cosine family. Purple does not appear: t is a letter and not a function name, so nothing in this block wears the tangent hue. The words stay in normal text colour. At A = 30°, t = tan(A/2) = 0.268 and sin A = 0.500. The right hand column is the value of that line, 0.500, and it is the same on all four because dividing by 1, and then by the same quantity top and bottom, changes nothing. The three small numbers on the third line are 0.536, 0.072 and 1.000, which are 2t, t² and 1. Nothing here is coloured to mean plus or minus; the sign is the glyph.

Cosine goes the same way from cos A = cos²(A/2) − sin²(A/2) over the same denominator of 1, giving (1 − t²)/(1 + t²). Dividing one result by the other gives the tangent formula.

Check them at A = 60 degrees. Then A/2 is 30 degrees and t is 0.577 to three decimal places, so t² is 1/3 exactly. sin A comes out as 2 × 0.577 over 4/3, which is 0.866 to three decimal places, matching sin(60 degrees). cos A comes out as (1 − 1/3) over (1 + 1/3), which is 0.5 exactly, matching cos(60 degrees). tan A comes out as 1.732 to three decimal places, matching √3.

Every one of the six functions is now a of one variable, a ratio of two polynomials in t. That is the payoff, and it is a large one. A trigonometric integral becomes an integral of a rational function, which partial fractions handles by a fixed procedure. A trigonometric equation becomes a polynomial equation, which the usual root finding applies to.

The substitution is usually called the , though Euler had used it in his *Institutionum calculi integralis* of 1768, decades before Weierstrass was born. The name is conventional rather than historical.

There is a picture behind it. On the unit circle, draw the line from (−1, 0) through the point (cos A, sin A). Its slope is sin A / (1 + cos A), and the last step showed that number is exactly tan(A/2). So t is a slope, and the three formulas above say that the coordinates of the point can be recovered from that slope alone.

Figure 8.6

The t-substitution, and where it fails

OP = (0.866, 0.500)N = (−1, 0)A/2 = 15°A/2A = 30°sin A = 0.5001 + cos A = 1.866t = 0.268
step 5 of 5

All three functions, written as fractions in t alone.

four angles to try, two of which break

t = tan(A/2) = 0.268

t = rise / run = 0.500 / 1.866 = 0.268

A difference of 2.2e−16 is zero as far as a double can tell.
rowfrom tvalueread directlydifference
sin A2t/(1 + t²)0.5000.5005.6e−17
cos A(1 − t²)/(1 + t²)0.8660.8660.0e+0
tan A2t/(1 − t²)0.5770.5771.1e−16

Teal: the rise, which is sin A. Grey: the run, which is 1 + cos A and is not any of the six, so it wears no family colour. Black: the radius, the chord, and the ticks marking two sides of equal length. The whole point is the angle at N, which is half the angle at O.

30° = 0.5236 rad = π/6

A unit circle with the point P at angle A on it, and a stepper that builds the picture one part at a time. The parts arrive in the order the argument needs them, and the caption under the drawing names the part at the current step. Use show all to see the finished construction.

The table holds one row per function, in five columns: row, from t, value, read directly, difference. The from t column prints the expression itself and does not change as you move A. Value and read directly are the pair that has to match. Read one row across before comparing rows.

That is where the exact rational points come from. Give t a fraction and both coordinates come out as fractions, because the formulas contain nothing but multiplication, addition and division.

Take t = 1/2. Then cos A = (1 − 1/4)/(1 + 1/4) = 3/5 and sin A = 1/(5/4) = 4/5, so the point is (0.6, 0.8) and the triangle underneath it is the 3-4-5 triangle from page 1. That angle A is 53.130 degrees to three decimal places.

Run t over every fraction and you land on every rational point of the circle exactly once, with (−1, 0) the single point left out. Clearing the denominators at a point where neither coordinate is zero gives a , and every primitive triple arises this way, from some t between 0 and 1.

What the correspondence does not do is deal each triple out once. 7-24-25 comes back at t = 7, at t = 4/3, at t = 3/4 and at t = 1/7, and again at the negatives of all four, because those eight values name eight different points that share one set of side lengths. Triples that are not primitive never arrive at all, since 6-8-10 and 3-4-5 name the same point, (0.6, 0.8). That is why this substitution turns up in number theory as often as in integration.

Where it fails, and it does fail somewhere. t = tan(A/2) is undefined when A/2 is an odd multiple of 90 degrees, which means A is an odd multiple of 180 degrees. In the picture, that is the point (−1, 0) itself, where there is no line from (−1, 0) through the point to take a slope of.

So the substitution covers the whole circle except one point. In an integral that means checking the excluded angle separately rather than assuming the answer extends to it.

Challenge

Figure 8.4

The triple angle is a cubic

try a different cubic

Try it Which pair of cubics lands exactly on sin 3x and cos 3x?

Pick one The figure holds the answer back until you do.

sin 3x, and the cubic 2s − 4s³ where s = sin x
sin 3x−180°−π−90°−π/20°090°π/2180°π270°3π/2360°2π450°5π/2540°3π

Teal band: sin 3x, computed directly. The black line is the cubic drawn over it, and it is not drawn yet: answer the question above and it appears, along with the largest gap between the two.

Largest gap between the two curves

·····

Held back until you answer the question above.

The chips still work. Nothing they do is scored until you pick.

At A = 30°: sin 3A = 1.000.

s = sin x2s − 4s³

The cubic on its own, once you have answered. The teal dot is sin 3x at x = 30°, which is the height the cubic has to reach.

Teal dot: sin 3x, read off the circle. The height marked here is the height marked on the curve above.

cos 3x, and the cubic 4c³ − 2c where c = cos x
cos 3x−180°−π−90°−π/20°090°π/2180°π270°3π/2360°2π450°5π/2540°3π

Amber band: cos 3x, computed directly. The black line is the cubic drawn over it, and it is not drawn yet: answer the question above and it appears, along with the largest gap between the two.

Largest gap between the two curves

·····

Held back until you answer the question above.

The chips still work. Nothing they do is scored until you pick.

At A = 30°: cos 3A = 0.000.

Sine has no asymptotes, so neither panel can produce an undefined value and neither curve is ever broken into branches. The only thing that can go wrong here is a wrong cubic, which is what the chips are for.

30° = 0.5236 rad = π/6