How to read Law of cosines
The left and right sides describe the same mathematical situation in different forms. Identify the unknown, attach each known value to the correct symbol, and preserve restrictions. Rebuild missing background in the trigonometry subject guide, then use precalculus practice to retrieve the relationship without being told its name.
How to apply Law of cosines
- Name the unknown, and the unit the answer has to come out in.
- Match the symbols to your values. $C$ is included between sides $a,b$ and opposite side $c$.
- Check the conditions before substituting. Match each angle with its opposite side; the Pythagorean theorem is the $C=90^\circ$ case.
- Substitute, keep exact values to the last line, then test the sign, size, and unit against a rough estimate - The check that catches most trigonometry slips.
Worked Law of cosines example
Use this mathematical example as a pattern, then rebuild it with different values:
How to verify a Law of cosines result
After using Law of cosines, repeat the calculation with units attached and test the result against a boundary case or a quick numerical estimate.
A common Law of cosines mistake
What goes wrong: Students pair the angle with the wrong side, using an angle that is not across from the side they are solving for.
Why it fails: The formula only balances when C sits between sides a and b and directly faces side c. Any other pairing computes a length that belongs to no triangle in the picture.
Repair: Circle the side you want, then find the angle staring straight at it. For a = 5, b = 7, and the angle between them C = 60 degrees, c² = 25 + 49 − 35 = 39, so c = √39, about 6.24.
When Law of cosines applies
Rearranged to find an angle, it can return a cosine outside the range −1 to 1, which means no triangle exists. With sides 2, 3, and 10, cos C works out to −7.25, and the honest reading is that a side of 10 is too long for legs of 2 and 3 to reach around.
Questions about Law of cosines
Is the Pythagorean theorem just a special case of this?
Exactly. Put C = 90 degrees, so cos C is 0, the correction term disappears, and the equation collapses to c² = a² + b². The rest of the time that term adjusts for the angle being sharper or wider.
Why does this never produce the two-triangle ambiguity?
Because inverse cosine covers the whole span from 0 to 180 degrees, so it can hand back an obtuse angle directly. There is no missing second option to hunt for, which is why many people solve the largest angle with this rule first.
What does a negative cosine in my answer tell me?
That the angle is obtuse. A negative value means c² came out larger than a² + b², so the side across from C stretched beyond what a right angle would allow.
Can I use it when I only know two sides?
No. You need either all three sides or two sides plus the angle wedged between them. Two sides alone leave the hinge between them free to open to any width.
Change one input, predict whether the output should rise, fall, or stay fixed, and only then recalculate.