Aniko

ACT law of sines and law of cosines: triangles without a right angle

Lesson progressPractice 0/10
Difficulty
Advanced
Estimated time
30 minutes
Domains
Geometry

What you’ll learn

  1. Use the law of cosines for two sides and the angle between them, or for three sides.
  2. Put the side across from the angle alone on the left, every time.
  3. Find the angle inside the triangle when the figure shows a turn or a slope instead.
  4. Use the law of sines when you know two angles and a side.
  5. Solve the law with a tilde when the side you want meets the angle, or when you want the angle itself.
  6. Tell which law a triangle needs, and check the choices in Desmos.

Why this matters on the ACT

When the angle isn’t 90°

If the angle at PP below were a right angle, the Pythagorean theorem would give the pond’s width in one line. It isn’t. The two sightlines open to 72∘72^\circ, a little narrower than a right angle, so QQ and RR sit closer together than Pythagoras would say.

How much closer depends on the 72∘72^\circ. Three of the choices take something away from Pythagoras to account for it, and only one does it right.

Solution to the example

The choices are expressions, so there’s nothing to calculate: the job is to spot the one that’s set up right. Choices B, C and D are versions of the law of cosines, the rule that gives the third side of any triangle from two sides and the angle between them:

c2=a2+b2−2abcos⁡Cc^2=a^2+b^2-2ab\cos C

Here the two sides are 4848 and 3535, and the 72∘72^\circ sits right where they meet. QRQR is the side across from that angle, so

QR2=482+352−2(48)(35)cos⁡72∘,QR^2=48^2+35^2-2(48)(35)\cos72^\circ,

and QRQR is the square root of that. The answer is B, about 49.949.9 meters: a little shorter than choice A’s 59.459.4, the width a right angle at PP would give.

The slip is the trig function. In SOH-CAH-TOA, sine goes with the side opposite an angle, so sin⁡72∘\sin72^\circ in choice C looks right for QRQR, the side across from 72∘72^\circ. The test is 90∘90^\circ: there the law has to turn back into Pythagoras, so the part it takes away must be 00. Since cos⁡90∘=0\cos90^\circ=0 and sin⁡90∘=1\sin90^\circ=1, it’s cosine, as the law’s name says. C works out to 18.318.3 meters, far too short for an angle only a little narrower than a right angle. The other two miss in plainer ways: A leaves the angle out, and D leaves off the square root, so it’s QR2QR^2, about 24912491, not a length.

The law of cosines is the Pythagorean theorem with a correction for the angle.

ACT example

A surveyor at point PP sights both ends of a pond, QQ and RR, as shown. QQ is 4848 meters from PP, RR is 3535 meters from PP, and ∠QPR\angle QPR measures 72∘72^\circ. Which expression gives the distance, in meters, across the pond from QQ to RR?

Answer choices

Pythagoras with a correction for the angle

Here’s the law again, with its parts named:

c2=a2+b2−2abcos⁡Cc^2=a^2+b^2-2ab\cos C
  • aa and bb are two sides you know.
  • CC is the included angle, the angle where aa and bb meet.
  • cc is the side across from CC. It goes alone on the left.

The first part, a2+b2a^2+b^2, is the Pythagorean theorem from Right triangles and SOH-CAH-TOA. The last part, −2abcos⁡C-2ab\cos C, corrects it for an angle that isn’t 90∘90^\circ. Drag the CC slider and watch the triangle and cc change:

  • At C=90∘C=90^\circ, cos⁡90∘=0\cos90^\circ=0, the correction is 00, and the law is the Pythagorean theorem.
  • Below 90∘90^\circ, cosine is positive, so the law subtracts and cc comes out shorter than the right-angle length.
  • Above 90∘90^\circ, cosine is negative, so subtracting it adds, and cc comes out longer.

That gives you a free check on any answer: a narrow angle makes a short third side, and a wide one makes a long side.

Calculator loads as you approach
Sides 5 and 7 meet at the origin. Drag C: at 90 the third side matches 8.6023, below 90 it’s shorter, above 90 longer.

The ACT prints the law in a note under some questions and leaves it out of others, so carry it with you. One way to hold on to it: Pythagoras, then subtract twice the two sides times the cosine of the angle between them.

Look at the choices first. They tell you whether there’s anything to type.

Type the law into Desmos when…

  • The choices are numbers, like the edging around the bed below. Type the law with its numbers and read the side.

  • The side you want meets the angle, so it shows up twice in the law. Type the law with a letter for that side and a tilde for the equals sign, as in “The side you want meets the angle” below. By hand it’s a quadratic.

  • The question wants an angle in degrees. Type the law just as you set it up, with a letter for the angle and a tilde, as in the largest-angle example below. It skips getting the cosine alone for arccos.

Match the law by hand when…

  • The choices are expressions or equations, as in the pond question. Desmos can work out each one but can’t tell you which is the law, so find the two sides, the angle between them and the side across from it, and pick the choice that puts each one in its place.

Either way, start from the angle and the side across from it.

Try one

Practice problems

Practice problem

Two sides of a triangular garden bed measure 99 meters and 1212 meters, and the angle between them measures 100∘100^\circ. To the nearest meter, how much edging does it take to go all the way around the bed?

Answer choices
Calculator loads as you approach

The side you want meets the angle

So far the side you wanted sat across from the angle, alone on the left, and the law handed it over in one line. Sometimes a question gives you that side and asks for one of the two that meet at the angle. Say two sides of 55 and bb meet at a 60∘60^\circ angle, and the side across from it is 77. The law sets up the same way, with 77 alone on the left:

72=52+b2−2(5)bcos⁡60∘7^2=5^2+b^2-2(5)b\cos60^\circ

Now bb shows up twice, squared and inside 2(5)b2(5)b, so no single step gets it alone. By hand it’s a quadratic, b2−5b−24=0b^2-5b-24=0. Desmos can solve the law as it stands with a tilde, the move from Let Desmos find the number. Here the unknown is bb itself. It has no value yet, so the tilde finds it under its own name. Press → after 727^2 so the tilde doesn’t land in the exponent:

7^2 → ~5^2+b^2-2*5b*cos(60){b>0}

Under the line, REGRESSION PARAMETERS shows b=8b=8. It fits: with b=8b=8, the right side is 25+64−40=4925+64-40=49, which is 727^2.

The braces are the one choice Desmos can’t make for you. The quadratic has two solutions, 88 and −3-3, and a tilde reports only one. Delete {b>0} and Desmos can land on b=−3b=-3, with RMSE =0=0 all the same, since −3-3 makes the two sides match too. A length is positive, so {b>0} keeps the solution that fits a triangle.

Calculator loads as you approach
Desmos prints b = 8. Delete the braces and their condition, and b can land on −3.

Three sides: the side across from the angle goes alone

With all three sides known, the law of cosines gives any angle. Put the side across from the angle you want alone on the left, and the other two sides on the right, in both the squares and the 2ab2ab.

The ACT usually names the angle by size: the smallest or the largest. The largest angle faces the longest side, and the smallest faces the shortest. Whichever angle you want, its side goes alone on the left.

Example: the largest angle

Worked example

The sides of a triangular garden bed measure 77, 99 and 1212 inches. Let xx be the measure of the bed’s largest angle. Which equation could you solve to find xx?

  1. A

    122=72+92−2(7)(9)cos⁡x\displaystyle 12^2=7^2+9^2-2(7)(9)\cos x

  2. B

    72=92+122−2(9)(12)cos⁡x\displaystyle 7^2=9^2+12^2-2(9)(12)\cos x

  3. C

    122=72+92−2(7)(9)sin⁡x\displaystyle 12^2=7^2+9^2-2(7)(9)\sin x

  4. D

    92=72+122−2(7)(12)cos⁡x\displaystyle 9^2=7^2+12^2-2(7)(12)\cos x

Step 1

Find the side across from the angle

The largest angle faces the longest side, 1212. So 12212^2 goes alone on the left, and 77 and 99, the two sides that meet at that angle, go on the right.

Step 2

Match the choices

Only A and C have 12212^2 alone on the left, and C uses sine. The answer is A.

  • B puts 727^2 alone, so it gives the smallest angle, across from the shortest side.
  • D puts 929^2 alone, so it gives the middle angle.

Step 3

To get the angle itself, type the law with a tilde

The ACT usually stops at the equation. When a question wants the angle in degrees, Desmos can solve choice A just as it’s written, with no rearranging, using the tilde from “The side you want meets the angle.” Make two swaps. xx becomes CC, the angle’s name in the law: xx belongs to the graph, and Desmos is free to find any letter that has no value yet. Unlike the x_1 in Let Desmos find the number, CC has no subscript, so it needs no → after it. And == becomes the tilde. Press → after 12212^2 so the tilde doesn’t land in the exponent, and type it all on one line:

12^2 → ~7^2+9^2-2*7*9cos(C){0<C<180}

REGRESSION PARAMETERS shows C=96.37937C=96.37937, so the largest angle is about 96∘96^\circ. It’s wider than 90∘90^\circ, which fits: 122=14412^2=144 is more than 72+92=1307^2+9^2=130, so the longest side is longer than a right angle would make it.

The braces matter here too. Cosine repeats every 360∘360^\circ, so many angles fit the equation: without the braces, Desmos shows C=2423.62063C=2423.62063, and its RMSE is still about 00. An angle of a triangle is between 0∘0^\circ and 180∘180^\circ, and only one angle there has this cosine, so {0<C<180} gives the one you want.

Calculator loads as you approach
Desmos prints C = 96.37937. Delete the braces and their condition, and C jumps to 2423.62063.

Or get the cosine alone for arccos

The other route turns the law around so the cosine stands alone. Add 2(7)(9)cos⁡x2(7)(9)\cos x to both sides and subtract 12212^2:

2(7)(9)cos⁡x=72+92−1222(7)(9)\cos x=7^2+9^2-12^2

Then divide by 2(7)(9)2(7)(9):

cos⁡x=72+92−1222(7)(9)\cos x=\frac{7^2+9^2-12^2}{2(7)(9)}

Then xx is the angle whose cosine is that number, its inverse cosine, arccos in Desmos. Press → after 12212^2 so the ) doesn’t land in the exponent, and again after the denominator:

arccos((7^2+9^2-12^2 → )/2*7*9 → )

Desmos shows 96.3896.38, the same 96∘96^\circ the tilde gave.

Once the law is set up with the right side alone, like choice A, the tilde is the quicker route to the angle. It skips moving the cosine to one side, which is where a flipped sign turns the answer into 180∘180^\circ minus the answer.

Calculator loads as you approach
The same largest angle, by arccos, in one line.

The law works in a right triangle too, and the ACT sometimes asks for it there, with the law printed in a note. Nothing changes: the side across from the angle you want goes alone on the left.

Check your understanding:

A right triangle has sides 88, 1515 and 1717. Which side goes alone on the left for its smallest angle? And what angle do you get if you put 1717 alone on the left?

Find the angle between your two sides

The law needs the angle inside the triangle, where your two known sides meet. Some figures print a different angle there and leave the one inside for you to find. Two shapes come up:

  • A path that turns. The printed angle is the turn, how far the path bent away from going straight. The angle inside the triangle is 180∘180^\circ minus the turn, since the turn and the inside angle fill a straight line together. A small turn means a nearly straight path, so the inside angle is wide. A compass direction reads the same way: after a leg due east, a leg 30∘30^\circ north of east has turned 30∘30^\circ.
  • A vertical post on a slope. A vertical post makes 90∘90^\circ with level ground. The slope tips by ss, so on the downhill side of the post the angle to the slope is 90∘+s90^\circ+s, and on the uphill side it’s 90∘−s90^\circ-s.

Before you fill in the law, find the angle at the corner where your two sides meet.

Example: a path that turns

Worked example

A drone takes off from point SS, flies 4040 meters due west to point TT, turns 35∘35^\circ to its right and flies 3030 meters in a straight line to point EE, as shown. Which expression gives the distance, in meters, from SS to EE?

  1. A

    402+302−2(40)(30)cos⁡35∘\displaystyle \sqrt{40^2+30^2-2(40)(30)\cos35^\circ}

  2. B

    402+302−2(40)(30)cos⁡145∘\displaystyle \sqrt{40^2+30^2-2(40)(30)\cos145^\circ}

  3. C

    402+302\displaystyle \sqrt{40^2+30^2}

  4. D

    40cos⁡35∘+30\displaystyle \frac{40}{\cos35^\circ}+30

Step 1

Find the angle at T

The two sides you know, 4040 and 3030, meet at TT, so that’s the angle the law needs. The 35∘35^\circ in the figure is between the second leg and the dashed line, which keeps going the way the drone was flying. That’s the turn, the same as saying the second leg heads 35∘35^\circ north of west. The angle inside the triangle at TT fills the rest of the straight line:

180∘−35∘=145∘180^\circ-35^\circ=145^\circ

Step 2

Fill in the law

SESE is across from the angle at TT, so

SE2=402+302−2(40)(30)cos⁡145∘SE^2=40^2+30^2-2(40)(30)\cos145^\circ

and SESE is the square root of that, choice B. A plugs in the printed 35∘35^\circ, the turn, instead of the angle inside.

Step 3

Check every choice by its value

Type each choice into Desmos, starting with B: sqrt40^2+30^2-2*40*30cos(145). For D, press → after 40/cos(35) to leave the denominator before +30, and press Enter after the last choice. Then ask what the figure allows. The drone flew 7070 meters in all and only bent a little, so the straight distance back is a bit under 7070.

  • B gives 66.866.8. That fits.
  • A gives 23.123.1, as if the drone had nearly doubled back.
  • C gives 5050, which needs a right angle at TT.
  • D gives 78.878.8, longer than the whole path. No straight line is longer than a path between the same two points.
Calculator loads as you approach
Only B is a little under the 70-meter path.
Check your understanding:

A vertical post stands on a hillside that rises at 18∘18^\circ from the horizontal. What angle does the post make with the hillside on its downhill side? On its uphill side?

The law of sines: an angle and the side across from it

The law of cosines needs two sides and the angle between them, all three sides, or two sides and an angle that isn’t between them, as in “The side you want meets the angle.” When a question gives you two angles instead, use the law of sines:

asin⁡A=bsin⁡B=csin⁡C\frac{a}{\sin A}=\frac{b}{\sin B}=\frac{c}{\sin C}

Each fraction is a pair: an angle and the side across from it. Every pair in a triangle gives the same number, so once you know one full pair, set it equal to a second pair that has one unknown. This form puts the sides on top, which suits finding a side. The ACT sometimes prints it upside down, sin⁡Aa=sin⁡Bb\frac{\sin A}{a}=\frac{\sin B}{b}, which says the same thing.

Here’s how to tell which law a question needs:

  • Two sides and the angle between them? The law of cosines gives the third side.
  • All three sides? The law of cosines gives any angle.
  • Two sides and an angle that isn’t between them, and you want the third side? The law of cosines, with the side across from the angle alone on the left and a tilde for the side you want, as in “The side you want meets the angle.”
  • An angle and the side across from it, plus one more angle? The law of sines.
  • Two angles and a side that isn’t across from either? Find the third angle from the 180∘180^\circ sum first, then use the law of sines.
  • A right angle? Use SOH-CAH-TOA or the Pythagorean theorem.

Example: two angles and the side between them

Worked example

In △JKL\triangle JKL shown, ∠J\angle J measures 40∘40^\circ, ∠K\angle K measures 65∘65^\circ and JK=12JK=12. Which expression gives the length of KL‾\overline{KL}?

  1. A

    12sin⁡40∘sin⁡75∘\displaystyle \frac{12\sin40^\circ}{\sin75^\circ}

  2. B

    12sin⁡75∘sin⁡40∘\displaystyle \frac{12\sin75^\circ}{\sin40^\circ}

  3. C

    12sin⁡40∘sin⁡65∘\displaystyle \frac{12\sin40^\circ}{\sin65^\circ}

  4. D

    12sin⁡40∘\displaystyle 12\sin40^\circ

Step 1

Find a full pair

The side you know, 1212, runs between JJ and KK, so it’s across from ∠L\angle L. Find ∠L\angle L from the 180∘180^\circ sum, 180-40-65 in Desmos:

∠L=75∘\angle L=75^\circ

Now you have a full pair: 75∘75^\circ and the 1212 across from it.

Step 2

Pair the side you want with its angle

KL‾\overline{KL} is across from ∠J\angle J, 40∘40^\circ. Set the two pairs equal:

KLsin⁡40∘=12sin⁡75∘\frac{KL}{\sin40^\circ}=\frac{12}{\sin75^\circ}

Multiply both sides by sin⁡40∘\sin40^\circ, and KL=12sin⁡40∘sin⁡75∘KL=\frac{12\sin40^\circ}{\sin75^\circ}, choice A. C uses 65∘65^\circ for the 1212, but 65∘65^\circ is at KK, one end of that side, not across from it.

Step 3

Check the size in Desmos

Type 12sin(40)/sin(75): Desmos puts all of 12sin⁡(40)12\sin(40) on top and shows 7.997.99. That fits the figure, since KL‾\overline{KL} faces the smallest angle, so it’s the shortest side, under 1212.

  • B flips the fraction and gives 18.018.0, longer than 1212, which can’t be across from the smallest angle.
  • D is SOH-CAH-TOA, which needs a right angle the triangle doesn’t have.
Calculator loads as you approach
The third angle, then the side across from 40°.

Practice problems

For each one, name what you know first: two sides and the angle between them, all three sides, two sides and an angle that isn’t between them, or two angles and a side. That picks the law. Then make sure the angle you fill in sits where the law needs it.

Practice problem

Two edges of a triangular garden measure 1010 meters and 1414 meters, and the angle between them measures 120∘120^\circ. To the nearest tenth of a meter, how long is the garden’s third edge?

Answer choices
Calculator loads as you approach

Practice problem

A triangle has sides of 55, 77 and 88 inches. Let xx be the measure of its smallest angle. Which equation could you solve to find xx?

Answer choices
Calculator loads as you approach

Practice problem

A triangle has sides of 44, 55 and 88 centimeters. To the nearest degree, what is the measure of its largest angle?

Answer choices
Calculator loads as you approach

Practice problem

In △PQR\triangle PQR, ∠P\angle P measures 48∘48^\circ, ∠Q\angle Q measures 71∘71^\circ and QR=20QR=20 units. To the nearest tenth of a unit, what is the length of PR‾\overline{PR}?

Answer choices
Calculator loads as you approach

Practice problem

Two lighthouses, AA and BB, stand 99 kilometers apart on a straight coast. A ship SS is offshore, where ∠SAB\angle SAB measures 52∘52^\circ and ∠SBA\angle SBA measures 61∘61^\circ. Which expression gives the distance, in kilometers, from lighthouse AA to the ship?

Answer choices
Calculator loads as you approach

Practice problem

A boat sails 1212 miles due east, then 99 miles in a straight line 40∘40^\circ south of east. To the nearest tenth of a mile, how far is the boat from where it started?

Answer choices
Calculator loads as you approach

Practice problem

A straight driveway rises at 10∘10^\circ from the horizontal, starting at the street at point SS. A vertical lamp post 1010 feet tall stands on the driveway at point PP, 3030 feet from SS along the driveway, as shown. A string of lights runs straight from SS to RR, the top of the post. Which expression gives the length, in feet, of the string of lights?

(Note: In any triangle with angles AA, BB and CC across from sides aa, bb and cc, sin⁡Aa=sin⁡Bb=sin⁡Cc\frac{\sin A}{a}=\frac{\sin B}{b}=\frac{\sin C}{c} and c2=a2+b2−2abcos⁡Cc^2=a^2+b^2-2ab\cos C.)

Answer choices
Calculator loads as you approach

Practice problem

A parallelogram has sides of 88 inches and 55 inches, and one of its angles measures 60∘60^\circ. To the nearest tenth of an inch, how long is the longer diagonal of the parallelogram?

Answer choices
Calculator loads as you approach

Practice problem

In △ABC\triangle ABC, AB=6AB=6 centimeters, BC=9BC=9 centimeters and ∠A\angle A measures 50∘50^\circ. To the nearest tenth of a centimeter, what is the length of AC‾\overline{AC}?

Answer choices
Calculator loads as you approach

Finish the lesson

Practice: 10 to go

Finish the remaining practice to complete this lesson.

Quick recap

  • The law of cosines, c2=a2+b2−2abcos⁡Cc^2=a^2+b^2-2ab\cos C, is the Pythagorean theorem with a correction for the angle. Carry it: the ACT doesn’t always print it.
  • The angle in the law is where the two sides meet, and the side across from it goes alone on the left.
  • An angle under 90∘90^\circ makes the third side shorter than Pythagoras would; one over 90∘90^\circ makes it longer.
  • The largest angle faces the longest side, and the smallest faces the shortest. That side goes alone on the left.
  • When the side you want meets the angle, it shows up twice in the law. Type the law with a tilde and keep the length positive: 7^2 → ~5^2+b^2-2*5b*cos(60){b>0}.
  • For an angle in degrees, type the law as you set it up, with a letter for the angle and a tilde, and keep the angle inside a triangle: 12^2 → ~7^2+9^2-2*7*9cos(C){0<C<180}. Or get the cosine alone and type arccos((7^2+9^2-12^2 → )/2*7*9 → ).
  • A turn leaves 180∘180^\circ minus the turn inside the triangle. A vertical post on a slope of ss makes 90∘+s90^\circ+s on its downhill side and 90∘−s90^\circ-s uphill.
  • The law of sines pairs each angle with the side across from it. With two angles, find the third from 180∘180^\circ first if the side you know isn’t across from either.
  • Type every choice into Desmos and keep the one whose value fits the figure.

Next lesson

Circles, ellipses and hyperbolas

Read a conic’s center, radii and vertices from its equation, and check them on its graph in Desmos.

Start next lesson

Free Practice

Free question bank practice problems