Let , and . Let be the midpoint on the hypotenuse , and and be points such that contains , with closer to and closer to . The midpoint will always be in the middle of line , unless is even or infinite, which it is not. Given such a triangle, we can express the altitude to the hypotenuse as:
Next, we shall denote line as , where is the median to the hypotenuse. This means that line , and as , we have:
We know that , and . This means that and . The length of is . Let and , such that (or ) equals . This means that , and .
As is in the middle of , we have . Applying the sine law on triangle , we get:
Simplifying:
Using the identity , and since , we substitute:
Thus:
Now, we know that:
Substituting this into the equation:
Factoring out :
Thus:
By performing similar steps with , we can use the addition formula for to find , where .