Problem:
Let be a square, and let be a line passing through the midpoint of segment that intersects segment . Given that the distances from and to are and , respectively, compute the area of .
Problem:
Let be a square, and let be a line passing through the midpoint of segment that intersects segment . Given that the distances from and to are and , respectively, compute the area of .
Solution:

Consider the line through parallel to , and drop perpendiculars from to and to . Note that because passes through the midpoint of segment , the distance from to is . Thus, the distances from to and from to are and , respectively. Let be the foot from to . Rotating the square from to sends the altitude from to to the segment along between and the foot from to ; hence . So the side length of the square is , which means the area of the square is .