The figure shown here shows a rectangle inscribed in an isosceles right triangle whose hypotenuse is 2 units long. Image attached at bottom.
(a) Express the y-coordinate of P in terms of x.
(b) Express the area of the rectangle in terms of x.
Thank you in advance for any assistance!