I know that for conservative forces Let's consider the case of gravitational potential energy, I know that . Just to check: perfect! Now, let's suppose that the body is only allowed to move on the line . The potential energy is as before , but now I could also write it as . Then I want the force, let's use the second equivalent expression: definitely not! What happened? I conclude that I must be careful when deriving potential energy. How? Other similar problems: I force the body to move along a specific constraint and I manage to express the potential as function of say . Am I allowed to conclude that because derivative of a function that not depends on is zero? What is the point behind these problems?
Potential energy with constraints moving body
Surfer on the fall


