Cosine Rule
The Cosine Rule says that the square of the length of any side of a given triangle is equal to the sum of the squares of the length of the other sides minus twice the product of the other two sides multiplied by the cosine of angle included between them. Suppose, a, b and c are the lengths of the side of a triangle ABC, then;
a2 = b2 + c2 – 2bc cos∠x
b2 = a2 + c2 – 2ac cos∠y
c2 = a2 + b2 – 2ab cos ∠z
where ∠x, ∠y and ∠z are the angles between the sides of the triangle.
In Trigonometry, the law of cosines is also known as Cosine Formula or Cosine Rule. These rules relate with the lengths of the sides of a triangle with any of its angle being a cosine angle. With the help of this rule we can calculate the length of the side of a triangle or can find the measure of the angle between the sides.
Laws of Cosine
As per the diagram, Cosine rules to find the length of the sides a, b & c of the triangle ABC is given by;
- a2 = b2 + c2 – 2bc cos x
- b2 = a2 + c2 – 2ac cos y
- c2 = a2 + b2 – 2ab cos z
Similarly, to find the angles x, y and z, these formulae can be re-written as :
- cos x = (b2 + c2 -a2)/2bc
- cos y = (a2 + c2 -b2)/2ac
- cos z = (a2 + b2 – c2)/2ab
Also, read:
- Cosine Function
- Inverse Cosine
Cosine Rule Proof
The law of cosine states that for any given triangle say ABC, with sides a, b and c, we have;
c2 = a2 + b2 – 2ab cos C
Now let us proof this law.
Suppose a triangle ABC is given to us here. From the vertex of angle B we draw a perpendicular touching the side AC at point D. This is the height of the triangle denoted by h.
Now in triangle BCD, as per the trigonometry ratio, we know;
cos C = CD/a [cos θ = Base/Hypotenuse]
or we can write;
CD = a cos C ………… (1)
Subtracting equation 1 from side b on both the sides, we get;
b – CD = b – a cos C
or
DA = b – a cos C
Again, in triangle BCD, as per the trigonometry ratio, we know;
sin C = BD/a [sin θ = Perpendicular/Hypotenuse]
or we can write;
BD = a sin C ……….(2)
Now using Pythagoras theorem in triangle ADB, we get;
c2 = BD2 + DA2 [Hypotenuse2 = Perpendicular2 + Base2 ]
Substituting the value of DA and BD from equation 1 and 2, we get;
c2 = (a sin C)2 + (b – a cos C)2
c2 = a2 sin2C + b2 – 2ab cos C + a2 cos2 C
c2 = a2 (sin2C + cos2 C) + b2 – 2ab cos C
By trigonometric identities, we know;
sin2θ+ cos2θ = 1
Therefore,
c2 = a2 + b2 – 2ab cos C
Hence, proved.
Example
Find the length of x in the following figure.
Solution: By applying the Cosine rule, we get:
x2 = 222 +282 – 2 x 22 x 28 cos 97
x2 = 1418.143
x = √ 1418.143