constraints define the direction of movement of the particle by ensuring there is no component of velocity in the direction of the constraint force. this also means the constraint forces do not add to the instantaneous power. the time integral of this scalar equation yields work from the instantaneous power, and kinetic energy from the scalar product of velocity and acceleration. the fact that the work–energy principle eliminates the constraint forces underlies lagrangian mechanics.