A particle of mass m moving with velocity v1 leaves a half-space in which its potential energy is a constant U1 and enters another in which its potential energy is a different constant U2. Determine the change in the direction of motion of the particle.