Let the hypotenuse of the right triangle be x, and the height be y.
Hence, its base is √x2−y2
Hence the area
=12×Base×Height
=12×√x2−y2×y
But it is given that,
x+y=a(say)
x=a−y
Such that,
Area
=12y√(p−y)2−y2
=12y√p2+y2−2py−y2
=12y√p2−2py
On squaring both side and we get,
(Area)2=14y2(p2−2py)
=14y2p2−12py3
For maximum and minimum
dydA=0
Here the area of the triangle is maximum when
x=2p3 and y=p3
cosθ=yx
=p32p3
=12
cosθ=12
cosθ=cosπ3
θ=π3