Alexc475 said:
What is the main difference between Langrangian, Hamiltonian, and Netwonian Mechanics in physics, and what are the most important uses of them?
I'm currently a high school senior, with knowledge in calculus based physics, what would the prerequisites be in order for me to begin Langrangian and Hamiltonian Mechanics?
I have general knowledge in Single and Multi-variable Calculus, and I'm starting Ordinary Differential Equations.
I'm not sure we've given you a decent answer. Newtonian mechanics proceeds by identifying forces acting on masses and then applying F=dp/dt=ma and τ=dL/dt=Iα to find the accelerations of those masses. Lagrangian mechanics finds the equations of motions in terms of generalized coordinates and their time derivatives, by finding a functional called the Lagrangian L(q,\dot{q})=T-U, which is just the kinetic energy T minus the potential energy U written in terms of q and \dot{q}). The Lagrangian is then dropped into the Euler-Lagrange equation
\frac{d}{dt}\frac{\partial L}{\partial \dot{q}}-\frac{\partial L}{\partial q}=0
to find the equations of motion.
The Hamiltonian method is similar to the Lagrangian method, except that we write the dynamics in terms of a generalized coordinate and a momentum (instead of a velocity), using a functional called the Hamiltonian H(q,p)=T+U, and then we apply Hamilton's equations
\dot{p}=-\frac{\partial H}{\partial q}
\dot{q}=\frac{\partial H}{\partial p}
To see how these work, consider the simple case of a mass connected to a spring which provides a restoring force F = -k x that is proportional to the amount of spring stretch, "x".
In Newtonian mechanics we write
m \ddot{x}= -k x
In Lagrangian mechanics we write
L = \frac{1}{2} m \dot{x}^2 - \frac{1}{2}k x^2
and the Euler-Lagrange equation gives
\frac{d}{dt} m \dot{x} + k x = 0
which obviously gives the same result.
For the Hamiltonian, you have to write the kinetic energy in terms of the momentum p=m\dot{x}, that is, T=p^2/2 m. So
H = \frac{p^2}{2 m} + \frac{1}{2}k x^2
and Hamilton's first equation gives
\dot{p} = - k x
which again is the same equation of motion.
Once you get the idea of each of these methods, you can start to discover the advantages and disadvantages of each. One of the primary advantages of the Lagrangian and Hamiltonian methods, for example, is that they work for "generalized" coordinates, not just displacements in Cartesian coordinates. The coordinate
q can be an angle, for example, and \dot{q} the associated angular velocity. Or
q could be a volumetric displacement (by a piston, say) and \dot{q} a volumetric flow rate.
If you understand all the manipulations above, then you probably have enough math to get started. Note, however, that actually understanding where the Euler-Lagrange equations come from requires variational calculus, which is a bit beyond high-school calculus.
BBB