Library / Foundations: Maths / FMA-15
Foundations: Maths
Cosine rule
Third side of a triangle from two sides and the angle between them.
- Ref
- FMA-15
- Rev
- v1
- Field
- Foundations: Maths
- Result
- c [m]
Use two known sides and the angle C between them to find the third side. Rearranged it gives an angle when all three sides are known.
The cosine rule is Pythagoras with a correction term that depends on the angle between the sides.
Calculator
- Angle opposite a88.67 °
- Triangle area ½ab sin C15.32 m²
What drives the result
Each variable is moved across its typical range while the others stay at the values above. The longest bar is the key driver.
- At C = 90° the cosine term vanishes and the rule becomes Pythagoras.
- Use it for two sides and the included angle, or three sides and a missing angle.
Chart data as tables
Ranked variables
| Variable | Typical range | Lowest result | Highest result | Swing (m) | Local step | Change in result |
|---|---|---|---|---|---|---|
| a Side a | 3 to 20 m | 3.83 | 17.22 | 13.39 | +10% | +10.5 % |
| b Side b | 3 to 20 m | 6.13 | 16.07 | 9.942 | +10% | +0.143 % |
| C Included angle | 20 to 150 ° | 3.718 | 12.58 | 8.863 | +10% | +7.11 % |
Sweep of Included angle
| Included angle (°) | Third side (m) |
|---|---|
| 20 | 3.718 |
| 36.25 | 4.948 |
| 52.5 | 6.348 |
| 68.75 | 7.746 |
| 85 | 9.057 |
| 101.3 | 10.23 |
| 117.5 | 11.22 |
| 133.8 | 12.01 |
| 150 | 12.58 |
Sweep one variable
Variables and how each one contributes
Third side
What the equation gives you. Everything else feeds it.
Side a
One known side. Raises c.
Side b
The other known side. Raises c.
Included angle
Angle between sides a and b. Wider angles stretch the third side.
Worked example with the values above
- a² + b² = 89; 2ab cos C = 51.42.
- c² = 37.58.
- c = 6.13 m.
Assumptions and limits
- Plane triangle.
- C is the angle between a and b.
Common mistakes
- Using an angle that is not between the two known sides.
- Calculator in radian mode.
Statistics and uncertainty
The sides and the angle contribute errors of different weight; for angles near 0° or 180° the result is very sensitive to the angle reading.
Where it is used
- Distance between two targets from ranges and bearing difference.
- Navigation legs.
Maths you need
- Pythagoras: the right-angle case
- Cosine: cos of an angle