So recently a high-schooler asked me this question.
Consider a particle (of mass "m") moving with 10m/s (in the ground frame) in a certain direction on a frictionless surface. Now along its path it encounters a finite region of non-zero frictional force and once it comes out of that region , say its velocity is 6m/s(in the ground frame again) in the same direction.
So from the Work-Energy principle we know that the work done by friction will be $$W_f=\frac{m}{2}*(10^2-6^2)=32m$$ Now let us have an inertial frame moving with 2m/sec(wrt. ground) in the opposite direction. From this frame, the particle's initial speed is 12m/s and final speed is 8m/s. So again from work-energy principle we have that $$W_f=\frac{m}{2}*(12^2-8^2)=40m$$ So an excess energy of 8m is lost somehow ! So did friction have done extra work here ??
I am sure work done by friction is indpendent of the frame of reference and that's what I told him too but to be honest I don't really know where exactly is this extra energy going to ?
Edit : Just to clarify why my question is different from the one linked is that I accept that work done could be frame dependent (which is what the answers in the duplicate one are trying to say). I didn't clearly mention it earlier but my main issue was that the work done by friction is lost as heat so doesn't that imply that there would be more heating in the moving frame (more temperature change) ?? I expected that someone will talk about this in their answer.