I am having trouble understanding the $ \dfrac{\partial L}{\partial y'} $ part in Euler-Lagrange Equation.
For example, if $ L = y^2(z) $, what is the symbolic expression for $ \displaystyle\frac{\partial (y^2(z))}{\partial (\frac{\partial y}{\partial z})} $?
That would simply be $0$ because $y'$ is regarded as a variable independent of $y$.