PeroK said:
You're still using shorthand notation to hide what is going on. I'm not sure how else to explain this to you, as we're just going round in circles. I believe that
@Stephen Tashi and I have a similar background (pure maths) and have a similar view of having to deconstruct ambiguous notation to see what is really going on. For example, as soon as I see something like:
##f=y(x)\sqrt{1+y'(x)^2}##
I smell a rat. Do you see why this notation is very ambiguous?
Let me try once more to explain the problem. As written, you have mixed up two different aspects of the maths behind Lagrange's method. As written, that function should be interpreted as:
##f(x) =y(x)\sqrt{1+y'(x)^2}##
Where ##y(x)## is some function of ##x## and ##f(x)## is a function of ##x## defined based on ##y(x)##. For example, if ##y(x) = \sin x##, then ##y'(x) = \cos x## and:
##f(x) = \sin(x) \sqrt{1+ \cos^2(x)}##
But, you are confusing that with the function ##f(x, y, y')## of three independent variables, defined by:
##f(x, y, y') =y\sqrt{1+y'^2}## (1)
Now, you might ask: how can ##y## and ##y'## be independent variables? Well, that is perhaps another question for another day! At this stage, ##x, y## and ##y'## are merely symbols representing independent variables with no relationship between them.
If we now consider a 1D curve/trajectory in ##x-y-y'## space defined by restricting ##y## to some function of ##x## (##y(x)##)and letting ##y'## be the derivative of this function, ##y'(x)##, then we can define another new function of ##x##, which I'll call ##g(x)## by:
##g(x) = f(x, y(x), y'(x)) =y(x)\sqrt{1+y'(x)^2}## (2)
And, this function ##g(x)## is the same as our original interpretation of ##f## above. You can see this by taking the same example where ##y(x) = \sin(x)##.
Finally, the difference between (1) and (2) must be understood and respected. Even if you omit the function ##g(x)## to clarify things, you must not confuse (1) and (2). You need to focus on this.