Let the hypothesis of the right triangle be x and the height be y
Hence its base is √x2−y2 by hypothesis theorem
Area=12×√x2−y2×y
x+y=p(say)
Substituting this in the area we get
Area=12×√(p−y)2−y2×y
=12y√p2+y2−2py−y2
=12y√p2−2py
Squaring on both sides we get
(Area)2=14y2(p2−2py)
=14p2y2−12py3
for maximum of minimum area
dydx=0
Hence area of is maximum when
x=2P3 and y=P3
cosθ=yx=p32p3
cosθ=12
θ=π3 or 600