11.3 The Law of Cosines and Heron's Formula

The law that finishes the job the Law of Sines cannot start: Side-Angle-Side and Side-Side-Side. Proves it by dropping a triangle into standard position and applying the distance formula, shows how it generalises the Pythagorean Theorem, and explains why the sign of the cosine makes it immune to the ambiguous case. Closes with Heron's Formula for the area of a triangle from its three sides alone.

Subject: Trigonometry · 64 slides · symbolic lesson

Open the interactive version of this deck

What this lesson covers

The lesson, slide by slide

1. The Law of Cosines and Heron's Formula

Title

Trigonometry · Chapter 11 — Applications of Trigonometry

The law that starts where the Law of Sines cannot

2. What this lesson gives you

Objectives

Section 11.2 gave you the Law of Sines, which needs an angle and the side opposite it before it can say anything. Two of the five ways a triangle can be pinned down supply no such pair. This lesson builds the law that handles both of them, and then an area formula that needs no angle at all.

Stitz & Zeager, College Trigonometry, Ch. 11 Applications of Trigonometry — §11.3 The Law of Cosines §11.3, pp. 910-916 — the pages these objectives are drawn from

The Law of Sines is a proportion between an angle and the side opposite it. That is its strength and also its limitation: before you can write down a single ratio you need one such pair already known. Two of the ways a triangle can be pinned down hand you no pair at all, and the last lesson had to leave them alone.

This lesson fills both gaps with one theorem. The Law of Cosines relates a side to the two sides beside it and the angle they enclose, so it never needs a matched pair. Because it is built on the distance formula it also turns out to contain the Pythagorean Theorem as a single special case, which is worth seeing rather than being told.

The last part is a bonus that falls out of the same algebra. Heron's Formula gives the area of a triangle from its three side lengths, with no angle computed anywhere. By the end you will be able to take any triangle that can be determined at all and produce every side, every angle and its area.

3. The triangle the Law of Sines cannot start

Warm-up

Before anything new, watch the old tool fail. A triangle has sides of 7 and 2 units with an angle of 50 degrees between them.

Discussion prompt

Write down the Law of Sines for this triangle and try to find the third side. Exactly where do you get stuck, and what is missing?

Stitz & Zeager, College Trigonometry, Ch. 11 Applications of Trigonometry — §11.3 The Law of Cosines §11.3, p. 910 — the SAS and SSS cases named in the opening paragraph

Write something down before reading on. The point of this slide is not the answer but the feeling of being stuck, because that feeling is the reason the next theorem exists.

Look carefully at what you are given. The angle of 50 degrees sits between the two sides you know, which means the side opposite it is the one you are hunting for. Each ratio in the Law of Sines needs both halves of a pair, and here every pair is half missing. You can write the proportion down, but you cannot solve any part of it.

This configuration has a name: Side-Angle-Side, or SAS, because the given angle is included between the two given sides. Its companion, Side-Side-Side, is the case where all three lengths are known and no angle is. Both are perfectly rigid triangles, so the information is certainly enough; the tool is simply the wrong shape.

4. The law and its proof

Section

Part 1

5. Drop the triangle onto the coordinate plane

Concept

A triangle floating in space has no numbers attached to it. Move it so that two of its vertices sit at coordinates you chose yourself.

Figure (svg): A triangle drawn on coordinate axes with vertex A at the origin, vertex C at (b, 0) on the positive x-axis, and vertex B up and to the right of the origin at the end of a segment of length c making an angle alpha with the axis. A dashed vertical line drops from B to the x-axis, showing that B has coordinates c cosine alpha and c sine alpha.

Two vertices land on numbers you chose, and the third is handed to you by the circular functions. From here the third side is nothing but a distance between two known points.

Put the vertex of alpha at the origin and lay the side b along the positive horizontal axis. That fixes two of the three vertices for free.

\[ A = (0, 0), \qquad C = (b, 0) \]

Stitz & Zeager, College Trigonometry, Ch. 11 Applications of Trigonometry — §11.3 The Law of Cosines §11.3, p. 910 — the set-up for the proof of Theorem 11.5

This is the move that makes the whole proof possible, and it is easy to undervalue because it looks like bookkeeping. A triangle described only by letters has nothing numerical in it. Once two of its vertices sit at coordinates you chose yourself, you can start computing.

Notice how little the choice costs. Sliding and turning a triangle changes no length and no angle, so the moved triangle is the same triangle. You are allowed to put the vertex of alpha wherever you like, and the origin is the most convenient place in the plane. Laying the side b along the positive horizontal axis then puts the vertex C at the point b comma zero, with no work at all.

Two vertices down, one to go. The third vertex is the interesting one, and the next slide shows that you already know its coordinates from Chapter 10.

6. The third vertex is a point on a circle of radius c

Concept

Figure (svg): A circle of radius c centred at the origin, with a ray from the origin at angle alpha meeting the circle at the point B. Dashed lines run from B down to the horizontal axis and across to the vertical axis, marking the two coordinates as c cosine alpha and c sine alpha.

Section 10.2 already settled this: a point at angle alpha on a circle of radius c has those two coordinates, obtuse angles included. The proof spends nothing to get them.

The vertex B sits at the end of a segment of length c leaving the origin at angle alpha. That is the description of a point on a circle of radius c, and Theorem 10.3 already told you its coordinates.

\[ B = (c\cos(\alpha),\; c\sin(\alpha)) \]

This holds for every alpha strictly between 0 and 180 degrees, obtuse ones included, because the circular functions are defined by the circle rather than by a right triangle.

Stitz & Zeager, College Trigonometry, Ch. 11 Applications of Trigonometry — §11.3 The Law of Cosines §11.3, pp. 910-911 — Theorem 10.3 applied to the vertex B

Follow the logic here rather than memorising the result. The vertex B is at the far end of a segment of length c that leaves the origin at an angle of alpha. Every point at distance c from the origin lies on a circle of radius c, so B is a point on that circle at angle alpha.

Theorem 10.3 gave the coordinates of exactly such a point: the radius times the cosine of the angle, and the radius times the sine of the angle. That is the entire content of the circular functions, and it is why they were defined on a circle rather than on a right triangle.

The last sentence on the slide matters more than it looks. If the coordinates had come from a right triangle, they would only be trustworthy for an acute alpha. Because they come from the circle, they hold for every angle strictly between 0 and 180 degrees, which is exactly the range an angle in a triangle can occupy. The proof will therefore cover obtuse triangles without a second case.

7. Deriving the Law of Cosines from the distance formula

Worked example

Every vertex now has coordinates, so the remaining side is a distance between two known points.

Figure (svg): The same triangle in standard position, with a dashed right triangle drawn between B and C: a horizontal leg of length b minus c cosine alpha and a vertical leg of length c sine alpha, whose hypotenuse is the side a.

The side a is the hypotenuse of a right triangle whose legs are differences of coordinates. That is the distance formula, and it is the whole proof.

Name the three vertices

Why: Two were placed by hand; the third came from the circle.

\[ A = (0,0), \quad C = (b, 0), \quad B = (c\cos\alpha,\; c\sin\alpha) \]

Write the distance from B to C

Why: Side a joins those two vertices, so Equation 1.1 applies.

\[ a = \sqrt{(c\cos\alpha - b)^2 + (c\sin\alpha - 0)^2} \]

Square both sides

Why: Both sides are positive, so squaring loses nothing.

\[ a^2 = (c\cos\alpha - b)^2 + c^2\sin^2\alpha \]

Expand the first square

Why: The cross term is the one that will survive.

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

Collect the two terms carrying c squared

Why: They differ only by which circular function they hold.

\[ a^2 = c^2\left(\cos^2\alpha + \sin^2\alpha\right) + b^2 - 2bc\cos\alpha \]

Apply the Pythagorean Identity

Why: The bracket is 1 for every angle, so the whole bracket disappears.

\[ \cos^2\alpha + \sin^2\alpha = 1 \]

Read off the law

Why: What is left is the statement of Theorem 11.5.

\[ a^2 = b^2 + c^2 - 2bc\cos(\alpha) \]

Check on an equilateral triangle

Why: All three sides 1 and all three angles 60 degrees; the cosine of 60 degrees is one half.

\[ 1^2 \stackrel{?}{=} 1^2 + 1^2 - 2(1)(1)\left(\tfrac12\right) = 2 - 1 = 1 \;\checkmark \]

Stitz & Zeager, College Trigonometry, Ch. 11 Applications of Trigonometry — §11.3 The Law of Cosines §11.3, p. 911 — the proof of Theorem 11.5

Read this derivation once for the shape and once for the detail. The shape is three moves long: name the coordinates, write the distance, and simplify. Everything else is algebra you have done since Chapter 1.

The only step with any subtlety is collecting the two terms that carry c squared. After expanding the square you have a term with cosine squared and a term with sine squared, both multiplied by c squared. Factoring the c squared out leaves the Pythagorean Identity in the bracket, which is 1 for every angle, so an entire term collapses to c squared. That collapse is the reason the final statement is short.

The cross term is the survivor. It came from squaring a difference, and it is the only place the angle remains. Everything that makes the Law of Cosines useful lives in that one term, which is why the notation slide next takes it apart piece by piece.

The check on an equilateral triangle costs seconds and is worth building into your habits. Any relation between sides and angles must hold for the simplest triangle you know, and if it does not, you have made a sign error somewhere.

8. Reading the Law of Cosines piece by piece

Notation

Annotate

On: \( a^2 = b^2 + c^2 - 2bc\cos(\alpha) \)

  • The side OPPOSITE the angle you are using. It is alone on the left, which is why this form is the one for finding a missing side.
  • The two sides ADJACENT to that angle, squared and added. On its own this line would be the Pythagorean Theorem.
  • Twice the product of those same two adjacent sides. It carries no angle information at all; it only sets the size of the correction.
  • The only place the angle appears. Positive for an acute alpha, which shrinks a; negative for an obtuse alpha, which grows it; zero at a right angle, which deletes the term.

Stitz & Zeager, College Trigonometry, Ch. 11 Applications of Trigonometry — §11.3 The Law of Cosines §11.3, p. 910 — Theorem 11.5, first form

Work through the annotations slowly and connect each one to the picture from two slides ago. The side alone on the left is the one facing away from the angle, and the two sides on the right are the ones that form it. If you can say that sentence without looking, you will never write the formula down wrongly.

The third annotation is the one students skip. The factor two times b times c contains no angle information whatever. It only sets the scale of the correction, so that the correction is measured in the same units as the squares it is adjusting. All the geometry sits in the cosine.

Read the last annotation as a story about a hinge. Close the hinge and the cosine climbs toward 1, the correction gets large and positive, and the far side shrinks. Open it past a right angle and the cosine goes negative, the correction reverses direction, and the far side grows. Exactly at 90 degrees the cosine is zero and the correction disappears.

9. Three equations, one sentence

Concept

The proof used alpha, but nothing in it depended on which vertex sat at the origin. Reorient the triangle and the same argument gives the other two.

\[ a^2 = b^2 + c^2 - 2bc\cos(\alpha) \]

\[ b^2 = a^2 + c^2 - 2ac\cos(\beta) \]

\[ c^2 = a^2 + b^2 - 2ab\cos(\gamma) \]

Law of Cosines (Theorem 11.5) — The square of any side of a triangle equals the sum of the squares of the other two, minus twice their product times the cosine of the angle between them.

You never need to memorise three equations, only that sentence and the habit of checking that the angle you use really is the one between the two sides you squared.

Stitz & Zeager, College Trigonometry, Ch. 11 Applications of Trigonometry — §11.3 The Law of Cosines §11.3, p. 910 — Theorem 11.5

Do not try to hold three formulas in your head. They are the same statement written from three different vertices, and the proof would read identically for each of them after the triangle is turned so that the vertex in question sits at the origin. The book leaves those details to the reader for precisely that reason.

The sentence in the box is the thing to remember. Say it aloud once: the square of any side equals the sum of the squares of the other two, minus twice their product times the cosine of the angle between them. Every symbol in every version is determined by that sentence.

The habit that protects you in practice is the pairing check. Before you use any version, point at the angle in the formula and confirm that the two sides being squared are the two that meet at it. That single check kills the most common error in this section, which is the subject of a trap slide shortly.

10. Reading the form that is solved for the cosine

Notation

Annotate

On: \( \cos(\alpha) = \frac{b^2 + c^2 - a^2}{2bc} \)

  • The same equation, rearranged. Use this version when all three sides are known and the angles are what is missing.
  • Adjacent squares minus the opposite square. Its SIGN is the whole classification: positive means acute, zero means right, negative means obtuse.
  • Always positive, so it can never flip the sign. Only the numerator decides the type of the angle.
  • Angles in a triangle lie strictly between 0 and 180 degrees, which is exactly the range of the arccosine, so the angle comes back with no ambiguity.

Stitz & Zeager, College Trigonometry, Ch. 11 Applications of Trigonometry — §11.3 The Law of Cosines §11.3, p. 910 — Theorem 11.5, second form

This is the same theorem with the unknown moved. Nothing new is being claimed, but the rearranged shape is what you will actually reach for whenever all three sides are known, so it is worth reading as an object in its own right.

Focus on the second annotation. The numerator compares the two adjacent squares with the opposite square, and its sign is the entire classification of the angle. Because the denominator is twice a product of two lengths it is always positive, so it can never interfere. That means you can learn whether an angle is acute, right or obtuse by doing three squarings and one subtraction, with no calculator function at all.

The last annotation is the reason this section prefers cosines to sines. The arccosine returns values from 0 to 180 degrees, which is precisely the set of possible angles in a triangle. The arcsine returns only values up to 90 degrees, so it can never hand you an obtuse angle even when the obtuse angle is the right answer.

11. Nothing in the proof needed the angle to be acute

Concept

Figure (svg): The same standard-position setup but with alpha equal to one hundred and twenty degrees, so the vertex B lies up and to the LEFT of the origin, at a negative first coordinate. The triangle now leans over the vertical axis.

Nothing in the algebra cared about the sign of the first coordinate. A negative cosine simply turns the correction term into an addition, and the side opposite grows.

Here alpha is 120 degrees, so B sits to the left of the vertical axis and its first coordinate is negative. The algebra of the proof never looked at that sign.

\[ c\cos(120^\circ) = 3\left(-\tfrac12\right) = -1.5 \]

Because the cosine is negative, the term that is subtracted is itself negative, so the correction becomes an addition and the side opposite comes out longer than the Pythagorean value.

\[ a^2 = 4^2 + 3^2 - 2(4)(3)\left(-\tfrac12\right) = 25 + 12 = 37 \]

Stitz & Zeager, College Trigonometry, Ch. 11 Applications of Trigonometry — §11.3 The Law of Cosines §11.3, p. 911 — the remark that the computations hold for any alpha between 0 and 180 degrees

This slide exists because the figure in the book, like the figure two slides ago, happens to show an acute angle, and it is easy to conclude that the proof only covers that case. Look at where the vertex B has gone. Its first coordinate is negative, and the triangle leans across the vertical axis.

Now reread the algebra in your head. It expanded a square, factored out c squared, and used an identity. Not one of those moves asked whether a coordinate was positive. Nothing changes and no second case is needed.

What does change is the arithmetic, in a way that matches your intuition. A negative cosine makes the term being subtracted negative, so subtracting it adds. With sides 4 and 3 at 120 degrees the far side squared comes out as 37 rather than 25, and the side is longer than it would be at a right angle. Open the hinge wider and the far side gets longer: the formula agrees with your hands.

12. The right angle makes the correction term vanish

Worked example

Take the version whose angle is gamma, the angle between sides a and b, and set that angle to 90 degrees.

Write the law with gamma

Why: The unknown side c is opposite gamma.

\[ c^2 = a^2 + b^2 - 2ab\cos(\gamma) \]

Substitute the right angle

Why: The cosine of 90 degrees is exactly zero.

\[ \cos(90^\circ) = 0 \]

Kill the correction term

Why: Anything multiplied by zero is zero, whatever a and b are.

\[ -2ab(0) = 0 \]

Read what is left

Why: The Pythagorean Theorem, recovered as a special case.

\[ c^2 = a^2 + b^2 \]

Figure (svg): A right triangle with legs 3 and 4 and hypotenuse 5, with a square drawn outward on each side: a square of area 9 on the leg of length 3, a square of area 16 on the leg of length 4, and a tilted square of area 25 on the hypotenuse.

With the angle between the legs at ninety degrees the correction term is zero, and the Law of Cosines says exactly what these three squares say.

Check with the 3-4-5 triangle

Why: Nine plus sixteen is twenty-five, and the square on the hypotenuse in the picture holds exactly the other two.

\[ 5^2 = 3^2 + 4^2 - 2(3)(4)(0) = 9 + 16 = 25 \;\checkmark \]

Stitz & Zeager, College Trigonometry, Ch. 11 Applications of Trigonometry — §11.3 The Law of Cosines §11.3, p. 911 — the paragraph identifying Theorem 11.5 as a generalisation of the Pythagorean Theorem

This is four lines of algebra and one large idea. The algebra is a substitution; the idea is that the Pythagorean Theorem is not a separate fact that happens to resemble the Law of Cosines, but a single point on it.

Look at the squares in the picture. The two smaller squares sit on the legs and hold 9 and 16 units of area; the tilted square on the hypotenuse holds 25. That is the classical statement, and it is true only because the angle between the legs is a right angle. Tilt that angle either way and the tilted square no longer matches the other two, by exactly the amount the correction term names.

There is something worth noticing about where this comes from. The proof of the Law of Cosines used the distance formula, and the distance formula is itself the Pythagorean Theorem. So you have used the Pythagorean Theorem to prove a result that contains it. That is not circular reasoning; it is a generalisation, and it is why the book says the two amount in a larger sense to the same thing.

13. How the third side changes as the angle opens

Picture it

Figure (svg): A graph of the third side c against the included angle gamma, for fixed sides 3 and 4. The curve rises from 1 at zero degrees, passes through 5 at ninety degrees, and reaches 7 at one hundred and eighty degrees. A dashed horizontal line marks the height 5 and a dashed vertical line marks ninety degrees.

One continuous curve, and the Pythagorean Theorem is the single point on it where the correction term is zero.

Hold two sides at 3 and 4 and swing them apart. The third side grows steadily from 1, when the sides fold flat together, to 7, when they open out into a straight line. The Pythagorean value of 5 is one single point on that curve, at 90 degrees.

Everything to the left of that point is an acute angle producing a shorter third side; everything to the right is an obtuse angle producing a longer one.

Trace the curve from left to right with your finger and narrate it. At an angle near zero the two sides are folded almost on top of each other, and the third side is nearly the difference of their lengths, which is 1. As the hinge opens, the far side grows steadily.

The dashed lines mark the single point everyone learns first. At 90 degrees the height is 5, which is the Pythagorean value for legs of 3 and 4. Everything to the left of that point is acute and gives a shorter third side; everything to the right is obtuse and gives a longer one.

At the far right the angle is 180 degrees, the two sides lie in a straight line, and the third side is their sum, which is 7. The curve therefore runs from the difference to the sum, never reaching either, which is the triangle inequality drawn as a picture rather than stated as a rule.

14. Slide the two sides and watch the third

Tweak it

Parameter explorer

Set the two side lengths, then read the height of the curve at ninety degrees. Check that it matches the square root of the sum of the two squares, and see how far the ends of the curve sit from it.

\[ c = \sqrt{ {a}^2 + {b}^2 - 2({a})({b})\cos\gamma } \]

  • a — from 1 to 7: side a
  • b — from 1 to 7: side b

Start with the sides at 3 and 4 and read the curve at 90 degrees. You should get 5. Now change one of the sides and read that point again: it always lands on the square root of the sum of the two squares, because at 90 degrees the correction term is gone whatever the lengths are.

Next, look at the two ends of the curve rather than its middle. The left end is the difference of your two sides and the right end is their sum. Make the two sides equal and watch the left end drop to zero: a triangle with two equal sides folded flat has no third side at all.

Finally, notice the shape between the ends. It is steeper near the middle than near either end, which is why an angle measured near 90 degrees pins the far side down more tightly than one measured near 0 or 180 degrees. That is a real surveying fact: measuring angles close to a straight line gives you poor distances.

15. An obtuse angle, before you compute

Prediction

In some triangle the angle gamma is known to be obtuse, and a, b and c are its three sides in the usual naming.

Predict first

How does c squared compare with a squared plus b squared?

  • c squared is larger
  • c squared is smaller
  • They are equal
  • It depends on the side lengths

Correct: c squared is larger

Why: The law subtracts twice a times b times the cosine of gamma. An obtuse angle has a negative cosine, so that whole term is negative, and subtracting a negative quantity adds. Hence c squared exceeds a squared plus b squared, every time, with no dependence on the lengths.

\[ \gamma > 90^\circ \;\Longrightarrow\; \cos\gamma < 0 \;\Longrightarrow\; -2ab\cos\gamma > 0 \]

Commit to one option before revealing. If you find yourself wanting to know the side lengths first, that is the instinct this question exists to break.

The reasoning is short. The formula subtracts twice a times b times the cosine of gamma. Twice a times b is positive, always. The cosine of an obtuse angle is negative, always. So the product being subtracted is negative, and subtracting a negative quantity increases the total. The side lengths appear nowhere in that chain of reasoning, which is why the last option is wrong.

Keep this as a rapid sanity check on any answer. If you have solved a triangle and reported an obtuse angle, the side opposite it had better be the longest side in the triangle, and its square had better beat the sum of the other two. If it does not, something upstream is wrong.

16. Fill the missing line of the derivation

Fill the middle

The distance formula has been squared and the first bracket is being expanded. One term of that expansion is missing.

Fill in the blanks

a^2 = (c\cos\alpha - b)^2 + (c\sin\alpha)^2 = c^2\cos^2\alpha - 2bc\cos\alpha + b^2 + c^2\sin^2\alpha

Why: Squaring a difference gives the square of the first, minus twice the product, plus the square of the second. Twice the product of c cosine alpha and b is 2bc cosine alpha, and it is the only term in the whole expansion that survives to the final statement.

Stitz & Zeager, College Trigonometry, Ch. 11 Applications of Trigonometry — §11.3 The Law of Cosines §11.3, p. 911 — line 4 of the displayed proof

Type your answer before checking. Squaring a difference is one of the very first things you learned in algebra, and it is worth confirming that it still runs automatically when the pieces are trigonometric rather than numerical.

The bracket being squared is c cosine alpha minus b. The square of the first piece is c squared cosine squared alpha, the square of the second is b squared, and the middle term is twice their product with a minus sign. Twice c cosine alpha times b is 2bc cosine alpha.

That middle term is the only piece of the whole expansion that reaches the final theorem unchanged. Everything else either cancels or folds into the Pythagorean Identity. If you can reproduce this one line, you can rebuild the Law of Cosines from scratch.

17. Why move the triangle at all?

Socratic

Discussion prompt

The proof begins by sliding and turning the triangle rather than reasoning about it where it stands. What does that buy, and why is it allowed?

Answer in writing before revealing, and try to make your answer two-sided: what is gained, and why it is legal. Students usually see the first half quickly and the second half not at all.

What is gained is arithmetic. Geometry without coordinates forces you to reason with congruent triangles and similar figures; geometry with coordinates lets you subtract numbers. The distance formula is the bridge, and it needs points, not shapes.

Why it is legal is the deeper half. Sliding and rotating are rigid motions: they change no distance and no angle. So any statement about lengths and angles that holds for the moved copy holds for the original. This is a move you will use again in Chapter 11 when conic sections are rotated into standard position, so it is worth being comfortable with the reasoning now rather than treating it as a trick.

18. Trap: pairing an angle with a side beside it

Trap

The trap

Given b, c and the angle beta, a student writes:

\[ a^2 = b^2 + c^2 - 2bc\cos(\beta) \]

Wrong. The angle beta is not the angle between b and c.

The fix

The angle in the formula must be the one enclosed by the two sides you squared. The sides b and c meet at the vertex A, so the only angle that belongs there is alpha.

\[ a^2 = b^2 + c^2 - 2bc\cos(\alpha) \]

A quick guard: the side alone on the left is always the one opposite the angle on the right.

This is the single most common error in the whole section, and it survives even in students who can state the theorem correctly, because under time pressure the eye grabs whichever angle is written next to the sides.

The protection is mechanical. Before you write anything, put a finger on the angle you intend to use and trace outward along both of its arms. Those two arms are the sides that get squared. The side that does not touch your finger is the one alone on the left.

The wrong version is not just slightly off; it is a different triangle. With b and c given and beta used in place of alpha, you have computed the third side of some other triangle entirely, and no later step will complain. There is no internal check that catches this, which is why the check has to be yours.

19. Which law can start here?

Sorting

Sort into buckets

Sort each set of given data by which law can be used first.

Law of Sines can start
α = 30°, a = 5, β = 70°; α = 40°, a = 8, c = 11; α = 100°, β = 25°, c = 12
only the Law of Cosines can start
a = 6, b = 9, γ = 40°; a = 4, b = 6, c = 9; b = 25, c = 37, α = 104°
sin
Each of these hands you a matched pair: an angle together with the side opposite it, either directly (alpha with a) or after subtracting the two known angles from 180 degrees to reach the third. One complete ratio is all the Law of Sines needs.
cos
Two sides with the angle between them, or all three sides. In neither case is any angle paired with its opposite side, so every Law of Sines ratio has two unknowns in it and cannot be solved.

Sort all six before revealing, and for each one say out loud which pair you are relying on. The question is not which law could eventually finish the triangle; both can, once one angle is known. It is which law can take the very first step.

Two of the sines cases are easy: alpha with a is a complete pair straight away. The third takes one extra thought. When two angles are given, the third comes by subtracting from 180 degrees, so every angle is known and each one is paired with its own side.

The cosines cases are the two the last lesson could not touch. In a Side-Angle-Side set the given angle sits between the two given sides, so the side facing it is unknown. In a Side-Side-Side set there is no angle at all. In both, every Law of Sines ratio would carry two unknowns, and one equation in two unknowns goes nowhere.

20. Side-Angle-Side

Section

Part 2

21. Two sides and the angle between them

Concept

Side-Angle-Side means the given angle is included: it is adjacent to both given sides. That is exactly the shape of the law, so the missing side drops out in one line.

\[ b^2 = a^2 + c^2 - 2ac\cos(\beta) \;\Longrightarrow\; b = \sqrt{a^2 + c^2 - 2ac\cos(\beta)} \]

Stitz & Zeager, College Trigonometry, Ch. 11 Applications of Trigonometry — §11.3 The Law of Cosines §11.3, pp. 911-912 — Example 11.3.1, part 1

The word that matters in Side-Angle-Side is included. If the given angle were not between the given sides you would be in the ambiguous ASS case of the last lesson, where two different triangles can fit the same data. When the angle is included, the shape is rigid: imagine two rods hinged at a fixed angle, and the third side is forced.

That rigidity is why no case analysis is needed here and why you take only the positive square root. A negative root would be a negative length, which is not a second triangle, just an impossible one.

The third bullet is the one that saves marks later. Once the missing side is known you have a choice of which angle to chase next, and the answer is always the largest, because a triangle can hold at most one obtuse angle and it must be the biggest one. Find it first and everything remaining is guaranteed acute.

22. Example 11.3.1, part 1: solving an SAS triangle

Worked example

Solve the triangle with beta equal to 50 degrees, a equal to 7 units and c equal to 2 units. Give exact answers and decimals to hundredths.

Choose the version whose angle is the given one

Why: Beta sits between a and c, so b stands alone on the left.

\[ b^2 = a^2 + c^2 - 2ac\cos(\beta) = 7^2 + 2^2 - 2(7)(2)\cos(50^\circ) \]

Collect the constants

Why: Forty-nine plus four is fifty-three, and twice seven times two is twenty-eight.

\[ b^2 = 53 - 28\cos(50^\circ) \]

Take the positive root

Why: That is the exact value; the decimal is only for the sketch.

\[ b = \sqrt{53 - 28\cos(50^\circ)} \approx 5.92 \]

Go after the largest unknown angle first

Why: The longest side is a, so the largest angle is alpha, and it is the only one that could be obtuse.

\[ \cos(\alpha) = \frac{b^2 + c^2 - a^2}{2bc} = \frac{(53 - 28\cos 50^\circ) + 4 - 49}{4\sqrt{53 - 28\cos 50^\circ}} \]

Simplify the fraction

Why: Divide the numerator and denominator by 4; the cosine comes out negative, which already announces an obtuse angle.

\[ \cos(\alpha) = \frac{2 - 7\cos(50^\circ)}{\sqrt{53 - 28\cos(50^\circ)}} \approx -0.42248 \]

Take the arccosine

Why: A triangle's angle lies between 0 and 180 degrees, which is exactly the arccosine's range.

\[ \alpha = \arccos\left(\frac{2 - 7\cos 50^\circ}{\sqrt{53 - 28\cos 50^\circ}}\right) \approx 114.99^\circ \]

Find gamma from the original data, not from alpha

Why: Using the law again keeps the rounded value of alpha out of the calculation.

\[ \cos(\gamma) = \frac{a^2 + b^2 - c^2}{2ab} = \frac{7 - 2\cos(50^\circ)}{\sqrt{53 - 28\cos(50^\circ)}} \approx 0.96589 \]

Figure (svg): The triangle of Example 11.3.1 part one drawn to scale: a long side of 7 along the base, a short side of 2 leaving the left end at fifty degrees, and the third side of about 5.92 closing the shape. The angle at the top is clearly obtuse, about 115 degrees.

Two sides and the angle between them lock the shape rigidly: there is no second triangle with these three pieces of data.

Check the angle sum and the ordering

Why: The three angles add to 180 degrees, and the sides 7, 5.92 and 2 decrease in the same order as the angles opposite them.

\[ 114.99^\circ + 50^\circ + 15.01^\circ = 180^\circ \;\checkmark \]

Stitz & Zeager, College Trigonometry, Ch. 11 Applications of Trigonometry — §11.3 The Law of Cosines §11.3, pp. 911-912 — Example 11.3.1, part 1

This is the model solution for the Side-Angle-Side case, so read it twice: once for the route and once for the care taken with exact values. The route is find the missing side, then find the largest angle, then find the last angle.

Watch what happens to b. It is computed as the square root of 53 minus 28 cosine 50 degrees, and that expression, not its decimal, is what goes into the next two lines. The decimal 5.92 appears only on the sketch. This is deliberate: the accuracy part of this lesson shows what happens when you substitute the rounded value instead.

The choice of alpha as the next target is not arbitrary. The longest side is a, so the largest angle is alpha, and it is the only one that could be obtuse. Sure enough its cosine comes out negative, which announces the obtuse angle before the arccosine is even taken. Had you chased gamma first and then found alpha by subtraction, you would have got there, but with a rounded number in the middle.

The final check is the one you should copy onto every triangle you solve. The angles must sum to 180 degrees, and the sides must decrease in the same order as the angles opposite them. Both tests are free and both catch real mistakes.

23. Find the error: subtracting before multiplying

Error analysis

Here is the first line a student produced for the example you just finished. The arithmetic inside it is correct; the grouping is not.

Annotate

On: \( b^2 = (53 - 28)\cos(50^\circ) = 25\cos(50^\circ) \approx 16.07 \)

  • The 28 was pulled out of its product and subtracted from 53 first. But 28 and the cosine are multiplied together; only the finished product may be subtracted.
  • Multiplication happens before subtraction. Evaluate 28 times the cosine of 50 degrees, which is about 17.998, and only then subtract it from 53.
  • The wrong route gives b about 4.01, the right route about 5.92. Nearly two units out, and no later step would catch it.
  • The side opposite a 50 degree angle in a triangle with sides 7 and 2 must lie between 5 and 9 by the triangle inequality. A value of 4.01 fails that test at once.

\[ b^2 = 53 - 28\cos(50^\circ) \approx 53 - 17.998 = 35.00 \]

Look at the annotated line before opening the notes and try to see the problem yourself. Everything in it is arithmetically correct, which is what makes it dangerous; there is no wrong sum to spot.

The error is grouping. The expression is 53 minus 28 times a cosine, and multiplication binds more tightly than subtraction, so the 28 and the cosine belong together. Pulling the 28 out and subtracting it first computes something else entirely. This happens most often when people copy the numbers down as they evaluate rather than writing the whole expression first.

The last annotation is the habit to take away. Before accepting any missing side, check it against the triangle inequality: it must lie strictly between the difference and the sum of the two given sides. Here that means strictly between 5 and 9, and the wrong answer of about 4.01 is outside the interval. Ten seconds of checking, and the error is caught.

24. Estimate the third side before computing it

Estimation

Two sides of 7 and 2 units meet at an angle of 50 degrees. Before touching a calculator, pin the third side down.

Predict first

Roughly how long is the side opposite the 50 degree angle?

  • about 3 units
  • about 5.9 units
  • about 7.3 units
  • about 9 units

Correct: about 5.9 units

Why: Folded flat the two sides would give a difference of 5; opened straight they would give a sum of 9. So the answer must lie strictly between 5 and 9, which already kills the first and last options. At 50 degrees, well under a right angle, the third side is much nearer the folded end than the straight one, so just under 6 is the right neighbourhood.

\[ |a - c| < b < a + c \;\Longrightarrow\; 5 < b < 9 \]

Guess before revealing, and try to justify your guess with bounds rather than with feel. Estimation in trigonometry is not vague; the triangle inequality gives you a hard interval every time.

The two extremes are easy to picture. Fold the sides of 7 and 2 flat onto each other and their far ends are 5 apart. Open them into a straight line and their far ends are 9 apart. No triangle can leave that interval, so two of the four options are dead immediately.

Getting from the interval to a number needs one more thought. Fifty degrees is well below a right angle, so the hinge is much closer to folded than to straight, and the answer should sit in the lower half of the interval. Just under 6 is right, and the exact computation gives about 5.92. Building this two-step habit, bounds first and then position within the bounds, will make almost every answer in this chapter self-checking.

25. Example 11.3.2: the width of the vernal pond

Worked example

A researcher stands at a point P. The eastern end of the pond is 950 feet away, the western end is 1000 feet away, and the angle between the two lines of sight is 60 degrees. Find the width of the pond.

Figure (svg): A pond sketched as a long oval, with a point P below and to the left of it. Two straight sight lines run from P to the two ends of the pond, one 950 feet long and one 1000 feet long, with an angle of sixty degrees between them. The dashed segment joining the two ends of the pond is its width.

The two sight lines and the width form a Side-Angle-Side triangle, so the width is the one unknown the Law of Cosines returns straight away.

Name the case

Why: Two sides and the angle between them, with the unknown opposite that angle: Side-Angle-Side.

\[ w^2 = 950^2 + 1000^2 - 2(950)(1000)\cos(60^\circ) \]

Evaluate the two squares

Why: Nine hundred and two thousand five hundred, plus one million.

\[ 950^2 + 1000^2 = 902500 + 1000000 = 1902500 \]

Evaluate the correction term

Why: The cosine of 60 degrees is one half, so the product halves.

\[ 2(950)(1000)\left(\tfrac12\right) = 950000 \]

Subtract

Why: That leaves the square of the width.

\[ w^2 = 1902500 - 950000 = 952500 \]

Take the positive root

Why: A width is a length.

\[ w = \sqrt{952500} \approx 976 \text{ feet} \]

Check the answer against the two sight lines

Why: With a 60 degree angle the triangle is close to equilateral in spirit, so the width should land near the two given distances, and it lies neatly between 950 and 1000.

\[ 950 < 976 < 1000 \;\checkmark \]

Stitz & Zeager, College Trigonometry, Ch. 11 Applications of Trigonometry — §11.3 The Law of Cosines §11.3, p. 913 — Example 11.3.2

This is the same calculation as the previous example with bigger numbers and a story attached, and the point of the story is the modelling step rather than the arithmetic. Identify what the researcher can actually measure: two distances from where he stands, and the angle between his two lines of sight. The width of the pond is the one thing he cannot walk across and measure.

That is Side-Angle-Side in the wild. The unknown is opposite the known angle, which is exactly the arrangement the first form of the law handles in a single line.

The arithmetic is worth doing carefully because the numbers are large and the cosine is simple. The cosine of 60 degrees is one half exactly, so the correction term is just the product of the two distances, with nothing approximate about it. That is why the answer comes out as a clean 952500 before the root is taken. The final check is the kind you should always run: a width of 976 feet sits between the two sight lines of 950 and 1000 feet, which is the neighbourhood a 60 degree angle should produce.

26. Finish the SAS calculation

Faded example

Exercise 1 of this section: two sides of 7 and 12 with an angle of 59.3 degrees between them. Two numbers have been removed.

Fill in the blanks

c^2 = 7^2 + 12^2 - 2(7)(12)\cos(59.3^\circ) = 193 - 85.77 \quad\Longrightarrow\quad c \approx 10.36

Why: Twice seven times twelve is 168, and the cosine of 59.3 degrees is about 0.51054, so the correction term is about 85.77. Subtracting leaves 107.23, whose square root is about 10.36, which is the value printed in the answer key on page 918.

Stitz & Zeager, College Trigonometry, Ch. 11 Applications of Trigonometry — §11.3 The Law of Cosines §11.3, p. 916 — Exercise 1; answer on p. 918

Fill both blanks before checking. This exercise is the first in the section's exercise set, so it is the one you will meet again for homework, and the arithmetic here is exactly the arithmetic you will need there.

The first blank is the correction term, and the whole product must be computed at once: twice 7 times 12 is 168, and the cosine of 59.3 degrees is about 0.51054. Multiply before subtracting, as the previous error slide insisted.

The second blank is the square root of what is left, which is 107.23. If your answer disagrees with 10.36 in the second decimal place, the likely cause is rounding the cosine to two places before multiplying. Keep at least five decimal places in intermediate values and round once, at the end.

27. Exercise 18: the distance between the clock hands

Worked example

The hour hand of a schoolhouse clock is 4 inches long and the minute hand is 5.5 inches. Find the distance between their tips at four o'clock, to the nearest hundredth of an inch.

Figure (svg): A clock face reading four o'clock. The minute hand of length 5.5 inches points straight up to twelve and the hour hand of length 4 inches points to the four, with an angle of 120 degrees between them. A dashed segment joins the two tips.

Twelve hours round the dial is 360 degrees, so every hour mark is 30 degrees: four hour marks apart is 120 degrees exactly.

Turn the clock reading into an angle

Why: Twelve hour marks fill 360 degrees, so each mark is 30 degrees, and at four o'clock the hands are four marks apart.

\[ \theta = 4 \times 30^\circ = 120^\circ \]

Set up the law with that included angle

Why: The two hands are the known sides and the gap between the tips is opposite the angle.

\[ d^2 = 4^2 + 5.5^2 - 2(4)(5.5)\cos(120^\circ) \]

Evaluate the squares and the product

Why: Sixteen plus 30.25, and twice four times 5.5 is 44.

\[ d^2 = 46.25 - 44\cos(120^\circ) \]

Use the negative cosine

Why: The cosine of 120 degrees is minus one half, so the term added is 22.

\[ d^2 = 46.25 + 22 = 68.25 \]

Take the root

Why: To the nearest hundredth of an inch.

\[ d = \sqrt{68.25} \approx 8.26 \text{ inches} \]

Check it against the obtuse rule

Why: The angle is obtuse, so the answer must beat the Pythagorean value for legs 4 and 5.5, which is the square root of 46.25, about 6.80. It does.

\[ 8.26 > \sqrt{46.25} \approx 6.80 \;\checkmark \]

Stitz & Zeager, College Trigonometry, Ch. 11 Applications of Trigonometry — §11.3 The Law of Cosines §11.3, p. 916 — Exercise 18; answer on p. 918

The only genuinely new step in this problem is turning the clock reading into an angle, and it is the step most people rush. There are twelve hour marks around 360 degrees, so each mark spans 30 degrees. At four o'clock the minute hand is on the twelve and the hour hand is on the four, which is four marks away.

Once you have 120 degrees the rest is the same machine as the pond. The two hands are the known sides, the gap between their tips is the unknown side, and the angle you found sits between them.

The check is worth internalising. An obtuse included angle must produce a distance larger than the right-angled value, which for hands of 4 and 5.5 inches would be about 6.80 inches. Getting 8.26 is therefore consistent. If your answer had come out under 6.80 you would know at once that the cosine had been entered with the wrong sign, which is the usual failure in this problem.

28. Side-Side-Side, and why cosine beats sine

Section

Part 3

29. Solve the law for the cosine instead

Concept

When all three sides are given and no angle is, rearrange the same equation to put the cosine on its own. Every letter on the right is then a number you already have.

\[ a^2 = b^2 + c^2 - 2bc\cos(\alpha) \;\Longrightarrow\; \cos(\alpha) = \frac{b^2 + c^2 - a^2}{2bc} \]

This is a rare luxury: each of the three angles can be found from the original data alone, so no rounded value ever has to be fed back in.

\[ \cos(\beta) = \frac{a^2+c^2-b^2}{2ac}, \qquad \cos(\gamma) = \frac{a^2+b^2-c^2}{2ab} \]

Stitz & Zeager, College Trigonometry, Ch. 11 Applications of Trigonometry — §11.3 The Law of Cosines §11.3, pp. 912-913 — Theorem 11.5, second form, and Example 11.3.1 part 2

Nothing new is proved here; the equation is simply rearranged so that the cosine sits alone. But the rearranged form behaves quite differently in practice, so it is worth treating as a separate tool.

The sentence in the middle of the slide is the one to hold on to. In the Side-Side-Side case every angle can be computed from the three original lengths, so at no point are you obliged to substitute a number you computed yourself. The book calls this a rare opportunity, and it is: in almost every other triangle problem some rounded value has to be reused.

One practical note on reading the fraction. The numerator always has the two adjacent squares added and the opposite square subtracted, in that order. If you write it the other way round you get the negative of the correct cosine, which turns every acute angle into an obtuse one and vice versa. Checking the answer against the picture catches this instantly.

30. Cosine tells acute from obtuse; sine cannot

Picture it

Figure (svg): Graphs of sine and cosine for angles from zero to one hundred and eighty degrees. A horizontal line at height 0.6 crosses the sine curve twice, at about 37 and 143 degrees, but crosses the cosine curve only once, at about 53 degrees.

On the only range a triangle's angle can occupy, cosine never repeats a value and sine repeats almost every one. That is the whole reason to prefer the arccosine.

An angle in a triangle lives strictly between 0 and 180 degrees. Over that stretch the cosine falls steadily from 1 to minus 1 and never takes the same value twice, so one cosine names one angle.

The sine, by contrast, rises and falls, and takes almost every value twice: once at an acute angle and once at its obtuse partner. The sine alone cannot tell you which one you have.

Stitz & Zeager, College Trigonometry, Ch. 11 Applications of Trigonometry — §11.3 The Law of Cosines §11.3, pp. 911-912 — the discussion of why the authors prefer the Law of Cosines

Look at the horizontal line on the graph and follow it across. It meets the red sine curve twice and the green cosine curve once. That difference is the whole reason this section prefers one function to the other.

Think about what a solved triangle needs from you. You have a numerical value and you want the angle that produced it. If two angles produce the same value, the number alone cannot tell you which one you have, and the inverse function will simply hand you the smaller one. That is exactly what happens with the sine, and 36.9 degrees and 143.1 degrees are the twins on this picture.

The cosine has no twins on this interval. It falls steadily from 1 down to minus 1 without ever repeating a value, so one cosine names one angle, and the arccosine can return it without asking you anything. The price is a slightly heavier formula; the reward is an answer you can trust without a case analysis.

31. The sign of the cosine classifies the triangle

Concept

Figure (svg): Three triangles drawn to the same scale, each with sides of 5 and 6 meeting at the angle gamma. In the first the third side is 6 and gamma is about 65 degrees; in the second the third side is about 7.81 and gamma is a right angle; in the third the third side is 9 and gamma is about 109 degrees.

The two sides never move. Only the third side changes, and the comparison of its square with 61 names the angle's type before any arccosine is taken.

The denominator of the cosine form is twice a product of lengths, so it is always positive. Only the numerator can change sign, and the numerator is a comparison of squares.

\[ \cos(\gamma) = \frac{a^2 + b^2 - c^2}{2ab} \]

what you findwhat it meansangle gamma
c squared less than a squared plus b squarednumerator positiveacute
c squared equal to a squared plus b squarednumerator zeroright
c squared greater than a squared plus b squarednumerator negativeobtuse

Apply this to the longest side and you know at once whether the triangle has an obtuse angle, without evaluating a single inverse function.

The three triangles in the picture have the same two sides, 5 and 6. Only the angle between them differs, and only the third side changes as a result. Compare 36, 61 and 81 with the fixed value 61 and you have read off all three verdicts without touching a calculator.

Make sure you see why the denominator can be ignored. It is twice a product of two lengths, so it is positive in every triangle that exists. A fraction takes its sign from its numerator when the denominator is positive, so the numerator alone decides.

Use this on the longest side and the whole triangle opens up. If the comparison comes out negative, you know the triangle is obtuse and you know exactly which angle is the obtuse one. If it comes out zero you have found a right triangle, and if positive, every angle is acute. This is worth doing as a first line on every Side-Side-Side problem, because it tells you what to expect from the arccosine before you press the button.

32. Example 11.3.1, part 2: solving an SSS triangle

Worked example

Solve the triangle with a equal to 4, b equal to 7 and c equal to 5 units.

Name the case and pick the first angle

Why: Three sides and no angle, so only the Law of Cosines can start. The longest side is b, so beta is the largest angle.

\[ \cos(\beta) = \frac{a^2 + c^2 - b^2}{2ac} = \frac{16 + 25 - 49}{2(4)(5)} \]

Evaluate the fraction

Why: Minus eight over forty, which reduces.

\[ \cos(\beta) = \frac{-8}{40} = -\frac15 \]

Take the arccosine

Why: The cosine is negative, so beta is obtuse, exactly as expected for the angle opposite the longest side.

\[ \beta = \arccos\left(-\tfrac15\right) \approx 101.54^\circ \]

Find gamma from the original three sides

Why: No rounded value is reused; the given data goes straight back in.

\[ \cos(\gamma) = \frac{a^2+b^2-c^2}{2ab} = \frac{16+49-25}{2(4)(7)} = \frac{40}{56} = \frac57 \]

Take the arccosine again

Why: Positive cosine, so an acute angle.

\[ \gamma = \arccos\left(\tfrac57\right) \approx 44.42^\circ \]

Find alpha the same way

Why: The third angle, again from the data alone.

\[ \cos(\alpha) = \frac{b^2+c^2-a^2}{2bc} = \frac{49+25-16}{2(7)(5)} = \frac{58}{70} = \frac{29}{35} \]

Evaluate

Why: The smallest side faces the smallest angle.

\[ \alpha = \arccos\left(\tfrac{29}{35}\right) \approx 34.05^\circ \]

Figure (svg): The triangle with sides 4, 7 and 5 drawn to scale, with the side of length 7 along the base. The angle opposite it, at the top, is obtuse at about 101.5 degrees; the other two angles are about 34 and 44 degrees.

The longest side sits at the bottom and the obtuse angle sits opposite it. Finding that angle first is what guarantees the other two are acute.

Check the sum, and notice the book's own warning

Why: The exact angles sum to 180 degrees, but the three rounded values add to 180.01, which is geometrically impossible. The book flags this itself: rounding, not the method, is at fault.

\[ 34.05^\circ + 101.54^\circ + 44.42^\circ = 180.01^\circ \]

Stitz & Zeager, College Trigonometry, Ch. 11 Applications of Trigonometry — §11.3 The Law of Cosines §11.3, pp. 912-913 — Example 11.3.1, part 2, and the remark that follows it

This is the model Side-Side-Side solution. Notice how different its rhythm is from the Side-Angle-Side case: there is no missing side to find, so every line is an angle, and every line draws on the original three numbers rather than on anything computed.

Beta comes first because it faces the longest side, 7. Its cosine is exactly minus one fifth, a clean fraction, and the minus sign announces the obtuse angle before the arccosine is taken. Once beta is known, most textbooks would switch to the Law of Sines; the authors deliberately do not, because the given data is still available and using it avoids reusing a rounded value.

The final step is the most instructive line in the whole example. The three rounded angles add up to 180.01 degrees, which no triangle can do. Nothing is wrong with the method: each angle was computed correctly and then rounded to two decimal places, and three small roundings can conspire. Report the values, and know that the tiny excess is rounding rather than error. This is exactly what the next part of the lesson is about.

33. Exercise 6: the triangle with sides 7, 10 and 13

Worked example

Solve the triangle with a equal to 7, b equal to 10 and c equal to 13.

Classify before computing

Why: Compare the square of the longest side with the sum of the other two squares.

\[ 13^2 = 169 > 149 = 7^2 + 10^2 \;\Longrightarrow\; \gamma \text{ is obtuse} \]

Find that obtuse angle first

Why: Gamma is opposite the longest side.

\[ \cos(\gamma) = \frac{49 + 100 - 169}{2(7)(10)} = \frac{-20}{140} = -\frac17 \]

Take the arccosine

Why: Negative cosine, obtuse angle, as predicted.

\[ \gamma = \arccos\left(-\tfrac17\right) \approx 98.21^\circ \]

Find alpha from the data

Why: Opposite the shortest side, so it is the smallest angle.

\[ \cos(\alpha) = \frac{100 + 169 - 49}{2(10)(13)} = \frac{220}{260} = \frac{11}{13} \;\Longrightarrow\; \alpha \approx 32.20^\circ \]

Find beta the same way

Why: Again from the three given lengths.

\[ \cos(\beta) = \frac{49 + 169 - 100}{2(7)(13)} = \frac{118}{182} = \frac{59}{91} \;\Longrightarrow\; \beta \approx 49.58^\circ \]

Figure (svg): The triangle with sides 7, 10 and 13 drawn to scale, the longest side of 13 lying along the base. The angle opposite it is obtuse, about 98 degrees, and the other two are about 32 and 50 degrees.

Compare 169 with 49 plus 100, which is 149. The square of the longest side wins, so the angle opposite it is obtuse, and the picture agrees.

Check the sum, and correct the printed answer

Why: The three angles sum to 180 degrees exactly. The answer key on page 918 prints alpha as 32.31 degrees, which is a misprint: the arccosine of 11 over 13 is 32.20 degrees, and 32.31 would push the total to 180.10.

\[ 32.20^\circ + 49.58^\circ + 98.21^\circ = 179.99^\circ \approx 180^\circ \;\checkmark \]

Stitz & Zeager, College Trigonometry, Ch. 11 Applications of Trigonometry — §11.3 The Law of Cosines §11.3, p. 916 — Exercise 6; answer key on p. 918

Run this one yourself before reading the steps; it is a clean Side-Side-Side problem with pleasant fractions, and you will meet it again when the area is computed two slides later.

The first line is the habit from the previous slide. Compare 169 with 149 and you know, before any calculator work, that the largest angle is obtuse. Then chase that angle first. Notice that all three cosines come out as tidy fractions, which is a hint that the numbers were chosen for exactly this purpose.

There is a misprint to be aware of. The answer key on page 918 lists alpha as about 32.31 degrees. The arccosine of 11 over 13 is 32.204 degrees, and 32.31 would push the three angles to a total of 180.10, which is much too large to be rounding. Use 32.20. Finding a misprint like this is not a disaster; it is a sign that your own checking works, and the angle-sum test is what exposed it.

34. Acute, right or obtuse, from the sides alone

Sorting

For each triple, square the longest side and compare it with the sum of the other two squares. No inverse functions are needed.

Sort into buckets

Sort each set of three side lengths by the type of its largest angle.

acute
4, 5, 6; 9, 10, 11
right
5, 12, 13; 6, 8, 10
obtuse
7, 10, 13; 2, 3, 4
ac
36 is less than 16 + 25 = 41, and 121 is less than 81 + 100 = 181. The numerator of the cosine stays positive, so the largest angle is acute and therefore all three are.
rt
169 = 25 + 144 and 100 = 36 + 64. The numerator is exactly zero, the cosine is zero, and the angle is 90 degrees. These are the familiar Pythagorean triples.
ob
169 beats 49 + 100 = 149, and 16 beats 4 + 9 = 13. A negative numerator gives a negative cosine and an angle above 90 degrees.

Sort all six before revealing. For each triple, find the longest side first, square it, and compare with the sum of the other two squares. No calculator is needed anywhere in this exercise.

Two of them are familiar Pythagorean triples, and recognising 5, 12, 13 and 6, 8, 10 on sight is worth the small effort it takes. The second is simply the 3, 4, 5 triangle doubled, and scaling a triangle never changes its angles.

The other four require the comparison. For 4, 5, 6 the largest square is 36 against a sum of 41, so the numerator is positive and the angle is acute. For 2, 3, 4 it is 16 against 13, so the numerator is negative and the angle is obtuse. Notice that a triangle that looks nearly flat, like 2, 3, 4, is very often obtuse, and that an almost equilateral triangle like 9, 10, 11 is safely acute.

35. Trap: reaching for the Law of Sines to find the largest angle

Trap

The trap

With b found, a student switches laws to get alpha:

\[ \frac{\sin\alpha}{7} = \frac{\sin 50^\circ}{5.92} \]

\[ \sin\alpha \approx 0.9064 \]

\[ \alpha = \arcsin(0.9064) \approx 65.01^\circ \]

Wrong. The true value is about 114.99 degrees.

The fix

The arcsine only ever returns an acute angle, and 65.01 degrees is the acute twin of the right answer.

\[ 180^\circ - 65.01^\circ = 114.99^\circ \]

The sine cannot tell the twins apart, because it takes the same value at both. The cosine can, because it is negative at one and positive at the other.

If you must use the Law of Sines here, go after the smallest unknown angle, which is guaranteed acute.

The tempting thing about this wrong route is that it is faster. The Law of Sines is one division and one inverse function; the Law of Cosines is three squares, a subtraction and a division. Under exam pressure the shorter road looks attractive.

What goes wrong is not the arithmetic but the inverse function. The arcsine can only ever return an angle between 0 and 90 degrees, so when the true answer is 114.99 degrees it hands you its acute twin, 65.01 degrees. Those two angles have the same sine, and nothing in the calculation distinguishes them.

There are two safe responses. The first is the one the book recommends and this lesson follows: use the Law of Cosines for the largest angle, because the cosine's sign carries the extra information the sine lost. The second is to use the Law of Sines only on the smallest unknown angle, which is guaranteed acute, and then get the last angle by subtraction. Either works; mixing them up does not.

36. Before you compute: which angle first?

Step zero

\[ a = 8, \quad b = 15, \quad c = 17 \]

Discussion prompt

You are about to solve this Side-Side-Side triangle. Which angle should you look for first, how do you know before computing anything, and what will its cosine's sign be?

Write your answer before revealing. The instinct is to start computing immediately, and this slide is here to buy thirty seconds of thinking that will save you from a wrong branch.

The reasoning has two parts. First, go for the angle opposite the longest side, because that is the largest angle and the only one that can be obtuse; a triangle cannot contain two angles above 90 degrees. Second, before taking any arccosine, compare the squares, because that comparison tells you what kind of answer to expect.

This particular triple is worth knowing. Sixty-four plus 225 is 289, and 17 squared is 289, so 8, 15, 17 is a Pythagorean triple and the triangle is right-angled. A cosine of exactly zero is a pleasant thing to see, and it means the remaining two angles can be found with plain right-triangle trigonometry if you prefer.

37. Sides of 1, 2 and 5

Counterexample

Exercise 7 of this section offers three lengths and asks you to solve the triangle. Try it before reading on.

Figure (svg): A segment of length 5 with a dashed circle of radius 1 around its left end and a dashed circle of radius 2 around its right end. The two circles are far apart: the first reaches only to x equals 1 and the second only back to x equals 3, leaving a gap of 2 between them.

Swing the two short sides through every angle they like: their ends can never meet, and the arccosine of a number bigger than 1 is where the algebra says so.

Discussion prompt

Apply the cosine form to the largest side and say what the result means. What does the Law of Cosines do when no triangle exists?

Stitz & Zeager, College Trigonometry, Ch. 11 Applications of Trigonometry — §11.3 The Law of Cosines §11.3, p. 916 — Exercise 7; the answer key records that the information does not produce a triangle

Try the computation before reading the answer, and pay attention to what your calculator does. Most will simply report an error on the arccosine, which is unhelpfully silent about the reason.

The reason is that the cosine of any angle lies between minus 1 and 1, and the formula returned minus 5. No angle has that cosine, so no triangle has those three sides. The Law of Cosines has not failed; it has told you, in the only way it can, that the data was impossible.

The picture says the same thing without algebra. Pin the ends of the 1 and the 2 at the ends of the 5, and swing them freely. The nearest their free ends can come to each other is when both lie flat along the long side, and even then a gap of 2 remains. This is the triangle inequality, and the Law of Cosines enforces it automatically. When you meet this in an exercise, the correct answer is a sentence, not a number.

38. Accuracy and applications

Section

Part 4

39. Every rounded value you reuse carries its error forward

Concept

In the Side-Angle-Side case you must use a value you computed yourself, because the missing side is needed before any angle can be found. That value is rounded, and every later line inherits its error.

\[ b = \sqrt{53 - 28\cos(50^\circ)} = 5.916244\ldots \]

The book is blunt about this: depending on how many decimal places you carry, your answers may differ slightly from the printed ones.

Stitz & Zeager, College Trigonometry, Ch. 11 Applications of Trigonometry — §11.3 The Law of Cosines §11.3, p. 913 — the remark on propagation of error following Example 11.3.1

This is the part of the lesson that separates a correct method from a correct answer. In the Side-Angle-Side case you have no choice but to compute a side and then use it, and the value you use is rounded. Every line after it inherits that error and usually magnifies it a little.

The three rules on the slide are in order of usefulness. Carrying the exact expression is best: a square root of 53 minus 28 cosine 50 degrees is not harder to type into a calculator than 5.92, and it is exact. Feeding given numbers back in rather than computed ones is second best, and it is always available in the Side-Side-Side case. Using the angle sum only as a check, never as a shortcut, is the third.

The book is honest about the consequence: your answers may differ slightly from the printed ones depending on how much you carry. That is not an excuse for sloppiness but a warning that two careful people can legitimately disagree in the second decimal place. Say how you rounded, and your work is defensible.

40. The same angle, two ways

Worked example

Return to Example 11.3.1, part 1, with alpha already found as about 114.99 degrees. There are two routes to gamma.

Route one: subtract from 180 degrees

Why: Cheap, but it uses the rounded alpha you just computed.

\[ \gamma = 180^\circ - 114.99^\circ - 50^\circ = 15.01^\circ \]

Route two: go back to the given numbers

Why: The cosine form rebuilt from a, b and c, with b still in exact form.

\[ \cos(\gamma) = \frac{a^2 + b^2 - c^2}{2ab} = \frac{7 - 2\cos(50^\circ)}{\sqrt{53 - 28\cos(50^\circ)}} \]

Evaluate route two without rounding on the way

Why: Five decimal places kept throughout.

\[ \cos(\gamma) \approx 0.96589 \;\Longrightarrow\; \gamma \approx 15.0085^\circ \]

Compare the two answers

Why: They agree to two decimal places here, because alpha itself was accurate.

\[ 15.01^\circ \text{ against } 15.0085^\circ \]

See where route one would fail

Why: Had alpha been reported to the nearest degree as 115, route one would return 15 degrees and quietly lose a digit that route two keeps.

\[ 180^\circ - 115^\circ - 50^\circ = 15^\circ \]

Check the sum with the unrounded values

Why: The exact angles add to 180 degrees on the nose, which is the test the rounded set in part 2 failed.

\[ 114.9915^\circ + 50^\circ + 15.0085^\circ = 180^\circ \;\checkmark \]

Stitz & Zeager, College Trigonometry, Ch. 11 Applications of Trigonometry — §11.3 The Law of Cosines §11.3, pp. 912-913 — the two routes discussed in Example 11.3.1, part 1

This slide compares the two honest routes to the last angle, so that you can see what each one costs. Both give about 15 degrees here, and the reason they agree is that alpha was computed carefully in the first place.

Route one is the angle sum. It is one subtraction, and it is exact in principle, but it is only as good as the angle you put into it. Route two rebuilds the cosine from the original data, so it inherits nothing from alpha at all.

The fifth step is the one that shows what is really at stake. If alpha had been reported to the nearest whole degree, as 115, route one would return 15 degrees and you would never know that the true value is 15.0085. Route two would still return 15.0085, because it never looked at alpha. That is the whole argument for using the law again rather than subtracting, and it is why the final angle sum in this example closes exactly while the rounded one in part 2 did not.

41. Find the error: rounding the new side too soon

Error analysis

The same example again. Here b was rounded to two significant figures before being used.

Annotate

On: \( \cos(\alpha) = \frac{2 - 7\cos(50^\circ)}{5.9} \approx -0.42365 \;\Longrightarrow\; \alpha \approx 115.07^\circ \)

  • The exact value is 5.916244 and more. Cutting it to 5.9 throws away a sixth of a percent, which sounds harmless and is not.
  • The true cosine is minus 0.42248. A difference in the fourth decimal place of a cosine near this value moves the angle by nearly a tenth of a degree.
  • The correct value is 114.99. The answer is now wrong in the units digit of the hundredths place, and the angle sum will no longer close.
  • Leave b as the square root of 53 minus 28 cosine 50 degrees for the whole calculation, and round only the final angle.

\[ \frac{2 - 7\cos(50^\circ)}{\sqrt{53 - 28\cos(50^\circ)}} \approx -0.42248 \;\Longrightarrow\; \alpha \approx 114.99^\circ \]

Read the line and see whether you can predict the size of the damage before looking at the annotations. Most people expect a rounding of 5.916 to 5.9 to be harmless, and that expectation is what the slide is attacking.

The chain is short. A relative error of about one part in six hundred in b becomes an error of about one part in a thousand in the cosine, and near a cosine of minus 0.42 the angle moves by nearly a tenth of a degree for that much change. The result is 115.07 degrees instead of 114.99, and the angle sum no longer closes.

The fix costs nothing, which is what makes this worth caring about. Store the exact expression in your calculator, or store the full-precision value in memory, and round only the number you finally write down. Rounding at every step is a habit picked up in arithmetic classes where the numbers were small; in trigonometry it is expensive.

42. Exercise 19: the diameter of the crater

Worked example

From her camp a geologist measures 4 miles to the northern rim of a crater and 2 miles to the southern rim. The angle between the two lines of sight is 117 degrees. Find the diameter, to the nearest hundredth of a mile.

Figure (svg): A geologist's camp with two sight lines running to opposite rims of a crater, one 4 miles long and one 2 miles long, with 117 degrees between them. The far half of the crater rim is sketched as a dashed arc through the two rim points, and the dashed segment joining them is its diameter.

Neither distance is the answer and the angle is not a right angle, so nothing here can be read off directly. Two sides and the included angle is exactly the Law of Cosines' case.

Name the case

Why: Two measured distances with the measured angle between them: Side-Angle-Side, and the diameter is opposite the angle.

\[ d^2 = 4^2 + 2^2 - 2(4)(2)\cos(117^\circ) \]

Evaluate the squares

Why: Sixteen plus four.

\[ d^2 = 20 - 16\cos(117^\circ) \]

Use the negative cosine

Why: The cosine of 117 degrees is about minus 0.45399, so the correction is added, not subtracted.

\[ -16(-0.45399) = +7.26385 \]

Add and take the root

Why: To the nearest hundredth of a mile.

\[ d = \sqrt{27.26385} \approx 5.22 \text{ miles} \]

Check against the obtuse rule and the triangle inequality

Why: The angle is obtuse, so the answer must exceed the Pythagorean value of the square root of 20, about 4.47, and it must stay under the sum 4 plus 2 equals 6. It does both.

\[ 4.47 < 5.22 < 6 \;\checkmark \]

Stitz & Zeager, College Trigonometry, Ch. 11 Applications of Trigonometry — §11.3 The Law of Cosines §11.3, p. 916 — Exercise 19; answer on p. 918

This is the pond problem with an obtuse angle, and the change of sign is the whole lesson. Identify the case first: two measured distances with the measured angle between them, and the unknown opposite that angle.

The step to watch is the third. The cosine of 117 degrees is negative, so subtracting sixteen times it adds about 7.26 rather than removing anything. If you type the cosine in without its sign, or work in radians by accident, you will get a diameter of about 3.58 instead of 5.22, and nothing later will complain.

The final check catches exactly that failure. An obtuse angle must give a distance larger than the right-angled value, which here is the square root of 20, about 4.47, and the triangle inequality caps it at 6. The correct answer of 5.22 sits comfortably between them; the wrong answer of 3.58 does not even clear the lower bound.

43. Exercise 23: how far is the ship from port?

Real world

Figure (svg): A port at the bottom left with a north arrow. A leg of 5 miles leaves it on a bearing of 23 degrees east of north to a turning point, which also has a north-south line drawn through it. From there a second leg of 2 miles runs on a bearing of 41 degrees east of south. A dashed segment closes the triangle back to the port.

The two north lines are parallel, so the 23 degrees at the port reappears at the turn. Add it to the 41 degrees and the included angle is 64.

Discussion prompt

The HMS Sasquatch leaves port on a bearing of N23E and travels 5 miles. It then changes course to S41E and travels 2 more. How far is it from port, and on what bearing must it sail to return?

Stitz & Zeager, College Trigonometry, Ch. 11 Applications of Trigonometry — §11.3 The Law of Cosines §11.3, p. 917 — Exercise 23; answer on p. 918

Work out the included angle before reading the answer, because that, not the Law of Cosines, is the real content of this problem. Bearings are measured from the north-south line at whatever point you are standing on, so the two legs are described relative to two different reference lines.

The trick is that those two north lines are parallel. The 23 degrees at the port therefore reappears at the turning point, on the far side of the north line, as an alternate angle. The new heading is 41 degrees east of south. Together they fill the angle inside the triangle at the turn, giving 64 degrees.

After that the problem is routine: Side-Angle-Side for the distance, then the cosine form again for the angle at the port, then a little bearing arithmetic for the return heading. Problems like this one are almost always mostly geometry and only a little trigonometry, so draw the picture before reaching for a formula.

44. Heron's Formula

Section

Part 5

45. Area from the three sides alone

Concept

Section 11.2 gave an area formula that needs an angle. If all you have is three lengths, you could find an angle first and then use it, but there is a formula that skips that step entirely.

\[ A = \tfrac12 ab\sin(\gamma) \qquad\text{versus}\qquad A = \sqrt{s(s-a)(s-b)(s-c)} \]

semiperimeter — Half the perimeter of the triangle: the sum of the three sides divided by two, written s.

\[ s = \tfrac12(a + b + c) \]

Heron's Formula (Theorem 11.6) — The area enclosed by 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.

Stitz & Zeager, College Trigonometry, Ch. 11 Applications of Trigonometry — §11.3 The Law of Cosines §11.3, p. 914 — Theorem 11.6

You already have an area formula from the last section: half the product of two sides times the sine of the angle between them. It is perfectly good when you have an angle. The question is what to do when you have measured three distances and nothing else.

You could of course find an angle first with the Law of Cosines and then use the sine formula, and that route always works. Heron's Formula short-circuits it, and the derivation two slides from now is nothing more than doing that substitution once, in general, and simplifying.

Be careful with the definition of s. It is half the perimeter, not the perimeter, and forgetting the halving is the most common way this formula goes wrong. It is worth writing the semiperimeter on its own line every time, as the worked examples here do, rather than burying it inside the square root.

46. Reading Heron's Formula piece by piece

Notation

Annotate

On: \( A = \sqrt{s(s-a)(s-b)(s-c)} \)

  • The semiperimeter, half of a plus b plus c. Not the perimeter: halving it is the single most commonly dropped step.
  • What is left of the semiperimeter after the side a is removed. It equals half of b plus c minus a, so it is positive exactly when the triangle inequality holds for a.
  • Four lengths multiplied, so the product has units of length to the fourth power. The square root brings it back to an area.
  • Nothing on the right is an angle. Heron's Formula is the Law of Cosines with the angle already eliminated.

Stitz & Zeager, College Trigonometry, Ch. 11 Applications of Trigonometry — §11.3 The Law of Cosines §11.3, p. 914 — Theorem 11.6 and the definition of s

Take the annotations in order. The first is a warning: every one of the four factors is built from the semiperimeter, so if s is wrong, all four are wrong together and the answer can be out by a large factor.

The second annotation is the one that repays thought. Subtracting a side from the semiperimeter leaves half of the sum of the other two minus that one, so each factor is a triangle-inequality expression in disguise. They are all positive exactly when a triangle exists, and if any of them comes out negative or zero, you are looking at data that describes no triangle at all. The formula reports impossibility by refusing to give a real answer, just as the Law of Cosines did.

The third annotation is a unit check, and the fourth tells you what kind of object this is. There is no angle anywhere on the right-hand side. The angle was eliminated during the derivation, which is why three lengths are enough.

47. Deriving Heron's Formula from the Law of Cosines

Worked example

Start from the sine area formula of Section 11.2 and use the Law of Cosines to remove the angle. Working with the square of the area keeps the algebra clean.

Write the area with the sine

Why: Theorem 11.4, with gamma the angle between sides a and b.

\[ A = \tfrac12 ab\sin(\gamma) \]

Square it

Why: Squares are easier to manipulate than square roots.

\[ A^2 = \tfrac14 a^2 b^2 \sin^2(\gamma) \]

Trade the sine for the cosine

Why: The Pythagorean Identity, so that the Law of Cosines can be used.

\[ A^2 = \frac{a^2b^2}{4}\left(1 - \cos^2(\gamma)\right) \]

Substitute the Law of Cosines

Why: The cosine form, with every letter a side length.

\[ \cos(\gamma) = \frac{a^2+b^2-c^2}{2ab} \]

Put it in and square the fraction

Why: The denominator four a squared b squared is about to cancel.

\[ A^2 = \frac{a^2b^2}{4}\left[1 - \frac{(a^2+b^2-c^2)^2}{4a^2b^2}\right] \]

Clear the inner fraction

Why: Multiply through; the a squared b squared cancels exactly.

\[ A^2 = \frac{4a^2b^2 - (a^2+b^2-c^2)^2}{16} \]

Recognise a difference of squares

Why: Four a squared b squared is the square of 2ab.

\[ A^2 = \frac{(2ab)^2 - (a^2+b^2-c^2)^2}{16} \]

Factor it

Why: The difference of two squares, with the minus bracket regrouped.

\[ A^2 = \frac{\left[c^2 - (a-b)^2\right]\left[(a+b)^2 - c^2\right]}{16} \]

Factor each bracket, again as a difference of squares

Why: Four linear factors, and each one is a triangle-inequality expression.

\[ A^2 = \frac{(b+c-a)(a+c-b)(a+b-c)(a+b+c)}{16} \]

Split the sixteen among the four factors

Why: Sixteen is two to the fourth, so each factor takes one two.

\[ A^2 = \frac{b+c-a}{2}\cdot\frac{a+c-b}{2}\cdot\frac{a+b-c}{2}\cdot\frac{a+b+c}{2} \]

Name the four halves

Why: The last is the semiperimeter, and subtracting a side from it gives each of the others.

\[ s - a = \frac{a+b+c}{2} - a = \frac{b+c-a}{2} \]

Read off the theorem

Why: The four factors are exactly s minus a, s minus b, s minus c and s.

\[ A = \sqrt{s(s-a)(s-b)(s-c)} \]

Check on the 3-4-5 right triangle

Why: Its area is half the product of the legs, which is 6, and Heron must agree.

\[ s = 6: \;\sqrt{6\cdot 3\cdot 2\cdot 1} = \sqrt{36} = 6 = \tfrac12(3)(4) \;\checkmark \]

Stitz & Zeager, College Trigonometry, Ch. 11 Applications of Trigonometry — §11.3 The Law of Cosines §11.3, pp. 914-915 — the proof of Theorem 11.6

This is the longest derivation in the lesson and every line is ordinary algebra, so read it for strategy rather than for surprises. The strategy is: start from the area formula you have, remove the angle using the Law of Cosines, and then factor the result until the semiperimeter appears.

Two decisions make the algebra manageable. The first is working with the square of the area throughout, so that no square roots appear until the very last line. The second is recognising differences of squares. They show up twice: once when four a squared b squared is seen as the square of 2ab, and again when each of the two resulting brackets is itself a difference of two squares.

The end of the derivation is bookkeeping that is easy to miss. After the two factorings you have four linear factors and a 16 underneath. Sixteen is two to the fourth, so each factor can take one two, and each of the four halved expressions turns out to be either the semiperimeter or the semiperimeter minus a side. That is why the formula has exactly four factors and why they take the form they do.

The check on the 3-4-5 triangle is a good one because its area is known independently as half the product of the legs. Heron gives 6, and so does the classical formula.

48. Example 11.3.3: the area of the 4-7-5 triangle

Worked example

Find the area enclosed by the triangle of Example 11.3.1, part 2, whose sides are 4, 7 and 5 units.

Find the semiperimeter

Why: Add the three sides and halve.

\[ s = \tfrac12(4 + 7 + 5) = \tfrac{16}{2} = 8 \]

Subtract each side from it

Why: Three small numbers, all positive, which confirms the triangle exists.

\[ s-a = 4, \quad s-b = 1, \quad s-c = 3 \]

Multiply the four numbers

Why: Semiperimeter first, then the three differences.

\[ s(s-a)(s-b)(s-c) = 8 \cdot 4 \cdot 1 \cdot 3 = 96 \]

Take the square root and simplify

Why: Ninety-six is sixteen times six.

\[ A = \sqrt{96} = 4\sqrt{6} \approx 9.80 \text{ square units} \]

Figure (svg): Two panels. On the left, the 4-7-5 triangle with its interior shaded and the altitude onto the side of length 7 drawn in. On the right, a bar of length 16 split into pieces of 4, 7 and 5, with the halfway mark at 8 labelled s, and three shorter bars beneath it of lengths 4, 1 and 3.

The four numbers Heron multiplies are the semiperimeter and what is left of it after each side is taken away. Nothing but the three lengths goes in.

Check against the sine formula

Why: Gamma was found to be about 44.42 degrees in Example 11.3.1, and half of a times b times its sine must give the same area.

\[ \tfrac12(4)(7)\sin(44.42^\circ) \approx 14(0.69985) \approx 9.80 \;\checkmark \]

Stitz & Zeager, College Trigonometry, Ch. 11 Applications of Trigonometry — §11.3 The Law of Cosines §11.3, p. 915 — Example 11.3.3

This is the same triangle you solved earlier, which is why it is a good test case: the angles are already known, so the answer can be verified by a completely separate route.

The procedure is four lines and never varies. Add the three sides and halve to get s. Subtract each side from s in turn. Multiply the four numbers. Take the square root. Here those four numbers are 8, 4, 1 and 3, and the pleasant thing about this example is that they come out as whole numbers, so the arithmetic is exact until the final root.

Look at the picture on the right of the figure. The bar of length 16 is the perimeter, the mark at 8 is the semiperimeter, and the three short bars beneath are what is left after each side is removed. Seeing them as lengths rather than as expressions makes it much harder to forget the halving.

The check is the whole point of choosing this triangle. Half of 4 times 7 times the sine of 44.42 degrees gives the same 9.80, and the two routes share no arithmetic at all.

49. Exercise 17: the area of the 7-10-13 triangle

Worked example

Find the area of the triangle of Exercise 6, whose sides are 7, 10 and 13.

Find the semiperimeter

Why: Thirty divided by two.

\[ s = \tfrac12(7 + 10 + 13) = 15 \]

Subtract each side

Why: Eight, five and two.

\[ s-a = 8, \quad s-b = 5, \quad s-c = 2 \]

Multiply

Why: Fifteen times eight is 120, times five is 600, times two is 1200.

\[ 15 \cdot 8 \cdot 5 \cdot 2 = 1200 \]

Take the root and simplify

Why: Twelve hundred is four hundred times three.

\[ A = \sqrt{1200} = 20\sqrt{3} \approx 34.64 \text{ square units} \]

Check against the sine formula

Why: The angle gamma was found to be about 98.21 degrees, and half of a times b times its sine must agree.

\[ \tfrac12(7)(10)\sin(98.21^\circ) \approx 35(0.98975) \approx 34.64 \;\checkmark \]

Stitz & Zeager, College Trigonometry, Ch. 11 Applications of Trigonometry — §11.3 The Law of Cosines §11.3, p. 916 — Exercise 17; answer on p. 918

This is the triangle whose angles you found a few slides ago, so again the answer can be checked independently. Run the four lines yourself before reading them.

The numbers here are especially clean: 15, 8, 5 and 2 multiply to 1200, and 1200 is 400 times 3, so the exact area is 20 times the square root of 3. Leaving the answer in that exact form is better practice than writing 34.64, because the exact form loses nothing.

Notice how much cheaper Heron is than the alternative. To use the sine formula you would first have to compute an angle, which needs its own arccosine, and then take a sine of a rounded value. Heron needs no calculator function except one square root, and it never reuses a computed number. When three sides are all you have, it is the right tool.

50. Fill in the semiperimeter

Fill the middle

Heron's Formula is being applied to a triangle with sides 9, 12 and 15. Two numbers are missing.

Fill in the blanks

s = \tfrac12(9 + 12 + 15) = 18, \qquad A = \sqrt6} \cdot 3} = 54

Why: The perimeter is 36, so the semiperimeter is 18. Then s minus 9 is 9, s minus 12 is 6, and s minus 15 is 3. The product 18 times 9 times 6 times 3 is 2916, whose square root is 54. This triple is 3 times the 3-4-5 triangle, so the area should be 9 times 6, which is 54.

Fill both blanks before checking, and try to see the triangle before you compute. Nine, twelve and fifteen is the 3, 4, 5 triangle scaled by three, so it is right-angled.

The first blank is the semiperimeter. The perimeter is 36 and half of that is 18. The three differences are then 9, 6 and 3, which is where the second blank comes from.

The last sentence of the explanation is the reason this example was chosen. Because the triangle is a scaled 3, 4, 5, you know its area independently: half of 9 times 12, which is 54. Scaling a triangle by three multiplies its area by nine, and nine times the area 6 of the original is again 54. Three independent routes to the same number is a good way to test a formula you have just learned.

51. Trap: subtracting from the perimeter instead of the semiperimeter

Trap

The trap

For the triangle with sides 4, 7 and 5:

\[ p = 4 + 7 + 5 = 16 \]

\[ A = \sqrt{16(12)(9)(11)} \]

\[ A \approx 125.9 \]

Wrong. The area is about 9.80.

The fix

Every one of the four factors must be built from the semiperimeter, not the perimeter. Halve first, then subtract.

\[ s = 8 \]

\[ A = \sqrt{8(4)(1)(3)} = \sqrt{96} \]

A quick guard: the area can never exceed half the product of the two longest sides, here half of 7 times 5, which is 17.5. An answer of 125.9 fails that instantly.

This is the characteristic Heron error, and it is almost always a copying slip rather than a misunderstanding: you compute the perimeter as an intermediate value and then forget to halve it before subtracting.

The damage is large. Using 16 instead of 8 gives an answer about thirteen times too big, so it is not a subtle error, and any sanity check will catch it. That is worth knowing, because it means you do not need to be perfect, only to check.

The check on the right is the best one for areas. A triangle's area is half the product of two sides times the sine of the angle between them, and a sine can never exceed 1, so the area can never exceed half the product of the two longest sides. Here that ceiling is 17.5, and an answer of 125.9 breaks it by a wide margin. Apply that ceiling to every area you compute and this trap can never catch you.

52. Slide the third side and watch the area collapse

Edge cases

Parameter explorer

Two sides are fixed and the third is yours to choose. Find the two values of the third side where the area drops to zero, and say in words what the triangle is doing at each of them.

\[ A(c) = \sqrt{s(s-{a})(s-{b})(s-c)} \]

  • a — from 2 to 8: side a
  • b — from 2 to 8: side b

Start with the sides at 5 and 6 and move the third side slowly from its smallest value upward. The area rises from zero, reaches a maximum, and falls back to zero. Find the two places where it touches zero and say out loud what the triangle is doing at each.

At the lower zero the third side equals the difference of the other two, and the triangle has folded completely flat with the short side lying along the long one. At the upper zero the third side equals their sum, and the triangle has opened into a straight line. In both cases the shape has no interior, so no area, and Heron's product contains a factor of zero.

Now push the third side outside that interval and watch the curve stay flat at zero. Mathematically the product inside the root has gone negative, and no real square root exists. That is Heron's Formula reporting an impossible triangle, in exactly the same way the Law of Cosines reported one by returning a cosine outside the interval from minus 1 to 1. Notice also where the maximum sits: the area is largest when the two fixed sides are at right angles, which is another way of seeing that the sine in the area formula peaks at 90 degrees.

53. Match each factor of Heron's Formula to its meaning

Matching

Match the pairs

  • s. s
  • sa. s − a
  • sb. s − b
  • sc. s − c
  • p. half of a + b + c
  • q. half of b + c − a
  • r. half of a + c − b
  • t. half of a + b − c

Why: Subtracting a side from the semiperimeter removes it twice from the sum, once for the halving and once for the subtraction: s minus a is half of a plus b plus c, minus a, which is half of b plus c minus a. Each of the three differences is therefore a triangle-inequality expression in disguise, and all three are positive exactly when a triangle exists.

Stitz & Zeager, College Trigonometry, Ch. 11 Applications of Trigonometry — §11.3 The Law of Cosines §11.3, p. 915 — the last lines of the proof of Theorem 11.6

Match all four before checking. The point is not to memorise four expressions but to see that the four factors are not arbitrary.

The arithmetic behind each match is one line. Take the semiperimeter, which is half of a plus b plus c, and subtract a. That removes one whole a from a quantity that only contained half of one, so what remains is half of b plus c minus a. The same reasoning gives the other two.

The consequence is worth stating. Each of the three differences is positive exactly when the triangle inequality holds for the corresponding side. So Heron's Formula has the existence test built into it: if a real triangle exists, all four factors are positive and the product has a real square root, and if one does not, it does not. Seeing this explains why the formula can report impossibility without being told to.

54. Four lengths multiplied, and the answer is an area

Anomaly

Exercise 27 of this section asks you to discuss something odd about Heron's Formula with your classmates.

\[ A = \sqrt{s(s-a)(s-b)(s-c)} \]

Predict first

Four lengths are multiplied together inside the root. Why does the result come out in square units rather than in units to the fourth power?

  • Because the square root halves the power, turning length to the fourth into length squared
  • Because the semiperimeter has no units
  • Because three of the four factors cancel
  • Because areas and lengths use the same units

Correct: Because the square root halves the power, turning length to the fourth into length squared

Why: Each factor is a length, so their product carries units of length to the fourth power. Taking a square root halves every exponent, so the result carries units of length squared, which is exactly an area. The same bookkeeping is why the derivation worked with the square of the area throughout and only took a root at the very end.

Stitz & Zeager, College Trigonometry, Ch. 11 Applications of Trigonometry — §11.3 The Law of Cosines §11.3, p. 917 — Exercise 27

Commit to an option before revealing. This is the discussion question the section closes with, and it is a question about units rather than about geometry.

Track the units through the formula. The semiperimeter is a length, and so is each of the three differences, since subtracting a length from a length gives a length. Four lengths multiplied give units of length to the fourth power, which is not an area and not anything else you normally meet.

The square root fixes it. Taking a square root halves every exponent, so length to the fourth becomes length squared, which is an area. This is not a coincidence or a fudge; it is the reason the derivation worked with the square of the area from the second line onward and only took a root at the very end. Whenever a formula looks dimensionally strange, follow the units through step by step, and the strangeness usually turns into an explanation.

55. Putting it together

Section

Part 6

56. Pattern: solving any triangle

Pattern

Figure (svg): A flow diagram. A box asking what is given branches four ways: angle-angle-side and angle-side-angle go to the Law of Sines, side-angle-side and side-side-side go to the Law of Cosines, and angle-side-side goes to the Law of Sines with an ambiguous-case warning. Both laws then feed a final box saying to find the largest unknown angle first with the cosine form.

One question decides everything: is there an angle with its opposite side already known?
  1. Ask one question first: do you have an angle together with the side opposite it? If yes, the Law of Sines can start; if no, only the Law of Cosines can.
  2. Side-Angle-Side: use the version whose angle is the given one and take the positive root for the missing side.
  3. Side-Side-Side: use the cosine form, on the longest side first, and read the numerator's sign before taking any arccosine.
  4. Then the rest: keep feeding the given numbers back in rather than your own rounded results, and save the angle sum as a check.
  5. Area: with an angle, half the product of two sides times its sine; with three sides and no angle, Heron's Formula.

This is the whole of Sections 11.2 and 11.3 in one procedure, and the order matters because each step is cheaper than the one after it.

The first question decides everything. Do you have an angle and the side opposite it? If yes, the Law of Sines starts, and if the case is Angle-Side-Side you must be alert for two possible triangles. If no, only the Law of Cosines can begin, and which form you use depends on whether you are missing a side or an angle.

The two habits at the bottom are what turn a correct method into a correct answer. Keep feeding in the given numbers rather than your own rounded ones whenever a choice exists, and save the angle sum for checking rather than spending it on an angle you could have computed properly. For area, the rule is equally short: if you have an angle, use the sine formula, and if you have only lengths, use Heron.

57. The two laws side by side

Comparison

Comparison matrix

questionLaw of SinesLaw of Cosines
cases it can startAAS, ASA, ASSSAS, SSS
needs a matched angle-side pairyesno
inverse function usedarcsinearccosine
can the result be ambiguousyesno
tells acute from obtuse on its ownnoyes
arithmetic costone ratioseveral squares

Fill the blanks before checking, and make sure you can justify each one rather than just recalling it.

The row about ambiguity is the most important. The Law of Sines can be ambiguous because the arcsine cannot distinguish an acute angle from its obtuse partner, and the Angle-Side-Side data really can describe two different triangles. The Law of Cosines is never ambiguous, because the arccosine covers the full range of possible triangle angles exactly once.

The last row is the honest trade-off. The Law of Cosines costs more arithmetic: three squares, a product and a division, against one ratio. You pay that price in exchange for two things: it starts in cases the other cannot, and its answers carry the acute-or-obtuse information for free. When both laws apply, either is fine; when accuracy or ambiguity is at stake, the extra arithmetic is cheap insurance.

58. Order the steps of an SSS solution

Ranking

Put in order

Put the steps of a complete Side-Side-Side solution into the order that keeps the answer accurate.

  1. Check that the two shorter sides together beat the longest one
  2. Compare the square of the longest side with the sum of the other two squares
  3. Use the cosine form on the longest side to get the largest angle
  4. Use the cosine form again, on the original three sides, for a second angle
  5. Subtract the two known angles from 180 degrees for the third

Why: The existence check costs nothing and saves a wasted page. The sign comparison then tells you whether an obtuse angle is waiting, before any inverse function is taken. The largest angle comes next, because it is the only one that can be obtuse. The second angle is taken from the given data rather than from a computed value, and only the very last angle is allowed to come from the angle sum, where a small rounding error can do no further damage.

Drag the five steps into order before checking. Three of them are obviously first, middle and last; the interesting question is where the two cheap checks go.

Both cheap steps go at the front. The existence check costs one addition and saves you from solving a triangle that does not exist. The sign comparison costs three squarings and tells you in advance whether an obtuse angle is waiting, which is exactly the information the arccosine is about to give you anyway, so getting it early means you can spot a wrong answer.

The last step is the one people put too early. Subtracting from 180 degrees is fine for the final angle, where a small inherited error can do no more damage, but doing it for the second angle wastes the one advantage the Side-Side-Side case has: that all three angles can be computed from the given data alone.

59. Check: which law starts the job

Check

Check your understanding

Which set of data can be started ONLY with the Law of Cosines?

  • A. α = 35°, β = 80°, c = 9
  • B. a = 9, b = 11, γ = 47° (correct)
  • C. α = 35°, a = 9, b = 11
  • D. α = 35°, a = 9, β = 80°

Answer: B

Why: Two sides with the angle between them and no angle-side opposite pair anywhere. Every Law of Sines ratio would contain two unknowns, so only the Law of Cosines can produce the third side.

Why A tempts people
Two angles give the third by subtraction, and then c is paired with its own angle: that is ASA, a Law of Sines case.
Why C tempts people
Alpha and a are a matched pair, so the Law of Sines can start; this is the ambiguous ASS case, but it does start.
Why D tempts people
Alpha is paired with a, so one full ratio is already available: an AAS case for the Law of Sines.

The question asks which set only the Law of Cosines can begin, so work through each option looking for a matched angle-side pair rather than deciding which law you would prefer.

Three of the four hand you a pair, one of them only after you subtract two angles from 180 degrees to find the third. Option B does not: the angle of 47 degrees sits between the two given sides, so the side opposite it is unknown, and the other two sides have unknown angles opposite them. Every ratio has two unknowns in it.

Option C is worth a second look, because it is the ambiguous case. The Law of Sines can start there, and it may well produce two triangles or none, but it does start. Being able to start and being safe to use are different questions.

60. Check: reading the sign of the cosine

Check

Check your understanding

A triangle has sides 6, 9 and 12. What does the sign of the cosine tell you about the largest angle, before any arccosine is taken?

  • A. It is acute, because 144 is less than 36 + 81
  • B. It is right, because 144 equals 36 + 81 + 27
  • C. It is obtuse, because 144 is greater than 36 + 81 (correct)
  • D. Nothing can be said without computing the arccosine

Answer: C

Why: The largest angle is opposite 12. Its cosine has numerator 36 + 81 − 144, which is −27, and the denominator 2 times 6 times 9 is positive. A negative cosine means an angle above 90 degrees, so the largest angle is obtuse; it is about 109.47 degrees.

Why A tempts people
144 is greater than 117, not less, so the numerator is negative rather than positive.
Why B tempts people
Adding 27 to make the equality work is not what the test asks; the two quantities compared are 144 and 36 + 81 alone.
Why D tempts people
The sign of the numerator settles the type of the angle completely; the arccosine is needed only for the exact measure.

This question is about what you can know before pressing a calculator button, so resist the urge to compute an arccosine and answer from the comparison alone.

The largest angle faces the longest side, which is 12. Its cosine has 36 plus 81 minus 144 on top, which is minus 27, and a positive number underneath. A negative cosine means an angle above 90 degrees.

The last option deserves a comment because it is the tempting safe answer. It is wrong: the sign of the numerator settles the type of the angle completely and with certainty. The arccosine is needed only if you want the actual measure, which here is about 109.47 degrees.

61. Check: Heron's Formula

Check

Check your understanding

What is the area of a triangle with sides 5, 5 and 6?

  • A. 12 square units (correct)
  • B. 15 square units
  • C. 24 square units
  • D. The sides do not form a triangle

Answer: A

Why: The semiperimeter is half of 16, which is 8. Then s minus a is 3, s minus b is 3 and s minus c is 2, so the product is 8 times 3 times 3 times 2, which is 144, and the square root is 12. The same answer comes from the base of 6 with the altitude of 4.

Why B tempts people
15 is the semiperimeter of a different triangle; here the semiperimeter is 8 and it is a factor, not the answer.
Why C tempts people
24 is the product of the base 6 and the height 4 without the halving that a triangle's area needs.
Why D tempts people
Five plus five is 10, comfortably more than 6, so all three differences are positive and the triangle exists.

Run the four lines rather than guessing. Add 5, 5 and 6 to get 16, halve to get 8, then subtract each side to get 3, 3 and 2.

The product 8 times 3 times 3 times 2 is 144, and its square root is 12. Whole numbers all the way through, which is a hint that the triangle is a nice one.

The independent check is easy for an isosceles triangle. Drop the altitude onto the side of length 6; it splits that side into two halves of 3, and by the Pythagorean Theorem its length is 4. Half of base 6 times height 4 is 12, which agrees. If your answer was 24 you found the rectangle rather than the triangle and forgot the halving.

62. Explain the correction term

Explain it to yourself

Discussion prompt

In two or three sentences, explain to someone who knows only the Pythagorean Theorem what the term minus two b c cosine alpha is doing, and why its effect flips as alpha passes 90 degrees.

Write your sentences out before revealing. Being able to explain this is the difference between having memorised a formula and understanding one, and it is also the fastest way to make the formula unforgettable.

The explanation you are aiming for has two moving parts. First, the Pythagorean Theorem is the right answer only when the angle is 90 degrees, and the extra term is the adjustment for every other angle. Second, the direction of the adjustment is carried entirely by the sign of the cosine: positive for acute, so the far side shrinks, and negative for obtuse, so the far side grows.

If your explanation mentions the hinge, so much the better. Two rods joined at a hinge, with the third side stretched between their free ends, is the picture that makes the sign behaviour obvious, and it is the picture the slider slide was showing you numerically.

63. Exit ticket

Exit ticket

\[ \alpha = 120^\circ, \quad b = 3, \quad c = 4 \]

Discussion prompt

Solve this triangle completely and find its area. Give the missing side exactly as well as in decimals, and check your area two different ways.

Stitz & Zeager, College Trigonometry, Ch. 11 Applications of Trigonometry — §11.3 The Law of Cosines §11.3, p. 916 — Exercise 5; answer on p. 918

This brings together everything in the lesson: a Side-Angle-Side solve, an angle found from the cosine form, a final angle from the angle sum, and an area computed two ways.

The first line is the one to get right. The cosine of 120 degrees is minus one half, so the correction term is added, and the square of the missing side is 37 rather than 25. Leave the answer as the square root of 37 for the rest of the calculation and round only at the end.

The area check is the interesting part. The sine route gives three times the square root of 3, exactly, and takes one line. The Heron route needs the semiperimeter and three awkward differences, and agrees to three decimal places. When you already have an angle, the sine formula is the better tool; when you have only lengths, Heron is. Knowing which to reach for is the practical skill this lesson was building toward.

64. Recap

Recap

toolwhat it needswhat it gives
Law of Cosines, first formtwo sides and the angle between themthe third side, in one square root
Law of Cosines, second formall three sidesany angle, with its type told by the sign
the Pythagorean Theorema right anglethe same law with the correction term deleted
Heron's Formulaall three sidesthe area, with no angle computed

\[ a^2 = b^2 + c^2 - 2bc\cos(\alpha) \qquad A = \sqrt{s(s-a)(s-b)(s-c)} \]

Next, Section 11.4 leaves triangles behind and gives points a new pair of coordinates: a distance from a pole and an angle of rotation.

OpenStax Algebra and Trigonometry 2e, §10.2 Non-right Triangles: Law of Cosines §10.2 — the same material in OpenStax Algebra and Trigonometry 2e

Two forms of one theorem, and an area formula that comes out of them. The first form takes two sides and the angle between them and returns the third side in one square root. The second takes all three sides and returns any angle, with the sign of its numerator naming the angle's type before any inverse function is used.

The Pythagorean Theorem is not a separate item on that list; it is the first form with the correction term deleted, which happens exactly when the enclosed angle is a right angle. Remembering the Law of Cosines therefore costs you nothing extra, because you already knew its most famous special case.

Heron's Formula closes the loop: an area from three lengths, with the angle eliminated during its derivation. Keep the two guards you met with it, that the semiperimeter is half the perimeter, and that the area can never exceed half the product of the two longest sides.

Section 11.4 changes the subject entirely. Instead of describing a point by how far across and how far up it is, it will describe it by how far out and how far round, and most of the curves you meet there are far easier to write in the new system than in the old one.

Sources

  1. Stitz & Zeager, College Trigonometry, Ch. 11 Applications of Trigonometry — §11.3 The Law of Cosines — Stitz & Zeager, College Trigonometry, Version 3 Corrected Edition, July 4 2013, pp. 910-916
  2. OpenStax Algebra and Trigonometry 2e, §10.2 Non-right Triangles: Law of Cosines

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

Book on Wyzant · Text (657) 465-8108