Solveeit Logo

Question

Question: How do you use the law of cosines to find the area of a triangle?...

How do you use the law of cosines to find the area of a triangle?

Explanation

Solution

Here, we will first draw the diagram of a triangle and apply the law of cosine on any one of the angles. Then we will use the sine and cosine ratios in the right-angled triangle to find the height of the triangle. Then we will apply the Pythagoras theorem to find the base of the triangle. We will then substitute these values in the formula of the area of the triangle to get the required area.

Formula Used:
We will use the following formulas:
1. The law of cosines states that c2=a2+b22abcosC{c^2} = {a^2} + {b^2} - 2ab\cos C, where aa, bb, and cc are the lengths of the sides of the triangle, and CC is the angle opposite to the side of length cc.
2. sinx=PH\sin x = \dfrac{P}{H}
3. cosx=BH\cos x = \dfrac{B}{H}
4. The area of a triangle is given by the formula Δ=12absinC\Delta = \dfrac{1}{2}ab\sin C, where aa is the length of the side opposite to angle AA, and bb is the length of the side opposite to angle BB.

Complete step-by-step solution:
We will use the law of cosines to find the area of a triangle.
First, we will draw a triangle ABC with height AD.

The law of cosines states that c2=a2+b22abcosC{c^2} = {a^2} + {b^2} - 2ab\cos C.
Rewriting the equation, we get
2abcosC=a2+b2c2\Rightarrow 2ab\cos C = {a^2} + {b^2} - {c^2}
Dividing both sides of the equation by 2ab2ab, we get
cosC=a2+b2c22ab\Rightarrow \cos C = \dfrac{{{a^2} + {b^2} - {c^2}}}{{2ab}}
The sine of an angle of a right-angled triangle is the ratio of its perpendicular and hypotenuse.
This can be written as sinx=PH\sin x = \dfrac{P}{H}.
Therefore, in triangle ADC, we get
sinC=ADAC\sin C = \dfrac{{AD}}{{AC}}
Substituting bb for AC in the equation, we get
sinC=ADb\Rightarrow \sin C = \dfrac{{AD}}{b}
Thus, we get the height of the triangle as
AD=bsinC\Rightarrow AD = b\sin C
The cosine of an angle of a right angled triangle is the ratio of its base and hypotenuse.
This can be written as cosx=BH\cos x = \dfrac{B}{H}.
Therefore, in triangle ADC, we get
cosC=DCAC\cos C = \dfrac{{DC}}{{AC}}
Substituting bb for AC in the equation, we get
cosC=DCb\Rightarrow \cos C = \dfrac{{DC}}{b}
Thus, we get the height of the triangle as
DC=bcosC\Rightarrow DC = b\cos C
Now, we will use the Pythagoras theorem in triangle ADC.
Using the Pythagoras theorem in triangle ADC, we get
AC2=AD2+CD2A{C^2} = A{D^2} + C{D^2}
Substituting AC=bAC = b, AD=bsinCAD = b\sin C, and DC=bcosCDC = b\cos C in the equation, we get
b2=(bsinC)2+(bcosC)2\Rightarrow {b^2} = {\left( {b\sin C} \right)^2} + {\left( {b\cos C} \right)^2}
Rewriting the equation, we get
(bsinC)2=b2(bcosC)2\Rightarrow {\left( {b\sin C} \right)^2} = {b^2} - {\left( {b\cos C} \right)^2}
Substituting cosC=a2+b2c22ab\cos C = \dfrac{{{a^2} + {b^2} - {c^2}}}{{2ab}} in the equation, we get
(bsinC)2=b2[b(a2+b2c22ab)]2\Rightarrow {\left( {b\sin C} \right)^2} = {b^2} - {\left[ {b\left( {\dfrac{{{a^2} + {b^2} - {c^2}}}{{2ab}}} \right)} \right]^2}
Simplifying the equation, we get
(bsinC)2=b2(a2+b2c22a)2 bsinC=b2(a2+b2c22a)2\begin{array}{l} \Rightarrow {\left( {b\sin C} \right)^2} = {b^2} - {\left( {\dfrac{{{a^2} + {b^2} - {c^2}}}{{2a}}} \right)^2}\\\ \Rightarrow b\sin C = \sqrt {{b^2} - {{\left( {\dfrac{{{a^2} + {b^2} - {c^2}}}{{2a}}} \right)}^2}} \end{array}
The area of a triangle can be calculated using two sides and the angle between them, using the formula Δ=12absinC\Delta = \dfrac{1}{2}ab\sin C.
Substituting bsinC=b2(a2+b2c22a)2b\sin C = \sqrt {{b^2} - {{\left( {\dfrac{{{a^2} + {b^2} - {c^2}}}{{2a}}} \right)}^2}} in the formula for area of triangle, we get
Δ=12a×b2(a2+b2c22a)2\Delta = \dfrac{1}{2}a \times \sqrt {{b^2} - {{\left( {\dfrac{{{a^2} + {b^2} - {c^2}}}{{2a}}} \right)}^2}}
Simplifying the equation, we get
Δ=ab2(a2+b2c22a)22\Rightarrow \Delta = \dfrac{{a\sqrt {{b^2} - {{\left( {\dfrac{{{a^2} + {b^2} - {c^2}}}{{2a}}} \right)}^2}} }}{2}

Therefore, the area of the triangle using law of cosines can be found using the formula ab2(a2+b2c22a)22\dfrac{{a\sqrt {{b^2} - {{\left( {\dfrac{{{a^2} + {b^2} - {c^2}}}{{2a}}} \right)}^2}} }}{2}.

Note:
We used Pythagoras’s theorem in the triangle ABC. The Pythagoras’s theorem states that the square of the hypotenuse of a right-angled triangle is equal to the sum of squares of the other two sides, that is Hypotenuse2=Base2+Perpendicular2{\rm{Hypotenus}}{{\rm{e}}^2} = {\rm{Bas}}{{\rm{e}}^2} + {\rm{Perpendicula}}{{\rm{r}}^2}. The hypotenuse of a right-angled triangle is its longest side.
We can also use the law of cosines with Heron's formula to find the area of a triangle. The law of cosines is used when the lengths of two sides and the angle between them is given. Using the law of cosines, the length of the third side can be calculated. Using the lengths of the three sides, we can apply Heron’s formula and obtain the area of the triangle.