Practice problem
Two sides of a triangular garden bed measure meters and meters, and the angle between them measures . To the nearest meter, how much edging does it take to go all the way around the bed?
Why this matters on the ACT
If the angle at 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 , a little narrower than a right angle, so and sit closer together than Pythagoras would say.
How much closer depends on the . 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:
Here the two sides are and , and the sits right where they meet. is the side across from that angle, so
and is the square root of that. The answer is B, about meters: a little shorter than choice A’s , the width a right angle at would give.
The slip is the trig function. In SOH-CAH-TOA, sine goes with the side opposite an angle, so in choice C looks right for , the side across from . The test is : there the law has to turn back into Pythagoras, so the part it takes away must be . Since and , it’s cosine, as the law’s name says. C works out to 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 , about , not a length.
The law of cosines is the Pythagorean theorem with a correction for the angle.
ACT example
A surveyor at point sights both ends of a pond, and , as shown. is meters from , is meters from , and measures . Which expression gives the distance, in meters, across the pond from to ?
Here’s the law again, with its parts named:
The first part, , is the Pythagorean theorem from Right triangles and SOH-CAH-TOA. The last part, , corrects it for an angle that isn’t . Drag the slider and watch the triangle and change:
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.
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.
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.
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.
Practice problem
Two sides of a triangular garden bed measure meters and meters, and the angle between them measures . To the nearest meter, how much edging does it take to go all the way around the bed?
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 and meet at a angle, and the side across from it is . The law sets up the same way, with alone on the left:
Now shows up twice, squared and inside , so no single step gets it alone. By hand it’s a quadratic, . Desmos can solve the law as it stands with a tilde, the move from Let Desmos find the number. Here the unknown is itself. It has no value yet, so the tilde finds it under its own name. Press → after 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 . It fits: with , the right side is , which is .
The braces are the one choice Desmos can’t make for you. The quadratic has two solutions, and , and a tilde reports only one. Delete {b>0} and Desmos can land on , with RMSE all the same, since makes the two sides match too. A length is positive, so {b>0} keeps the solution that fits a triangle.
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 .
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.
Worked example
The sides of a triangular garden bed measure , and inches. Let be the measure of the bed’s largest angle. Which equation could you solve to find ?
Step 1
The largest angle faces the longest side, . So goes alone on the left, and and , the two sides that meet at that angle, go on the right.
Step 2
Only A and C have alone on the left, and C uses sine. The answer is A.
Step 3
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. becomes , the angle’s name in the law: 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, has no subscript, so it needs no → after it. And becomes the tilde. Press → after 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 , so the largest angle is about . It’s wider than , which fits: is more than , so the longest side is longer than a right angle would make it.
The braces matter here too. Cosine repeats every , so many angles fit the equation: without the braces, Desmos shows , and its RMSE is still about . An angle of a triangle is between and , and only one angle there has this cosine, so {0<C<180} gives the one you want.
The other route turns the law around so the cosine stands alone. Add to both sides and subtract :
Then divide by :
Then is the angle whose cosine is that number, its inverse cosine, arccos in Desmos. Press → after 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 , the same 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 minus the answer.
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.
A right triangle has sides , and . Which side goes alone on the left for its smallest angle? And what angle do you get if you put alone on the left?
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:
Before you fill in the law, find the angle at the corner where your two sides meet.
Worked example
A drone takes off from point , flies meters due west to point , turns to its right and flies meters in a straight line to point , as shown. Which expression gives the distance, in meters, from to ?
Step 1
The two sides you know, and , meet at , so that’s the angle the law needs. The 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 north of west. The angle inside the triangle at fills the rest of the straight line:
Step 2
is across from the angle at , so
and is the square root of that, choice B. A plugs in the printed , the turn, instead of the angle inside.
Step 3
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 meters in all and only bent a little, so the straight distance back is a bit under .
A vertical post stands on a hillside that rises at from the horizontal. What angle does the post make with the hillside on its downhill side? On its uphill side?
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:
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, , which says the same thing.
Here’s how to tell which law a question needs:
Worked example
In shown, measures , measures and . Which expression gives the length of ?
Step 1
The side you know, , runs between and , so it’s across from . Find from the sum, 180-40-65 in Desmos:
Now you have a full pair: and the across from it.
Step 2
is across from , . Set the two pairs equal:
Multiply both sides by , and , choice A. C uses for the , but is at , one end of that side, not across from it.
Step 3
Type 12sin(40)/sin(75): Desmos puts all of on top and shows . That fits the figure, since faces the smallest angle, so it’s the shortest side, under .
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 meters and meters, and the angle between them measures . To the nearest tenth of a meter, how long is the garden’s third edge?
Practice problem
A triangle has sides of , and inches. Let be the measure of its smallest angle. Which equation could you solve to find ?
Practice problem
A triangle has sides of , and centimeters. To the nearest degree, what is the measure of its largest angle?
Practice problem
In , measures , measures and units. To the nearest tenth of a unit, what is the length of ?
Practice problem
Two lighthouses, and , stand kilometers apart on a straight coast. A ship is offshore, where measures and measures . Which expression gives the distance, in kilometers, from lighthouse to the ship?
Practice problem
A boat sails miles due east, then miles in a straight line south of east. To the nearest tenth of a mile, how far is the boat from where it started?
Practice problem
A straight driveway rises at from the horizontal, starting at the street at point . A vertical lamp post feet tall stands on the driveway at point , feet from along the driveway, as shown. A string of lights runs straight from to , the top of the post. Which expression gives the length, in feet, of the string of lights?
(Note: In any triangle with angles , and across from sides , and , and .)
Practice problem
A parallelogram has sides of inches and inches, and one of its angles measures . To the nearest tenth of an inch, how long is the longer diagonal of the parallelogram?
Practice problem
In , centimeters, centimeters and measures . To the nearest tenth of a centimeter, what is the length of ?
Finish the lesson
Finish the remaining practice to complete this lesson.
7^2 → ~5^2+b^2-2*5b*cos(60){b>0}.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 → ).Next lesson
Read a conic’s center, radii and vertices from its equation, and check them on its graph in Desmos.
Start next lesson