The question is. Determine the solutions of the Euler-Lagrange equation when
$$f(x,y,y')=y$$
Which is fairly straightforward. At this point i would note the Beltrami equation is a simplification of the EL eqn.
Via EL $$\frac{\partial f}{\partial y}-\frac{d}{dx}[\frac{\partial f}{\partial y'}] = 1$$ This implies $1 = 0$ and so we have no solutions.
But via the Beltrami equation we have $$f-\frac{\partial f}{\partial y'}y'=y=0$$ which does have a solution (unless I'm being thick in which case please say so)
Any explanation would be great. (Side note i apologise for formatting. I'm using mobile app and mathjax doesn't always render on preview for me).
In physics terminology, OP's Lagrangian $f$ doesn't have a kinetic term, i.e. the Lagrangian (and the EL equation) are of zeroth order in derivatives. Hence the variational problem does not need boundary conditions (BCs), and in fact OP doesn't mention any BCs.
The Lagrangian is just (minus) a linear potential, which doesn't have a stationary point. In fact, the system tends to $y\to-\infty$ trying to maximize this potential.
The Beltrami identity produces constant energy solutions, but they are not stable.