Work-energy principle
The work done on a body by external forces is equal to the change in total mechanical energy of that body. Hence the diffrence in mechanical energy would be the work done against resistive forces.
Example
The following system in projected up the slope with speed of . The surface has a coefficient of friction of 0.22. Find the objects speed as it passes back though its initial point.