How to solve a triangle with the law of cosines
The Law of Cosines defines the relationship between the side lengths of a triangle and the cosine of its angles. It applies specifically to triangles where two sides and the included angle are known (SAS), or where all three side lengths are known (SSS).
The setup
For a triangle with sides , , and opposite angles , , and , the Law of Cosines states: . By permutation, and .
The steps
- Identify the given triangle parameters as SAS (Side-Angle-Side) or SSS (Side-Side-Side). 2. Select the variation of the Law of Cosines that isolates the unknown side (for SAS) or the unknown angle (for SSS). 3. Substitute the known values and evaluate. 4. If finding an angle, isolate the cosine term and use the inverse cosine function. 5. Use the Law of Sines or repeat the Law of Cosines to find the remaining angles.
Checking the result
Verify that the sum of the angles equals exactly 180 degrees (). Confirm that the longest side is opposite the largest angle, and the shortest side is opposite the smallest angle.
Common errors
Failing to take the square root of when solving for a side length. Executing calculations with the calculator set to radians instead of degrees. Subtracting from before multiplying by .
Worked example
Solve for the largest angle in a triangle with side lengths , , and .
Identify the knowns: , , . Choose the equation isolating angle : . Substitute values: . Evaluate squares and products: . Simplify: . Isolate the cosine term: , so . Evaluate inverse cosine: . Result: .
FAQ
Run your own problem
References: Stewart, J., Redlin, L., & Watson, S. (2015). Precalculus: Mathematics for Calculus. · OpenStax Algebra and Trigonometry, Chapter 10. · Khan Academy Unit: Trigonometric equations and identities.
See also