Cosine Rule (original) (raw)

Last Updated : 23 Jul, 2025

**Cosine Rule commonly referred to as the Law of Cosines in Trigonometry establishes a mathematical connection involving all three sides of a triangle and one of its angles. Cosine Rule is most useful for solving the unknown information of a triangle. For example, when all three sides of a triangle are known, the Cosine Rule allows the determining of any angle measurement. Similarly, if two sides and the included angle between them are known, this rule facilitates the calculation of the third side length.

The Cosine Rule is a relationship between the lengths of a triangle's sides and the cosine of one of its angles, allowing us to calculate distances and angles. When computing the third side of a triangle if two sides and their included angle are given, and when computing the angles of a triangle if all three sides are known, in that case, the Cosine Rule plays a valuable role.

In this article, we will discuss the introduction, definition, properties, formula of the Cosine Rule, and its meaning. We will also understand the proof of the Cosine Rule. We will also solve various examples and provide practice questions based on Cosine Rule for a better understanding of the concept of this article.

Cosine-rule

Table of Content

What is the Cosine Rule?

**Cosine Rule, also known as the Law of Cosines, establishes a mathematical relationship between the lengths of a triangle's sides and the cosine of one of its angles. This formula is used as an instrumental tool in calculating side lengths or angle measures within a triangle.

Cosine Rule can be applied when either all three sides of the triangle are known or when information about two sides and the included angle is provided. The Cosine Rule allows us to calculate the length of a specific side of a triangle when we have information about the other two sides and the angle of the triangle.

Definition of Cosine Rule

The Cosine Rule is defined as “the square of one side of a triangle, equals the sum of the squares of the other two sides, subtracted by twice the product of those two sides and the cosine of the angle between them.”

This fundamental formula helps to establish a connection between the sides and angles within a triangle. It is useful to find the unknown information in any triangle. For example, if the lengths of two sides of a triangle and the included angle are known, this rule helps the calculation of the third side of the triangle.

Cosine Rule Formula

**Cosines Rule Formula is applicable to determine the unknown side of a triangle when the lengths of two sides and the angle between them are given. This scenario is used in the case of a SAS triangle, where Side-Angle-Side information is available. If we denote the angle of a triangle as α, β, and γ, then their respective opposite sides are denoted by the lowercase letters a, b, and c. The Cosines Rule formula is used to:

There are three variations of the cosine law, and we choose one of them to use in problem-solving depending on the given data.

**a 2 = b 2 + c 2 – 2bc cos α

**b 2 = a 2 + c 2 – 2ac cos β

**c 2 = a 2 + b 2 – 2ab cos γ

Cosine Rule of Triangle

Let us consider a triangle ABC with side lengths represented by a, b, and c.

Cosine-Rule-3

The Cosine Rule formula can be expressed as follows:

**a 2 = b 2 + c 2 – 2bc cos A

**b 2 = a 2 **+ c 2 – 2ac cos B

**c 2 = a 2 + b 2 – 2ab cos C

Where,

Derivation of the Cosine Rule

Cosine Rule can be derived

Let's discuss these in detail as follows:

Derivation Using Geometry

Cosine Rule can be demonstrated through various methods. In this case, we'll opt for a trigonometric approach to prove it. Stating the law of cosines, it applies to a triangle ABC, where the sides are denoted as a, b, and c.

**c 2 = a 2 + b 2 – 2ab cosγ

Now let us prove this law.

Let us suppose a triangle ABC. From the vertex of angle B, we draw a perpendicular touching the side AC at point D. “h” is the height of the triangle.

Cosine-Rule-Proof

Now in triangle BCD, as per the trigonometry ratio, we know;

cos γ = CD/a (cos θ = Base/Hypotenuse)

⇒ CD = a cos γ ………… (1)

Put equation (1) from side b on both the sides, we get;

b – CD = b – a cos γ

⇒ DA = b – a cos γ

Again, in triangle BCD, as per the trigonometry ratio,

sin γ = BD/a (sin θ = Perpendicular/Hypotenuse)

⇒ BD = a sin γ ……….(2)

Now using Pythagoras theorem in triangle ADB, we get;

c2 = BD2 + DA2 (Hypotenuse2 = Perpendicular2 + Base2 )

Put the value of DA and BD from equation 1 and 2, we get;

c2 = (a sin γ )2 + (b – a cos γ)2

⇒ c2 = a2 sin2 γ + b2 – 2ab cos γ + a2 cos2 γ

⇒ c2 = a2 (sin2 γ + cos2γ) + b2 – 2ab cos γ

By trigonometric identities, we know;

sin2θ+ cos2θ = 1

**⇒ c 2 = a 2 + b 2 – 2ab cos γ

Hence, proved.

Derivation Using Algebra

Let us consider a triangle with sides a, b, and c and their respective angles by α, β, and γ.

We know, from the law of sines,

**a/sin α = b/sin β = c/sin γ

The sum of angles inside a triangle is equal to 180 degrees

Therefore, α+β+γ = π

Using the third equation system, we get

c/sin γ = b/sin (α + γ) ----------- (1)

⇒ c/sinγ = a/sin α

Using angle sum and difference identities, we get,

sin (α + γ) = sin α cos γ + sin γ cosα

⇒ c (sin α cos γ + sin γ cos α ) = b sin γ

⇒ c sin α = a sin γ

Dividing the whole equation by cos γ,

c (sin α + tan γ cos α) = b tan γ

⇒ c sin α /cos γ = a tan γ

⇒ c2sin2 α / cos2 γ = tan γ

From equation 1, we get,

c sin α / b – c cos α = tan γ

⇒ 1 + tan2 γ = 1/cos2 γ

⇒ c2 sin2 α (1+ (c2 sin2α / (b – c cos α )2)) = a2 (c2 sin2α / (b – c cos α )2)

Multiplying the equation by (b – c cos α )2 and arranging it,

a2 = b2 + c2 – 2bc cos α.

Hence, using algebraic manipulation cosine rule is proved.

Properties of Cosine Rule

The properties of cosine rule are listed below

Where to use Cosine Rule?

The Cosine Rule is useful for finding:

Examples of the Cosine Rule

We can use cosine rule for:

Let's discuss the method for finding sides and angles in detail as follows:

Finding Missing Length Using the Cosine Rule

Cosine Rule can be used to calculate the unknown parameters of a triangle when all known elements are given. Let us understand the process of finding out the missing side or angle of a triangle using the Cosine Rule.

**Step 1: Note down the given parameters like side lengths and measure of angles for the triangle and identify the element to be calculated.

**Step 2: Apply the cosine rule formulas,

where, α, β, and γ are the angle of a triangle, and their opposite sides are represented as a, b, and c respectively.

**Step 3: Represent the result with suitable units.

Cosine Rule To Find Angles

Cosine Rule can be used to find unknown angles in a Triangle using the formula given below:

Example 4 in Solved Examples deals with Cosine Rule to Find Angles

Sine and Cosine Rule

Sine Rule and Cosine Rule are important rules in Trigonometry to establish the relation between angles and sides of a triangle. A detailed comparioson between Sin Rule and Cosine Rule is discussed in the table below:

Sine Rule Cosine Rule
Sine Rule states that "the ratio of side to the sine of the angle opposite to it always remains constant" Cosine Rule states that “the square of one side of a triangle, equals the sum of the squares of the other two sides, subtracted by twice the product of those two sides and the cosine of the angle between them.”
**Sine Rule Formula: a/Sin A = b/Sin B = c/Sin C **Cosine Rule Formula: a2 = b2 + c2 – 2bc cos αb2 = a2 + c2 – 2ac cos βc2 = a2 + b2 – 2ab cos γ

**Also, Check

Solved Examples on Cosine Rule

**Example 1. Determine the angle of triangle ABC if AB = 42cm, BC = 37cm and AC = 26cm?

**Solution:

As per the question we have following given data:

a = 42cm b = 37cm and c = 26cm

Formula of Cosine Rule: a2 = b2 + c2 − 2bc cos α

So, 422 = 372 + 262 − 2(37)(26) cos α

cos α = 372 + 262 − 422 /(2)(37)(26) 985

After solving the cos α we get the value of α as

cos α = 1071/2184

⇒ cos α = 0.4904

Thus, α = cos −1 0.4904 = 60.63°

**Example 2. Two sides of a triangle measure 70 in and 50 in with the angle between them measuring 49º. Find the missing side.

**Solution:

Put the value 72 inch for b, 50inch for c and 49º for α.

Using the Cosine Rule formula,

a2 = b2 + c2 - 2bccos α

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

⇒ a2 = 4900 + 2500 - (7200)(0.656)

⇒ a2 = 4900+ 2500 - 4723.2

⇒ a2 = 2676.8

⇒ a ≈ 51.73

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

**Example 3. How long is side "c", when we know the angle C = 37°, and sides a = 9 and b = 11.

**Solution:

The Cosine Rule is c2 = a2 + b2 − 2ab cos(C)

Put the given values we know: c2 = 92 + 112 − 2 × 9 × 11 × cos(37º)

c2 = 81 + 121 − 198 × 0.798

⇒ c2 = 43.99

⇒ c = √43.99 = 6.63.

**Example 4: Find Angle "C" using the Cosines Rule (angle version). If in this triangle we know the three sides: a = 8, b = 6 and c = 7.

**Solution:

Use The Cosines Rule to find angle C :

cos C= (a2 + b2 − c2)/2ab

⇒ cos C = (82 + 62 − 72)/2×8×6

⇒ cos C = (64 + 36 − 49)/96

⇒ cos C = 51/96

⇒ cos C = 0.53125

⇒ C= cos−1(0.53125)

⇒ cos C = 57.9°

Practice Question on Cosine Rule

**Q1. Determine the angle of triangle ABC if AB = 32cm, BC = 30cm and AC = 24cm.

**Q2. Two sides of a triangle measure 62 in and 40 in with the angle between them measuring 50º. Find the missing side.

**Q3. How long is side "c", when we know the angle C = 47º, and sides a = 11 and b = 15.

**Q4. Find Angle "C" using the Cosines Rule (angle version). If in this triangle we know the three sides: a = 9, b = 6 and c = 8.

**Q5. Express sin 12θ + sin 4θ as the product of sines and cosines.