Does the transfer of energy take place when you push a huge rock with all you might and fail to move it? Where is the energy you spend going?

Energy transfer does not take place as no displacement takes place in the direction of applied force. The energy spent is used to overcome inertia of rest of the rock.


27