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,

${\displaystyle F_{x}=-{\frac {kx}{\left(x^{2}+y^{2}\right)^{3/2}}},}$  ${\displaystyle F_{y}=-{\frac {ky}{\left(x^{2}+y^{2}\right)^{3/2}}}.}$

How much work does the force do moving from ${\displaystyle (x_{0},y_{0})}$  to ${\displaystyle (x,y)}$ ?

${\displaystyle 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 ${\displaystyle x}$  and ${\displaystyle y}$ .

${\displaystyle F_{x}={\frac {\partial }{\partial x}}\left[{\frac {k}{\left(x^{2}+y^{2}\right)^{1/2}}}\right]}$  and ${\displaystyle 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

${\displaystyle {\frac {k}{\left(x^{2}+y^{2}\right)^{1/2}}}.}$

Let's calculate the total derivative of the function

${\displaystyle 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

${\displaystyle 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

${\displaystyle F_{x}=-{\frac {\partial V}{\partial x}}}$  and ${\displaystyle F_{y}=-{\frac {\partial V}{\partial y}}}$  with ${\displaystyle V=-{\frac {k}{\left(x^{2}+y^{2}\right)^{1/2}}}.}$

What about ${\displaystyle F_{x}=3Bx^{2}y^{2}}$  and ${\displaystyle F_{y}=2Bx^{3}y}$ ?

What about ${\displaystyle F_{x}=axy}$  and ${\displaystyle 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 ${\displaystyle F=\mu mg}$  that we can resolve into components as

${\displaystyle F_{x}=-\mu mg{\frac {dx}{ds}}}$

and

${\displaystyle F_{y}=-\mu mg{\frac {dy}{ds}}.}$

Let's write out the work done by the force,

${\displaystyle W=\int \left(F_{x}dx+F_{y}dy\right)=-\mu mg\int \left({\frac {dx}{ds}}dx+{\frac {dy}{ds}}dy\right)}$

${\displaystyle =-\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 ${\displaystyle 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,

${\displaystyle 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 ${\displaystyle i}$  counts over the various particles. Specifically, ${\displaystyle F_{x_{i}}}$  is the force on particle ${\displaystyle i}$  in the ${\displaystyle x-}$ direction.

For this to be true,

${\displaystyle F_{x_{i}}=-{\frac {\partial V}{\partial x_{i}}},}$  ${\displaystyle F_{y_{i}}=-{\frac {\partial V}{\partial y_{i}}},}$  ${\displaystyle F_{z_{i}}=-{\frac {\partial V}{\partial z_{i}}}.}$

So let's calculate for example

${\displaystyle {\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 ${\displaystyle V}$?

It takes quite a bit of effort to calculate the potential energy. Why don't we just use the forces directly?

1. You can use the transformation rules to find the generalized forces
${\displaystyle 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.
2. Calculate ${\displaystyle V}$  in whatever coordinates are convenient and then transform the coordinates so
${\displaystyle F_{q_{r}}=-{\frac {\partial V}{\partial q_{r}}}}$ .
3. Sometimes you can get ${\displaystyle V}$  by inspection.
4. The generalized forces for ${\displaystyle V}$  and ${\displaystyle V+C}$  are the same so you can drop any constant term. For example, we can write
${\displaystyle 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 ${\displaystyle {\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

Coordinates for the jiggly pendulum

Let's write down the Cartesian coordinates of the bob of mass ${\displaystyle m}$ ,

${\displaystyle {\vec {x}}=\left[l\sin \theta ,z(t)-l\cos \theta \right].}$

Taking the time derivative of the position gives the velocity

${\displaystyle {\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

${\displaystyle 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]}$

${\displaystyle ={\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

${\displaystyle V=mg\left(z(t)-l\cos \theta \right).}$

For this system we have ${\displaystyle \partial L/\partial t\neq 0}$  so ${\displaystyle dH/dt\neq 0}$ ; however, we can define a potential energy so the system is conservative.