Trigonometry/Law of Cosines

From testwiki
Jump to navigation Jump to search

Law of Cosines

The Pythagorean theorem is a special case of the more general theorem relating the lengths of sides in any triangle, the law of cosines:[1]

a2+b22abcos(θ)=c2

where θ is the angle between sides a and b .

Does the formula make sense?

This formula had better agree with the Pythagorean Theorem when θ=90 .

So try it...

When θ=90 , cos(θ)=cos(90)=0

The 2abcos(θ)=0 and the formula reduces to the usual Pythagorean theorem.

Permutations

For any triangle with angles A,B,C and corresponding opposite side lengths a,b,c , the Law of Cosines states that

a2=b2+c22bccos(A)
b2=a2+c22accos(B)
c2=a2+b22abcos(C)

Proof

Dropping a perpendicular OC from vertex C to intersect AB (or AB extended) at O splits this triangle into two right-angled triangles AOC and BOC , with altitude h from side c .

First we will find the lengths of the other two sides of triangle AOC in terms of known quantities, using triangle BOC .

h=asin(B)

Side c is split into two segments, with total length c .

OB has length BCcos(B)=acos(B)
AO=ABOB has length cacos(B)

Now we can use the Pythagorean Theorem to find b , since b2=AO2+h2 .

b2 =(cacos(B))2+a2sin2(B)
=c22accos(B)+a2cos2(B)+a2sin2(B)
=a2+c22accos(B)

The corresponding expressions for a and c can be proved similarly.

The formula can be rearranged:

cos(C)=a2+b2c22ab

and similarly for cos(A) and cos(B) .

Applications

This formula can be used to find the third side of a triangle if the other two sides and the angle between them are known. The rearranged formula can be used to find the angles of a triangle if all three sides are known. See Solving Triangles Given SAS.

Notes

Template:Trig/NAV Template:BookCat