Let [tex]c[/tex] be the length of the hypotenuse in the right triangle [tex]ABC[/tex], with [tex]m\angle C=90^\circ[/tex] for [tex]\angle C[/tex], the angle opposite the hypotenuse.
By the law of cosines,
[tex]c^2=a^2+b^2-2ab\cos C[/tex]
But [tex]\cos90^\circ=0[/tex], so we end up with [tex]c^2=a^2+b^2[/tex].