Module 10 · Further applications of trigonometry · Lesson 58 of 84
The Law of Cosines and Heron's formula
Solving triangles from three sides or from two sides and the angle between them.
In this lesson · about 20 minutes
- Use the Law of Cosines to find a side (SAS) or an angle (SSS)
- Choose between the Law of Sines and the Law of Cosines
- Find the area of a triangle from its three sides with Heron's formula
The Law of Sines needs a complete side-angle pair. When you have SAS (two sides and the angle between them) or SSS (three sides), there is no pair yet, so use the Law of Cosines:
a² = b² + c² − 2bc cos A
b² = a² + c² − 2ac cos B
c² = a² + b² − 2ab cos C
It is the Pythagorean Theorem with a correction term. When C = 90°, cos C = 0 and it becomes c² = a² + b².
Which law?
| You know | Start with |
|---|---|
| AAS or ASA | Law of Sines |
| SSA | Law of Sines (check for two triangles) |
| SAS | Law of Cosines for the third side |
| SSS | Law of Cosines for an angle |
For SSS, solve the law for the cosine: cos C = (a² + b² − c²)/(2ab). Find the largest angle first (opposite the longest side). Inverse cosine handles obtuse angles correctly, and then the other two angles must be acute, so the Law of Sines is safe for them.
Heron's formula
With three sides you can find the area directly. Let s = (a + b + c)/2, the semiperimeter. Then Area = √(s(s − a)(s − b)(s − c)).
Whiteboard · watch and try
How far apart are the boats?
Tip: press Pause, then use the pen to work along on the board. Space plays and pauses; Ctrl+Z undoes your last mark.
Try it · interactive
Triangle solver: laws of sines and cosines
Pick SAS or SSS. Make the angle obtuse and see the opposite side stretch. In SSS, try sides that break the triangle inequality.
Method: Law of Cosines: a² = b² + c² − 2bc cos A, then the other angles
Angle A
50°
Angle B
41.8°
Angle C
88.2°
Side a
6.9
Side b
6
Side c
9
Area = ½ bc sin A
20.68
Loading practice…
Loading practice…
Check your understanding0 of 4 correct
Key terms
Say the meaning to yourself, then tap a card to check.
Quiz score: 0 of 4
Practice sets mastered: 0 of 2
Based on Algebra and Trigonometry 2e by Jay Abramson and others (OpenStax, Rice University), openstax.org/details/books/algebra-and-trigonometry-2e, licensed under CC BY-NC-SA 4.0. Noviq Academy rewrote and reorganized the material in its own words and added its own examples, whiteboard lessons, tools and quizzes; this adapted course is free and shared under the same license. Not endorsed by OpenStax or Rice University. Read-aloud and the whiteboard voice use your device's built-in voices, so the voice varies by device.