The vertices of a plane quadrilateral are labelled , , and , in clockwise order. A point lies in the same plane and within the quadrilateral. The angles and are right angles, and and .
Use position vectors relative to to show that the midpoints of , , and are the vertices of a square.
Given that the lengths of and are fixed (and the conditions of the first paragraph still hold), find the value of angle for which the area of the square is greatest.