JentooACT®

ACT® · Math: Geometry — Similarity, Right Triangles, and Trigonometry

The Law of Cosines

The Law of Cosines is c2 = a2 + b2 - 2ab cos C, a correction of the Pythagorean theorem that works for any triangle by accounting for how far the included angle is from 90 degrees.

The Pythagorean theorem only works when the angle between the two legs is exactly 90 degrees. Tilt that corner and a2 + b2 stops equalling c2 — the third side grows or shrinks depending on whether the angle opens wider or closes tighter than square. The law of cosines patches this with one extra term: c2 = a2 + b2 - 2ab cos C. That term, 2ab cos C, is the correction. It measures exactly how far angle C sits from 90 degrees, since cos 90 = 0 and the term vanishes.

When C is obtuse, cos C is negative, so subtracting a negative adds length — the triangle stretches out, matching the wider angle across from it. When C is acute, cos C is positive, so the term shrinks c, matching a tighter angle. Either way, two sides and the included angle are enough to pin down the third side completely, because that angle fixes how far apart the two ends of the triangle swing.

The same equation runs in reverse: given all three sides, solve for cos C and take the inverse cosine to recover the angle. This is the only direction that works when you know three sides and nothing else — you cannot find an angle from two sides alone, since infinitely many triangles share two side lengths but open to different angles between them. The law of cosines sits next to the law of sines as the two tools for triangles without a right angle: use cosines when you know two sides and the included angle, or all three sides.

Key terms

Included angle
The angle sitting directly between the two known sides in a triangle.
Law of cosines
The equation c2 = a2 + b2 - 2ab cos C, linking all three sides and one angle of any triangle.
Correction term
The 2ab cos C piece that adjusts the Pythagorean sum for angles other than 90 degrees.
Inverse cosine
The operation that recovers an angle from a known cosine value.

Watch it explained

  1. How it worksHow does the term 2ab cos C measure exactly how far a triangle sits from having a right angle?
  2. Going furtherWhat happens to the law of cosines when the angle between the two known sides is exactly 90 degrees?
  3. Worked exampleFind the third side of a triangle whose sides of 7 and 10 meet at an angle of 110 degrees.
  4. Common mistakeWhy doesn't the law of cosines produce an angle when two sides are all you know?

Check yourself

Your turnhard1 of 3
In triangle ABC, sides a = 12 and b = 15 meet at angle C = 128 degrees. Using c2 = a2 + b2 - 2ab cos C, find the length of side c.

End of topic.