The law of cosines
The law of cosines
In a triangle, the square of a side is the sum of the squares of the other two sides, less twice their product times the cosine of the angle between them:
– the angle between and , opposite . When , , and this is Pythagoras’ theorem: the law of cosines extends it to every triangle.
The proof below places the triangle on axes, at the origin and on the -axis, and works out by the distance formula.
- .
- is at distance from the origin, at the angle from the -axis: the point of the unit circle, enlarged times – .
- .
- , so .
The definition on the unit circle holds for every angle, so the proof holds when is obtuse too.
When all three sides are known, isolate :
The sign of the numerator fixes the kind of angle opposite :
- – , the angle is acute;
- – the angle is right;
- – , the angle is obtuse.
Every cosine between and has one angle only between and , so here – unlike the law of sines – there are no two possibilities.
When the known angle is not between the two known sides, the missing side is one of the sides at the angle, and the law of cosines gives a quadratic equation in it.
The example below has, in triangle : , , , and finds .
- is opposite : ;
- , so or ;
- a length is positive: .
An equation with two positive solutions means two different triangles with the same data.
Work out the third side .
, , .
/ – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – check and a new line · * – times · ^ – power, ↓ – end of the power
/ – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – a new line · * – times · ^ – power, ↓ – end of the power
, , .
/ – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – check and a new line · * – times · ^ – power, ↓ – end of the power
/ – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – a new line · * – times · ^ – power, ↓ – end of the power
The sides of a triangle are , and .
Work out the angle opposite the side , in degrees.
/ – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – check and a new line · * – times · ^ – power, ↓ – end of the power
/ – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – a new line · * – times · ^ – power, ↓ – end of the power
The sides of a triangle are , and .
Without working out an angle: is the triangle acute, right-angled or obtuse? Explain.
Work out the largest angle of the triangle. Round to two decimal places.
/ – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – check and a new line · * – times · ^ – power, ↓ – end of the power
/ – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – a new line · * – times · ^ – power, ↓ – end of the power
In triangle : , , and .
. Solve the equation the law of cosines gives.
The sides of a parallelogram are and , and the angle between them is .
Work out the diagonals, as exact values.
/ – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – check and a new line · * – times · ^ – power, ↓ – end of the power
/ – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – a new line · * – times · ^ – power, ↓ – end of the power
/ – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – check and a new line · * – times · ^ – power, ↓ – end of the power
/ – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – a new line · * – times · ^ – power, ↓ – end of the power
/ – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – check and a new line · * – times · ^ – power, ↓ – end of the power
/ – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – a new line · * – times · ^ – power, ↓ – end of the power