Grade by Grade
C. Trigonometric Functions · Trigonometry of Acute Triangles

Discovering and Verifying the Cosine Law

C1.3 C1.4About 75 minutes
Learning goals
  • I can verify the cosine law with measurements and with technology.
  • I can explain how the cosine law comes from two right triangles and the Pythagorean theorem.
  • I can explain why the cosine law becomes the Pythagorean theorem when the angle is 90°.
  • I can use the cosine law to find the third side when I know two sides and the angle between them (SAS).

Words to know

cosine law
In any acute △ABC: a² = b² + c² − 2bc cos A (and similarly b² = a² + c² − 2ac cos B, c² = a² + b² − 2ab cos C).
contained angle
The angle between two given sides (the angle where they meet).
SAS
Two sides and the contained angle.
correction term
The −2bc cos A part of the cosine law. It adjusts the Pythagorean theorem for a non-right angle.

When the sine law gets stuck

A surveyor stands on one side of a pond. She can measure her distance to each end of the pond and the angle between those two lines, but she cannot walk across the water. That is two sides and the angle between them (SAS). The sine law can't start, because no side is known together with its opposite angle.

The cosine law handles this case. It looks like the Pythagorean theorem with an extra piece. (If you took MPM2D, this is a review with a new focus: verifying the law with measurements and technology.)

The cosine law

In any acute △ABC:

a² = b² + c² − 2bc cos A

The angle on the right (A) is across from the side on the left (a). The other two sides (b and c) are the ones that form that angle. By changing letters:

  • b² = a² + c² − 2ac cos B
  • c² = a² + b² − 2ab cos C

Investigate: does it work?

A student drew an acute triangle and measured b = 7.0 cm, c = 8.0 cm, the contained angle ∠A = 47° and the opposite side a = 6.0 cm. Then she tested the formula with a calculator:

b² + c² − 2bc cos A = 49 + 64 − 2(7.0)(8.0) cos 47° = 113 − 112 × 0.6820... ≈ 36.62

So a ≈ √36.62 ≈ 6.05 cm. The measured value was 6.0 cm: they agree to within measuring error.

With technology: in a spreadsheet, put b, c and ∠A (in degrees) in cells B2, C2 and D2. The formula =SQRT(B2^2+C2^2-2B2C2*COS(RADIANS(D2))) predicts a. In GeoGebra, build a triangle, measure everything, and compare a² with b² + c² − 2bc cos(α) while you drag a vertex: they stay equal.

b (cm)c (cm)∠Aa measured (cm)a from cosine law (cm)
7.08.047°6.06.05
10.012.070°12.712.72
9.09.060°9.09.00
Three test triangles. The predicted and measured sides agree within a millimetre or so. (In the last one, an isosceles triangle with a 60° angle is equilateral.)
ABCDbahxc − x△ACD: h² = b² − x² and x = b cos A△BCD: a² = h² + (c − x)²a² = b² − x² + c² − 2cx + x²a² = b² + c² − 2cxa² = b² + c² − 2bc cos A
Where the cosine law comes from. The altitude h makes two right triangles. Apply Pythagoras to both, then replace x with b cos A.

Why it works

Draw the altitude h from C to AB, meeting it at D. Let AD = x, so DB = c − x.

  1. In right △ACD: h² = b² − x², and cos A = x/b, so x = b cos A.
  2. In right △BCD: a² = h² + (c − x)².
  3. Substitute h²: a² = b² − x² + c² − 2cx + x². The x² terms cancel: a² = b² + c² − 2cx.
  4. Replace x with b cos A: a² = b² + c² − 2bc cos A.

Connection to Pythagoras: if ∠A were 90°, then cos 90° = 0 and the law becomes a² = b² + c². The "−2bc cos A" term is a correction for angles that are not 90°. For an acute angle, cos A is positive, so a² is a bit less than b² + c².

Worked example

Example 1: SAS

In △ABC, b = 11 cm, c = 14 cm and ∠A = 52°. Find a.

  1. ∠A is between b and c, so this is SAS. Use a² = b² + c² − 2bc cos A.
  2. a² = 11² + 14² − 2(11)(14) cos 52°
  3. a² = 121 + 196 − 308 × 0.6157...
  4. a² ≈ 317 − 189.62 ≈ 127.38
  5. a ≈ √127.38 ≈ 11.3 cm

a ≈ 11.3 cm

Order of operations

Multiply 2bc cos A first, then subtract it from b² + c². A very common mistake is to calculate (b² + c² − 2bc) and then multiply by cos A. On a calculator, type it all in one line, or find 2bc cos A first and write it down.

Worked example

Example 2: Across the pond

A surveyor at C measures CA = 350 m and CB = 420 m to the two ends of a pond. The angle ∠ACB = 63°. How long is the pond (AB)?

  1. The known angle C is between the two known sides: SAS. Use the version with C: c² = a² + b² − 2ab cos C.
  2. Here a = CB = 420 and b = CA = 350.
  3. c² = 420² + 350² − 2(420)(350) cos 63° = 176 400 + 122 500 − 294 000 × 0.4540...
  4. c² ≈ 165427
  5. c ≈ 406.7 m

The pond is about 407 m long.

63°C (surveyor)AB350 m420 mpond length AB = ?
Example 2. The surveyor at C knows two distances and the angle between them, the classic SAS set-up for the cosine law. (Drawn to scale.)
Worked example

Example 3: Same law, different letters

In △ABC, a = 7.5 m, b = 9.2 m and ∠C = 48°. Find c.

  1. ∠C is between a and b. Use c² = a² + b² − 2ab cos C.
  2. c² = 56.25 + 84.64 − 2(7.5)(9.2) cos 48° ≈ 140.89 − 92.34 ≈ 48.55
  3. c ≈ 6.97 m

c ≈ 7.0 m

Just for fun

The cosine law is Pythagoras with a correction term. Think of it as the Pythagorean theorem after it went to Grade 11 and learned to handle more complicated relationships.

Hands-on activity

Test the cosine law with a door

You need: a door that swings, a tape measure, a protractor (or a phone angle app) and a calculator.

  1. Measure the door's width w (from the hinge side to the outer edge).
  2. Open the door to some angle θ and measure θ at the hinge, between the door and the closed position (use the edge of the door frame).
  3. Predict the straight-line distance d from the outer edge of the door to where that edge sits when closed: d² = w² + w² − 2w·w cos θ.
  4. Measure d with the tape and compare. Repeat for a few angles less than 90°.

What to look for: predictions within a centimetre or two. The triangle here is isosceles (two sides are the door width).

Your turn

1

Write the cosine law to find side q in △PQR.

2

In △ABC, b = 8 cm, c = 10 cm and ∠A = 60°. Find a.

3

In △ABC, a = 15 m, c = 12 m and ∠B = 70°. Find b.

4

In △XYZ, x = 4.2 km, y = 5.6 km and ∠Z = 55°. Find z.

5

Measured: b = 6.5 cm, c = 9.0 cm, ∠A = 64°, a = 8.6 cm. Does the cosine law agree?

6

What does the cosine law become when the angle is 90°? Why?

7

Two hikers leave a trail junction on straight trails that make a 72° angle. One walks 3.5 km and the other walks 4.0 km. How far apart are they?

More practice: warm-up

1

Evaluate 2 × 5 × 6 × cos 60°.

2

Evaluate 9 + 16 − 24 cos 90°.

3

In a² = b² + c² − 2bc cos A, which side is across from ∠A?

4

Is SAS a case for the sine law or the cosine law?

5

Find √50.41.

More practice: on your own

1

Two sides of a triangular garden are 8.0 m and 6.5 m with a 75° angle between them. How much edging is needed for the third side?

2

Ana calculated a² = (11² + 14² − 2 × 11 × 14) cos 52° for Example 1. What did she get and what went wrong?

3

A spreadsheet row has b = 12 in B5, c = 15 in C5 and ∠A = 40° in D5. Write a formula for a, and give its value.

4

A ship leaves port and sails 24 km. A second ship leaves at the same time and sails 30 km. Their courses make an angle of 58°. How far apart are the ships?

5

Show that the cosine law gives a² < b² + c² whenever ∠A is acute.

Challenge

1

An equilateral triangle has sides of length s. Use the cosine law to confirm that each angle is 60°.

2

Write a derivation of b² = a² + c² − 2ac cos B using the altitude from C. (Let DB = y.)

3

Two forces pull on a box with strengths 50 N and 70 N. The angle between them is 40°. The size of the combined pull is the third side of a triangle whose sides are 50 and 70 with an angle of 180° − 40° = 140° between them. Explain why we can't use the cosine law from this unit directly, and what changes.

Check your understanding

Quiz

1.

Which is the cosine law for side a?

2.

The cosine law is the right tool when you know:

3.

In △ABC, b = 11, c = 14, ∠A = 52°. What is a?

4.

In the derivation of the cosine law, AD = x is replaced by:

5.

If ∠A = 90°, the cosine law becomes:

6.

A common calculator error is to compute:

For parents and teachers

Big idea: Expectation C1.3 (verify the cosine law through investigation, for example with dynamic geometry software or by measuring drawn triangles) and the start of C1.4 (use it to calculate sides in acute triangles). Students do not need to memorize the derivation, but seeing it as "Pythagoras plus a correction" helps them remember the formula.

How to help: Ask your teen to point to the angle and the two sides that form it. Watch the calculator entry: 2bc cos A must be calculated as one piece.

Common difficulties:

  • Order of operations: (b² + c² − 2bc) cos A instead of b² + c² − 2bc cos A.
  • Forgetting the square root at the end.
  • Using an angle that is not between the two known sides.
  • Spreadsheet COS without RADIANS.