3.1.20 · D2Advanced Trigonometry

Visual walkthrough — Law of cosines — proof and applications

1,961 words9 min readBack to topic

Step 1 — Draw the triangle and name its parts

WHAT. A triangle is three corners joined by three straight edges. We label the corners with capital letters , , , and each edge with the small letter of the corner it does not touch. So side sits opposite corner , side opposite , side opposite .

WHY. This "opposite" pairing is the whole grammar of the formula. The result will always tie one lone side to the single angle facing it. If we name loosely now, everything downstream mismatches (that is the classic error the parent note warns about).

PICTURE. Corner is where two sides, and , meet — the "hinge". The angle at that hinge is also called . The side that bridges the gap across from the hinge is .

Figure — Law of cosines — proof and applications

Step 2 — Slide the triangle onto graph paper

WHAT. We place corner exactly at the origin of an grid, and lay arm flat along the positive -axis.

WHY. A bare triangle floating in space has no numbers. Graph paper gives every corner an address — a pair of horizontal and vertical distances. Once corners have addresses, we can compute the length with arithmetic instead of guesswork. Choosing at the origin and along the axis is just picking the simplest possible addresses; the triangle's shape is untouched by sliding and rotating it.

PICTURE. Arm runs straight right, so corner lands at horizontal distance , zero height: . Corner is the origin: .

Figure — Law of cosines — proof and applications

Step 3 — Find the address of the third corner

WHAT. Corner is arm away from the origin, but tilted up by the hinge angle . Its address is .

WHY THIS TOOL — cosine and sine. We need to turn "distance , direction " into " across, up". That translation is what and do, and no other pair of functions does it. Picture a clock hand of length starting flat and swinging up by angle :

  • Its shadow on the floor (horizontal reach) shrinks as it tilts up — that shadow is . Here .
  • Its height grows as it tilts up — that height is , where .

We pick / (not ) because we want the horizontal and vertical lengths separately, not their ratio. This is exactly the polar→cartesian idea from the Unit Circle and Cosine Values.

PICTURE. Drop a dashed vertical from to the -axis. That builds a right triangle whose bottom (across) is and whose upright (up) is .

Figure — Law of cosines — proof and applications

Step 4 — Measure the gap with the distance rule

WHAT. is the straight-line distance between corners and . The distance rule (Pythagoras applied to the gap's own right triangle) gives

WHY THIS TOOL — the distance formula. Two known addresses, one unknown length between them: this is precisely what Pythagoras Theorem answers. The run is the horizontal difference of the two addresses; the rise is the vertical difference. Square each, add, and is the hypotenuse-squared of the little right triangle formed by the run and rise.

PICTURE. Draw the run (a horizontal segment from under across to ) and the rise (the vertical drop from ). is the slanted line closing that right triangle.

Figure — Law of cosines — proof and applications

Step 5 — Multiply out and let the Pythagorean identity collapse it

WHAT. Expand both squared brackets, then gather the pieces.

WHY. Inside the mess a hidden simplification is waiting: the terms and can merge, because always (that identity is just Pythagoras applied to the unit circle — see Unit Circle and Cosine Values). Merging them is the step that makes the formula short and memorable.

PICTURE. Think of the terms sorted into three bins: the -bin (which will shrink to a single ), the lone , and the cross-term .

Figure — Law of cosines — proof and applications

Expanding:

Group the two pieces and use the identity:


Step 6 — Read the correction's sign in every case

WHAT. The single term decides whether is shorter, equal, or longer than the Pythagorean value. Its sign is controlled entirely by .

WHY. , are lengths so always. Thus the sign of the whole correction is the opposite of the sign of . We must check all three angle regimes so the reader never meets an unshown case.

PICTURE. Walk the hinge open from narrow to wide and watch on the unit circle:

Hinge angle Correction Effect on gap
Acute, positive negative shrinks below
Right, zero — pure Pythagoras
Obtuse, negative positive grows above
Figure — Law of cosines — proof and applications

Step 7 — The degenerate limits (fully flat hinges)

WHAT. Push the hinge to its two extremes: (arms folded onto each other) and (arms stretched into one straight line).

WHY. A rule you trust must survive its boundary cases. These are where "triangle" collapses to a line — a good stress-test that the formula still says something sensible.

PICTURE.

  • : arms point the same way. , so , giving — the gap is just the difference of the arm lengths. Correct: overlapping sticks leave a stub of length .
  • : arms point opposite ways. , so , giving — the arms lie end to end, gap is the sum.
Figure — Law of cosines — proof and applications

The one-picture summary

Everything above, in a single frame: hinge at the origin, arms and , the third corner addressed by , the run–rise right triangle giving , and the final equation with its two halves colour-coded — Pythagoras part plus correction.

Figure — Law of cosines — proof and applications
Recall Feynman retelling — the whole walkthrough in plain words

I put the sharp corner of my triangle at the middle of graph paper and laid one arm flat. Now that corner sits at and the flat arm's tip sits at — easy addresses. The other arm has length but leans up by the corner's angle, so its tip is -across-and-up: , because cosine is the flat shadow and sine is the height. The side I want, , just joins those two tips, and the distance between two points is Pythagoras on the horizontal gap and the vertical gap. When I multiply that out, an and an appear, and since those always add to , they fuse. What's left is (plain Pythagoras) minus a leftover . That leftover is the only thing carrying the angle: a narrow corner makes cosine positive so it shortens ; a right corner makes cosine zero so it vanishes; a wide corner makes cosine negative so it lengthens . Fold the arms fully and I get ; stretch them into a line and I get . That's the whole law, seen not memorised.


Recall check

Recall Quick self-test

Why is corner at ? ::: Arm leaves the origin at angle ; cosine gives its horizontal reach, sine its height. Which single term carries the angle? ::: The correction ; everything else is . What identity collapses the two terms? ::: . What does become at and ? ::: and respectively. Why does an obtuse hinge give a longer ? ::: , so adds length.

Connections

  • Pythagoras Theorem — used twice: in the distance step and inside .
  • Unit Circle and Cosine Values — why and why flips sign past .
  • Dot Product — the same correction, in vector clothing.
  • Law of Sines · Solving Triangles — where this result plugs into the full toolkit.