Potential function of a dancer moving along a diagonal.