If we take it that the triangle with sides a, b, c is right-angled such that
and the inner shape with sides c is a square, then if we label the angle and side as shown in the attachment..
and the area of the required shape equals the rectangle area,
we only need calculate .
Using the larger triangle...
Hence, it's straightforward to calculate in terms of .