In trigonometry, the cosine rule states that the square of the length of any side of a given triangle is the sum of the squares of the lengths of the other sides times the product of the lengths of the other two sides. It states that it is equal to the the angle contained between them. The law of cosines is also called the law of cosines or the cosine formula.
Suppose, a, b and c are lengths of the side of a triangle ABC, then where ∠x, is the angle between the sides of the triangle.
In triangle ABC , angle ACB = 120°, AC = y cm and BC = (y + 2) cm.