Wick rotation relates statics problems in n dimensions to dynamics problems in n − 1 dimensions, trading one dimension of space for one dimension of time. A simple example where n = 2 is a hanging spring with fixed endpoints in a gravitational field. The shape of the spring is a curve y (x). The spring is in equilibrium when the energy associated with this curve is at a critical point (an extremum); this critical point is typically a minimum, so this idea is usually called "the principle of least energy". To compute the energy, we integrate the energy spatial density over space: