AI writes T, V, coords, and initial conditions. All physics (Euler-Lagrange, Hamiltonian, conservation laws, integration) is computed by our engine.
Velocities: dtheta, dr, dx (prefix d for time derivative)
Powers: x^2, dtheta^2
Trig: sin(theta), cos(phi)
Multiplication: Use * explicitly: m*g*l not mgl
Parameters: m=1, g=9.8, l=1, k=5
Initial conditions: theta(0)=0.3, dtheta(0)=0
T = Kinetic energy
V = Potential energy
q, q̇ = Generalized coordinate, velocity
p = Conjugate momentum = ∂L/∂q̇
H = Hamiltonian = Σpiq̇i − L
EOM = d/dt(∂L/∂q̇) − ∂L/∂q = 0
Euler-Lagrange Derivation
Enter T and V, then click Compute
Derive Euler-Lagrange equations, Hamiltonian, conservation laws, and numerical solutions.
Compute a system to see plots.
Compute a system to see the animation.
Hamiltonian Mechanics
Compute a system to see the Hamiltonian formulation.