Sitting Pretty

A circle of radius r touches two sides of a right angled triangle, sides x and y, and has its centre on the hypotenuse. Can you prove the formula linking x, y and r?
Exploring and noticing Working systematically Conjecturing and generalising Visualising and representing Reasoning, convincing and proving
Being curious Being resourceful Being resilient Being collaborative

Problem

Sitting Pretty printable sheet

 

A circle 'sits' on a right-angled triangle, touches two sides of the triangle and has its centre on the hypotenuse of the triangle. The circle has radius $r$ and the triangle has sides of length $x$ and $y$.

Image
Sitting Pretty

Show that $\dfrac{1}{r} = \dfrac{1}{x} + \dfrac{1}{y}$.