# Work and energy

The work done by any force from one location to another is mathematically defined to be:

${\displaystyle W=\int \limits _{\overrightarrow {\mathbf {l_{0}} }}^{\overrightarrow {\mathbf {l} }}{\overrightarrow {\mathbf {F} }}\cdot \operatorname {d} \!{\overrightarrow {\mathbf {l} }}}$

where F is the component of force parallel to the object's path at that given instant and L is the object's displacement. It follows that a force perpendicular to the path of the object does not do any work, such as the Sun's gravity's pull on Earth. This integral is a line integral along the object's path, and represents the sum of all the dot products of each infinitesimal displacement and the force at that location.

For a constant force acting in one direction, this equation reduces to

${\displaystyle W=F\Delta l}$

A conservative force is one where the work done by it only depends on the starting and ending positions, while a non-conservative force, which comprises the vast majority of everyday forces, does not necessarily do the same work for the same overall displacement.

## Energy

See the main article, Energy

In this topic we'll use only mechanical energies. There are two kinds of mechanical energies, potential and kinetic. These energies can transform to one to another like all other kinds of energies, but their sum, the total mechanical energy, is constant.

### Work-energy principle

The work-energy principle states that the work done on an object is equal to the change in its kinetic energy:

${\displaystyle W=\Delta K}$

### Potential energy

The potential energy of an object with respect to a conservative force is the work that conservative force could potentially do to it, which would be a change of energy, in accordance with the work-energy principle. Potential energy is a relative concept; we are only concerned with changes in potential energy and not the absolute value of it.

A common example is gravity. The work gravity could potentially do is

${\displaystyle U=-W=-\int \limits _{\overrightarrow {\mathbf {l} }}^{\overrightarrow {\mathbf {l_{0}} }}{\overrightarrow {\mathbf {F} }}\cdot \operatorname {d} \!{\overrightarrow {\mathbf {l} }}=\int \limits _{h_{0}}^{h}g\operatorname {d} h=mgh-mgh_{0}}$

It does not matter what h0 is, as long as gravity can be considered to be a constant, conservative force, and the difference in h is the same.

In multiple dimensions, it follows from the gradient theorem that ${\displaystyle \mathbf {F} =-\nabla U}$  where ${\displaystyle \nabla U={\frac {\partial U}{\partial x}}+{\frac {\partial U}{\partial y}}+{\frac {\partial U}{\partial z}}}$ .

### Kinetic energy

The kinetic energy of an object is the total work that has been done to the object to place it in motion. By the work-energy principle, and Newton's second law:

${\displaystyle K=\int \limits _{l_{0}}^{l}\mathbf {F} \cdot d\mathbf {L} =\int \limits _{l_{0}}^{l}{\frac {d\mathbf {p} }{dt}}\cdot d\mathbf {L} =\int \limits _{l_{0}}^{l}d\mathbf {p} \cdot {\frac {d\mathbf {L} }{dt}}=\int \limits _{l_{0}}^{l}\mathbf {v} \cdot d\mathbf {p} }$

In classical mechanics, ${\displaystyle {\overrightarrow {\mathbf {p} }}=m{\overrightarrow {\mathbf {v} }}}$  and ${\displaystyle d\mathbf {p} =md\mathbf {v} }$ , so we have: ${\displaystyle \int \limits _{l_{0}}^{l}\mathbf {v} \cdot d\mathbf {p} =\int \limits _{v_{0}}^{v}m\mathbf {v} \cdot d\mathbf {v} }$ , and because ${\displaystyle \mathbf {v} \cdot d\mathbf {v} ={\frac {1}{2}}d(\mathbf {v} \cdot \mathbf {v} )={\frac {1}{2}}d(v^{2})=vdv}$ :
${\displaystyle W=\int \limits _{v_{0}}^{v}mv\times dv={\frac {1}{2}}mv^{2}-{\frac {1}{2}}mv_{0}^{2}}$

For the total kinetic energy l0=0, and v0=0, so classically,

${\displaystyle K={\frac {1}{2}}mv^{2}}$

### Total mechanical energy

The total mechanical energy of a system, in the absence of external forces, will always be constant. It is the sum of an object's kinetic and potential energies:

${\displaystyle E=U+K}$