Law of Cosines - Formula, Proof, Definition | Cosine Rule (2024)

The law of cosines relates the lengths of the sides of a triangle to the cosine of one of its angles. Using trigonometry, we can now obtain values of distances and angles which cannot be measured otherwise. The law of cosines finds application while computing the third side of a triangle given two sides and their enclosed angle, and for computing the angles of a triangle if all three sides are known to us.

A triangle has 6 elements (3 sides + 3 angles). Let us understand the law of the cosines formula and its derivation to study the inter-relationship of these elements using the cosine function.

1.What is Law of Cosines?
2.Law of Cosines Formula
3.Proof of Law of Cosines
4.Finding Missing Sides and Angles
5.FAQs on Law of Cosines

What is Law of Cosines?

The law of cosine helps in establishing a relationship between the lengths of sides of a triangle and the cosine of its angles. The cosine law in trigonometry generalizes the Pythagoras theorem, which applies to a right triangle.

Law of Cosines: Definition

Statement: The law of cosine states that the square of any one side of a triangle is equal to the difference between the sum of squares of the other two sides and double the product of other sides and cosine angle included between them.

Let a, b, and c be the lengths of the three sides of a triangle and A, B, and C be the three angles of the triangle. Then, the law of cosine states that: a2 = b2 + c2 − 2bc·cosA. As stated above, the law of cosines in trigonometry generalizes the Pythagorean theorem. If you plug 90º for the angle in one of the rules, what will happen? Since cos 90º = 0, we are left with the Pythagoras theorem.

Law of Cosines - Formula, Proof, Definition | Cosine Rule (1)

The law of cosine is also known as the cosine rule. This law is useful to find the missing information in any triangle. For example, if you know the lengths of two sides of a triangle and an angle included between them, this rule helps to find the third side of the triangle. Let us check out different cosine law formulas and the method to find these missing parameters in the following sections.

Law of Cosines Formula

The law of cosines formula can be used to find the missing side of a triangle when its two sides and the included angle is given i.e., it is used in the case of a SAS triangle. We know that if A, B, and C are the vertices of a triangle, then their opposite sides are represented by the small letters a, b, and c respectively. The law of cosines formula is used to:

  • find a when b, c, and A are given (or)
  • find b when a, c, and B are given (or)
  • find c when a, b, and C are given (or)
  • find any angle of the triangle when a, b, and c are given.

There are three laws of cosines and we choose one of them to solve our problems depending on the available data.

a2 = b2 + c2 - 2bc·cosA

b2 = c2 + a2 - 2ca·cosB

c2 = a2 + b2 - 2ab·cosC

Law of Cosines - Formula, Proof, Definition | Cosine Rule (2)

Proof of Law of Cosines

There is more than one way to prove the law of cosine. Let's prove it using trigonometry. Consider the following figure.

Law of Cosines - Formula, Proof, Definition | Cosine Rule (3)

In ΔABM we have,

sin A = BM/AB = h/c

and,

cos A = AM/AB = r/c

From equation (1) and (2), we get h = c(sin A) and r = c(cos A)

By Pythagoras Theorem in ΔBMC,

a2 = h2 + (b - r)2

Substitute h = c(sin A) and r = c(cos A) in equation (3).

a2 = (c(sinA))2 + (b - c(cosA))2

= c2sin2A + b2 + c2cos2A - 2bc·cosA

= c2(sin2A + cos2A) + b2 - 2bc·cosA

= c2 + b2 - 2bc·cosA

Hence, proved.

Finding Missing Length and Angles Using the Law of Cosines

As discussed above, law of cosines can be used to calculate the missing parameters of a triangle, given the required known elements. Let us have a look at the following steps to understand the process of finding the missing side or angle of atriangle using the cosine law.

  • Step 1: Note down the given data(side lengths and measure of angles) for the triangle and identify the element to be calculated.
  • Step 2: Apply the cosine rule formulas,
    a2 = b2 + c2 - 2bc·cosA
    b2 = c2 + a2 - 2ca·cosB
    c2 = a2 + b2 - 2ab·cosC
    where, A, B, and C are the vertices of a triangle, and their opposite sides are represented as a, b, and c respectively.
  • Step 3: Express the obtained result with suitable units.

Let us consider a few examples to find the missing side and angle of a triangle.

Example: Look at the figure shown below.

Law of Cosines - Formula, Proof, Definition | Cosine Rule (4)

We need to find the measure of ∠A.

We will use the formula

a2 = b2 + c2 - 2bc.cosA. Substitute 10 for 'a', 7 for 'b' and 5 for 'c'.

102 = (7)2 + (5)2 - 2(5)(7)·cosA

70·cos A = -26

cos A = -13/35

A = 111.8º

In this example, we used the law of the cosine equation to find the missing angle. Now, let us use the law of the cosine equation to find the missing side.

Example: Two sides of a triangle measure 72 in and 50 in with the angle between them measuring 49º let us find the missing side.

Solution:

Substitute 72 for b, 50 for c and 49º for A.

Using the law of cosines formula,

a2 = b2 + c2 - 2bc·cosA

a2 = (72)2 + (50)2 - 2(72)(50)cos49º

a2 = 5184 + 2500 - (7200)(0.656)

a2 = 5184 + 2500 - 4723.2

a2 = 2960.8

a ≈ 54.4

So, the missing length of the side is 54.4 inches.

Important Notes on Law of Cosines:

  • Three different versions of the law of cosine are:

    a2 = b2 + c2 - 2bc·cosA
    b2 = c2 + a2 - 2ca·cosB
    c2 = a2 + b2 - 2ab·cosC

  • Pythagoras Theorem is a generalization of the Law of Cosine.
  • The law of cosine can be applied in any triangle.

Challenging Question: A spider is lost in its web. Look at the figure below.Can you find the value of x?
Law of Cosines - Formula, Proof, Definition | Cosine Rule (5)

FAQs on Law of Cosines

What is Law of Cosines in Trigonometry?

The law of cosines is used to find the missing side of a triangle when its two sides and the included angle is given. There are three laws of cosines and we choose one of them to solve our problems depending on the available data.

  • a2 = b2 + c2 - 2bc·cosA
  • b2 = c2 + a2 - 2ca·cosB
  • c2 = a2 + b2 - 2ab·cosC

where, A, B, and C are the vertices of a triangle, and their opposite sides are represented by the small letters a, b, and c respectively.

What is Law of Cosines Used For?

The Law of Cosines can be used to find the unknown parts of an oblique triangle(non-right triangle), such that either the lengths of two sides and the measure of the included angle is known (SAS) or the lengths of the three sides (SSS) are given.

What are the Possible Criteria for Law of Cosines?

In order to use the law of cosines, either two sides of the triangle and the measure of included angle(SAS) or the length of all three sides of the triangle(SSS) should be known.

What is the Formula for Law of Cosines?

The formula for law of cosines is given as,

  • a2 = b2 + c2 - 2bc·cosA
  • b2 = c2 + a2 - 2ca·cosB
  • c2 = a2 + b2 - 2ab·cosC

where, A, B, and C are the vertices of a triangle, and their opposite sides are represented as a, b, and c respectively.

How to Derive Law of Cosines Formula?

There is more than one way to derive the law of the cosine formula. A few of them are given as,

  • Using basic concepts of trigonometry.
  • Using vector algebra.
  • Using the law of sine.
  • Using the coordinate geometry to find the distance between two coordinate points.

What is the Application of Law of Cosines Formula?

The law of cosines formula finds application in finding the missing side of a triangle when its two sides and the included angle is given i.e., it is used in the case of a SAS triangle.

How to Find the Missing Side or Angle of Triangle Using Law of Cosines?

Law of cosines can be used to find the missing side or angle of a triangle by applying any of the following formulas,

  • a2 = b2 + c2 - 2bc·cosA
  • b2 = c2 + a2 - 2ca·cosB
  • c2 = a2 + b2 - 2ab·cosC

Here, A, B, and C are the vertices of a triangle, and their opposite sides are represented using letters a, b, and c respectively.

Does the Law of Cosine Work in All Triangles?

Yes, the law of cosines can be applied to all the triangles. It stands true for both right and oblique triangles.

Who Invented the Law of Cosines?

The elements by Euclid contributed to the discovery of the law of cosines. Jamshīd al-Kāshī, a Persian mathematician, was the first to provide the first explicit statement of the law of cosines in the 15th century.

Law of Cosines - Formula, Proof, Definition | Cosine Rule (2024)

References

Top Articles
Latest Posts
Article information

Author: Tish Haag

Last Updated:

Views: 6530

Rating: 4.7 / 5 (67 voted)

Reviews: 82% of readers found this page helpful

Author information

Name: Tish Haag

Birthday: 1999-11-18

Address: 30256 Tara Expressway, Kutchburgh, VT 92892-0078

Phone: +4215847628708

Job: Internal Consulting Engineer

Hobby: Roller skating, Roller skating, Kayaking, Flying, Graffiti, Ghost hunting, scrapbook

Introduction: My name is Tish Haag, I am a excited, delightful, curious, beautiful, agreeable, enchanting, fancy person who loves writing and wants to share my knowledge and understanding with you.