from
https://mathworld.wolfram.com/BrachistochroneProblem.html
I found the EL equation (29) and the parametric solution equations $~(32)~,(33)~$.
Eq. (29) \begin{align*} &{~(1+y'^2)\,(1+\mu\,y')+2(y-\mu\,x)\,y''=0}\tag 1 \end{align*} Eq. (32),(33) \begin{align*} &{x=k \left( \theta-\sin \left( \theta \right) +\mu\, \left( 1-\cos \left( \theta \right) \right) \right)}\\ &{y={k} \left( 1-\cos \left( \theta \right) +\mu\, \left( \theta+\sin \left( \theta \right) \right) \right)} \end{align*} with:
$$\frac{dy}{dx}=\frac{\frac{dy}{d\theta}}{\frac{dx}{d\theta}}$$
and
$$\frac{d^2y}{dx^2}=\frac{d}{dx}\left(\frac{dy}{dx}\right)= \frac{\frac{d}{d\theta}\left(\frac{dy}{dx}\right)}{\frac{dx}{d\theta}}$$
in Eq. (1) , the result is not equal zero , why ??
for solution of Brachistochrone Problem with out friction $~\mu=0~$ I obtain that Eq (1) is qual zero.
Edit
those equations are the solutions of equation (1)
$$~x(\theta)=k\,(~\theta+\theta_0+\sin(\theta+\theta_0)-\mu\,\cos(\theta+\theta_0))\\ ~y(\theta)=k\,[1+\cos(\theta+\theta_0)+\mu^2+\mu(\theta+\theta_0+\sin(\theta+\theta_0))]$$
where $~\theta_0~$ is a constant to adapt the initial condition.
for example $~\mu=0~,\theta_0=-\pi~$ you obtain
so which solutions are the correct one ??
