What is a Lagrangian used for in physics?

Wait 5 sec.

How Emmy Noether's theorem uses the Lagrangian to provide a formula for calculating the quantity of symmetries in a system—like the orbit of planets.