Minds On

In this learning activity, you will learn about the cosine law and under what circumstances you will use it. You will also learn to solve real-life problems of triangles using cosine law.

Join the discussion

discussion

Using a search engine of your choice research:

  1. What are the Law of Sines and Law of Cosines?
  2. Why use them?
  3. Find a profession which uses the Law of Sines and Law of Cosines?

Press the “Join The Discussion” button when you’re ready to engage.

Join The Discussion
(opens in a new window)

Action

Investigating cosine law

There are some situations for solving triangles in which you are only given two side lengths and the contained angle (the angle formed by these sides). There are other situations where all three sides of the acute triangle are known while no angles are known. You will learn to apply the cosine law in these cases. You will begin by developing the cosine law.

Example

Consider the following problem. Andrew, Basheer, and Colin are friends. Their residences are situated such that Andrew’s house is 8 km from Basheer’s house and 5 km from Colin’s house. If the angle between the roads from Andrew’s house to Basheer’s house and Colin’s house is 35°, how far is Colin’s house from Basheer’s house?

To solve this problem, first draw a diagram to represent the situation. Let points A, B, and C represent Andrew’s house, Basheer’s house, and Colin’s house. The length of AB is 8km, the length of AC is 5km, and ∠A=35° When two sides and the contained angle are known.

Diagram of triangle A B C. Angle A is 35 degrees, side b is 5 kilometres in length, and side c is 8 kilometres in length. All other quantities are unknown.

Press here for long description(Open in new window)

In the triangle we have just examined, the lengths of two sides and the contained angle are known. You don’t know the length of the opposite side of the given angle; therefore, the sine law cannot be used to solve this problem. Since the triangle is not a right triangle, the trigonometric ratios cannot be applied to solve this problem.

When two sides and the contained angle are known

It is clear that a new method is required to solve this problem. You will develop this new method by constructing a perpendicular, thus creating a right triangle. Then you can use the trigonometric ratios.

Construct altitude CN that is perpendicular to AB.

Let BC=a, CN=h, and AN=x. Since AB=8, and AN=x, then NB=8-x as depicted in the following diagram.

Diagram of triangle A B C with altitude from point C to point N now labelled as h. Length of B N equals 8 minus x and length of N A equals x. Angle N is a right angle.

Press here for long description(Open in new window)

Apply the Pythagorean theorem in ∆ANC:

52=x2+h2

h2=52-x2 (equation 1)

Apply the Pythagorean theorem in ∆BNC:

a2=(8-x)2+h2

h2=a2-(8-x)2 (equation 2)

Equate equations 1 and 2:

52-x2=a2-(8-x)2

25- x2= a2-(64-16x+x2)

25- x2= a2-64+16x- x2

a2=25- x2+x2+64-16x

a2=89-16x (equation 3)

In ∆ANC, cos35°=x5 and so x=5cos35° .

Substitute this value for x in equation 3:

a2=89-16(5cos35°)

a2=89-65.5322

a2=23.4678

a=4.8

Therefore, the distance from Basheer’s house to Colin’s house is 4.8km.

As you can notice, the solution is quite long and requires constructing an altitude to divide the larger triangle into two right triangles. Fortunately, there is a shorter method, similar to the sine law, which can then be used to solve triangles with two given lengths and the contained angle.

Apply the steps used in the previous solution to develop the cosine law for the triangle ∆ABC.

Diagram of triangle A B C with no known quantities.

Construct altitude CN that is perpendicular to AB.

Let BC=a, CN=h, and AN=x.

Since AB=c, and AN=x, then NB=c-x.

Diagram of triangle A B C with altitude from C to N.

Apply the Pythagorean theorem in ∆ANC:

b2=x2+h2

h2=b2-x2 (equation 1)

Apply the Pythagorean theorem in ∆BNC:

a2=(c-x)2+h2

h2=a2-(c-x)2 (equation 2)

Equate equations 1 and 2:

b2-x2=a2-(c-x)2

b2- x2= a2-(c2-2cx+x2)

b2- x2= a2-c2+2cx- x2

a2=b2- x2+x2+c2-2cx

a2=c2+b2-2cx (3)

Refer to a2=c2+b2-2cx (equation 3)

In ∆ANC, cosA=x/b and so x=bcosA .

Substituting x=bcosA into equation 3:

a2=c2+b2−2cb cosA

This equation is known as the cosine law. It can be recorded for each side and opposite angle in the triangle depicted in the following equations:

b2=a2+c2−2ac cosB

c2=a2+b2−2ab cosC

These two equations can be developed by constructing an altitude to the other two sides of ∆ABC and then following the steps as shown previously.

Summary

The cosine law

For ∆ABC shown here, the cosine law is as follows:

a2= b2+c2-2bc cosA

b2= a2+c2-2ac cosB

c2= a2+b2-2ab cosC

Note the following pattern in each equation when detailing the cosine law:

  • a is the side across from angle A
  • b is the side across from angle B
  • c is the side across from angle C
Diagram of triangle A B C with no known quantities.

It is not necessary to know all three equations, as each equation represents the cosine law for one particular side of the triangle. All you need to do is use your knowledge to understand the pattern.

The cosine law is used to:

  • find the third side in a triangle when two sides and the contained angle are known
  • find one angle in a triangle when all three side lengths are known.

Interestingly, the cosine law is an extension of the Pythagorean theorem. Imagine for a moment that ∠A is a right angle. You know that cos90°=0, which means that if ∠A is 90°, then

a2= c2+b2-2cb cosA becomes

hypotenuse2= b2+c2-2cb cos90°

hypotenuse2= b2+c2-2cb(0)

hypotenuse2= b2+c2-(0)

hypotenuse2= b2+c2

Solving acute triangles using cosine law

In this section, you’ll apply the cosine law to some problems. With a little practice, you’ll be able to solve acute triangles this way.

Explore this!

watch

Explore the following video to understand how to use cosine formula to determine the unknown side of a triangle when two sides and a contained angle are known.

When side lengths only are given:

In some problems that involve acute triangles, as in ∆ABC, all three side lengths may be known as depicted in the following diagram.

Diagram of triangle A B C. Side a is 4 metres in length, side b is 3.6 metres in length, and side c is 3.2 metres in length. All three angles are unknown.

Press here for long description(Open in new window)

In other problems that involve acute triangles, two side lengths and the contained angle may be known, as in ∆DEF as shown in the following diagram.

Diagram of triangle D E F. Angle E, which is the contained angle, is 43 degrees. Side f is 7 centimetres in length and side d is 5 centimetres in length. No other quantities are known.

Press here for long description(Open in new window)

Notebook

Notebook

You can use your notebook to complete each of the following questions. Compare your work with the suggested answers to check your understanding.

Diagram of triangle D E F. Angle E, which is the contained angle, is 43 degrees. Side f is 7 centimetres in length and side d is 5 centimetres in length. No other quantities are known.

Press here for long description(Open in new window)

  1. Solve for the unknown side, correct to one decimal place.

In the following exercise, the cosine law is required to obtain the smallest angle first. Once this angle is found, the sine law can be used to determine other unknown measures.

Diagram of triangle A B C. Side a is 4 metres in length, side b is 3.6 metres in length, and side c is 3.2 metres in length. There are no known angles.

Press here for long description(Open in new window)

  1. Determine the degree measure of the smallest angle.
  1. Determine the remaining unknown measures.

We can use sine law to solve for this. Review Learning Activity 4.2 on sine law if necessary.

sinA4=sin49.5°3.2

3.2∙sinA=4∙sin49.5°

sinA= 4∙sin49.5°3.2

sinA= 0.9505

A= sin-1(0.9505)

A=71.9°

Therefore A=71.9°.

B=180°-(71.9°+49.5°)

B=180°-121.4°

B=58.6°

Therefore B=58.6°.

In the following exercise, two sides and a contained angle are known. In other words, you are not given the length of the opposite side.

  1. Solve triangle FGH, given that ∠F=32°, g=28.3cm, and h=24.1cm. Round your answers to one decimal place.

f2= g2+h2-2gh cosF

f2= 28.32+24.12-2(28.3)(24.1)cos32°

f2= 800.89+580.81-1,364.06(0.8480)

f2= 1,381.7-1,156.72

f2=224.98

f=15.0

Therefore, f=15.0cm.

sin32°15.0=sinG28.3

15.0∙sinG=28.3∙sin32°

sinG= 28.3∙sin32°15.0

sinG= 0.9998

G= sin-1(0.9998)

G=88.8°

Therefore, G is 88.8°.

H=180°-(88.8°+32°)

H=180°-120.8°

H=59.2°

Therefore, H=59.2°.

Applications involving cosine law and sine law

In the following, you’ll learn to solve a variety of real-world application problems that involve not only the cosine law but also a combination of both the cosine law and the sine law.

Often the cosine law is used first to determine an unknown side and then the sine law can be used to continue to solve the problem. In each situation, it is important to draw an accurate diagram to represent the situation. The given information may be used to determine other required values that are not directly given in the problem.

You’ll explore this process in the exercise that follows.

Notebook

Notebook

You can use your notebook to complete each of the following questions. Compare your work with the suggested answers to check your understanding.

Two or three side lengths given

two cargo ships travelling across an ocean
  1. A radar station is tracking two ships, the Sierra and the Meribleu.

The Sierra is located at a point N 35° E from the radar station at a distance of 4.5 km. The Meribleu is 3.3 km from the radar station at a point that is S 48° E, given this information, solve for how far apart the two ships are from each other.

Draw the diagram in terms of north, south, east, and west.  

Let R represent the radar station.

Let S represent the Sierra.  

Let M represent the Meribleu.

Diagram of a north, south, east, west compass. Two direction lines are shown. Line R S runs North 35 degrees East and line R M runs South 48 degrees East. Line R S is 4.5 kilometres in length and line R M is 3.3 kilometres in length.

Press here for long description(Open in new window)

To solve the problem, use the triangle formed by the points S, R, and M.

∠SRM=∠SRE+∠ERM

Since ∠NRE is 90°, then

∠SRE=90-35°=55°

Since ∠ERS is 90°, then

∠ERM=90°-48°=42°

∠SRM=∠SRE+∠ERM

∠SRM=55°+42°=97°

Since you know the measure of two sides and the contained angle, use the cosine law to determine the distance between the two ships:

r2= s2+m2-2sm cosR

r2= 3.32+4.52-2(3.3)(4.5)cos97°

r2= 10.89+20.25-(29.7)(-0.1219)

r2= 31.14+3.6204

r=34.7604

r=5.896

5.896 km=5,896 m

Therefore, the ships are approximately 5896 m apart.

intersection of two country roads
  1. Two bike riders are travelling along two separate country roads that cross at a four-way stop.

They arrive at the intersection of the two perfectly straight roads at the same time. They stop for a moment and then leave the intersection on two different roads at the same time. One bike rider is travelling at 17 km/h and the other is travelling at 24 km/h. After three hours of biking, they stop and it is observed on their GPS maps that they are now 61 km apart. Your task is to find the angle formed by their two roads at the crossroads. To find the angle at which the crossroads meet, answer the following series of questions. Note that you will be finding the measure of the acute angle.

The slower bike rider is travelling at 17 km/h. In three hours, she has travelled a distance of

d=vt

d=17×3

d=51.

The slower bike rider has travelled 51 km in the three hours.

The faster bike rider is travelling at 24 km/h. In three hours, he has travelled a distance of

d=vt

d=24×3

d=72.

The faster bike rider has travelled 72 km in the three hours.

Let I represent the intersection of the two roads.

Let A represent the position, after three hours, of the slower bike rider.

Let B represent the position, after three hours, of the faster bike rider.

Diagram of triangle I A B. Side a is 72 kilometres in length, side b is 51 kilometres in length, and side I is 61 kilometres in length. No angles are known.

Press here for long description(Open in new window)

i2= a2+b2-2ab cosI

612= 512+722-2(51)(72)cosI

3,721= 2,601+5,184-7,344cosI

3,721=7,785-7,344cosI

3,721-7,785= -7,344cosI

-4,064= -7,344cosI

-4,064-7,344=cosI

I=cos−1(0.5534)

I=56°

Therefore, at their intersection, the two roads diverge at an angle of 56°.

satellite orbiting Earth
  1. A line of sight drawn from a satellite, positioned in space between Ottawa and Toronto, makes an angle of 57° with the ground at Ottawa.

The satellite is 600 km from Ottawa, and the distance from Ottawa to Toronto is 350 km in a straight line.

Determine, to one decimal place, the distance from the satellite to Toronto.

Let S represent the satellite.

Let T represent Toronto.

Let W represent Ottawa.

Diagram of triangle S T W. Angle W is 57 degrees, side s is 350 kilometres in length, and side t is 600 kilometres in length. No other quantities are known.

Press here for long description(Open in new window)

w2= s2+t2-2st cosW

w2= 6002+3502-2(600)(350)cos57°

w2= 360 000+122 500-(420 000)(0.5446)

w2= 482 500-228 732

w=253 768

w=503.8

Therefore, the satellite is approximately 503.8 km from Toronto.

  1. Determine, to one decimal place, the angle the satellite’s line of sight makes with the ground at Toronto.

Updating the diagram, you have something similar to the following:

Updated diagram of Triangle S T W. Angle W is 57 degrees while the other two angles are unknown. Side s is 350 kilometres in length, side t is 600 kilometres in length, and side w is 503.8 kilometres in length.

Press here for long description(Open in new window)

sin57°503.8=sinT600

503.8∙sinT=600∙sin57°

sinT= 600∙sin57°503.8

sinT= 0.9988

T= sin-1(0.9988)

T=87.2°

         

Therefore, the satellite’s line of sight makes an angle of 87.2° with the ground at Toronto.

One can find the area of a triangular figure by combining both sine and cosine law.

  1. There is a triangular backyard with side lengths of 27 m, 21 m, 18 m. A bag of fertilizer covers 400 m2. Is there enough fertilizer to cover the entire backyard?

    We know that the area of a triangle is given by:

    Area = BaseHeight2

    Triangle ABC with the length of side a is 18m, side b is 27m, side c is 21m. A right angle is formed from a line from angle B to the base, labelled h.

    Here the longest side 27 m is taken as the base of the triangle and h is height of the triangle.

    Since all three sides of the triangle are given, we use cosine law.

    a2 = b2 + c2 - 2bc cosA

    182= 272 + 212 - 22721 cosA

    182- 272 - 212 = - 22721 cosA

    182- 272 - 212 - 22721= cosA

    cosA = 182- 272 - 212 - 22721

    cosA = 324-729 -441-1,134

    ∠A =cos-1(0.746)

    ∠A =41.75°

Consolidation

Self-check

Rate your level of understanding from 1 (I am still confused) to 5 (I fully understand this concept) based on your results from the questions you just completed.

I am able to:

Agree or Disagree statements ranked 1 to 5
Statement 1 2 3 4 5
Identify the situations for when to use cosine law
Solve triangles using cosine law
Apply cosine law to solve real-world examples

If there are any criteria where you rated your level of understanding a 3 or below, you should review the concepts before moving on to the next learning activity.

Math journal

At the end of the course, you will fine-tune 8 entries (two from each unit) from your math journal and submit them as your “Culminating Assessment - Math journal” (Opens in new window).

Add to the summary you made in the last activity, but add cosine law and where you would need to use these in the real world. Your summary may resemble the one below. It may also be helpful to create this into a mind map like the one created in Learning Activity 1.4

Pythagorean theorem Primary trigonometric ratios Sine law Cosine law
Equation(s)
When do we use it?
Example or triangle
Real-world application

Also, compare and contrast the sine law and cosine law. Make sure to include when to use each with an example.

Once you feel comfortable with the success criteria, complete the following questions to assess your progress.

Assess your understanding: When two angles and one side is known

Notebook

Notebook

You can use your notebook to complete each of the following questions. Compare your work with the suggested answers to check your understanding.

Solve the following given each set of data for ∆ABC.

  1. Solve for a given triangle with: A=43°, C=62°, and c=12.3cm.

Since the measure of one angle and the length of its opposite side is known, the sine law is required to solve for a.

sin43°a=sin62°12.3

a∙sin62°=12.3∙sin43°

a= 12.3∙sin43°sin62°

a=9.5

Therefore, a is 9.5 cm.

  1. Solve for C given a=8 m, b=7 m, and c=10 m.

Since all three side lengths are known, the cosine law is required to solve for C.

c2= a2+b2-2ab cosC

102= 82+72-2(8)(7)cosC

100= 64+49-112cosC

100= 113-112cosC

100-113= -112cosC

-13= -112cosC

-13-112=cosC

C=cos−1(0.1161)

C=83.3°

Therefore, C=83.3°.

  1. Solve ∆PQR given p=17.2 m, r=20.7 m, and Q=38°.

Use the cosine law to solve for q:

q2= r2+p2-2rp cosQ

q2= 20.72+17.22-2(20.7)(17.2)cos38°

q2= 428.49+295.84-712.08(0.7880)

q2= 163.21

q=163.21

q=12.8

Therefore, q=12.8 m.

Use the sine law to determine P:

sinP17.2=sin38°12.8

12.8∙sinP=17.2∙sin38°

sinP= 17.2∙sin38°12.8

sinP= 0.8273

P= sin-1(0.8273)

P=55.8°

Therefore, P=55.8°.

R=180°-(38°+55.8°)

R=180°-93.8°

R=86.2°

Therefore, R=86.2°.

Assess your understanding: When solving a problem involving an acute triangle

  1. When solving a problem involving an acute triangle, how do you know when to use:

The sine law?

The cosine law?

  1. Solve ∆PQR given that p=20 m, q=14 m, and r=26 m.  Round your answers to the nearest metre.

Your diagram should resemble the following:

Diagram of triangle P Q R. Side p is 20 metres in length, side q is 14 metres in length, and side r is 26 metres in length. No angles are known.

Press here for long description(Open in new window)

As you can notice, to solve this triangle, you’ll need to find the three angle measures.

 q2= r2+p2−2rp cosQ

142= 202+262-2(20)(26)cosQ

196= 400+676-1,040cosQ

196= 1,076-1,040cosQ

196-1,076= -1,040cosQ

-880= -1,040cosQ

-880-1,040=cosQ

Q=cos−1(0.8462)

Q=32°

    

Therefore, Q=32°.

sinR26=sin32°14

14∙sinR=26∙sin32°

sinR= 26∙sin32°14

sinR= 0.9841

R= sin-1(0.9841)

R=80°          

Therefore R=80°.

P=180°-(80°+32°)

P=180°-112°

P=68°

Therefore, P=68°.

sailboat
  1. A sailboat in a race starts at point A and sails E 21° S for 10.3 km to a red buoy. From there it sails S 38° W for 25 km to a blue buoy.

How far is the blue buoy from the starting point?

Let A represent the starting point for the race.

Let R represent the red buoy and let B represent the blue buoy.

At point R, draw a small set of compass directions to help you find the angle  measures related to the given directions.

Be sure to indicate all the known measures. Also indicate other measures that can be found using parallel lines and complementary angles (angles that add up to 90°).

Diagram of a north, south, east, west NSEW compass.  Triangle A B R is shown transposed on top of the compass diagram. Point A is at the point where all four compass directions intersect. Point R is East 21 degrees south at a distance of 10.3 kilometres. Point B is South 38 degrees West at a distance of 25 kilometres from point R.

Press here for long description(Open in new window)

The distance from the starting point to the blue buoy is r.

r2= a2+b2-2ab cosR

r2= 252+10.32-2(25)(10.3)cos73°

r2= 731.09-150.57)

r2= 580.52

r=24.1

The blue buoy is 24.1 km from the starting point.

  1. Using the information you gathered on the previous question, determine the angle formed by travelling from the red buoy to the blue buoy and back to the starting point.

Extension

Cosine law and solving quadratics

Triangle ABC with labelled side a with an x and is unknown, side b is 14 and side c is 18. Angle C is 83 degrees.

Notebook

Notebook

Complete each step in your notebook and confirm your answer with the suggested solution.

Set up cosine law for this triangle. Notice that for cosine law, the value on the left of the equation must be opposite to the angle.

Simplify the equation.

We are now left with a quadratic. What are the two ways we can solve for the unknown in a quadratic?

Solve the quadratic.