I am a bit confused on how this works. For instance if I wanted to look at an object moving in 2 dimensions only subject to gravity (and assuming that the potential is just mgy), I get that my Lagrangian is:
$$\frac12m(\dot x^2+\dot y^2)-mgy$$
I can easily solve the Euler-Lagrange equations, to see that $\ddot y=-g$ but is there a way I could do this with generalized forces. I feel that this is an awful example. I vaguely remember my professor using generalized forces to find friction force. Any help with understanding generalized forces would be appreciated.
The reason I want to know is that I am trying to model a curveball (baseball) and treating the lift and drag as generalized forces then using the E-L equations to solve for the motion.