# Advanced Classical Mechanics/Conservative Systems

We have found that when the forces can be described by a potential energy function it is straightforward to use the Lagrangian techniques to find the equations of motion. Given a set of force, how can we determine the potential function? How can we determine whether there is a potential function?
In conservative forces always mechanical energy is conserved ie, Kinetic energy + Potential energy remains constant at every point.For example, spring force gravitational force and electro static force.

## Some Examples

Let's do an example,
$F_{x}=-{\frac {kx}{\left(x^{2}+y^{2}\right)^{3/2}}},$ $F_{y}=-{\frac {ky}{\left(x^{2}+y^{2}\right)^{3/2}}}.$
How much work does the force do moving from $(x_{0},y_{0})$ to $(x,y)$?
$W=\int _{(x_{0},y_{0})}^{(x,y)}\left(F_{x}dx+F_{y}dy\right)=\int _{(x_{0},y_{0})}^{(x,y)}\left(-{\frac {kx}{\left(x^{2}+y^{2}\right)^{3/2}}}dx-{\frac {ky}{\left(x^{2}+y^{2}\right)^{3/2}}}dy\right)$
If we look at the two terms, let's try to integrate each one with respect to $x$ and $y$.
$F_{x}={\frac {\partial }{\partial x}}\left[{\frac {k}{\left(x^{2}+y^{2}\right)^{1/2}}}\right]$ and $F_{y}={\frac {\partial }{\partial y}}\left[{\frac {k}{\left(x^{2}+y^{2}\right)^{1/2}}}\right].$
They are both derivatives of the same function
${\frac {k}{\left(x^{2}+y^{2}\right)^{1/2}}}.$
Let's calculate the total derivative of the function
$d\left[{\frac {k}{\left(x^{2}+y^{2}\right)^{1/2}}}\right]=-{\frac {kx}{\left(x^{2}+y^{2}\right)^{3/2}}}dx-{\frac {ky}{\left(x^{2}+y^{2}\right)^{3/2}}}dy$
and substitute it back into the integral
$W=\int _{(x_{0},y_{0})}^{(x,y)}\left(F_{x}dx+F_{y}dy\right)=\int _{(x_{0},y_{0})}^{(x,y)}d\left[{\frac {k}{\left(x^{2}+y^{2}\right)^{1/2}}}\right]={\frac {k}{\left(x^{2}+y^{2}\right)^{1/2}}}-{\frac {k}{\left(x_{0}^{2}+y_{0}^{2}\right)^{1/2}}}$
The integral does not depend on path. We could write
$F_{x}=-{\frac {\partial V}{\partial x}}$ and $F_{y}=-{\frac {\partial V}{\partial y}}$ with $V=-{\frac {k}{\left(x^{2}+y^{2}\right)^{1/2}}}.$
What about $F_{x}=3Bx^{2}y^{2}$ and $F_{y}=2Bx^{3}y$?
What about $F_{x}=axy$ and $F_{y}=bxy$?
* If the forces are such that the work done when the system is moved from one configuration to another only depends on the initial and final configurations, then the force is conservative.

### Dry Friction

The force of friction between two dry surfaces is proportional to the normal force between the surfaces in a direction that opposes the relative motion between the surfaces. For an object resting on a surface we have $F=\mu mg$ that we can resolve into components as
$F_{x}=-\mu mg{\frac {dx}{ds}}$
and
$F_{y}=-\mu mg{\frac {dy}{ds}}.$
Let's write out the work done by the force,
$W=\int \left(F_{x}dx+F_{y}dy\right)=-\mu mg\int \left({\frac {dx}{ds}}dx+{\frac {dy}{ds}}dy\right)$
$=-\mu mg\int \left({\frac {dx}{ds}}{\frac {dx}{ds}}ds+{\frac {dy}{ds}}{\frac {dy}{ds}}\right)=-\mu mg\int ds=-\mu mgs$
where $s$ is the length of the path. In particular, the work done by the frictional path does not necessarily vanish over a closed path.

## The Potential Energy

In general,
$V=-\int _{x_{i}^{0},y_{i}^{0},z_{i}^{0}}^{x_{i},y_{i},z_{i}}\sum _{i=1}^{p}\left(F_{x_{i}}dx_{i}+F_{y_{i}}dy_{i}+F_{z_{i}}dz_{i}\right)$
where $i$ counts over the various particles. Specifically, $F_{x_{i}}$ is the force on particle $i$ in the $x-$direction.
For this to be true,
$F_{x_{i}}=-{\frac {\partial V}{\partial x_{i}}},$ $F_{y_{i}}=-{\frac {\partial V}{\partial y_{i}}},$ $F_{z_{i}}=-{\frac {\partial V}{\partial z_{i}}}.$
So let's calculate for example
${\frac {\partial F_{x_{3}}}{\partial y_{4}}}=-{\frac {\partial ^{2}V}{\partial y_{4}\partial x_{3}}}={\frac {\partial F_{y_{3}}}{\partial x_{3}}}.$
If the forces are conservative, then the partial derivatives of the forces are equal to each other. This is a quick way to check whether the forces are indeed conservative!
We can make some observativions from this result. First, if the force varies only along the direction that it points, then the force is conservative. An important example of this is the central force. Second, if and only if the curl of the force is zero, the force is conservative.

## Why calculate V?

It takes quite a bit of effort to calculate the potential energy. Why don't we just use the forces directly?
* You can use the transformation rules to find the generalized forces $F_{q_{r}}=\sum _{i}F_{x_{i}}{\frac {\partial x_{i}}{\partial q_{r}}}$ but this is really ugly and could be even more effort than finding the potential energy.
* Calculate $V$ in whatever coordinates are convenient and then transform the coordinates so $F_{q_{r}}=-{\frac {\partial V}{\partial q_{r}}}$.
* Sometimes you can get $V$ by inspection.
* The generalized forces for $V$ and $V+C$ are the same so you can drop any constant term. For example, we can write $V=mgr\left(1-\cos \theta \right),mg\left(l-r\cos \theta \right),-mgr\cos \theta$ for the potential energy of a pendulum.

## Do conservative systems conserve energy?

Conservative systems are those which you can write the force as the gradient for a potential function. We have seen forces where this is not the case: dry friction and a particle in magnetic field. In the first case we have a non-conservative force that does not conserve energy. In the second case, we have a non-conservative force that does conserve energy.
It is straightforward to come up with an example for a conservative force that does not conserve energy. Specifically we could have ${\vec {F}}=-{\vec {\nabla }}V\left({\vec {r}},t\right).$ Because the Lagrangian now depends on time explicitly, the Hamiltonian is no longer conserved.

### Jiggly Pendulum

Let's write down the Cartesian coordinates of the bob of mass $m$,
${\vec {x}}=\left[l\sin \theta ,z(t)-l\cos \theta \right].$
Taking the time derivative of the position gives the velocity
${\vec {v}}={\dot {\vec {x}}}=\left[l{\dot {\theta }}\cos \theta ,{\dot {z}}(t)+l{\dot {\theta }}\sin \theta \right].$
Using these results we can calculate the kinetic energy of the bob
$T={\frac {1}{2}}mv^{2}={\frac {m}{2}}\left[l^{2}{\dot {\theta }}^{2}\cos ^{2}\theta +\left({\dot {z}}(t)+l{\dot {\theta }}\sin \theta \right)^{2}\right]$
$={\frac {m}{2}}\left(l^{2}{\dot {\theta }}^{2}+{\dot {z}}(t)^{2}+2l{\dot {\theta }}{\dot {z}}(t)\sin \theta \right)$
and the potential energy
$V=mg\left(z(t)-l\cos \theta \right).$
For this system we have $\partial L/\partial t\neq 0$ so $dH/dt\neq 0$; however, we can define a potential energy so the system is conservative.