**Law of cosines** signifies the relation between the lengths of sides of a triangle with respect to the cosine of its angle. It is also called the cosine rule. If ABC is a triangle, then as per the statement of cosine law, we have:

a^{2} = b^{2} + c^{2} – 2bc cos α, where a,b, and c are the sides of triangle and α is the angle between sides b and c.

Similarly, if β and γ are the angles between sides ca and ab, respectively, then according to the law of cosine, we have:

b^{2} = a^{2} + c^{2} – 2ac cos β

c^{2} = b^{2} + a^{2} – 2ab cos γ

Fact: If any one of the angles, α, β or γ is equal to 90 degrees, then the above expression will justify the Pythagoras theorem, because cos 90 = 0. Hence, the above three equations can be expressed as:
a b c |

**Table of Contents:**

## Law of Cosines Definition

In Trigonometry, the law of Cosines, also known as Cosine Rule or Cosine Formula basically relates the length of the triangle to the cosines of one of its angles. It states that, if the length of two sides and the angle between them is known for a triangle, then we can determine the length of the third side. It is given by:

c^{2} = a^{2} + b^{2} – 2ab cosγ

Where a, b and c are the sides of a triangle and γ is the angle between a and b. See the figure below.

## Formulas

As per the cosines law formula, to find the length of sides of triangle say △ABC, we can write as;

- a
^{2}= b^{2}+ c^{2}– 2bc cos α - b
^{2}= a^{2}+ c^{2}– 2ac cos β - c
^{2}= b^{2}+ a^{2}– 2ba cos γ

And if we want to find the angles of △ABC, then the cosine rule is applied as;

- cos α = [b
^{2}+ c^{2}– a^{2}]/2bc - cos β = [a
^{2}+ c^{2}– b^{2}]/2ac - cos γ = [b
^{2}+ a^{2}– c^{2}]/2ab

Where a, b and c are the lengths of sides of a triangle.

### Solving SSS Congruency

In SSS congruence, we know the lengths of all the three sides of a triangle, and we need to find the measure of the unknown triangle. Therefore, using the law of cosines, we can find the missing angle.

First we need to find one angle using cosine law, say cos α = [b^{2} + c^{2} – a^{2}]/2bc.

Then we will find the second angle again using the same law, cos β = [a^{2} + c^{2} – b^{2}]/2ac

Now the third angle you can simply find using angle sum property of triangle. That means the sum of all the three angles of a triangle is equal to 180 degrees.

**Also Check: **Law of cosines calculator

## Proof

Now let us learn the **law of cosines proof** here;

In the right triangle BCD, by the definition of cosine function:

cos C = CD/a

or

CD=a cos C

Subtracting above equation from side b, we get

DA = b − acosC ……(1)

In the triangle BCD, according to Sine definition

sin C = BD/a

or

BD = a sinC ……(2)

In the triangle ADB, if we apply the Pythagorean Theorem, then

c^{2} = BD^{2} + DA^{2}

Substituting for BD and DA from equations (1) and (2)

c^{2} = (a sin C)^{2} + (b-acosC)^{2}

By Cross Multiplication we get:

c^{2} = a^{2} sin^{2}C + b^{2} – 2abcosC + a^{2} cos^{2}C

Rearranging the above equation:

c^{2} = a^{2} sin^{2}C + a^{2} cos^{2}C + b^{2} – 2ab cosC

Taking out a^{2 }as a common factor, we get;

c^{2} = a^{2}(sin^{2}C + cos^{2}C) + b^{2} – 2ab cosC

Now from the above equation, you know that,

sin^{2}θ + cos^{2}θ = 1

∴ c^{2} = a^{2} + b^{2} – 2ab cosC

Hence, the cosine law is proved.

**Also read:**

## Problem and Solution

Let us understand the concept by solving one of the cosines law problems.

**Problem: **A triangle ABC has sides a=10cm, b=7cm and c=5cm. Now, find its angle ‘x’.

**Solution: **

Consider the below triangle as triangle ABC, where,

a=10cm

b=7cm

c=5cm

By using cosines law,

a^{2} = b^{2} + c^{2} – 2bc cos(x)

Or

cos x = (b^{2} + c^{2} – a^{2})/2bc

Substituting the value of the sides of the triangle i.e a,b and c, we get

cos(x) = (7^{2} + 5^{2} – 10^{2})/(2 × 7 × 5)

cos(x)=(49 + 25 -100)/70

cos(x)= -0.37

It is important to solve more problems based on cosines law formula by changing the values of sides a, b & c and cross-check law of cosines calculator given above.

## Frequently Asked Questions – FAQs

### What is law of cosine?

### What does the cosine law states?

a

^{2}= b

^{2}+ c

^{2}– 2bc cos α

b

^{2}= a

^{2}+ c

^{2}– 2ac cos β

c

^{2}= b

^{2}+ a

^{2}– 2ba cos γ

where a,b, and c are the sides of the triangle.

### When should we use the law of cosines?

### Can we use cosine law for all the triangles?

### How to solve the law of cosines?

a

^{2}= b

^{2}+ c

^{2}-2bc cos α

Where a is the unknown side, b and c are the known sides of the triangle, and α is the angle between b and c.

### What is the formula to find the angle using cosine law?

cos α = [b

^{2}+ c

^{2}– a

^{2}]/2bc

cos β = [a

^{2}+ c

^{2}– b

^{2}]/2ac

cos γ = [b

^{2}+ a

^{2}– c

^{2}]/2ab

## Comments