Every identity is a picture. See sin² + cos² = 1 as Pythagoras, prove the angle-addition formulas with a rectangle, and watch two notes beat
An identity is an equation that holds for every angle. There are dozens of them, and they look like things to memorise, but each one is a picture: a theorem about right triangles and circles, written in algebra. See the pictures and the identities stop being arbitrary.
Drag P round the circle and watch the two coloured squares change while their total stays exactly 1, even where cos θ or sin θ is negative. Then switch to the tangent triangle, and to all six functions on one figure.
Drag the blue point P round the circle of radius 1 (it snaps onto the axes within ¾°, so 90° can be reached). θ is measured anticlockwise from the positive x-axis. Areas and lengths are measured from the drawn figure; the signed values of cos θ, sin θ, tan θ and sec θ are the coordinates they come from. The six segments are lengths: their signs come from the quadrant.
The point P at angle θ on the unit circle is (cos θ, sin θ), and the drop from P to the x-axis makes a right triangle with legs |cos θ| and |sin θ| and hypotenuse 1. Pythagoras says the squares on the legs add up to the square on the hypotenuse:
sin²θ + cos²θ = 1
The signs do not matter, because squaring removes them; on the axes one leg is 0 and the identity still holds. Dividing every term by cos²θ gives tan²θ + 1 = sec²θ, where tan θ = sin θ ÷ cos θ and sec θ = 1 ÷ cos θ. That is Pythagoras again, for the similar triangle scaled up until its horizontal leg is 1, which is the triangle OAT in the demo. Dividing by sin²θ instead gives 1 + cot²θ = csc²θ. Both need a division, so both fail where the divisor is zero: tan θ and sec θ at 90° and 270°, cot θ and csc θ at 0° and 180°.
The names come from the lines in the picture. A tangent (Latin tangens, touching) is a line that touches the circle at one point, and tan θ is measured along one. A secant (secans, cutting) is a line that cuts through the circle, and sec θ is measured along the line OT, which does. Cosine, cotangent and cosecant are the co-functions: the sine, tangent and secant of the complementary angle 90° − θ. In the third view all six are segments of one figure: the tangent at P meets the axes at E and F, and the two right triangles OPE and OPF give the two divided forms of the identity.
Drag Q and P to change α and β, and check that opposite sides of the rectangle stay equal; then turn on the tempting mistake. The other panels prove the same formulas for every angle by rotation, and set β = α.
Drag Q to turn the lower triangle (α) and P to open the upper one (β), or use the sliders. The hypotenuse OP is 1, so OQ = cos β and QP = sin β, and each of those is the hypotenuse of a smaller right triangle. The rectangle needs α + β below 90°; the formulas hold for every angle, which the rotation panel shows. Measured lengths are taken from the drawn points; the teal values are computed from the formula.
Reading the rectangle: the hypotenuse OP is 1, so the triangle OQP has legs OQ = cos β and QP = sin β. The triangle below it has hypotenuse cos β and angle α, so its legs are cos α cos β and sin α cos β. The small triangle in the top corner has hypotenuse sin β, and its angle at Q is α again (the angles at Q along the rectangle’s side add to 180°), so its legs are cos α sin β and sin α sin β. The left side is the height of P, sin(α + β), and the top-left piece is cos(α + β). Opposite sides of a rectangle are equal, so
sin(α + β) = sin α cos β + cos α sin β cos(α + β) = cos α cos β − sin α sin β
The rectangle only exists for acute angles with α + β below 90°. The rotation picture works for all angles: a rotation by β sends (x, y) to (x cos β − y sin β, x sin β + y cos β), and applying it to (cos α, sin α) must give (cos(α + β), sin(α + β)), because two turns make one. Putting β = α gives sin 2α = 2 sin α cos α and cos 2α = cos²α − sin²α = 1 − 2 sin²α, and solving the last for sin α gives the half-angle formula sin(θ/2) = ±√((1 − cos θ)/2). Changing the sign of β gives the subtraction formulas, which is how sin 15° = (√6 − √2)/4 comes from 45° and 30°.
Ptolemy’s Almagest, written in the 2nd century CE, contains the equivalent of these formulas, stated for chords of a circle rather than sines and proved from his theorem on cyclic quadrilaterals. With them, and with the half-angle rule, he built a table of chords in steps of half a degree for his astronomy. Today the cleanest proof is the rotation one; in complex numbers it is a single line, since multiplying by eiα and then by eiβ is multiplying by ei(α + β). See also: Complex Analysis and Composition and Inverses, where rotation matrices multiply.
Bring the two frequencies together and apart and watch the sum swell and fade, then press Listen. In the second panel, multiply two numbers using only a cosine table, additions and a halving.
The first two strips are close-ups about five waves long, taken at the moving marker in the bottom strip; Play moves the marker through the sound slowed down by the chosen factor. In the bottom strip the waves are too close together to separate, so the sum shows as a band whose width is its loudness. Listen plays the first tone, the second, then both together for two seconds, quietly; nothing plays until you press it.
Add the formulas for cos(A − B) and cos(A + B) and the sin A sin B terms cancel, leaving cos A cos B = ½[cos(A − B) + cos(A + B)]. Subtracting instead gives sin A sin B = ½[cos(A − B) − cos(A + B)], and doing the same with the sine formulas gives sin A cos B = ½[sin(A + B) + sin(A − B)]. Read backwards, with a = A + B and b = A − B, these turn sums into products:
sin a + sin b = 2 sin((a + b)/2) cos((a − b)/2)
For two tones that is a tone at the average frequency inside a slowly varying envelope. The envelope 2 cos(π(f1 − f2)t) passes through a maximum in size |f1 − f2| times a second, and the ear hears each one as a beat. Tuners listen for the beats to slow and vanish. Radio uses the same identity the other way round: multiplying a signal by a cosine at another frequency (mixing) shifts it to the sum and difference frequencies, which is how a receiver moves a station down to a frequency it can filter. See also: Waves.
Before logarithms, the same formula did multiplication. To multiply two many-digit numbers, an astronomer scaled them to cosines, looked up two angles, added and subtracted them, looked up two more cosines and halved their sum: two additions and a halving in place of a long multiplication. The method, called prosthaphaeresis (Greek for addition and subtraction), is associated with astronomers of the late 16th century, and it was used at Tycho Brahe’s observatory. John Napier’s logarithms, published in 1614, did the same job with a single table and a single addition, and replaced it.
Spot a mistake or have an idea?