The diagram shows a right-angled isosceles triangle $XYZ$ which circumscribes a square $PQRS$. What is the ratio of the area of square $PQRS$ to the area of the triangle $XYZ$?

This problem is taken from the UKMT Mathematical Challenges.

You can find more short problems, arranged by curriculum topic, in our short problems collection.