So I was recently reading this answer on Stack Exchange, where someone enquired Why is the restoring force directly proportional to extension?
Now, the potential energy graph (in the first answer) rises on both sides of equilibrium position. Is this because on one side there is work done against the repulsive forces and on the other there is work done against the attractive forces? However, if there is work done against repulsive forces, leading to increase in potential energy there would also be work done in the direction of attractive forces, leading to a decrease in potential energy. Are these forces equal and opposite? If so, why is there any change in potential energy at all? If not, how can this graph be used generally?