The Law of Cosines

The Law of Cosines

The law of cosines relates all three sides of a triangle to one angle, and it works where the law of sines cannot: when you know three sides, or two sides and the angle between them. With a right angle it reduces to the Pythagorean theorem.

Try it

Law of Sines & Cosines Calculator

Open the full calculator →

Type the problems from this lesson and check each step.

The Law of Cosines, Example 2:

(b=20, a=8, c=14)

Tutor-style math help

The Law of Cosines: what to notice and how to work it

Trigonometry skill
Trigonometry connects an angle to a triangle ratio, a unit-circle coordinate, or a repeating graph. Choosing the right picture makes the problem much easier.

What to notice first

Decide whether the problem is triangle-based, circle-based, or graph-based. Then use the matching definition.

Common student mistake

Do not mix degrees and radians. The angle unit must match the formula, graph scale, or calculator setting.

Key formulas and cues

(sintheta=frac{text{opposite}}{text{hypotenuse}})
(costheta=frac{text{adjacent}}{text{hypotenuse}})
(tantheta=frac{sintheta}{costheta})
(sin^2theta+cos^2theta=1)
amplitude midline

A reliable path

  1. Choose the modelUse a right triangle, the unit circle, or a transformed graph.
  2. Track unitsConvert degrees and radians when needed.
  3. Use identitiesReplace complicated trig expressions with equivalent simpler ones.

Worked examples

Right-triangle sine

Example: opposite = 5, hypotenuse = 13
  1. Sine is opposite over hypotenuse.
  2. Substitute 5 and 13.
  3. Leave the ratio simplified.
Answer: (sintheta=frac5{13})

Unit-circle cosine

Example: (cos(0))
  1. At angle 0, the point is (1, 0).
  2. Cosine is the x-coordinate.
  3. Read the x-value.
Answer: (1)
Try one before moving on
Try: In a right triangle, tangent equals which ratio?
Answer: Opposite over adjacent.
Next step: do the matching worksheet or quiz while the method is still fresh, then come back and explain the first step in your own words.

(cos B= frac {14^2+8^2-20^2}{2(14)(8)} =frac {196+ 64 to 400}{176}=frac{-140}{224}=-0.625)

Since (cosB) is negative, (B) is an obtuse angle.

(B≅128.69 ^circ )

Exercises for The Law of Cosines

Try these 10 questions one at a time. After each answer you will see a step-by-step explanation, so you can learn from every question, right or wrong.

Question 1 of 10

1. Which formula is the Law of Cosines?

  1. c² = a² + b² − 2ab cos C
  2. a/sin A = b/sin B
  3. c² = a² + b²
  4. c = a + b − cos C
Show the answer and explanation

Answer: A. c² = a² + b² − 2ab cos C

The Law of Cosines is c² = a² + b² − 2ab cos C.

It works for every triangle, not just right triangles.

When C = 90°, cos C = 0 and it becomes the Pythagorean theorem.

2. In triangle ABC, a = 3, b = 4 and C = 90°. What is c?

Type your answer.

Show the answer and explanation

Answer: 5

cos 90° = 0, so c² = 9 + 16 − 0 = 25.

c = 5.

This is the Pythagorean theorem as a special case.

3. In triangle ABC, a = 5, b = 5 and C = 60°. What is c?

  1. 5
  2. 10
  3. 5√3
  4. √50
Show the answer and explanation

Answer: A. 5

c² = 25 + 25 − 2(5)(5)(0.5).

= 50 − 25 = 25.

c = 5. The triangle is equilateral.

4. In triangle ABC, a = 7, b = 8 and C = 60°. What is c? (cos 60° = 0.5) Give the exact value or round to the nearest hundredth.

Type your answer.

Show the answer and explanation

Answer: √57 ≈ 7.55

c² = 49 + 64 − 2(7)(8)(0.5).

= 113 − 56 = 57.

c = √57, about 7.55. Since 60° is acute, c is shorter than it would be for a right angle (√113 ≈ 10.6).

5. When should you use the Law of Cosines instead of the Law of Sines?

  1. When you know all three sides, or two sides and the included angle
  2. When you know two angles and a side
  3. Only for right triangles
  4. Never
Show the answer and explanation

Answer: A. When you know all three sides, or two sides and the included angle

The Law of Cosines handles SSS and SAS cases.

The Law of Sines needs a side paired with its opposite angle.

With SSS or SAS, no such pair is known at the start.

6. A triangle has sides 5, 7 and 8. What is cos of the angle opposite the side 7? Give a decimal.

Type your answer.

Show the answer and explanation

Answer: 0.5

Rearrange: cos C = (a² + b² − c²) ÷ (2ab), with c = 7, a = 5, b = 8.

(25 + 64 − 49) ÷ 80 = 40 ÷ 80 = 0.5.

So that angle is 60°.

7. In triangle ABC, a = 6, b = 10 and C = 120°. What is c? (cos 120° = −0.5)

  1. 14
  2. √76
  3. 16
  4. 8
Show the answer and explanation

Answer: A. 14

c² = 36 + 100 − 2(6)(10)(−0.5).

= 136 + 60 = 196.

c = 14. A negative cosine makes the opposite side longer.

8. A triangle has sides 2, 3 and 4. Is the angle opposite the side 4 acute or obtuse? Type acute or obtuse.

Type your answer.

Show the answer and explanation

Answer: obtuse

cos C = (4 + 9 − 16) ÷ (2 × 2 × 3) = −3 ÷ 12 = −0.25.

A negative cosine means the angle is greater than 90°.

So the angle is obtuse (about 104.5°).

9. What happens to the Law of Cosines when C = 90°?

  1. It becomes the Pythagorean theorem
  2. It becomes the Law of Sines
  3. It no longer works
  4. c becomes 0
Show the answer and explanation

Answer: A. It becomes the Pythagorean theorem

cos 90° = 0, so the term −2ab cos C disappears.

What remains is c² = a² + b².

That is the Pythagorean theorem.

10. Two sides of a triangle are 8 and 15 with a 90° angle between them. What is the third side?

Type your answer.

Show the answer and explanation

Answer: 17

The included angle is 90°, so c² = 64 + 225 − 0.

c² = 289.

c = 17. Then 8-15-17 is a Pythagorean triple.

Original price was: $109.99.Current price is: $54.99.
Original price was: $109.99.Current price is: $54.99.

Related to This Article

What people say about "The Law of Cosines"?

No one replied yet.

Leave a Reply