Consider the
.
The sides are
,
and
.
Pythagorean Theorem :
.


From the
,
and
.

Substitute
and
in
.

Therefore, the law of cosines :
.
(b)
\Similarily solve
, and
by drawing the altitudes from and
and
.
(a) The law of cosines :
.
(b) Similarily solve
, and
by drawing the altitudes from and
and
.