
Place the right angle at the origin with the two legs along the axes, and let \(\displaystyle P\) be the given point on the hypotenuse, at distance \(\displaystyle a\) from one leg and \(\displaystyle b\) from the other. Let \(\displaystyle \theta\) be the acute angle the hypotenuse makes with the leg from which \(\displaystyle P\) is at distance \(\displaystyle a\), so \(\displaystyle \theta\in\left(0,\dfrac{\pi}{2}\right)\).
\(\displaystyle P\) divides the hypotenuse into two pieces. In the right triangle formed by \(\displaystyle P\), its foot on the horizontal leg and the vertex \(\displaystyle A\), the side opposite \(\displaystyle \theta\) is \(\displaystyle a\), so that piece has length \(\displaystyle a/\sin\theta\). In the right triangle on the other side, the horizontal projection of the piece \(\displaystyle PB\) is \(\displaystyle b\) and it makes angle \(\displaystyle \theta\) with the horizontal, so that piece has length \(\displaystyle b/\cos\theta\). Hence the length of the hypotenuse is
\[L(\theta)=\frac{a}{\sin\theta}+\frac{b}{\cos\theta}=a\,\mathrm{cosec}\,\theta+b\sec\theta. \]
Differentiate:
\[L'(\theta)=-a\,\mathrm{cosec}\,\theta\cot\theta+b\sec\theta\tan\theta=-\frac{a\cos\theta}{\sin^{2}\theta}+\frac{b\sin\theta}{\cos^{2}\theta}. \]
Setting \(\displaystyle L'(\theta)=0\) and multiplying by \(\displaystyle \dfrac{\sin^{2}\theta\cos^{2}\theta}{1}\):
\[b\sin^{3}\theta=a\cos^{3}\theta\ \Rightarrow\ \tan^{3}\theta=\frac{a}{b}\ \Rightarrow\ \tan\theta=\left(\frac{a}{b}\right)^{1/3}. \]
This is the only stationary point in \(\displaystyle \left(0,\dfrac{\pi}{2}\right)\), and \(\displaystyle L(\theta)\to\infty\) as \(\displaystyle \theta\to 0^{+}\) and as \(\displaystyle \theta\to\dfrac{\pi}{2}^{-}\); also \(\displaystyle L'<0\) before it and \(\displaystyle L'>0\) after it (the factor \(\displaystyle b\sin^{3}\theta-a\cos^{3}\theta\) is increasing in \(\displaystyle \theta\)). So this value gives the minimum.
From \(\displaystyle \tan\theta=a^{1/3}/b^{1/3}\), the right triangle with legs \(\displaystyle a^{1/3}\) and \(\displaystyle b^{1/3}\) has hypotenuse \(\displaystyle \sqrt{a^{2/3}+b^{2/3}}\), so
\[\sin\theta=\frac{a^{1/3}}{\sqrt{a^{2/3}+b^{2/3}}},\qquad \cos\theta=\frac{b^{1/3}}{\sqrt{a^{2/3}+b^{2/3}}}. \]
Therefore
\[L=\frac{a\sqrt{a^{2/3}+b^{2/3}}}{a^{1/3}}+\frac{b\sqrt{a^{2/3}+b^{2/3}}}{b^{1/3}}=\sqrt{a^{2/3}+b^{2/3}}\left(a^{2/3}+b^{2/3}\right)=\left(a^{2/3}+b^{2/3}\right)^{3/2}. \]
Hence the minimum length of the hypotenuse is \(\displaystyle \left(a^{\frac{2}{3}}+b^{\frac{2}{3}}\right)^{\frac{3}{2}}\).