<?xml version="1.0" encoding="UTF-8"?>

<record version="2" id="713">
 <title>derivation of cosines law</title>
 <name>DerivationOfCosinesLaw</name>
 <created>2001-11-08 07:23:43</created>
 <modified>2002-03-09 00:49:27</modified>
 <type>Proof</type>
<parent id="27">cosines law</parent>
 <selfproof></selfproof>
 <creator id="3" name="drini"/>
 <author id="58" name="fiziko"/>
 <classification>
	<category scheme="msc" code="51-00"/>
 </classification>
 <related>
	<object name="CosinesLaw"/>
	<object name="ProofOfCosinesLaw"/>
 </related>
 <preamble>\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{graphicx}
\usepackage{xypic}
</preamble>
 <content>The idea is to prove the cosines law:
\[
a^2 = b^2 + c^2 - 2bc\cos\theta
\]
where the variables are defined by the triangle:
\[
\begin{xy}
,(0,0)
;(40,0)**@{-}
;(60,30)**@{-}
;(0,0)**@{-}
,(20,-3)*{c}
,(7,2)*{\theta}
,(50,12)*{a}
,(30,17)*{b}
\end{xy}
\]

Let's add a couple of lines and two variables, to get
\[
\begin{xy}
,(0,0)
;(40,0)**@{-}
;(60,30)**@{-}
;(0,0)**@{-}
,(20,-3)*{c}
,(7,2)*{\theta}
,(50,12)*{a}
,(30,17)*{b}
,(40,0)
;(60,0)**@{--}
;(60,30)**@{--}
,(50,-3)*{x}
,(63,15)*{y}
\end{xy}
\]

This is all we need.  We can use Pythagoras' theorem to show that
\[
a^2 = x^2 + y^2
\]
and
\[
b^2 = y^2 + \left(c+x\right)^2
\]

So, combining these two we get
\begin{eqnarray*}
a^2 &amp; = &amp; x^2 + b^2 - \left(c+x\right)^2\\
a^2 &amp; = &amp; x^2 + b^2 - c^2 - 2cx - x^2\\
a^2 &amp; = &amp; b^2 - c^2 - 2cx
\end{eqnarray*}

So, all we need now is an expression for $x$.  Well, we can use the
definition of the cosine function to show that
\begin{eqnarray*}
c + x &amp; = &amp; b \cos\theta\\
x &amp; = &amp; b\cos\theta - c
\end{eqnarray*}

With this result in hand, we find that
\begin{eqnarray}
a^2 &amp; = &amp; b^2 - c^2 - 2cx\nonumber\\
a^2 &amp; = &amp; b^2 - c^2 - 2c\left( b\cos\theta - c\right)\nonumber\\
a^2 &amp; = &amp; b^2 - c^2 -2bc\cos\theta + 2c^2\nonumber\\
a^2 &amp; = &amp; b^2 + c^2 - 2bc\cos\theta
\end{eqnarray}</content>
</record>
