I'm doing physics problems on my own and I cannot figure out when Potential Energies (U) are supposed to be positive and when negative in a Conservation of Energies problem.
Take for example this one. You have a vertical string stretched downwards by a weight with a mass M. Someone launches a pellet with a mass m at it that causes it to compress.
So, if you were to whip up an equation of Conservation of Energy at point (1) when the pellet hits the weight and point (2) when the spring is at maximum compression, you would have something like this:
K_1 + U_s1 + U_g1 = K_2 + U_s2 + U_g2
Now my question is, which of those would be positive and which negative, if we place the origin of the coordinate system at the point when the spring is in equilibrium?
Now we know that if force has a component in the same direction as the displacement of the object, the force is doing positive work; and if the force has a component in the direction opposite to the displacement, the force does negative work.
So, at both points (1) and (2) the gravitational potential energy (U_g1 and U_g2) should be negative right? Because the pellet is causing the weight to move in the opposite direction. What about the spring potential energy?