Releasing the bob creates an oscillating relation between p and k . Here, k and p are in direct inverse proportion. That is, the equation relating these quantities is linear . As the pendulum is damped by friction, its energy is converted into heat and so diverted from the energies maintaining the motion of the bob. Order can be maintained by driving the pendulum with additional injections of energy.
Energy creates order because it is itself a form of order.
The oscillation of energies within a pendulum bob creates order in the periodicity of its swing. In the universe in general, randomness is more probable than order.