Using graphical methods, determine the dimensions of a right triangle that has the largest possible area, given that the perimeter cannot be larger than $P$. The final answer should be in terms of $P$.
I got the equation max $$\frac{1}2 xy$$ s.t. $$ x + y + \sqrt{ x ^2 + y^2} \leq P$$
Here is a triangle with constant perimeter (12 units):
Observe how the function of area changes.