Potential energy is stored energy a body possesses because of its position or its configuration. A stretched bow, a raised hammer, and a compressed spring all hold energy that can be released to do work later. Unlike kinetic energy, potential energy is always defined relative to a chosen reference level.
Conservative and non-conservative forces. A force is conservative if the work it does on a body depends only on the starting and ending points, not on the path taken, and the work done in a complete round trip is zero. Gravity and the spring force are conservative. Only for conservative forces can we define a potential energy, through $F=-\frac{dU}{dx}$ (force is the negative slope of the potential energy curve). A force is non-conservative if the work depends on the path; friction and air resistance are the standard examples — they convert mechanical energy into heat, so no potential energy can be assigned to them.
Gravitational potential energy. Near the Earth's surface, lifting a body of mass $m$ through a height $h$ requires work $mgh$ against gravity, which is stored as gravitational PE: $U=mgh$, measured from a chosen zero level. This is why a stone at the top of a cliff can do work on the way down.
Spring (elastic) potential energy. A spring obeying Hooke's law exerts a restoring force $F=-kx$, where $k$ is the spring constant (N/m) and $x$ is the extension or compression from the natural length. The work done in stretching it is the area of the triangle under the $F$-$x$ line, giving $U_{spring}=\frac{1}{2}kx^2$. Notice that $U$ depends on $x^2$, so the spring stores the same energy whether stretched or compressed by the same amount.
- Restoring force grows linearly: $F=-kx$.
- Stored energy grows as the square: $U=\frac{1}{2}kx^2$.
- Doubling the deformation quadruples the stored energy.
Conservation of mechanical energy. When only conservative forces do work, the total mechanical energy (kinetic + potential) of a system stays constant: $KE+PE=\text{constant}$, i.e. $\frac{1}{2}mv^2+U=E$. For a freely falling body, as it descends, PE ($mgh$) steadily converts into KE ($\frac{1}{2}mv^2$), so their sum is unchanged. If a non-conservative force such as friction acts, mechanical energy is not conserved — the lost mechanical energy appears as heat, sound or deformation, but the total energy of the universe is still conserved (law of conservation of energy).