Skip to content

7. Trigonometry

Similar triangles say that the shape of a right triangle is fixed by one of its acute angles. So the ratios of its sides are functions of that angle, and if you have a table of them you can turn any angle you can measure into lengths you cannot reach: the height of a cliff, the width of a river, the distance to the Moon. That is trigonometry, "triangle measurement". This chapter defines sine, cosine and tangent from similar triangles, extends them to every angle with the unit circle, introduces radians, proves the laws of sines and cosines and the addition formulas, and then uses them the way astronomers did: to measure the distances to the Moon and to Mars.

In this chapter

You will learn:

  • sine, cosine and tangent of an acute angle, and why they do not depend on the size of the triangle
  • the exact values at 30, 45 and 60 degrees, and at 18 and 36 degrees from the pentagon
  • the unit circle, which defines sine and cosine for every angle, and the graphs it gives
  • radians, why mathematicians prefer them, and the inequality \(\sin\theta < \theta < \tan\theta\)
  • the laws of sines and cosines, with proofs for every shape of triangle, and the area formula
  • the addition formulas, proved for all angles, and the double- and half-angle formulas they give
  • how to solve any triangle, including the ambiguous case, and how parallax measured the Moon and Mars

You need: Chapter 4 (Pythagoras), Chapter 5 (similar triangles, the pentagon) and Chapter 6 (inscribed angles, arcs and sectors). For a gentler version, see the Topics lessons Sine, cosine and tangent, Angles of elevation and depression, The sine law and the ambiguous case, The cosine law and Radians and the unit circle.

Levels: 7.1 and 7.2 are beginner to intermediate; 7.3 to 7.5 are intermediate; 7.6 and 7.7 are intermediate to advanced.

7.1 Sine, cosine and tangent

A ladder 6 m long leans against a wall, making an angle of \(70°\) with the ground. How high up the wall does it reach? You could draw it to scale and measure. Trigonometry does the drawing once and for all.

Take a right triangle with an acute angle \(\theta\) (the Greek letter theta). Name the sides from the point of view of \(\theta\):

  • the hypotenuse is the side opposite the right angle (the longest side);
  • the opposite side is the side across from \(\theta\);
  • the adjacent side is the other side touching \(\theta\) (not the hypotenuse).
θ A B B′ C C′ hypotenuse opposite adjacent

Definition. For an acute angle \(\theta\) in a right triangle,

\[\sin\theta = \frac{\text{opposite}}{\text{hypotenuse}}, \qquad \cos\theta = \frac{\text{adjacent}}{\text{hypotenuse}}, \qquad \tan\theta = \frac{\text{opposite}}{\text{adjacent}}.\]

These are the sine, cosine and tangent of \(\theta\). Some people remember them as SOH CAH TOA.

Why this is a good definition. A definition that says "take a right triangle" must give the same answer for every right triangle with angle \(\theta\), big or small, or it defines nothing. It does: any two right triangles with an acute angle \(\theta\) have two equal angles (\(\theta\) and the right angle), so they are similar by AA (Chapter 5), and similar triangles have their sides in the same ratios. In the figure the small and large triangles share the angle \(\theta\), and \(BC/AB = B'C'/AB'\). So \(\sin\theta\) depends on \(\theta\) alone.

The ladder. The wall height is the side opposite the \(70°\) angle and the ladder is the hypotenuse: \(h = 6 \sin 70° \approx 6 \times 0.9397 = 5.64\) m. Check with Pythagoras: the foot is \(6\cos 70° \approx 2.05\) m from the wall, and \(5.64^2 + 2.05^2 \approx 36.0\).

Going backwards. If you know a ratio and want the angle, use the inverse functions \(\sin^{-1}\) (also written \(\arcsin\)), \(\cos^{-1}\), \(\tan^{-1}\). A ramp that rises 1 m over a run of 12 m makes an angle \(\theta = \tan^{-1}(1/12) \approx 4.76°\) with the ground.

Three facts that come straight from the definitions.

  1. \(\tan\theta = \dfrac{\sin\theta}{\cos\theta}\): divide opposite/hypotenuse by adjacent/hypotenuse.
  2. \(\sin\theta = \cos(90° - \theta)\) and \(\cos\theta = \sin(90° - \theta)\). The other acute angle of the triangle is \(90° - \theta\), and the side opposite \(\theta\) is adjacent to it. That is where the name comes from: the cosine is the sine of the complementary angle.
  3. \(\sin^2\theta + \cos^2\theta = 1\), where \(\sin^2\theta\) means \((\sin\theta)^2\). Dividing Pythagoras, \(\text{opp}^2 + \text{adj}^2 = \text{hyp}^2\), by \(\text{hyp}^2\) gives it.

Worked example (elevation). From a point 40 m from the foot of a tower, the top is seen at an angle of elevation (the angle above horizontal) of \(52°\). How tall is the tower? The height is opposite the angle and 40 m is adjacent, so \(h = 40\tan 52° \approx 40 \times 1.2799 = 51.2\) m.

Where the words come from. Greek astronomers, Hipparchus in the second century BCE and Ptolemy in his Almagest around 150 CE, tabulated the chord of an angle: the length of the chord cut off by a central angle in a circle of fixed radius. Indian astronomers, in works such as Aryabhata's of 499 CE, used half of a chord instead, which is our sine: in a circle of radius 1, a central angle \(2\theta\) cuts a chord of length \(2\sin\theta\). The Sanskrit word for it passed into Arabic, and a medieval Latin translation turned it into sinus, the source of our "sine". Tangent and the systematic use of all six functions grew up in the Islamic world and in Renaissance Europe.

7.2 Special angles

For most angles, sines are irrational numbers you look up or compute. A few angles have exact values, and two simple triangles give them.

45° 45° 1 1 √2 60° 30° 1 √3 2 2

45 degrees. Cut a unit square along a diagonal. Each half is a right triangle with legs 1 and 1, hypotenuse \(\sqrt2\), and two angles of \(45°\):

\[\sin 45° = \cos 45° = \frac{1}{\sqrt2} = \frac{\sqrt2}{2} \approx 0.7071, \qquad \tan 45° = 1 .\]

30 and 60 degrees. Cut an equilateral triangle of side 2 down its line of symmetry. Each half has hypotenuse 2, short leg 1 (half the base), and long leg \(\sqrt{4 - 1} = \sqrt3\). Its angles are \(60°\) (a corner of the equilateral triangle) and \(30°\) (half of one). So

\[\sin 30° = \cos 60° = \tfrac12, \qquad \cos 30° = \sin 60° = \frac{\sqrt3}{2}, \qquad \tan 30° = \frac{1}{\sqrt3}, \qquad \tan 60° = \sqrt3 .\]

0 and 90 degrees. As \(\theta\) shrinks to \(0\), the opposite side shrinks to nothing and the adjacent side approaches the hypotenuse; as \(\theta\) grows to \(90°\), the reverse. It is natural to set \(\sin 0° = 0\), \(\cos 0° = 1\), \(\sin 90° = 1\), \(\cos 90° = 0\); the unit circle in 7.3 makes this official. \(\tan 90°\) is undefined (division by zero).

\(\theta\) \(0°\) \(30°\) \(45°\) \(60°\) \(90°\)
\(\sin\theta\) \(0\) \(\tfrac12\) \(\tfrac{\sqrt2}{2}\) \(\tfrac{\sqrt3}{2}\) \(1\)
\(\cos\theta\) \(1\) \(\tfrac{\sqrt3}{2}\) \(\tfrac{\sqrt2}{2}\) \(\tfrac12\) \(0\)
\(\tan\theta\) \(0\) \(\tfrac{1}{\sqrt3}\) \(1\) \(\sqrt3\) undefined

A memory aid: the sines are \(\tfrac{\sqrt0}{2}, \tfrac{\sqrt1}{2}, \tfrac{\sqrt2}{2}, \tfrac{\sqrt3}{2}, \tfrac{\sqrt4}{2}\).

From the pentagon. In Chapter 5 the regular pentagon gave \(\cos 36° = \varphi/2\), where \(\varphi = (1 + \sqrt5)/2\) is the golden ratio. So

\[\cos 36° = \frac{1 + \sqrt5}{4} \approx 0.8090, \qquad \sin 18° = \cos 72° = \frac{\sqrt5 - 1}{4} \approx 0.3090 .\]

(The second follows from the first and the double-angle formula of 7.6: \(\cos 72° = 2\cos^2 36° - 1\).) These are the sines needed to construct a regular pentagon, which is why the Greeks could construct one; in Chapter 14 you will see why a regular 7-gon or 9-gon is impossible.

Worked example. A kite string 50 m long makes \(30°\) with the ground. The kite is \(50\sin 30° = 25\) m up, and \(50\cos 30° = 25\sqrt3 \approx 43.3\) m away horizontally.

7.3 The unit circle and all angles

A Ferris wheel turns through \(200°\). How high is a seat? A right triangle cannot have an angle of \(200°\), but the question makes perfect sense. We need sine and cosine for every angle, and the circle supplies them.

Angles as turns. Measure an angle \(\theta\) from the positive \(x\)-axis, turning counterclockwise for positive angles and clockwise for negative ones. Any real number of degrees is allowed: \(450°\) is one full turn plus \(90°\).

Definition. Let \(P(\theta)\) be the point of the unit circle (centre the origin \(O\), radius 1) reached by turning the point \((1, 0)\) through the angle \(\theta\). Then

\[\cos\theta = x\text{-coordinate of } P(\theta), \qquad \sin\theta = y\text{-coordinate of } P(\theta), \qquad \tan\theta = \frac{\sin\theta}{\cos\theta} \ (\cos\theta \neq 0).\]
x y θ P(θ) = (cos θ, sin θ) cos θ sin θ (1, 0) O I: sin +, cos + III: sin −, cos − IV: sin −, cos + II: sin +, cos −

For \(0° < \theta < 90°\) this agrees with 7.1: drop a perpendicular from \(P(\theta)\) to the \(x\)-axis and you get a right triangle with hypotenuse 1, adjacent side \(x\) and opposite side \(y\). So the new definition extends the old one; it does not replace it.

What the circle tells you at once.

  • Pythagoras for all angles. \(P(\theta)\) is at distance 1 from \(O\), so \(\cos^2\theta + \sin^2\theta = 1\) for every \(\theta\).
  • Range. \(-1 \le \sin\theta \le 1\) and \(-1 \le \cos\theta \le 1\).
  • Signs. In the first quadrant (\(0°\) to \(90°\)) both are positive; in the second (\(90°\) to \(180°\)) sine is positive and cosine negative; in the third both are negative; in the fourth cosine is positive and sine negative.
  • Periodicity. A full turn returns to the same point: \(\sin(\theta + 360°) = \sin\theta\), \(\cos(\theta + 360°) = \cos\theta\).
  • Symmetries. Reflecting in the \(x\)-axis sends \(P(\theta)\) to \(P(-\theta)\), so \(\cos(-\theta) = \cos\theta\) and \(\sin(-\theta) = -\sin\theta\). Reflecting in the \(y\)-axis sends \(P(\theta)\) to \(P(180° - \theta)\), so \(\sin(180° - \theta) = \sin\theta\) and \(\cos(180° - \theta) = -\cos\theta\). A half turn sends \(P(\theta)\) to \(P(\theta + 180°)\), so both change sign.
  • Slope. \(\tan\theta\) is the slope of the line \(OP(\theta)\), rise over run.

Reference angles. To find \(\sin 150°\): \(150° = 180° - 30°\), so \(\sin 150° = \sin 30° = \tfrac12\). To find \(\cos 210°\): \(210° = 180° + 30°\), a half turn past \(30°\), so \(\cos 210° = -\cos 30° = -\tfrac{\sqrt3}{2}\). And \(\tan 135° = \sin 135°/\cos 135° = (\tfrac{\sqrt2}{2})/(-\tfrac{\sqrt2}{2}) = -1\).

Worked example (solving). Find all \(\theta\) between \(0°\) and \(360°\) with \(\sin\theta = \tfrac12\). The horizontal line \(y = \tfrac12\) meets the unit circle twice: at \(\theta = 30°\) and, by the \(y\)-axis symmetry, at \(180° - 30° = 150°\). Add any multiple of \(360°\) for all solutions.

The Ferris wheel. A wheel of radius 20 m has its centre 22 m above the ground. A seat starts level with the centre on the right and turns \(200°\) counterclockwise. Its height is \(22 + 20\sin 200° = 22 - 20\sin 20° \approx 22 - 6.84 = 15.16\) m.

Graphs. Plot \(\sin\theta\) and \(\cos\theta\) against \(\theta\) and you get the familiar waves. The cosine graph is the sine graph shifted left by \(90°\), since \(\cos\theta = \sin(\theta + 90°)\) (turn the picture a quarter turn).

90° 180° 270° 360° 1 −1 sin θ cos θ

Every repeating motion, from a swinging pendulum to alternating current to the height of a point on a wheel, is built from these waves; that is the subject of Fourier analysis, far beyond this book.

7.4 Radians

Degrees are a Babylonian inheritance: 360 parts to a full turn, a number with many divisors. Nothing in geometry singles out 360. There is a natural unit, and it comes from the circle itself.

Definition. The radian measure of a central angle is the length of the arc it cuts off, divided by the radius:

\[\theta = \frac{s}{r}.\]

An angle of 1 radian cuts off an arc exactly as long as the radius. Because arcs of similar sectors scale with the radius (Chapter 6), the ratio \(s/r\) depends only on the angle.

1 rad r r arc = r 1 rad ≈ 57.3°

A full turn has arc \(2\pi r\), so it measures \(2\pi r / r = 2\pi\) radians. Hence

\[360° = 2\pi \text{ rad}, \qquad 180° = \pi \text{ rad}, \qquad 1 \text{ rad} = \frac{180°}{\pi} \approx 57.2958°, \qquad 1° = \frac{\pi}{180} \text{ rad} \approx 0.01745 \text{ rad}.\]
degrees \(30°\) \(45°\) \(60°\) \(90°\) \(180°\) \(270°\) \(360°\)
radians \(\tfrac{\pi}{6}\) \(\tfrac{\pi}{4}\) \(\tfrac{\pi}{3}\) \(\tfrac{\pi}{2}\) \(\pi\) \(\tfrac{3\pi}{2}\) \(2\pi\)

From now on, an angle with no degree sign is in radians.

Why radians. The formulas of Chapter 6 lose their clutter:

\[s = r\theta, \qquad \text{sector area } A = \tfrac12 r^2 \theta .\]

(From \(A = \tfrac{\theta}{2\pi} \cdot \pi r^2\).) And the deepest reason: for small angles in radians, \(\sin\theta\) is almost exactly \(\theta\).

Theorem. For \(0 < \theta < \pi/2\),

\[\sin\theta < \theta < \tan\theta, \qquad \text{and so} \qquad \cos\theta < \frac{\sin\theta}{\theta} < 1 .\]
θ O A P T tan θ sin θ ½ sin θ < ½ θ < ½ tan θ

Proof. In the unit circle, let \(A = (1, 0)\), \(P = P(\theta)\), and let \(T\) be the point where the line \(OP\) meets the tangent to the circle at \(A\); then \(AT = \tan\theta\) (similar triangles, or the slope of \(OP\)). Three regions are nested: triangle \(OAP\) inside sector \(OAP\) inside triangle \(OAT\). Their areas are

\[\tfrac12 \cdot 1 \cdot \sin\theta \quad < \quad \tfrac12 \cdot 1^2 \cdot \theta \quad < \quad \tfrac12 \cdot 1 \cdot \tan\theta .\]

(The first triangle has base \(OA = 1\) and height \(\sin\theta\); the sector formula needs radians; the second triangle has legs 1 and \(\tan\theta\).) Multiply by 2. For the second form, divide \(\sin\theta < \theta\) by \(\theta\), and divide \(\theta < \sin\theta/\cos\theta\) by \(\theta\) and multiply by \(\cos\theta\). \(\blacksquare\)

As \(\theta \to 0\), \(\cos\theta \to 1\), so \(\sin\theta/\theta\) is squeezed to 1:

\[\lim_{\theta \to 0} \frac{\sin\theta}{\theta} = 1 .\]

This limit is why, in calculus, the derivative of \(\sin x\) is \(\cos x\) exactly when \(x\) is in radians (in degrees an ugly factor \(\pi/180\) appears). The U of T guide MAT137 Unit 4 takes it from there.

Angular size. A distant object of width \(w\) at distance \(d\) fills an angle \(\theta \approx w/d\) radians (it is almost an arc of a circle of radius \(d\)). The Moon, 3475 km across and 384 400 km away on average, fills about \(0.00904\) rad \(\approx 0.52°\). The Sun, 1 392 700 km across at 149.6 million km, fills about \(0.00931\) rad \(\approx 0.53°\): almost the same, which is why total solar eclipses are possible but brief. Mars, 6779 km across, at its 2003 close approach of about 55.76 million km, filled \(6779/55\,760\,000 \approx 1.22 \times 10^{-4}\) rad, about 25 seconds of arc (a second of arc is \(1/3600\) of a degree): through a telescope a small disc, to the eye a point.

7.5 The laws of sines and cosines

Right triangles are only the start. For any triangle \(ABC\), write \(a\), \(b\), \(c\) for the sides opposite \(A\), \(B\), \(C\), and use the same letters for the angles at those vertices.

A B C D O a b c a = BD · sin D = 2R sin A

Theorem (law of sines). In any triangle, with \(R\) the radius of its circumcircle,

\[\frac{a}{\sin A} = \frac{b}{\sin B} = \frac{c}{\sin C} = 2R .\]

Proof. Draw the circumcircle (centre \(O\), radius \(R\); Chapter 6) and the diameter \(BD\) through \(B\). Triangle \(BCD\) has a right angle at \(C\) (Thales), so \(BC = BD \sin\angle BDC\), that is \(a = 2R\sin\angle BDC\).

  • If \(A\) and \(D\) are on the same side of \(BC\), then \(\angle BDC = \angle BAC = A\) (inscribed angles on the same arc).
  • If they are on opposite sides (this happens when \(A\) is obtuse), then \(\angle BDC = 180° - A\) (Corollary 3 of 6.2), and \(\sin(180° - A) = \sin A\) (7.3).
  • If \(D = C\) (when \(A = 90°\), \(BC\) is itself a diameter), then \(a = 2R = 2R\sin 90°\).

In every case \(a = 2R\sin A\). The same argument at \(C\) and at \(A\) gives \(b = 2R\sin B\) and \(c = 2R\sin C\). \(\blacksquare\)

Theorem (law of cosines). In any triangle,

\[c^2 = a^2 + b^2 - 2ab\cos C .\]

Proof. Put the triangle in coordinates with \(C\) at the origin and \(B\) on the positive \(x\)-axis: \(C = (0, 0)\), \(B = (a, 0)\). The point \(A\) is at distance \(b\) from \(C\) in the direction making the angle \(C\) with the \(x\)-axis, so by the unit-circle definition \(A = (b\cos C, b\sin C)\). This holds whether \(C\) is acute, right or obtuse. Then, by the distance formula (Pythagoras, Chapter 8),

\[c^2 = (a - b\cos C)^2 + (0 - b\sin C)^2 = a^2 - 2ab\cos C + b^2(\cos^2 C + \sin^2 C) = a^2 + b^2 - 2ab\cos C. \qquad \blacksquare\]

When \(C = 90°\), \(\cos C = 0\) and this is Pythagoras. The term \(-2ab\cos C\) is the correction for a corner that is not square: positive when \(C\) is obtuse (the opposite side is longer than Pythagoras would say) and negative when \(C\) is acute. Euclid had it, without cosines, as Propositions II.12 and II.13.

Area. In the same coordinates the height from \(A\) to the base \(CB\) is \(b\sin C\), so

\[\text{area} = \tfrac12 ab\sin C .\]

Two sides and the angle between them give the area at once.

Worked examples.

  • SAS. \(a = 7\), \(b = 8\), \(C = 60°\). Then \(c^2 = 49 + 64 - 2 \cdot 56 \cdot \tfrac12 = 57\), \(c \approx 7.55\); the area is \(\tfrac12 \cdot 56 \cdot \tfrac{\sqrt3}{2} = 14\sqrt3 \approx 24.2\).
  • SSS. Sides 5, 6, 7. The largest angle is opposite 7: \(\cos\theta = (25 + 36 - 49)/(2 \cdot 5 \cdot 6) = 12/60 = 0.2\), \(\theta \approx 78.46°\). Check with Heron's formula (Chapter 4): \(s = 9\), area \(= \sqrt{9 \cdot 4 \cdot 3 \cdot 2} = \sqrt{216} \approx 14.70\), and \(\tfrac12 \cdot 5 \cdot 6 \cdot \sin 78.46° \approx 15 \times 0.9798 = 14.70\).
  • Circumradius. For the 5, 6, 7 triangle, \(2R = 7/\sin 78.46° \approx 7.144\), so \(R \approx 3.57\).

7.6 Identities: the addition formulas

Ptolemy's table of chords went in half-degree steps. He did not measure each one; he computed new values from old ones with rules equivalent to the formulas below. They are the most useful identities in trigonometry.

Theorem (addition formulas). For all angles \(\alpha\) and \(\beta\),

\[\begin{aligned} \cos(\alpha - \beta) &= \cos\alpha\cos\beta + \sin\alpha\sin\beta, \\ \cos(\alpha + \beta) &= \cos\alpha\cos\beta - \sin\alpha\sin\beta, \\ \sin(\alpha + \beta) &= \sin\alpha\cos\beta + \cos\alpha\sin\beta, \\ \sin(\alpha - \beta) &= \sin\alpha\cos\beta - \cos\alpha\sin\beta . \end{aligned}\]

Proof of the first, for all angles. The points \(P(\alpha) = (\cos\alpha, \sin\alpha)\) and \(P(\beta) = (\cos\beta, \sin\beta)\) are on the unit circle. Compute the square of their distance with the distance formula:

\[(\cos\alpha - \cos\beta)^2 + (\sin\alpha - \sin\beta)^2 = (\cos^2\alpha + \sin^2\alpha) + (\cos^2\beta + \sin^2\beta) - 2(\cos\alpha\cos\beta + \sin\alpha\sin\beta) = 2 - 2(\cos\alpha\cos\beta + \sin\alpha\sin\beta).\]

Now rotate the whole picture about \(O\) by \(-\beta\). A rotation does not change distances, and it carries \(P(\alpha)\) to \(P(\alpha - \beta)\) and \(P(\beta)\) to \(P(0) = (1, 0)\). So the same squared distance is

\[(\cos(\alpha - \beta) - 1)^2 + \sin^2(\alpha - \beta) = 2 - 2\cos(\alpha - \beta).\]

Comparing the two gives the formula. No case was assumed about the sizes of the angles. \(\blacksquare\)

The others. Replace \(\beta\) by \(-\beta\) and use \(\cos(-\beta) = \cos\beta\), \(\sin(-\beta) = -\sin\beta\): that is the second. Put \(\alpha = 90°\) in the first: \(\cos(90° - \beta) = \sin\beta\) for all \(\beta\); and applying that to \(90° - \beta\) gives \(\sin(90° - \beta) = \cos\beta\). Then

\[\sin(\alpha + \beta) = \cos\big((90° - \alpha) - \beta\big) = \cos(90° - \alpha)\cos\beta + \sin(90° - \alpha)\sin\beta = \sin\alpha\cos\beta + \cos\alpha\sin\beta .\]

Replace \(\beta\) by \(-\beta\) once more for the fourth. \(\blacksquare\)

For acute angles there is also a picture proof, a right triangle stacked on another inside a rectangle, which shows \(\sin(\alpha + \beta)\) as the sum of two lengths:

α β α O Q P R S T 1 RQ = sin α cos β sin β cos β PS = cos α sin β

In the figure the hypotenuse \(OP\) has length 1. The lower triangle \(OQP\) has angle \(\beta\) at \(O\), so \(OQ = \cos\beta\) and \(QP = \sin\beta\). The bottom triangle \(ORQ\) has angle \(\alpha\) at \(O\) and hypotenuse \(\cos\beta\), so \(RQ = \sin\alpha\cos\beta\). Through \(Q\) draw a horizontal line, meeting the vertical through \(P\) at \(S\). The angle \(QPS\) in the top triangle \(PSQ\) is \(\alpha\) (its sides \(PQ\) and \(PS\) are perpendicular to the sides \(OQ\) and \(OR\) of the angle \(\alpha\) at \(O\)), and its hypotenuse is \(QP = \sin\beta\), so the vertical piece is \(PS = \sin\beta\cos\alpha\). The height of \(P\) above the base line is \(RQ + PS\):

\[\sin(\alpha + \beta) = \sin\alpha\cos\beta + \cos\alpha\sin\beta .\]

Consequences.

  • Double angle. Put \(\beta = \alpha\): \(\sin 2\alpha = 2\sin\alpha\cos\alpha\) and \(\cos 2\alpha = \cos^2\alpha - \sin^2\alpha = 2\cos^2\alpha - 1 = 1 - 2\sin^2\alpha\).
  • Half angle. Solve the last for the squares: \(\cos^2\tfrac{\alpha}{2} = \tfrac{1 + \cos\alpha}{2}\) and \(\sin^2\tfrac{\alpha}{2} = \tfrac{1 - \cos\alpha}{2}\). Also \(\tan\tfrac{\alpha}{2} = \tfrac{\sin\alpha}{1 + \cos\alpha}\), because \(\tfrac{\sin\alpha}{1 + \cos\alpha} = \tfrac{2\sin\frac\alpha2\cos\frac\alpha2}{2\cos^2\frac\alpha2}\).
  • Tangent. Dividing, \(\tan(\alpha + \beta) = \dfrac{\tan\alpha + \tan\beta}{1 - \tan\alpha\tan\beta}\).

Worked example. \(\sin 75° = \sin(45° + 30°) = \tfrac{\sqrt2}{2} \cdot \tfrac{\sqrt3}{2} + \tfrac{\sqrt2}{2} \cdot \tfrac12 = \tfrac{\sqrt6 + \sqrt2}{4} \approx 0.9659\), and \(\sin 15° = \sin(45° - 30°) = \tfrac{\sqrt6 - \sqrt2}{4} \approx 0.2588\). Check: \(\sin^2 15° + \sin^2 75° = \tfrac{(8 - 2\sqrt{12}) + (8 + 2\sqrt{12})}{16} = 1\), as it must be since \(\sin 75° = \cos 15°\).

Worked example (the half-angle in action). Starting from \(\cos 30° = \tfrac{\sqrt3}{2}\): \(\cos 15° = \sqrt{\tfrac{1 + \sqrt3/2}{2}} = \tfrac{\sqrt{2 + \sqrt3}}{2} \approx 0.9659\). Halving again and again gives the cosines of \(7.5°\), \(3.75°\), and so on, using only square roots: exactly the computation behind Archimedes' polygons in Chapter 6, and behind the old tables.

The addition formulas are rotation in disguise: rotating the point \((x, y)\) by \(\beta\) gives \((x\cos\beta - y\sin\beta,\ x\sin\beta + y\cos\beta)\), and with complex numbers they become the single rule \(e^{i(\alpha + \beta)} = e^{i\alpha}e^{i\beta}\) (Algebra, Chapter 9).

7.7 Solving triangles, surveying, and the distances to the Moon and Mars

To solve a triangle is to find all three sides and all three angles from the ones you know. With the angle sum and the two laws, three pieces of information decide everything, except in one famous case.

You know Use Notes
SSS law of cosines for each angle the triangle inequality must hold
SAS law of cosines for the third side, then law of sines or cosines always exactly one triangle
ASA or AAS angle sum for the third angle, then law of sines exactly one triangle
SSA law of sines for a second angle zero, one or two triangles

The ambiguous case (SSA). Given \(A = 30°\), \(a = 6\) and \(b = 10\). By the law of sines, \(\sin B = b\sin A / a = 10 \cdot \tfrac12 / 6 = 0.8333\). Two angles have this sine: \(B \approx 56.44°\) and \(B \approx 180° - 56.44° = 123.56°\). Both fit (each leaves room for \(C\)):

  • \(B \approx 56.44°\), \(C \approx 93.56°\), \(c = a\sin C/\sin A \approx 11.98\);
  • \(B \approx 123.56°\), \(C \approx 26.44°\), \(c \approx 5.34\).

Geometrically, the side \(a = 6\) swings from \(C\) like a pendulum and hits the third side's line at two points. If \(a\) were shorter than \(b\sin A = 5\) it would not reach (no triangle), if exactly 5 it would just touch (one right triangle), and if \(a \ge b = 10\) only one crossing is on the correct side. That is why SSA is not a congruence test (Chapter 2).

Surveying a mountain. You cannot walk to the foot of a mountain to measure your distance from it. Instead, measure the angle of elevation of the summit, \(25°\), walk 500 m straight toward it on level ground, and measure again, \(35°\). If \(h\) is the height and \(x\) your second distance from the point below the summit, then \(x = h/\tan 35°\) and \(x + 500 = h/\tan 25°\). Subtracting,

\[h = \frac{500}{\cot 25° - \cot 35°} \approx \frac{500}{2.1445 - 1.4281} \approx 698 \text{ m},\]

where \(\cot\theta = 1/\tan\theta\).

Triangulation. To map a country, surveyors measure one baseline very carefully, then only angles: from the two ends of the baseline sight a third point, solve the triangle by the law of sines, and use its new sides as baselines for the next triangles. Willebrord Snellius used a chain of triangles in the Netherlands in the 1610s to measure the length of a degree of latitude; the Great Trigonometrical Survey of India, through the nineteenth century, carried chains of triangles across a subcontinent and computed the heights of Himalayan peaks. Satellites have now taken over, but GPS still solves triangles, in three dimensions and with timing.

The distance to the Moon

p O A M (Moon) R d sin p = R / d

Look at the Moon from two places on Earth at the same moment, and it sits in slightly different spots against the far more distant stars. That shift is parallax, the same effect as holding up a finger and closing each eye in turn. The angle subtended at the Moon by the baseline between the observers is the parallax angle, and the law of sines turns it into a distance.

The cleanest version uses the horizontal parallax \(p\): the angle at the Moon subtended by one Earth radius, which is the difference between the Moon's direction seen from the Earth's centre and from a place where the Moon is on the horizon. The line from that observer to the Moon is tangent to the Earth, so there is a right angle at the observer, and

\[\sin p = \frac{R_\oplus}{d}, \qquad d = \frac{R_\oplus}{\sin p}.\]

The Moon's mean horizontal parallax is about \(57'\) (57 minutes of arc, a little under one degree). With the equatorial radius \(R_\oplus = 6378\) km,

\[d \approx \frac{6378}{\sin 0.9507°} \approx 384\,400 \text{ km} \approx 60.3 \text{ Earth radii}.\]

Greek astronomers, Hipparchus and then Ptolemy, already put the Moon at roughly sixty Earth radii by geometric arguments using eclipses and parallax. A coordinated measurement from two distant observatories, Berlin and the Cape of Good Hope, was made by Lalande and Lacaille in 1751 and 1752. Today lasers bounced off reflectors left on the Moon measure the distance to within centimetres.

The distance to Mars

Mars is much farther: at a close opposition it is roughly 55 to 60 million km away. Take an illustrative baseline of 7000 km between two observers and Mars at 60 million km. The parallax is

\[p \approx \frac{7000}{60\,000\,000} \approx 1.17 \times 10^{-4} \text{ rad} \approx 24'' ,\]

about 24 seconds of arc, roughly the angle a coin 2 cm wide makes from 170 m away. In 1672 Giovanni Domenico Cassini in Paris and Jean Richer in Cayenne, in South America, observed Mars at the same times and compared its position against nearby stars. From their parallax and Kepler's laws, which fix the relative sizes of the planetary orbits (Chapter 8), they obtained the distance from the Earth to the Sun as a little under 140 million km, the first estimate of the right size; the modern value is 149.6 million km. Measuring one distance in the solar system, by triangulating Mars, scaled the whole map. Today radar echoes and the radio tracking of spacecraft give the distance to Mars far more precisely than any parallax could.

Check yourself

1. A right triangle has legs 9 and 12. Find the sine, cosine and tangent of the angle opposite the side 9.

The hypotenuse is \(\sqrt{81 + 144} = 15\). \(\sin\theta = 9/15 = 0.6\), \(\cos\theta = 12/15 = 0.8\), \(\tan\theta = 9/12 = 0.75\). Check: \(0.36 + 0.64 = 1\). The angle is about \(36.87°\).

2. From the top of a 60 m cliff, a boat is seen at an angle of depression of \(20°\). How far is the boat from the foot of the cliff?

The angle of depression from the top equals the angle of elevation from the boat (alternate angles). So \(\tan 20° = 60/x\) and \(x = 60/\tan 20° \approx 60/0.3640 \approx 164.8\) m.

3. Find exact values of \(\sin 120°\), \(\cos 240°\), \(\tan 315°\) and \(\sin(-30°)\).

\(\sin 120° = \sin 60° = \tfrac{\sqrt3}{2}\); \(\cos 240° = -\cos 60° = -\tfrac12\); \(\tan 315° = -\tan 45° = -1\) (fourth quadrant: sine negative, cosine positive); \(\sin(-30°) = -\tfrac12\).

4. Convert \(150°\) to radians and \(2.5\) rad to degrees. How long is the arc of a circle of radius 8 cut off by a central angle of \(2.5\) rad, and what is the area of the sector?

\(150° = 150\pi/180 = 5\pi/6\). \(2.5\) rad \(= 2.5 \cdot 180/\pi \approx 143.24°\). Arc \(= 8 \cdot 2.5 = 20\); sector \(= \tfrac12 \cdot 64 \cdot 2.5 = 80\).

5. Solve \(\cos\theta = -\tfrac{\sqrt2}{2}\) for \(0° \le \theta < 360°\).

The reference angle is \(45°\) and cosine is negative in the second and third quadrants: \(\theta = 135°\) and \(\theta = 225°\).

6. Triangle \(ABC\) has \(A = 40°\), \(B = 75°\) and \(c = 12\). Find the other sides and the circumradius.

\(C = 65°\). By the law of sines, \(a = 12\sin 40°/\sin 65° \approx 12 \cdot 0.6428/0.9063 \approx 8.51\) and \(b = 12\sin 75°/\sin 65° \approx 12.79\). \(2R = 12/\sin 65° \approx 13.24\), so \(R \approx 6.62\).

7. Two sides of a triangle are 10 and 14 and the angle between them is \(120°\). Find the third side and the area.

\(c^2 = 100 + 196 - 2 \cdot 140 \cos 120° = 296 + 140 = 436\), so \(c = \sqrt{436} = 2\sqrt{109} \approx 20.88\). Area \(= \tfrac12 \cdot 140 \cdot \sin 120° = 35\sqrt3 \approx 60.62\).

8. Given \(A = 40°\), \(a = 7\), \(b = 10\), how many triangles are there? Find their third angles.

\(\sin B = 10\sin 40°/7 \approx 0.9183\), so \(B \approx 66.67°\) or \(B \approx 113.33°\). Both leave positive room for \(C\): \(C \approx 73.33°\) or \(C \approx 26.67°\). Two triangles. (Check: \(b\sin A \approx 6.43 < a = 7 < b = 10\), the two-solution range.)

9. Use the addition formulas to find exact values of \(\cos 75°\) and \(\tan 15°\).

\(\cos 75° = \cos 45°\cos 30° - \sin 45°\sin 30° = \tfrac{\sqrt6 - \sqrt2}{4} \approx 0.2588\). \(\tan 15° = \tan(45° - 30°) = \tfrac{1 - 1/\sqrt3}{1 + 1/\sqrt3} = \tfrac{\sqrt3 - 1}{\sqrt3 + 1} = 2 - \sqrt3 \approx 0.2679\).

10. Prove that \(\sin 3\theta = 3\sin\theta - 4\sin^3\theta\), and check it at \(\theta = 30°\).

\(\sin 3\theta = \sin(2\theta + \theta) = \sin 2\theta\cos\theta + \cos 2\theta\sin\theta = 2\sin\theta\cos^2\theta + (1 - 2\sin^2\theta)\sin\theta\). With \(\cos^2\theta = 1 - \sin^2\theta\) this is \(2\sin\theta - 2\sin^3\theta + \sin\theta - 2\sin^3\theta = 3\sin\theta - 4\sin^3\theta\). At \(30°\): \(\sin 90° = 1\) and \(3 \cdot \tfrac12 - 4 \cdot \tfrac18 = 1\).

11. (Archimedes' recursion, from Chapter 6.) For a circle of diameter 1, the inscribed and circumscribed regular \(n\)-gons have perimeters \(b_n = n\sin(180°/n)\) and \(a_n = n\tan(180°/n)\). Prove \(a_{2n} = 2a_nb_n/(a_n + b_n)\) and \(b_{2n} = \sqrt{a_{2n}b_n}\).

Each side of the inscribed \(n\)-gon is a chord with half-angle \(\theta = 180°/n\) at the centre in a circle of radius \(\tfrac12\), so it has length \(\sin\theta\), giving \(b_n = n\sin\theta\); each side of the circumscribed one is \(2 \cdot \tfrac12\tan\theta\), giving \(a_n = n\tan\theta\). Note \(a_n/b_n = 1/\cos\theta\). By the half-angle formula \(\tan\tfrac\theta2 = \tfrac{\sin\theta}{1 + \cos\theta} = \tfrac{\tan\theta}{1/\cos\theta + 1}\), so \(a_{2n} = 2n\tan\tfrac\theta2 = \tfrac{2n\tan\theta}{1 + a_n/b_n} = \tfrac{2a_nb_n}{a_n + b_n}\). And \(a_{2n}b_n = 2n\tan\tfrac\theta2 \cdot n\sin\theta = 2n^2 \tan\tfrac\theta2 \cdot 2\sin\tfrac\theta2\cos\tfrac\theta2 = 4n^2\sin^2\tfrac\theta2 = b_{2n}^2\).

12. From two places 2000 km apart on a north-south line, a high balloon is seen due south from the northern place at elevation \(30°\) and due north from the southern place at elevation \(60°\), at the same moment. Treating the ground between them as flat, how high is the balloon? Why would this fail for the Moon?

Let the balloon be above a point at distance \(x\) south of the northern place. Then \(h = x\tan 30°\) and \(h = (2000 - x)\tan 60°\). So \(x/\sqrt3 = \sqrt3(2000 - x)\), \(x = 3(2000 - x)\), \(x = 1500\) km and \(h = 1500/\sqrt3 \approx 866\) km. (Check: \((2000 - 1500)\sqrt3 \approx 866\).) Over 2000 km the Earth's curvature is far from negligible, and for the Moon the elevations from two places differ by under a degree, so the flat model and rough angles are useless: you need the spherical Earth, accurate clocks, and the tiny parallax measured against the stars.

What you learned

  • Sine, cosine and tangent of an acute angle are ratios of sides in a right triangle; similarity makes them depend on the angle alone.
  • The 45-45-90 and 30-60-90 triangles give exact values; the pentagon gives \(\cos 36° = (1 + \sqrt5)/4\).
  • The unit circle defines \(\cos\theta\) and \(\sin\theta\) as the coordinates of a point for every angle, with \(\cos^2\theta + \sin^2\theta = 1\), the quadrant signs, the symmetries and the wave graphs.
  • A radian is the angle whose arc equals the radius; \(s = r\theta\), \(A = \tfrac12 r^2\theta\), and \(\sin\theta < \theta < \tan\theta\) gives \(\sin\theta/\theta \to 1\).
  • The law of sines \(a/\sin A = 2R\), the law of cosines \(c^2 = a^2 + b^2 - 2ab\cos C\) and the area \(\tfrac12 ab\sin C\) hold for every triangle.
  • The addition formulas, proved from distances on the unit circle, give double and half angles and every exact value you need.
  • SSS, SAS, ASA and AAS fix a triangle; SSA can give two; parallax over a known baseline measured the Moon at about 60 Earth radii and, through Mars in 1672, the size of the solar system.

Next: Chapter 8 puts geometry on a grid of numbers: lines and circles as equations, theorems proved by algebra, the conic sections, and Kepler's ellipse for the orbit of Mars.

Further reading