 Many proofs deal with the cases of obtuse and acute angles separately.Euclid proved this theorem by applying the Pythagorean theorem to each of the two right triangles in the figure shown ( and ).Using to denote the line segment and for the height , triangle gives us

and triangle gives

Expanding the first equation gives

Substituting the second equation into this, the following can be obtained