Though our starting example was the harmonic oscillator, all the math up to this point has been completely general for a particle subject to a conservative force. This formula can be generalized for any one-dimensional physical system by plugging in the corresponding potential energy function. Once this is done, P (x) is readily obtained for any allowed energy E.