Trigonometry/Law of Cosines

From testwiki
Jump to navigation Jump to search

Consider this triangle:

It has three sides

  • A, length A, opposite angle a at vertex a
  • B, length B, opposite angle b at vertex b
  • C, length C, opposite angle c at vertex c

The perpendicular, oc, from line ab to vertex c has length h

The Law of Cosines states that:

A2=B2+C22BCcosa
B2=A2+C22ACcosb
C2=A2+B22ABcosc

Proof

The perpendicular, oc, divides this triangle into two right angled triangles, aco and bco.

First we will find the length of the other two sides of triangle aco in terms of known quantities, using triangle bco.

h=A sin b

Side C is split into two segments, total length C.

ob, length C cos b
ao, length C - A cos b

Now we can use Pythagoras to find B, since B2 = ao2 + h2

B2=(CAcosb)2+A2sin2b =C22ACcosb+A2cos2b+A2sin2b =A2+C22ACcosb

The corresponding expressions for A and C can be proved similarly.

Template:Trigonometry:Navigation