An orange rectangle and a black square. What’s the shaded area?
In the above diagram, triangles and are similar since they are right-angled triangles and angles and add together to give . Therefore the ratio of lengths and are equal. Since is twice , is therefore twice , and hence is of length . The shaded area is therefore .
The shaded rectangle can be tilted by varying amounts. Drawing it vertically, so that points and coincide, means that the outer square has side length and the height of the rectangle is the same as the side length.