I have been investigating the brachistochrone problem with friction and in my derivations, I would like help solving the Euler-Lagrange equation below
$\frac{d}{dx}\frac{\partial F}{\partial y'}=\frac{\partial F}{\partial y}$ where $F=\sqrt{\frac{1+y'^2}{2g(y-\mu x)}}.$
I can get up to
$$\frac{d}{dx}\frac{y'}{\sqrt{2g(y-\mu x)(1+y'^2)}}=-\sqrt{\frac{(1+y'^2)}{2g}}\frac{1}{2(y-\mu x)^\frac32}.$$
But I am unsure how the equation above reduces into $$(1+y'^2)(1+\mu y')+2(y-\mu x)y''=0\tag{29},$$ as seen in equation (29) of this Wolfram page.
I am quite new to calculus and would appreciate a step by step solution.
$\frac{d}{dx}.\frac{y'}{\sqrt{2g(y-ux)(1+y'^2)}}=\frac{y''\sqrt{2g(y-ux)(1+y'^2)}-y'(\sqrt{2g}(\frac{(y'-u)(\sqrt{1+y'^2}}{2\sqrt{y-ux}}+\frac{y'y''(\sqrt{y-ux})}{\sqrt{1+y'^2}}))}{2g(y-ux)(1+y'^2)}$
So:
$(\frac{y''\sqrt{2g(y-ux)(1+y'^2)}-y'(\sqrt{2g}\frac{(y'-u)(\sqrt{1+y'^2}}{2\sqrt{y-ux}}+\frac{y'y''(\sqrt{y-ux})}{\sqrt{1+y'^2}})}{2g(y-ux)(1+y'^2)})(2(y-ux)\sqrt{(y-ux)})= -\sqrt{\frac{(1+y'^2)}{2g}} $
$y''(\sqrt{2g}\sqrt{1+y'^2}(y-ux))-y'(\sqrt{2g}((y'-u)(\sqrt{1+y'^2})+\frac{y'y''(y-ux)}{\sqrt{1+y'^2}}))= -\sqrt{\frac{(1+y'^2)}{2g}}(1+y'^2)(2g) $
$\rightarrow 2y''(y-ux)-y'[(y'-u)+\frac{2y'y''(y-ux)}{1+y'^2}]=-(1+y'^2) $
$2y''(y-ux) -y'^2+y'u-\frac{2y'^2y''(y-ux)}{1+y'^2}+(1+y'^2)=0$
$2y''(y-ux)[1-\frac{y'^2}{1+y'^2}]+1+y'u=0$
$2y''(y-ux)[\frac{1}{1+y'^2}]+(1+y'u)=0$
$2y''(y-ux)+(1+y'^2)(1+y'u)=0$