13.6 The Law of Cosines

The law of cosines and its relationship to the Pythagorean theorem, solving triangles in the SAS and SSS cases, why the largest angle is found first, choosing between the two laws, and Heron's formula for the area from three sides.

Subject: Algebra 2 · 65 slides · symbolic lesson

Open the interactive version of this deck

What this lesson covers

The lesson, slide by slide

1. Lesson 13.6 The Law of Cosines

Title

Algebra 2 · Chapter 13 — Trigonometric Ratios and Functions

Apply the Law of Cosines

2. By the end of this lesson you can

Objectives

Five outcomes. The two cases the law of sines cannot touch.

McDougal Littell Algebra 2 (Texas Edition), Ch. 13 Trigonometric Ratios and Functions — Lesson 13.6 Apply the Law of Cosines §13.6, pp. 889-893 — the lesson these objectives are drawn from

3. What you already have

Warm-up

The law of sines needs an angle together with the side opposite it.

Discussion prompt

A triangle has sides 11 and 14 with a 34 degree angle between them. Try to start with the law of sines. What goes wrong?

Hint: Which angle is opposite a known side?

Answer:

The 34 degree angle is BETWEEN the two known sides, so the side opposite it is the unknown one. Every ratio in the law of sines is missing a piece.

\[ a^2 = b^2+c^2-2bc\cos A \]

The law of cosines needs no such pair. It relates all three sides to one angle, so it can start where the law of sines cannot — and it is simply the Pythagorean theorem with one correction term.

4. Pythagoras with a correction

Concept

In any triangle, the square of a side equals the sum of the squares of the other two, minus twice their product times the cosine of the angle between them. When that angle is 90 degrees the cosine is zero and the Pythagorean theorem falls out.

law of cosines — For any triangle ABC, a squared equals b squared plus c squared minus 2bc cosine A, with matching formulas for b squared and c squared. It solves the SAS and SSS cases, which the law of sines cannot.

\[ a^2 = b^2+c^2-2bc\cos A \]

A negative cosine signals an obtuse angle, so the formula reports not only the size of an angle but which side of 90 degrees it lies on.

Figure (svg): Two columns comparing the law of sines with the law of cosines

Between them the two laws cover every triangle that can be determined at all, and the SSA ambiguity is the only place where a set of givens fails to pin down a single answer.

McDougal Littell Algebra 2 (Texas Edition), Ch. 13 Trigonometric Ratios and Functions — Lesson 13.6 Apply the Law of Cosines §13.6, pp. 889-890

5. The law of cosines and the SAS case

Section

Section 1

6. Cosines for the third side, then sines

Concept

Given two sides and the angle between them, the law of cosines produces the third side. From there the triangle has an angle with its opposite side, so the law of sines finishes it.

\[ b^2 = a^2+c^2-2ac\cos B \]

Each form squares the side whose letter matches the angle. Once you see that pattern, only one formula has to be remembered.

Figure (svg): The three forms of the law of cosines and its link to Pythagoras

It is Pythagoras with one extra term, and that term measures exactly how far from a right angle the triangle is: at ninety degrees it vanishes entirely.

McDougal Littell Algebra 2 (Texas Edition), Ch. 13 Trigonometric Ratios and Functions — Lesson 13.6 Apply the Law of Cosines §13.6, pp. 889-889 — Law of Cosines

7. Three forms, one pattern

Picture it

The law of cosines, and what happens at a right angle.

Figure (svg): The three forms of the law of cosines and its link to Pythagoras

It is Pythagoras with one extra term, and that term measures exactly how far from a right angle the triangle is: at ninety degrees it vanishes entirely.

Setting the angle to 90 degrees kills the last term, leaving the Pythagorean theorem exactly. It is a special case of this law, not a separate fact.

8. Worked example: solve an SAS triangle

Worked example

Example 1.

\[ \text{Solve } \triangle ABC \text{ with } a = 11, \; c = 14, \; B = 34^\circ. \]

Use the law of cosines for b

Why: One twenty-one plus 196 minus 308 cosine 34.

\[ b ^{2} = 61.7 \]

Take the positive root

Why: The root of 61.7.

\[ b = 7.85 \]

Use the law of sines for A

Why: Eleven sine 34 over 7.85.

\[ \sin A = 0.7836, A = 51.6 \]

Subtract for C

Why: One eighty minus 34 minus 51.6.

\[ C = 94.4 ^\circ \]

Figure (svg): A triangle solved from two sides and the angle between them

The law of cosines does the one job the law of sines cannot, and then hands the triangle back: after the third side is known, everything else is a sine problem.

\[ b \approx 7.85, \; A \approx 51.6^\circ, \; C \approx 94.4^\circ \]

Verify: check the sides rank like their angles

Why: The angles are 34, 51.6 and 94.4 with opposite sides 7.85, 11 and 14 — the same order. The shortest side really does face the smallest angle, which is the free check available on every solved triangle.

McDougal Littell Algebra 2 (Texas Edition), Ch. 13 Trigonometric Ratios and Functions — Lesson 13.6 Apply the Law of Cosines §13.6, pp. 889-889

9. Find the third side

Fill the middle

Example 1.

Fill in the blanks

b^2 = 121+196-308\cos 34^\circ = 317-255.3 = 61.7

Why: About 61.7, so b is about 7.85. The correction term removed most of the 317, which is what a fairly small included angle does.

10. Worked example: another SAS triangle

Worked example

Guided Practice 1.

\[ \text{Solve } \triangle ABC \text{ with } a = 8, \; c = 10, \; B = 48^\circ. \]

Use the law of cosines

Why: Sixty-four plus 100 minus 160 cosine 48.

\[ b ^{2} = 56.94 \]

Take the root

Why: The root of 56.94.

\[ b = 7.55 \]

Use the law of sines for A

Why: Eight sine 48 over 7.55.

\[ \sin A = 0.7878, A = 52.0 \]

Subtract for C

Why: One eighty minus 48 minus 52.0.

\[ C = 80.0 ^\circ \]

Figure (svg): The solution to Worked example another SAS triangle shown as a ladder of expressions, one row per algebraic move

The whole solution at once: each drop is one legal move.

\[ b \approx 7.55, \; A \approx 52.0^\circ, \; C \approx 80.0^\circ \]

Verify: check C with the law of cosines instead

Why: Cosine of C is 64 plus 56.94 minus 100, over 2 times 8 times 7.55, which is 20.94 over 120.8, giving 0.1734 and an angle of 80.0 degrees. The two routes agree, and using the law of cosines a second time is the safest way to check an angle found by sines.

McDougal Littell Algebra 2 (Texas Edition), Ch. 13 Trigonometric Ratios and Functions — Lesson 13.6 Apply the Law of Cosines §13.6, pp. 891-891

11. Trap: subtracting before multiplying

Trap

The trap

\[ b^2 = 11^2+14^2-2(11)(14)\cos 34^\circ \]

Subtract 2ac first, then multiply by the cosine

Why: The order of operations is misread.

\[ b^2 = (317-308)\cos 34^\circ = 7.46 \quad \text{(wrong)} \]

The cosine multiplies only the 2ac term. Order of operations puts that multiplication before the subtraction.

The fix

\[ b^2 = 317-308(0.829) = 317-255.3 \]

Multiply 2ac by the cosine, then subtract

Why: One term, computed whole.

\[ b^2 = 61.7 \;\Longrightarrow\; b \approx 7.85 \]

The wrong route gives b about 2.7, shorter than either given side, which is impossible for a triangle with a 34 degree included angle.

12. Angle to its law-of-cosines form

Matching

The squared side matches the angle.

Match the pairs

  • l1. angle A
  • l2. angle B
  • l3. angle C
  • l4. angle A at 90 degrees
  • r1. a^2 = b^2 + c^2 - 2bc cos A
  • r2. b^2 = a^2 + c^2 - 2ac cos B
  • r3. c^2 = a^2 + b^2 - 2ab cos C
  • r4. a^2 = b^2 + c^2

Why: The last row is the Pythagorean theorem appearing as a special case, since cosine of 90 degrees is zero. Remembering one form and swapping letters is easier than memorising three.

13. Which term does the cosine multiply?

Sorting

Order of operations.

Sort into buckets

In b squared equals a squared plus c squared minus 2ac cosine B, sort each statement.

Correct
The cosine multiplies 2ac; The subtraction happens last; At B = 90 the last term vanishes
Incorrect
The cosine multiplies the whole right side; The subtraction happens first
yes
Multiplication comes before subtraction, and cosine 90 is zero.
no
This misreads the expression and gives a third side far too short.

Computing the whole term 2ac cosine B as one number before subtracting removes the ambiguity, and it is worth writing that intermediate value down.

14. What does a negative cosine tell you?

Prediction

Commit before reasoning.

Predict first

Solving for an angle you find cos B = -0.3854. What does the sign tell you?

  • An arithmetic error
  • That B is obtuse, since cosine is negative only between 90 and 180 degrees
  • That B is acute
  • That no triangle exists

Correct: That B is obtuse, since cosine is negative only between 90 and 180 degrees.

\[ \cos B < 0 \;\Longleftrightarrow\; 90^\circ < B < 180^\circ \]

Why: Across the angles of a triangle, from 0 to 180 degrees, the cosine is positive below 90 and negative above it. So the sign of the cosine reports the type of angle before the inverse cosine is even taken. This is a genuine advantage over the law of sines, whose sine is positive throughout that whole range and so tells you nothing about acute versus obtuse — which is exactly the source of the SSA ambiguity.

15. The SSS case

Section

Section 2

16. Largest angle first

Concept

Given three sides, rearrange the law of cosines to solve for an angle. Find the angle opposite the LONGEST side first, so that the two remaining angles are guaranteed acute and the law of sines cannot go wrong.

\[ \cos B = \frac{a^2+c^2-b^2}{2ac} \]

A triangle can hold at most one non-acute angle, so once the largest is found the others must be acute and the inverse sine is safe.

Figure (svg): A triangle solved from three sides, largest angle first

Taking the largest angle first is not a preference but a safeguard: once it is out of the way, the inverse sine cannot possibly return the wrong one of two answers.

McDougal Littell Algebra 2 (Texas Edition), Ch. 13 Trigonometric Ratios and Functions — Lesson 13.6 Apply the Law of Cosines §13.6, pp. 890-890 — Solve a triangle for the SSS case

17. Three sides, three angles

Picture it

Example 2: sides 12, 27 and 20.

Figure (svg): A triangle solved from three sides, largest angle first

Taking the largest angle first is not a preference but a safeguard: once it is out of the way, the inverse sine cannot possibly return the wrong one of two answers.

The 27 is longest, so angle B is found first; it turns out obtuse, which guarantees the other two are not.

18. Worked example: solve an SSS triangle

Worked example

Example 2.

\[ \text{Solve } \triangle ABC \text{ with } a = 12, \; b = 27, \; c = 20. \]

Pick the longest side

Why: Twenty-seven is b.

Solve the law of cosines for cosine B

Why: Seven twenty-nine minus 144 minus 400, over -480.

\[ \cos B = -0.3854 \]

Take the inverse cosine

Why: A negative cosine gives an obtuse angle.

\[ B = 112.7 ^\circ \]

Use the law of sines and subtract

Why: Sine A is 0.4100.

\[ A = 24.2, C = 43.1 \]

Figure (svg): A triangle solved from three sides, largest angle first

Taking the largest angle first is not a preference but a safeguard: once it is out of the way, the inverse sine cannot possibly return the wrong one of two answers.

\[ A \approx 24.2^\circ, \; B \approx 112.7^\circ, \; C \approx 43.1^\circ \]

Verify: check the angles sum to 180

Why: Twenty-four point two plus 112.7 plus 43.1 is exactly 180. This is the cleanest possible check on an SSS solution, and it catches any misidentified angle immediately.

McDougal Littell Algebra 2 (Texas Edition), Ch. 13 Trigonometric Ratios and Functions — Lesson 13.6 Apply the Law of Cosines §13.6, pp. 890-890

19. Solve for a cosine

Fill the middle

Example 2.

Fill in the blanks

\cos B = \frac-0.3854___ = \frac______ = ___

Why: About negative 0.3854. The negative sign says at once that B is obtuse, before the inverse cosine is taken.

20. Worked example: another SSS triangle

Worked example

Guided Practice 2.

\[ \text{Solve } \triangle ABC \text{ with } a = 14, \; b = 16, \; c = 9. \]

Pick the longest side

Why: Sixteen is b.

Solve for cosine B

Why: Two fifty-six minus 196 minus 81, over -252.

\[ \cos B = 0.0833 \]

Take the inverse cosine

Why: A small positive cosine.

\[ B = 85.2 ^\circ \]

Finish with sines and subtraction

Why: Sine A is 0.8720.

\[ A = 60.7, C = 34.1 \]

Figure (svg): The solution to Worked example another SSS triangle shown as a ladder of expressions, one row per algebraic move

The whole solution at once: each drop is one legal move.

\[ A \approx 60.7^\circ, \; B \approx 85.2^\circ, \; C \approx 34.1^\circ \]

Verify: notice this triangle has no obtuse angle

Why: The largest angle came out at 85.2 degrees, just under a right angle, so all three are acute. Finding the largest first was still worth doing: it is the only one that COULD have been obtuse, and knowing it is not makes the rest certain.

McDougal Littell Algebra 2 (Texas Edition), Ch. 13 Trigonometric Ratios and Functions — Lesson 13.6 Apply the Law of Cosines §13.6, pp. 891-891

21. Find the error: finding a small angle first

Error analysis

A student solving a = 12, b = 27, c = 20 starts with angle A by the law of sines.

Annotate

On: \( \text{cannot start: no angle is known yet} \)

  • The law of sines needs an angle together with its opposite side.
  • With SSS no angle is known at all, so it cannot start.
  • The law of cosines must supply the first angle.
  • And it should supply the LARGEST one, opposite side b = 27.

Had the student found A first by cosines and then used sines for B, the inverse sine would have returned 67.3 rather than the correct obtuse 112.7 — a silent error with no warning.

22. Find the third angle

Fill the middle

Example 2.

Fill in the blanks

C = 180^\circ-24.2^\circ-112.7^\circ = 43.1^\circ

Why: Forty-three point one degrees. Subtracting for the last angle is always faster than a third application of either law.

23. Which angle to find first?

Sorting

The largest angle faces the longest side.

Sort into buckets

Sort each side by whether its opposite angle should be found first.

Find this angle first
b = 27 in a 12, 27, 20 triangle; b = 16 in a 14, 16, 9 triangle
Leave until later
a = 12 in a 12, 27, 20 triangle; c = 20 in a 12, 27, 20 triangle; c = 9 in a 14, 16, 9 triangle
first
It is the longest side, so its angle is the largest and the only one that could be obtuse.
later
Once the largest angle is known these must be acute, so the law of sines is safe on them.

The rule costs nothing and removes a whole class of silent error. It is worth applying even when the largest angle turns out to be acute after all.

24. Why does finding the largest first help?

Prediction

Commit before reasoning.

Predict first

Why is it safer to find the angle opposite the longest side before using the law of sines?

  • It makes the arithmetic easier
  • Because the remaining angles are then guaranteed acute, so the inverse sine returns the right one
  • Because the longest side is easier to measure
  • It makes no difference

Correct: Because the remaining angles are then guaranteed acute, so the inverse sine returns the right one.

\[ \text{at most one angle } \ge 90^\circ, \text{ opposite the longest side} \]

Why: A triangle can hold at most one angle of 90 degrees or more, and that angle faces the longest side. Once it has been found by the law of cosines, whose negative cosines identify obtuse angles reliably, every remaining angle is acute — which is exactly the range the inverse sine returns. Reversing the order leaves you unable to tell whether an inverse sine's answer or its obtuse partner is the true one.

25. Choosing between the two laws

Section

Section 3

26. One question decides it

Concept

Ask whether you have a known angle together with the side opposite it. If yes, the law of sines has a complete ratio and can start. If no, only the law of cosines can begin.

\[ \text{AAS, ASA, SSA} \to \text{sines}; \quad \text{SAS, SSS} \to \text{cosines} \]

SAS and SSS each determine exactly one triangle, so neither is ever ambiguous. Only SSA can misbehave.

Figure (svg): A table matching each case of given information to the law that solves it

One question decides it every time. If a known angle sits opposite a known side, the law of sines has a complete ratio to work from; if not, only the law of cosines can start.

McDougal Littell Algebra 2 (Texas Edition), Ch. 13 Trigonometric Ratios and Functions — Lesson 13.6 Apply the Law of Cosines §13.6, pp. 892-892 — Choosing a method

27. Five cases, two laws

Picture it

Which law starts which case.

Figure (svg): A table matching each case of given information to the law that solves it

One question decides it every time. If a known angle sits opposite a known side, the law of sines has a complete ratio to work from; if not, only the law of cosines can start.

Three cases go to the law of sines and two to the law of cosines. Between them every determinable triangle is covered.

28. Worked example: classify five cases

Worked example

Exercises 3 to 7 on page 892.

\[ \text{For SSS, ASA, SSA, SAS and AAS, say which law starts the solution.} \]

SSS

Why: No angle known at all.

ASA and AAS

Why: An angle is known and, after subtracting, so is every angle.

SSA

Why: The given angle is opposite one of the given sides.

SAS

Why: The given angle sits BETWEEN the two sides.

Figure (svg): A table matching each case of given information to the law that solves it

One question decides it every time. If a known angle sits opposite a known side, the law of sines has a complete ratio to work from; if not, only the law of cosines can start.

\[ \text{SSS, SAS} \to \cos; \qquad \text{ASA, AAS, SSA} \to \sin \]

Verify: notice what distinguishes SAS from SSA

Why: Both give two sides and one angle, and the only difference is where the angle sits. Included means SAS and the law of cosines with one guaranteed answer; opposite one of them means SSA and the law of sines with a possible ambiguity. One word changes both the method and the number of answers.

McDougal Littell Algebra 2 (Texas Edition), Ch. 13 Trigonometric Ratios and Functions — Lesson 13.6 Apply the Law of Cosines §13.6, pp. 892-892

29. Case to law

Matching

Do you have an angle with its opposite side?

Match the pairs

  • l1. SSS
  • l2. SAS
  • l3. ASA
  • l4. SSA
  • r1. law of cosines, one triangle
  • r2. law of cosines, one triangle
  • r3. law of sines, one triangle
  • r4. law of sines, zero, one or two triangles

Why: Three of the four give exactly one triangle. Only SSA can be ambiguous, and it is ambiguous precisely because the known angle is not between the known sides, leaving the triangle free to close two ways.

30. Worked example: pick the law for four problems

Worked example

Exercises 11 to 14 on page 892.

\[ \text{Which law for } B=25^\circ,a=8,c=6; \; A=103^\circ,b=15,c=24; \; a=18,b=28,c=13; \; a=38,b=31,c=35? \]

First: is B between a and c?

Why: Yes, B is included.

Second: is A between b and c?

Why: Yes, A is included.

Third: what is given?

Why: All three sides.

Fourth: what is given?

Why: All three sides again.

Figure (svg): The solution to Worked example pick the law for four problems shown as a ladder of expressions, one row per algebraic move

The whole solution at once: each drop is one legal move.

\[ \text{SAS, SAS, SSS, SSS} \]

Verify: check no angle sits opposite a known side

Why: In the first, angle B is known and side b is not; in the third and fourth no angle is known at all. In every case the law of sines has no complete ratio to work from, which is precisely the test for needing the law of cosines.

McDougal Littell Algebra 2 (Texas Edition), Ch. 13 Trigonometric Ratios and Functions — Lesson 13.6 Apply the Law of Cosines §13.6, pp. 892-892

31. Trap: confusing SAS with SSA

Trap

The trap

\[ B = 25^\circ, \; a = 8, \; c = 6 \]

Read it as two sides and an angle, so SSA

Why: The position of the angle is not checked.

\[ \frac{\sin B}{b} = \frac{\sin A}{8} \quad \text{(cannot start: b is unknown)} \]

Angle B sits BETWEEN sides a and c, so this is SAS. Side b, the one opposite B, is exactly what is missing.

The fix

\[ b^2 = 8^2+6^2-2(8)(6)\cos 25^\circ \]

Check where the angle sits

Why: Between the two sides means SAS and the law of cosines.

\[ b^2 \approx 12.98 \;\Longrightarrow\; b \approx 3.60 \]

Reading the position of the angle is the whole of the decision, and it takes one glance at the letters.

32. Which law starts it?

Sorting

Look for an angle with its opposite side known.

Sort into buckets

Sort each set of given information.

Law of sines
B = 34, C = 100, b = 8; A = 40, a = 13, b = 16
Law of cosines
B = 25, a = 8, c = 6; a = 18, b = 28, c = 13; A = 103, b = 15, c = 24
sin
A known angle sits opposite a known side, giving a complete ratio.
cos
No known angle sits opposite a known side, so no ratio is complete.

The fourth item is the ambiguous SSA case from Lesson 13.5, and the first and last are SAS. All three give two sides and an angle, so only the angle's position separates them.

33. SAS against SSA

Comparison

Fill the blanks. Two sides and an angle, twice.

Comparison matrix

QuestionSASSSA
Where the angle sitsbetween the two sidesopposite one of the two sides
Law to usecosinessines
Number of trianglesalways exactly onezero, one or two
ExampleB = 25, a = 8, c = 6A = 40, a = 13, b = 16

SAS pins the triangle down because fixing an angle and both its arms leaves the third side no freedom. SSA leaves one arm swinging, which is where the second triangle comes from.

34. Why is SAS never ambiguous?

Prediction

Commit before reasoning.

Predict first

Why do two sides and the angle between them always give exactly one triangle?

  • They sometimes give two
  • Because fixing the angle and both its arms leaves the third vertex nowhere to move
  • Because the law of cosines is exact
  • Only when the angle is acute

Correct: Because fixing the angle and both its arms leaves the third vertex nowhere to move.

\[ \text{SAS: both arms fixed} \;\Longrightarrow\; \text{one triangle} \]

Why: Draw the angle, mark off the two given lengths along its arms, and the two endpoints are completely determined; joining them gives the one and only third side. In SSA the given angle has one arm of known length and one of unknown length, so the far end is free to slide, and the fixed opposite side may reach it in two places. The whole difference is whether both arms are pinned.

35. Heron's formula

Section

Section 4

36. Area from three sides alone

Concept

The area of a triangle with sides a, b and c is the square root of s times s minus a times s minus b times s minus c, where s is the semiperimeter, half the sum of the three sides.

\[ \text{Area} = \sqrt{s(s-a)(s-b)(s-c)}, \quad s = \tfrac{1}{2}(a+b+c) \]

No angle is needed, which fits the fact that three sides already determine the triangle completely.

Figure (svg): Heron's formula applied to a triangle of land

Three lengths and no angle at all still fix the area completely, which is exactly what SSS determining a unique triangle has to mean.

McDougal Littell Algebra 2 (Texas Edition), Ch. 13 Trigonometric Ratios and Functions — Lesson 13.6 Apply the Law of Cosines §13.6, pp. 891-891 — Heron's Area Formula

37. A traffic triangle measured

Picture it

Example 4: sides of 170, 240 and 350 yards.

Figure (svg): Heron's formula applied to a triangle of land

Three lengths and no angle at all still fix the area completely, which is exactly what SSS determining a unique triangle has to mean.

The semiperimeter is 380, and the four factors 380, 210, 140 and 30 multiply to 335,160,000, whose root is about 18,300.

38. Worked example: the area of a traffic triangle

Worked example

Example 4.

\[ \text{Find the area of a triangle with sides } 170, \; 240 \text{ and } 350 \text{ yards.} \]

Find the semiperimeter

Why: Half of 170 plus 240 plus 350.

\[ s = 380 \]

Form the three differences

Why: Three eighty minus each side.

\[ 210, 140, 30 \]

Multiply all four

Why: Three eighty times 210 times 140 times 30.

\[ 335, 160, 000 \]

Take the square root

Why: The root of that product.

\[ \text{about } 18, 300 \]

Figure (svg): Heron's formula applied to a triangle of land

Three lengths and no angle at all still fix the area completely, which is exactly what SSS determining a unique triangle has to mean.

\[ \text{Area} \approx 18{,}300 \text{ yd}^2 \]

Verify: sanity-check against a rectangle

Why: A rectangle 170 by 240 would hold 40,800 square yards, and this triangle holds about 45 percent of that — plausible for a triangle whose longest side of 350 is close to the 410 that the other two sum to, making it rather flat. A very flat triangle encloses little area for its perimeter.

McDougal Littell Algebra 2 (Texas Edition), Ch. 13 Trigonometric Ratios and Functions — Lesson 13.6 Apply the Law of Cosines §13.6, pp. 891-891

39. Find the semiperimeter

Fill the middle

Example 4.

Fill in the blanks

s = \tfrac380___(170+240+350) = \tfrac______(760) = ___

Why: Three hundred eighty. Every one of the three differences is then computed from this same number.

40. Worked example: three more areas

Worked example

Guided Practice 4, 5 and 6.

\[ \text{Find the area for sides } 8,11,5; \; 9,4,7; \; 23,15,12. \]

First: s is 12

Why: Differences 4, 1, 7.

First: evaluate

Why: The root of 336.

\[ \text{about } 18.3 \]

Second: s is 10

Why: Differences 1, 6, 3.

Third: s is 25

Why: Differences 2, 10, 13.

Figure (svg): The solution to Worked example three more areas shown as a ladder of expressions, one row per algebraic move

The whole solution at once: each drop is one legal move.

\[ \sqrt{336} \approx 18.3; \; \sqrt{180} \approx 13.4; \; \sqrt{6500} \approx 80.6 \]

Verify: check the first triangle's shape

Why: Sides 8, 11 and 5 have the two shorter summing to 13, only slightly more than 11, so the triangle is quite flat and its area of 18.3 is small for its perimeter of 24. A factor s minus a close to zero always signals a nearly degenerate triangle.

McDougal Littell Algebra 2 (Texas Edition), Ch. 13 Trigonometric Ratios and Functions — Lesson 13.6 Apply the Law of Cosines §13.6, pp. 891-891

41. Trap: using the perimeter instead of the semiperimeter

Trap

The trap

\[ a=170, \; b=240, \; c=350 \]

Set s to the perimeter

Why: The word semiperimeter is skipped over.

\[ s = 760 \;\Longrightarrow\; \sqrt{760(590)(520)(410)} \approx 320{,}000 \]

That is more than seventeen times too large. The letter s means HALF the perimeter.

The fix

\[ s = \tfrac{1}{2}(760) = 380 \]

Halve the perimeter

Why: That is what semi means.

\[ \sqrt{380(210)(140)(30)} \approx 18{,}300 \]

A quick check: the area cannot exceed half the product of the two shorter sides, which here is 20,400.

42. Compute an area

Fill the middle

Guided Practice 6.

Fill in the blanks

s = 25: \; \sqrt80.6 = \sqrt___ \approx ___

Why: About 80.6 square units. The factor s minus a of 2 is small, so this triangle is somewhat flat and its area modest.

43. Order the areas

Ranking

Smallest first.

Put in order

  1. sides 9, 4, 7
  2. sides 8, 11, 5
  3. sides 23, 15, 12
  4. sides 21, 16, 13
  5. sides 170, 240, 350

Why: The areas are about 13.4, 18.3, 80.6, 103.9 and 18,300. The third and fourth have similar perimeters but different areas, because the fourth is closer to equilateral and so encloses more.

44. What does a tiny factor mean?

Prediction

Commit before reasoning.

Predict first

In Heron's formula, what does it mean if s minus a is very close to zero?

  • Nothing in particular
  • That side a is nearly as long as the other two combined, so the triangle is almost flat and its area almost zero
  • That the triangle is equilateral
  • That the formula fails

Correct: That side a is nearly as long as the other two combined, so the triangle is almost flat and its area almost zero.

\[ a = b+c \;\Longrightarrow\; s-a = 0 \;\Longrightarrow\; \text{Area} = 0 \]

Why: The semiperimeter s equals a exactly when a equals b plus c, which is the degenerate case where the triangle collapses onto a straight line. Heron's formula then returns zero, correctly. This makes the formula a diagnostic as well as a calculator: a factor near zero warns you that the triangle is nearly degenerate, and a negative factor would mean the three lengths cannot form a triangle at all.

45. Applications of both laws

Section

Section 5

46. Read the givens, then choose

Concept

Applied problems rarely announce their case. Identify which sides and angles are given, decide whether any angle sits opposite a known side, and choose the law accordingly.

\[ \cos B = \frac{a^2+c^2-b^2}{2ac} \]

Three measured lengths is the commonest applied situation, so SSS and Heron's formula appear far more often than the textbook exercise counts suggest.

Figure (svg): A triangle solved from three sides, largest angle first

Taking the largest angle first is not a preference but a safeguard: once it is out of the way, the inverse sine cannot possibly return the wrong one of two answers.

McDougal Littell Algebra 2 (Texas Edition), Ch. 13 Trigonometric Ratios and Functions — Lesson 13.6 Apply the Law of Cosines §13.6, pp. 890-891 — Use the law of cosines in real life

47. An angle from three measurements

Picture it

Example 3: a dinosaur's step angle from three footprint distances.

Figure (svg): A triangle solved from three sides, largest angle first

Taking the largest angle first is not a preference but a safeguard: once it is out of the way, the inverse sine cannot possibly return the wrong one of two answers.

Three distances and no angle at all is exactly SSS, so the law of cosines rearranged for a cosine is the tool.

48. Worked example: a dinosaur's step angle

Worked example

Example 3, and Guided Practice 3.

\[ \text{Footprints give } a = 155, b = 316, c = 197 \text{ cm. Find the step angle } B. \text{ Repeat for } 193, 335, 186. \]

Identify the case

Why: Three lengths, no angle.

Solve for cosine B

Why: Three sixteen squared minus the other two squares, over -2ac.

\[ \cos B = -0.6062 \]

Take the inverse cosine

Why: A negative cosine gives an obtuse angle.

\[ B = 127.3 ^\circ \]

Repeat with the second set

Why: Cosine B is -0.5624.

\[ B = 124.2 ^\circ \]

Figure (svg): The solution to Worked example a dinosaur's step angle shown as a ladder of expressions, one row per algebraic move

The whole solution at once: each drop is one legal move.

\[ B \approx 127.3^\circ; \qquad B \approx 124.2^\circ \]

Verify: interpret the numbers

Why: The closer the step angle is to 180, the more efficiently the animal walked, so 127.3 degrees is a moderately efficient gait. The second set gives 124.2, slightly less efficient. Both being obtuse is what the negative cosines predicted before either inverse was taken.

McDougal Littell Algebra 2 (Texas Edition), Ch. 13 Trigonometric Ratios and Functions — Lesson 13.6 Apply the Law of Cosines §13.6, pp. 890-891

49. Find a step angle

Fill the middle

Example 3.

Fill in the blanks

\cos B = -0.6062 \;\Longrightarrow\; B \approx 127.3^\circ

Why: About 127.3 degrees. The negative cosine guaranteed an obtuse answer before the inverse was taken.

50. Worked example: the Research Triangle

Worked example

Exercise 44 on page 893.

\[ \text{Three cities are } 18, \; 23 \text{ and } 8 \text{ miles apart. Find the area they enclose.} \]

Identify the case

Why: Three lengths, area wanted.

Find the semiperimeter

Why: Half of 18 plus 23 plus 8.

\[ s = 24.5 \]

Form the differences

Why: Twenty-four point five minus each.

\[ 6.5, 1.5, 16.5 \]

Multiply and take the root

Why: Twenty-four point five times 6.5 times 1.5 times 16.5.

Figure (svg): Heron's formula applied to a triangle of land

Three lengths and no angle at all still fix the area completely, which is exactly what SSS determining a unique triangle has to mean.

\[ \sqrt{24.5(6.5)(1.5)(16.5)} \approx 62.8 \]

Verify: notice the small factor

Why: The factor 1.5 comes from 24.5 minus 23, and it is small because 18 plus 8 is 26, only three more than 23. The three cities are close to being in a straight line, so they enclose much less area than their 49 mile perimeter might suggest.

McDougal Littell Algebra 2 (Texas Edition), Ch. 13 Trigonometric Ratios and Functions — Lesson 13.6 Apply the Law of Cosines §13.6, pp. 893-893

51. Find the error: the wrong denominator sign

Error analysis

A student solving for cos B from a = 12, b = 27, c = 20 writes:

Annotate

On: \( \cos B = \frac{b^2-a^2-c^2}{2ac} = \frac{185}{480} = 0.3854 \)

  • The numerator b squared minus a squared minus c squared is correct.
  • But rearranging b^2 = a^2 + c^2 - 2ac cos B leaves -2ac underneath, not +2ac.
  • So the cosine is -0.3854, not +0.3854.
  • That changes the angle from 67.3 degrees to 112.7.

The safer rearrangement puts the two squares of the adjacent sides first, subtracts the square of the opposite side, and divides by a positive 2ac. Both routes give the same answer, and only one invites a sign slip.

52. Applied problem to method

Matching

What is given decides the tool.

Match the pairs

  • l1. Three footprint distances, angle wanted
  • l2. Three city distances, area wanted
  • l3. Two towers, two bearings, distance wanted
  • l4. Two sides and the angle between, third side wanted
  • r1. law of cosines solved for a cosine
  • r2. Heron's formula
  • r3. law of sines after finding the third angle
  • r4. law of cosines solved for a side

Why: The third is the only one where an angle sits opposite a known side, so it is the only one the law of sines can start. The other three all begin with the law of cosines or its area consequence.

53. Angle wanted against area wanted

Comparison

Fill the blanks. Three sides given either way.

Comparison matrix

QuestionAn angle wantedThe area wanted
Toollaw of cosinesHeron's formula
First computationa cosinethe semiperimeter
Final stepan inverse cosinea square root
Needs any angle?nono

Neither needs an angle to start, which is the practical meaning of SSS determining the triangle completely: everything about it is already implied by the three lengths.

54. Why do three sides fix everything?

Prediction

Commit before reasoning.

Predict first

Three side lengths determine every angle and the area with no further information. Why?

  • They do not; an angle is still needed
  • Because a triangle with three fixed side lengths is rigid; there is no way to flex it
  • Because of the Pythagorean theorem
  • Only for right triangles

Correct: Because a triangle with three fixed side lengths is rigid; there is no way to flex it.

\[ \text{SSS} \;\Longrightarrow\; \text{one triangle, all angles fixed} \]

Why: A four-sided frame with fixed side lengths can be pushed out of shape, but a triangle cannot — the three lengths leave no freedom at all. That rigidity is why bridges and roof trusses are built from triangles, and mathematically it is why SSS determines a unique triangle and therefore every angle and the area. The law of cosines and Heron's formula are simply the arithmetic that extracts those determined values.

55. The two laws side by side

Comparison

Fill the blanks. Together they cover everything.

Comparison matrix

QuestionLaw of sinesLaw of cosines
Statementa/sin A = b/sin B = c/sin Ca^2 = b^2 + c^2 - 2bc cos A
CasesAAS, ASA, SSASAS, SSS
Needsan angle with its opposite sideno such pair
Ambiguitypossible in SSAnever

The law of cosines is the more powerful of the two but the messier to use, so the usual strategy is to use it exactly once to break into the triangle and then finish with the law of sines.

56. The procedure, in order

Pattern

Classify, then choose.

  1. List what is given and ask whether any known angle sits opposite a known side.
  2. If one does, use the law of sines; if none does, use the law of cosines.
  3. For SAS, find the third side by cosines, then finish with sines and subtraction.
  4. For SSS, find the angle opposite the LONGEST side first, then finish with sines and subtraction.
  5. For an area from three sides, halve the perimeter and apply Heron's formula.

A negative cosine means an obtuse angle. A sine gives no such information, which is why the largest angle is found by cosines.

OpenStax Algebra and Trigonometry 2e, §10.2 Non-right Triangles: Law of Cosines §10.2

57. Check yourself 1 of 3

Check

The angle is between the two sides.

Check your understanding

In triangle ABC, a = 11, c = 14 and B = 34 degrees. What is b?

  • A. About 7.85 (correct)
  • B. About 17.8
  • C. About 2.7
  • D. About 25

Answer: A

Why: b^2 = 121 + 196 - 2(11)(14) cos 34, which is about 61.7.

Why B tempts people
This is the root of 317, which omits the correction term entirely.
Why C tempts people
This subtracts 2ac before multiplying by the cosine, reversing the order of operations.
Why D tempts people
This adds the two sides, which would only be right for a straight line.

58. Check yourself 2 of 3

Check

Find the largest angle first.

Check your understanding

In triangle ABC, a = 17, b = 29 and c = 14. What is angle B?

  • A. About 138.4 degrees (correct)
  • B. About 41.6 degrees
  • C. About 18.7 degrees
  • D. About 22.9 degrees

Answer: A

Why: cos B = (289 + 196 - 841)/(2 times 17 times 14) = -0.7479, so B is obtuse.

Why B tempts people
This is the supplement, which would follow from taking the cosine as positive.
Why C tempts people
This is angle C, opposite the shortest side.
Why D tempts people
This is angle A, opposite the middle side.

59. Check yourself 3 of 3

Check

Halve the perimeter first.

Check your understanding

What is the area of a triangle with sides 21, 16 and 13?

  • A. About 104 square units (correct)
  • B. About 66 square units
  • C. About 1350 square units
  • D. About 4368 square units

Answer: A

Why: s = 25, and the area is the root of 25(4)(9)(12) = 10,800.

Why B tempts people
This is close to half the correct value, as if a factor were dropped.
Why C tempts people
This omits the square root of the product.
Why D tempts people
This is the product of the three sides, not the area.

60. Where this shows up outside the textbook

Real world

A surveyor needs the distance across a lake. Standing at a point on shore, she measures 480 metres to one landing and 350 metres to the other, with an angle of 118 degrees between the two lines of sight.

Discussion prompt

How far apart are the landings, and how much area does the triangle enclose?

Hint: Two sides and the angle between them.

Answer:

\[ d^2 = 480^2+350^2-2(480)(350)\cos 118^\circ \]

\[ = 230400+122500-336000(-0.4695) = 352900+157{,}752 \]

\[ d = \sqrt{510{,}652} \approx 715 \text{ m} \]

\[ \text{Area} = \tfrac{1}{2}(480)(350)\sin 118^\circ \approx 74{,}150 \text{ m}^2 \]

The landings are about 715 metres apart, enclosing about 74,150 square metres.

Watch what the obtuse angle did. Its cosine is negative, so the correction term was ADDED rather than subtracted, making the third side longer than either given one — which is right, since it faces the largest angle. Had the angle been 62 degrees instead, the same two sides would have given only about 440 metres. That is the law of cosines earning its keep: one measurement of an angle, and a distance no one can walk becomes a calculation.

61. How sure are you?

Commit first

Answer, then rate your confidence honestly.

Predict first

Is the Pythagorean theorem a separate fact from the law of cosines, or a special case of it?

  • A separate fact with its own proof
  • A special case: at 90 degrees the cosine is zero and the correction term vanishes
  • The two are unrelated
  • The law of cosines follows from Pythagoras only for acute triangles

Correct: A special case: at 90 degrees the cosine is zero and the correction term vanishes.

\[ \cos 90^\circ = 0 \;\Longrightarrow\; a^2 = b^2+c^2 \]

Why: Substituting A equal to 90 degrees into a squared equals b squared plus c squared minus 2bc cosine A kills the last term outright, leaving a squared equals b squared plus c squared. So the law of cosines contains the Pythagorean theorem, and the correction term measures exactly how far from a right angle the triangle is: negative cosines make the third side longer than Pythagoras would predict, positive ones shorter.

62. Explain it to someone a year behind you

Explain it

They know the Pythagorean theorem and think it only works for right triangles.

Discussion prompt

In four sentences or fewer, explain what the law of cosines does.

Hint: Start from Pythagoras and add something.

Answer:

For a right triangle, a squared plus b squared equals c squared. For any other triangle that is not quite true, and the law of cosines says exactly how far off it is.

You subtract twice the product of the two sides times the cosine of the angle between them. At 90 degrees that cosine is zero, so the correction disappears and you are back to Pythagoras.

63. Exit ticket

Exit ticket

Name the weakest spot before you close the deck.

Predict first

Which of these would you least want handed to you cold?

  • Getting the order of operations right in the formula
  • Remembering to find the largest angle first
  • Choosing between the two laws
  • Using the semiperimeter rather than the perimeter

Correct: Whichever you picked is tonight's ten minutes, and each has a one-line fix.

Why: For order of operations, compute the whole 2bc cosine A term as one number before subtracting. For the largest angle, find the one opposite the longest side so the rest are guaranteed acute. For choosing a law, ask whether any known angle sits opposite a known side. For Heron's formula, s means half the perimeter, so compute it and write it down before anything else.

64. Draw the lesson on one page

Connect it up

Paper. Fifteen minutes.

Draw it

Build a law of cosines page. Top left: write all three forms of the law, label which side is squared and which angle it matches, and show in one line how setting the angle to 90 degrees returns the Pythagorean theorem. Top right: solve one SAS triangle completely, marking clearly which step used cosines and which used sines. Middle: solve one SSS triangle, starting with the angle opposite the longest side, and write one sentence beside it on why that order matters. Bottom left: draw the decision table for all five cases, and beside it write the single question that decides between the two laws. Bottom right: compute one area by Heron's formula, showing the semiperimeter and all four factors before the root, and note what a small factor would have meant.

If any SSS solution on your page found a small angle first and then used the law of sines, redo it: that order can return the wrong angle with no warning.

65. What you can do now

Recap

Five things, and every solvable triangle now covered.

If you seeThen
An angle between two known sidesSAS: law of cosines for the third side
Three sidesSSS: law of cosines for the largest angle first
An angle opposite a known sideLaw of sines
A negative cosineThe angle is obtuse
Three sides and an area wantedHeron's formula, with s half the perimeter
A right angleThe correction term vanishes and Pythagoras returns

That closes Chapter 13. Chapter 14 takes the six functions built here and graphs them, turning the unit circle into the waves that model everything periodic.

McDougal Littell Algebra 2 (Texas Edition), Ch. 13 Trigonometric Ratios and Functions — Lesson 13.6 Apply the Law of Cosines §13.6, pp. 889-893 — everything on these slides traces back here

Sources

  1. McDougal Littell Algebra 2 (Texas Edition), Ch. 13 Trigonometric Ratios and Functions — Lesson 13.6 Apply the Law of Cosines — Larson, Boswell, Kanold & Stiff, McDougal Littell / Houghton Mifflin, 2007, pp. 889-893
  2. OpenStax Algebra and Trigonometry 2e, §10.2 Non-right Triangles: Law of Cosines

Want this taught 1-on-1? Alexander tutors Algebra 2 — $55/session, free consultation.

Book on Wyzant · Text (657) 465-8108