← mapGeometry & Trig

Trig Identities

⚗ Dr. Möbius, from the lab

Here is where people learn to hate trigonometry. They see a wall of formulas — Pythagorean, sum, double-angle — and they memorize them like terrified hostages memorizing their captors' demands. That is a bullshit way to learn mathematics and I will not do it. Every identity in this lesson is a theorem with a proof, and most of them descend from one glorious fact: the unit circle satisfies x2+y2=1x^2 + y^2 = 1. Sit down. We're deriving everything from first principles, right here in the lab.

THE BIG IDEA

The Pythagorean identity follows from the unit circle equation; the sum formulas follow from a rotation or distance argument; and the double-angle formulas are corollaries — all of it is one connected derivation, not a menu of facts.

The Pythagorean identity: one line

The unit circle has equation x2+y2=1x^2 + y^2 = 1. The point on the unit circle at angle θ\theta is (cosθ,sinθ)(\cos\theta, \sin\theta). Substitute:

cos2θ+sin2θ=1.\cos^2\theta + \sin^2\theta = 1.

That's it. The Pythagorean identity is the Pythagorean theorem applied to the unit circle. The unit circle has radius 11; its points satisfy x2+y2=1x^2 + y^2 = 1; since x=cosθx = \cos\theta and y=sinθy = \sin\theta, we get cos2θ+sin2θ=1\cos^2\theta + \sin^2\theta = 1. One sentence, full proof. Anyone who made you memorize this without that sentence owes you an apology.

The identity works for every real θ\theta — no angle excluded. From it, we get two companions by dividing through by cos2θ\cos^2\theta and sin2θ\sin^2\theta respectively:

1+tan2θ=sec2θ,cot2θ+1=csc2θ.1 + \tan^2\theta = \sec^2\theta, \qquad \cot^2\theta + 1 = \csc^2\theta.

(Where secθ=1/cosθ\sec\theta = 1/\cos\theta and cscθ=1/sinθ\csc\theta = 1/\sin\theta and cotθ=1/tanθ\cot\theta = 1/\tan\theta. These reciprocal functions appear rarely but you should recognize them when they do.)

The sum formulas: derivation via rotation

We want to prove:

cos(αβ)=cosαcosβ+sinαsinβ.\cos(\alpha - \beta) = \cos\alpha\cos\beta + \sin\alpha\sin\beta.

Proof. Consider two points on the unit circle: A=(cosα,sinα)A = (\cos\alpha, \sin\alpha) and B=(cosβ,sinβ)B = (\cos\beta, \sin\beta). The distance AB2|AB|^2 between them:

AB2=(cosαcosβ)2+(sinαsinβ)2.|AB|^2 = (\cos\alpha - \cos\beta)^2 + (\sin\alpha - \sin\beta)^2.

Expand: =cos2α2cosαcosβ+cos2β+sin2α2sinαsinβ+sin2β.= \cos^2\alpha - 2\cos\alpha\cos\beta + \cos^2\beta + \sin^2\alpha - 2\sin\alpha\sin\beta + \sin^2\beta.

Using cos2θ+sin2θ=1\cos^2\theta + \sin^2\theta = 1 twice: =1+12(cosαcosβ+sinαsinβ)=22(cosαcosβ+sinαsinβ).= 1 + 1 - 2(\cos\alpha\cos\beta + \sin\alpha\sin\beta) = 2 - 2(\cos\alpha\cos\beta + \sin\alpha\sin\beta).

Now rotate both points by β-\beta: AA goes to (cos(αβ),sin(αβ))(\cos(\alpha-\beta), \sin(\alpha-\beta)) and BB goes to (1,0)(1, 0). Rotation preserves distances (it's an isometry), so the distance is unchanged. But now:

AB2=(cos(αβ)1)2+(sin(αβ)0)2|AB|^2 = (\cos(\alpha-\beta) - 1)^2 + (\sin(\alpha-\beta) - 0)^2 =cos2(αβ)2cos(αβ)+1+sin2(αβ)= \cos^2(\alpha-\beta) - 2\cos(\alpha-\beta) + 1 + \sin^2(\alpha-\beta) =12cos(αβ)+1=22cos(αβ).= 1 - 2\cos(\alpha-\beta) + 1 = 2 - 2\cos(\alpha-\beta).

Setting the two expressions equal: 22cos(αβ)=22(cosαcosβ+sinαsinβ).2 - 2\cos(\alpha-\beta) = 2 - 2(\cos\alpha\cos\beta + \sin\alpha\sin\beta). cos(αβ)=cosαcosβ+sinαsinβ.\cos(\alpha - \beta) = \cos\alpha\cos\beta + \sin\alpha\sin\beta. \qquad \square

Two distances, one rotation, zero hand-waving. That is a proof, damn it.

Deriving the rest

From cos(αβ)\cos(\alpha - \beta) we get everything else by substitution and symmetry:

cos(α+β)\cos(\alpha + \beta): replace β\beta with β-\beta and use cos(β)=cosβ\cos(-\beta) = \cos\beta, sin(β)=sinβ\sin(-\beta) = -\sin\beta: cos(α+β)=cosαcosβsinαsinβ.\cos(\alpha + \beta) = \cos\alpha\cos\beta - \sin\alpha\sin\beta.

sin(α+β)\sin(\alpha + \beta): use the identity sinθ=cos(π/2θ)\sin\theta = \cos(\pi/2 - \theta): sin(α+β)=cos ⁣(π2(α+β))=cos ⁣((π2α)β).\sin(\alpha + \beta) = \cos\!\left(\frac{\pi}{2} - (\alpha+\beta)\right) = \cos\!\left(\left(\frac{\pi}{2} - \alpha\right) - \beta\right).

Apply the cos(β)\cos(\cdot - \beta) formula: =cos ⁣(π2α)cosβ+sin ⁣(π2α)sinβ=sinαcosβ+cosαsinβ.= \cos\!\left(\frac{\pi}{2}-\alpha\right)\cos\beta + \sin\!\left(\frac{\pi}{2}-\alpha\right)\sin\beta = \sin\alpha\cos\beta + \cos\alpha\sin\beta.

sin(αβ)\sin(\alpha - \beta): replace β\beta with β-\beta: sin(αβ)=sinαcosβcosαsinβ.\sin(\alpha - \beta) = \sin\alpha\cos\beta - \cos\alpha\sin\beta.

The four sum/difference formulas:

cos(α±β)=cosαcosβsinαsinβ\boxed{\cos(\alpha \pm \beta) = \cos\alpha\cos\beta \mp \sin\alpha\sin\beta} sin(α±β)=sinαcosβ±cosαsinβ\boxed{\sin(\alpha \pm \beta) = \sin\alpha\cos\beta \pm \cos\alpha\sin\beta}

The \mp in the cosine formula: the upper sign on the left goes with the lower sign on the right. Many students mix these up. The easiest fix: remember the cosine formula has mixed signs (+β+\beta on left gives - between terms on right), while the sine formula has same signs.

Drag the widget and watch the sum formula in action:

unit circle
π/6π/4π/3π/22π/33π/45π/6πcos θsin θ
θ = 45° = π/4cos θ = 0.707sin θ = 0.707

Double-angle formulas: just set α = β

Set α=β\alpha = \beta in the sum formulas:

sin(2α)=2sinαcosα.\sin(2\alpha) = 2\sin\alpha\cos\alpha.

cos(2α)=cos2αsin2α.\cos(2\alpha) = \cos^2\alpha - \sin^2\alpha.

The cosine double-angle has two equivalent alternate forms, obtained by substituting cos2α=1sin2α\cos^2\alpha = 1 - \sin^2\alpha or sin2α=1cos2α\sin^2\alpha = 1 - \cos^2\alpha:

cos(2α)=12sin2α=2cos2α1.\cos(2\alpha) = 1 - 2\sin^2\alpha = 2\cos^2\alpha - 1.

The last two forms are the power-reduction formulas in disguise: sin2α=(1cos2α)/2\sin^2\alpha = (1 - \cos 2\alpha)/2 and cos2α=(1+cos2α)/2\cos^2\alpha = (1 + \cos 2\alpha)/2. These appear constantly in calculus integrals — you don't need calculus to see the identity; you need calculus to care about it. But file it the hell away. It'll save your ass later.

Proving identities: the etiquette

An identity is a statement that two trig expressions are equal for all valid angles. Proving one means transforming one side into the other using known identities. The rules:

  1. Work one side only. Pick the more complicated side and manipulate it into the other. Never "cross" the equals sign. Writing "sin2θ+cos2θ=1\sin^2\theta + \cos^2\theta = 1, therefore LHS == RHS" is circular when the identity you're proving IS the substitution you're using.
  2. Never add the same thing to both sides (that's solving an equation, not proving an identity).
  3. Conjugates and 1=cos2+sin21 = \cos^2+\sin^2 are your two main tricks. When stuck, try substituting 11 for cos2θ+sin2θ\cos^2\theta + \sin^2\theta, or multiply by a clever form of 11.

The payoff: cos/sin sum formulas are the 2D rotation matrix

Here is the reason the Matrices stratum is collecting on a debt from this lesson. Consider the 2D rotation by angle θ\theta: it sends

(1,0)(cosθ,sinθ)(1, 0) \mapsto (\cos\theta, \sin\theta) (0,1)(sinθ,cosθ).(0, 1) \mapsto (-\sin\theta, \cos\theta).

(The second mapping: (0,1)(0,1) is at angle π/2\pi/2. Rotating by θ\theta gives angle π/2+θ\pi/2 + \theta, with coordinates (cos(π/2+θ),sin(π/2+θ))=(sinθ,cosθ)(\cos(\pi/2+\theta), \sin(\pi/2+\theta)) = (-\sin\theta, \cos\theta).)

The matrix whose columns are the images of the basis vectors is:

Rθ=(cosθsinθsinθcosθ).R_\theta = \begin{pmatrix} \cos\theta & -\sin\theta \\ \sin\theta & \cos\theta \end{pmatrix}.

Now apply this to a general vector (x,y)(x, y):

Rθ(xy)=(xcosθysinθxsinθ+ycosθ).R_\theta \begin{pmatrix} x \\ y \end{pmatrix} = \begin{pmatrix} x\cos\theta - y\sin\theta \\ x\sin\theta + y\cos\theta \end{pmatrix}.

The entries of the rotated vector are exactly the sum formulas for cos(θϕ)\cos(\theta - \phi) and sin(θ+ϕ)\sin(\theta + \phi) (where x=cosϕx = \cos\phi, y=sinϕy = \sin\phi for a unit vector). The rotation matrix IS the sum formula, packaged in a grid.

In the Matrices stratum, we will see that RαRβ=Rα+βR_\alpha R_\beta = R_{\alpha+\beta} — multiplying two rotation matrices is the addition formula for angles. The trig and the linear algebra are the same thing, viewed from different windows. File this away. It detonates in the eigenvalue lesson.

🔬 SPECIMENS (worked examples)

Worked example 1 — Pythagorean identity in action

Given sinθ=5/13\sin\theta = 5/13 and θ\theta is in Quadrant I, find cosθ\cos\theta, tanθ\tan\theta, and sin(2θ)\sin(2\theta).

Step 1. Find cosθ\cos\theta. Use the Pythagorean identity: cos2θ=1sin2θ=125169=144169.\cos^2\theta = 1 - \sin^2\theta = 1 - \frac{25}{169} = \frac{144}{169}. In Q I, cosθ>0\cos\theta > 0: cosθ=12/13\cos\theta = 12/13.

Step 2. Find tanθ\tan\theta: tanθ=sinθcosθ=5/1312/13=512.\tan\theta = \frac{\sin\theta}{\cos\theta} = \frac{5/13}{12/13} = \frac{5}{12}.

Step 3. Find sin(2θ)\sin(2\theta) using the double-angle formula: sin(2θ)=2sinθcosθ=25131213=120169.\sin(2\theta) = 2\sin\theta\cos\theta = 2 \cdot \frac{5}{13} \cdot \frac{12}{13} = \frac{120}{169}.

Check. The triple (5,12,13)(5, 12, 13) is a Pythagorean triple, and 52+122=25+144=169=1325^2 + 12^2 = 25 + 144 = 169 = 13^2, consistent with sin2+cos2=(5/13)2+(12/13)2=169/169=1\sin^2 + \cos^2 = (5/13)^2 + (12/13)^2 = 169/169 = 1.

Worked example 2 — using the sum formula

Find the exact value of sin(75°)\sin(75°).

Write 75°=45°+30°75° = 45° + 30° and apply the sine addition formula:

sin(75°)=sin(45°+30°)=sin45°cos30°+cos45°sin30°.\sin(75°) = \sin(45° + 30°) = \sin 45°\cos 30° + \cos 45°\sin 30°.

Substitute exact values: =2232+2212=64+24=6+24.= \frac{\sqrt{2}}{2} \cdot \frac{\sqrt{3}}{2} + \frac{\sqrt{2}}{2} \cdot \frac{1}{2} = \frac{\sqrt{6}}{4} + \frac{\sqrt{2}}{4} = \frac{\sqrt{6}+\sqrt{2}}{4}.

Check numerically: sin(75°)sin(1.3090)0.9659\sin(75°) \approx \sin(1.3090) \approx 0.9659. And (6+2)/4(2.449+1.414)/43.863/40.966(\sqrt{6}+\sqrt{2})/4 \approx (2.449 + 1.414)/4 \approx 3.863/4 \approx 0.966. Correct.

Worked example 3 — proving an identity the right damn way

Prove the identity: sin(2θ)1+cos(2θ)=tanθ\dfrac{\sin(2\theta)}{1 + \cos(2\theta)} = \tan\theta.

Strategy: work the left side only. Use double-angle formulas to simplify.

Left side: sin(2θ)1+cos(2θ).\frac{\sin(2\theta)}{1 + \cos(2\theta)}.

Apply sin(2θ)=2sinθcosθ\sin(2\theta) = 2\sin\theta\cos\theta and cos(2θ)=2cos2θ1\cos(2\theta) = 2\cos^2\theta - 1:

=2sinθcosθ1+(2cos2θ1)=2sinθcosθ2cos2θ.= \frac{2\sin\theta\cos\theta}{1 + (2\cos^2\theta - 1)} = \frac{2\sin\theta\cos\theta}{2\cos^2\theta}.

Cancel 2cosθ2\cos\theta (assuming cosθ0\cos\theta \ne 0):

=sinθcosθ=tanθ.= \frac{\sin\theta}{\cos\theta} = \tan\theta. \qquad \square

Note the identity-proving discipline: we never touched the right side. We took the left side, substituted known identities, simplified, and landed on tanθ\tan\theta. The equals sign was a target, not a tool — that distinction is not pedantic, it is the whole fucking point of proof.

☠ KNOWN HAZARDS

  • Crossing the equals sign in an identity proof. You cannot manipulate both sides toward each other — that assumes what you're trying to prove. Work one side only. Treat the equals sign like a wall. Cross it and you've committed circular reasoning, which is mathematical fraud.

  • Mixing up signs in the cosine sum formula. cos(α+β)=cosαcosβsinαsinβ\cos(\alpha+\beta) = \cos\alpha\cos\beta \mathbf{-} \sin\alpha\sin\beta (note the minus). The sine formula uses the same sign as the angle: sin(α+β)=sinαcosβ+cosαsinβ\sin(\alpha+\beta) = \sin\alpha\cos\beta \mathbf{+} \cos\alpha\sin\beta. Mnemonic: cosine "fights" the sum; sine "agrees" with it.

  • Using the double-angle formula on sin(3θ)\sin(3\theta). The double-angle formula handles sin(2θ)\sin(2\theta), not sin(3θ)\sin(3\theta). For triple angles, use sin(2θ+θ)=sin2θcosθ+cos2θsinθ\sin(2\theta + \theta) = \sin 2\theta \cos\theta + \cos 2\theta \sin\theta and expand further.

  • Forgetting cos2θ\cos^2\theta means (cosθ)2(\cos\theta)^2, not cos(θ2)\cos(\theta^2). The exponent is on the output, not the input. This matters enormously when substituting or chain-ruling in calculus.

TL;DR

  • sin2θ+cos2θ=1\sin^2\theta + \cos^2\theta = 1: the Pythagorean identity is the unit circle equation x2+y2=1x^2+y^2=1 with x=cosθx = \cos\theta, y=sinθy = \sin\theta substituted in.

  • Sum formulas (proved via distance on the unit circle + rotation): cos(α±β)=cosαcosβsinαsinβ\cos(\alpha\pm\beta) = \cos\alpha\cos\beta \mp \sin\alpha\sin\beta and sin(α±β)=sinαcosβ±cosαsinβ\sin(\alpha\pm\beta) = \sin\alpha\cos\beta \pm \cos\alpha\sin\beta.

  • Double-angle formulas are corollaries: sin2α=2sinαcosα\sin 2\alpha = 2\sin\alpha\cos\alpha; cos2α=cos2αsin2α=12sin2α=2cos2α1\cos 2\alpha = \cos^2\alpha - \sin^2\alpha = 1-2\sin^2\alpha = 2\cos^2\alpha - 1.

  • Identity-proving etiquette: work one side only, never cross the equals sign, use sin2+cos2=1\sin^2+\cos^2=1 as your Swiss Army knife.

  • The payoff: the sum formulas are the entries of the 2×22 \times 2 rotation matrix RθR_\theta. The Matrices stratum will cash this check.

unlocks