If you push hard on a school gym wall, have you done any work on it?
You lean against the wall of your school gym and push as hard as you can. Your arms get tired, but the wall stays still. Have you done any work on the wall? In physics, the answer depends on what moved.
Look at the horizontal forces on the box sliding to the right. Your push points right and friction points left. The arrows are the same length, so the forces are equal in size. They balance, so the box keeps sliding to the right at the same speed.
Watch the box move from its starting point to its finishing point. It moves three metres to the right, in the same direction as your push. That change in position is its displacement. As the box moves along the push, the push transfers energy. We call that doing work.
You push a box two metres to the right, then lift it one metre straight up. For the work done by your rightward push, which distance should you use? Pick an answer.
Work done equals force times distance moved along the line of action of the force. Measure the force in newtons and the distance in metres. That gives newton metres. One newton metre of work is exactly one joule.
You slide the box three metres at constant speed against five newtons of friction. Your push balances friction, so it is five newtons. Multiply five newtons by three metres to get fifteen newton metres, or fifteen joules. That energy goes into the thermal stores of the box and floor.
You slide another box four metres in a straight line across the floor at constant speed. Friction is six newtons, so your horizontal push is six newtons too. Calculate the work done by your push and pick the answer.
You might think the energy disappears. Follow the fifteen joules transferred by your push. Work against friction increases the thermal stores of the box and floor. The rubbing surfaces warm up, even if the temperature rise is too small for you to notice.
Explain why you do no mechanical work on the gym wall when you push it and it stays still. The wall has zero displacement along the force. Any force multiplied by zero metres gives zero joules of work on the wall. Feeling tired does not change that.