Video Transcript
In this video, our topic is the
cosine rule. This rule, sometimes also called
the law of cosines, uses the cosine function to let us solve for sides and angles in
triangles. In this lesson, weβll learn this
rule, and weβll also get some good practice using it. As we get to know this rule, letβs
recall some information about the cosine function.
Say that we have a right triangle
like this one and we also know the lengths of all three sides of the triangle. The hypotenuse weβll call β, the
side length opposite this angle weβve defined, πΌ, weβll call π, and then the side
length adjacent to that angle πΌ weβll call π. If we were to solve for the cos of
this angle πΌ β and by the way, the argument in a cosine function does always need
to be an angle, whether in degrees or radians β then on our right triangle, the
cosine of this angle is equal to the adjacent side length π divided by the
hypotenuse β. So, this is how we define the
cosine of an angle thatβs part of a right triangle.
And in general, we can see how the
cosine function behaves by plotting it against a variety of input angles. If we write out those angles in
units of radians and we let them range from zero up to two π, then over this range,
the cosine function looks like this. It reaches a maximum value of
positive one at zero and two π radians. And then it goes all the way down
to negative one at an angle of π radians. And just as a side note, we could
also write these angles in degrees. So, for example, π over two
radians is 90 degrees, or three π over two radians is 270 degrees.
Knowing this about the cosine
function, letβs see how this function works within the cosine rule. We mentioned earlier that we use
the cosine rule to solve for information in triangles. And any kind of triangle is a
candidate for this rule. This includes right triangles like
we saw over here in defining the cosine function, isosceles triangles which have two
equal angles and therefore two equal sides, as well as triangles that donβt fit
either of these two descriptions but are just general three-sided objects.
The way the rule is typically
presented, we imagine a triangle with interior angles labeled π΄, π΅, and πΆ, all
capital letters. And then, we name the corresponding
sides of the triangle opposite these angles with similar letters but in
lowercase. So for example, side π would be
written like this, side π like this, and side π like this. We understand then that each one of
our capital letters refers to an angle either in degrees or radians, and that each
one of our lowercase letters corresponds to a side length in some distance unit,
whether centimeters or meters or whatever it may be.
With this set up, the way the
cosine rule works is we pick a corresponding angle and side pair. In general, that could be any one
of our three pairs: angle π΅ and side π, angle πΆ and side π, and so on. But the conventional way to present
the cosine rule is to choose angle π΄ and side π. Once weβve made that selection, we
then choose the remaining two side lengths in our triangle. Those would be lowercase π and
lowercase π. Using these four variables,
lowercase π, π, and π and uppercase π΄, we can write out the mathematical form of
the cosine rule. This rule says that the side length
π squared is equal to the side length π squared plus the side length π squared
minus two times π times π all multiplied by the cos of this angle, capital π΄.
In this equation then, we see this
pair of angle and corresponding side, upper and lowercase π, as well as the
remaining two side lengths, lowercase π and π. The two things this equation leaves
out, then, are the other two interior angles, capital π΅ and capital πΆ. Itβs important to see, though, that
this particular form of the cosine rule, which is a common one and one we may see if
we look it up in a textbook, doesnβt put a limit on which particular angle or side
length we can solve for. In this particular triangle weβve
drawn here, we could have, for example, made this angle here, angle π΄, or this
angle here. Itβs an arbitrary choice that we
chose this particular angle to give that label.
The basic idea of this rule then is
that given this set of four variables, the three side lengths of our triangle and
one of the interior angles, if we know three of these values, then we can use the
cosine rule to solve for the fourth. And typically, this involves
solving either for side length π or the angle capital π΄. As we do that, one important thing
to keep in mind is that this term here on the left-hand side is π squared. It can be easy to forget that if we
want to solve for π itself, weβll need to take the square root of both sides. Keeping that in mind, letβs get
some practice now using the cosine rule through an example.
Find the length of side π of the
triangle shown.
Okay, so in this triangle, we have
an interior angle marked out 49 degrees, and opposite that is the side length we
want to solve for, π. To help us do this, weβre given the
other two side lengths: 9.4 centimeters and 12 centimeters. And knowing all this about this
triangle, we can use whatβs called the cosine rule to solve for the side length
π. This rule says that if we have any
triangle and we label the interior angles capital π΄, π΅, and πΆ and that if we call
the corresponding side lengths lowercase π, π, and π, then the side length π
squared is equal to the side length π squared plus the side length π squared minus
two times π times π all multiplied by the cos of the angle π΄.
So, this rule is well set up for
letting us solve for the unknown side length π in our triangle. To solve for that side length,
weβll want to figure out which information in this triangle corresponds to side
length π and to side length π and to angle π΄. We can see right away that itβs
this 49-degree angle that weβll call angle π΄ for our cosine rule equation. But then, what about our two side
lengths? Which one of these two is π and
which one will we call π? As we look at our cosine rule
equation though, we can see that this choice doesnβt make a mathematical
difference. Whichever side length we call π
and calling the other one π, weβll find the same answer for our side length π.
Just to make a particular choice
though, letβs call our side length of 12 centimeters π. And that means our side length of
9.4 centimeters is π. Now that we know the side lengths
π and π and the angle π΄, we have all the information we need to fill in the
right-hand side of this equation. So, we can write then that our π
squared, where π is this unknown side length we want to solve for, is equal to 12
centimeters squared plus 9.4 centimeters squared minus two times 12 centimeters
times 9.4 centimeters times the cos of 49 degrees.
Before we enter this expression on
our calculator, thereβs one last step to take. We want to solve for π rather than
π squared. So letβs take the square root of
both sides of this equation. When we do that, on the left-hand
side, the power of two cancels out with our square root, which is effectively a
power of one-half. And now we have an expression for
the side length π we want to solve for. When we calculate the right-hand
side, to two significant figures, we find a result of 9.2 centimeters. This is the length of side π in
our triangle.
Letβs look now at a second example
exercise.
Find the size of angle π΄, in
degrees, of the triangle shown.
Looking at this triangle, we see
that all three side lengths are given to us, and we want to solve for this unknown
angle here. Given this information, we can use
the cosine rule to solve for this angle π΄. The cosine rule tells us that given
a triangle with interior angles capital π΄, π΅, and πΆ and corresponding side
lengths lowercase π, π, and π, then if we pick out the particular side length
weβve labeled π, that length squared is equal to the side length π squared plus
the side length π squared minus two times π times π all multiplied by the cos of
the angle π΄.
As we look to apply the cosine rule
to our scenario though, we can see itβs not any side length we want to solve for but
rather an interior angle. We can say then that in the cosine
rule equation, itβs this angle here that we want to solve for. And we can do that by rearranging
this expression. As a first step to doing that, we
can subtract π squared and π squared from both sides. This means that on the right-hand
side, we have positive π squared minus π squared canceling that out and positive
π squared minus π squared canceling that out as well.
Next, weβll continue to move toward
isolating this angle π΄ by dividing both sides of the equation by negative two times
π times π, which means on the right-hand side, this factor of negative two times
π times π cancels. That leaves us with this
expression. And the last thing weβll do to get
this angle π΄ all by itself is to invert our operation of the cosine function by
taking the inverse cosine or arc cosine of both sides. On the right-hand side, when we
take the inverse cos of the cos of the angle π΄, those inverse cosine and cosine
functions effectively cancel out. So now, we have an expression
letting us solve for the angle π΄.
Notice that to do this, we need to
know all three of the side lengths of our triangle, lowercase π, π, and π. And as we look over at the
particular triangle on this example, we see we do have that information. We can say that 7.8 centimeters is
our side length lowercase π. And although it doesnβt make a
mathematical difference whether we call this side length π or this one π, which
would mean that the remaining side length we call side length π, for the sake of
clearly identifying our values, letβs call this 14-centimeter side length side
length π. And that means 9.6 centimeters is
π.
And now we can insert these side
lengths into an equation to solve for the angle π΄. Itβs equal to the inverse cos of
this whole argument where weβve plugged in values for side lengths π, π, and π,
respectively. Notice, by the way, that all our
side lengths have the same units, centimeters. Since theyβre all consistent on
that basis, we can go ahead and calculate the right-hand side of this equation. Rounding our answer to two
significant figures, we find a result of 32 degrees. This is the size of the angle π΄ in
this triangle.
Letβs now look at one last example
exercise.
Find the length of side π of the
triangle shown.
In our triangle, we see this side
length opposite an angle of 103 degrees. Along with this, based on these
markings on the other two sides of the triangle, we can tell that they have the same
length. So this side length here is 7.1
centimeters also. As a side note, this means weβre
working with a special kind of triangle called an isosceles triangle. But anyway, our mission is to solve
for this side length here, and we can do it using a rule called the cosine rule,
also sometimes called the law of cosines.
This rule tells us that given a
triangle with interior angles marked out capital π΄, π΅, and πΆ and corresponding
side lengths lowercase π and π and π, we can solve for the square of one of the
sides by adding together the square of the other two sides and then subtracting from
that two times those other two sides multiplied by the cos of an angle weβve called
capital π΄, where in our triangle, this angle capital π΄ is opposite the side length
lowercase π that weβre solving for. So in our actual triangle over
here, to solve for this side length, weβll apply the cosine rule.
To do this, weβll need to identify
what the other two side lengths, theyβre called π and π in this equation, and the
angle opposite the side length we want to solve for, called capital π΄ here,
are. Looking at our triangle, we see
that angle opposite the side length weβre solving for is 103 degrees. So thatβs our angle capital π΄. And then, as far as identifying π
and π, these values in our cosine rule equation, we see that the other two side
lengths in our triangle are both the same. In this case then, both π and π
are 7.1 centimeters. This is the case because, as we saw
earlier, weβre working with an isosceles triangle.
Knowing all this, we can now plug
in these values into their place on the right-hand side of our cosine rule
expression. And once weβve done this, weβre
very close to being able to solve for the unknown side length π. The one thing we donβt want to
forget, though, is that right now we have an expression for π squared. To solve just for π, weβll want to
take the square root of both sides, where on the left, this square root and the
square term will cancel one another out. And now, when we enter this
expression on the right-hand side into a calculator, rounding to two significant
figures, we find a result of 11 centimeters. This is the length of side π in
our triangle.
Letβs summarize now what weβve
learned about the cosine rule. In this lesson, we saw that the
cosine rule helps us solve for unknown angles and side lengths in any triangle. Given a general triangle with
interior angles marked out as capital π΄, π΅, and πΆ and corresponding side lengths
of lowercase π and π and π, this rule tells us that the length of one of the
sides of this triangle, weβve called it π, squared is equal to the sum of the
square of the other two side lengths minus two times the product of those two
remaining sides all multiplied by the cos of this angle capital π΄, where this angle
is opposite the side length lowercase π that weβre solving for. This is a summary of the cosine
rule.