Derive the cosine formula a^{2}=b^{2}+c^{2}-2bc\cos A
and the sine formula \frac{\sin A}{a}=\frac{\sin B}{b}=\frac{\sin C}{c}
using dot product and cross product, respectively.
Derive the cosine formula a^{2}=b^{2}+c^{2}-2bc\cos A
and the sine formula \frac{\sin A}{a}=\frac{\sin B}{b}=\frac{\sin C}{c}
using dot product and cross product, respectively.
Consider a triangle as shown in Figure. From the figure, we notice that
a + b + c = 0
that is,
b + c = -a
Hence,
a^{2}= a\cdot a=\left(b + c\right) \cdot \left(b+c\right)
=b\cdot b+c\cdot c+2b\cdot c
a^{2}=b^{2}+c^{2}-2bc\cos A
where (π – A) is the angle between b and c. The area of a triangle is half of the product of its height and base. Hence,
\left|\frac{1}{2}a\times b \right| =\left|\frac{1}{2} b\times c\right| =\left|\frac{1}{2} c\times a\right|
ab sinC = bc sinA = ca sinB
Dividing through by abc gives
\frac{\sin A}{a}=\frac{\sin B}{b}=\frac{\sin C}{c}