
$AP = a\cos ec\theta $
$BP = b\sec \theta $
$l = AP + BP$
$l = a\cos ec\theta + b\sec \theta $
$\frac{{dl}}{{d\theta }} = -a\cos ec\theta \cot \theta + b\sec \theta .\tan \theta $
$\frac{{{d^2}l}}{{d{\theta ^2}}} = a\cos e{c^2}\theta + a\cos ec\theta {\cot ^2}\theta + {b^2} - {\sec ^3}\theta + b\sec \theta .{\tan ^2}\theta $
For maximum/minimum
$\frac{{dl}}{{d\theta }} = 0$
$\frac{{dl}}{{d\theta }} = -a\cos ec\theta \cot \theta + b\sec \theta .\tan \theta $
$\frac{acos\theta}{sin^2\theta}=\frac{bsin\theta}{cos^2\theta}$
${\tan ^3}\theta = \frac{a}{b}$
$\tan \theta = {\left( {\frac{a}{b}} \right)^{1/3}}$
$\sin \theta = \frac{{{a^{1/3}}}}{{\sqrt {{a^{2/3}} + {b^{2/3}}} }},\cos \theta = \frac{{{b^{1/3}}}}{{\sqrt {{a^{2/3}} + {b^{2/3}}} }}$
$\frac{{{d^2}l}}{{d{\theta ^2}}} < 0$ for $\tan \theta = {\left( {\frac{a}{b}} \right)^{1/3}}$
l is minimum and minimum value of l is given by,
$l = a\cos ec\theta + b\sec \theta $
$=a\sqrt{1+cot^2\theta}+b\sqrt{1+tan^2\theta}$
$=a\sqrt{1+(\frac{b}{a})^{2/3}}+b\sqrt{1+(\frac{a}{b})^{2/3}}$
$=a^{2/3}\sqrt{a^{2/3}+b^{2/3}}+b^{2/3}\sqrt{b^{2/3}+a^{2/3}}$
$l = {\left( {{a^{2/3}} + {b^{2/3}}} \right)^{3/2}}$












