mathematically,
net work done by net external force is change in kinetic energy.
Now kinetic energy is independent of direction of motion as it is a function of V squared (so it depends on speed squared ). As kinetic energy is independent , change in kinetic energy is also independent and so is work done by net external force
This is valid for all cases (at classical mechanics level) i.e work done by net external force is independent of direction of motion and depends only on change of kinetic energy(which in turn depends on magnitude of velocity i.e speed and not direction).
To understand qualitatively,let us suppose a particle was traveling with 16 m/s towards the right .
As force is applied the new speed now become one fourth of the initial i.e 4 m/s.
its velocity however can be towards left or right.
Now we have to prove that in both cases work done by external force is same.
clearly for speed to go from 16 m/s to 4 m/s the force should act opposite to the motion i.e towards leftThis force slowly decelerated the velocity to 4m/s (however the velocity is still towards the right).
Now the force could stop applying here for case 1 i.e body moving right with velocity 4 m/s.
or it could continue acting towards left making the velocity from +4m/s to 0 m/s to -4 m/s.it turns out that the work done by force in changing the velocity from 4m/s to -4 m/s is 0(which we can see mathematically as well as change in kinetic energy is 0.).
this is because in going from +4 m/s to 0 m/sthe force acts towards left whereas the partcile still displaces towards the right(remember velocity is towards right and velocity is parallel to displacement vector), so work done is negative.
(work=force.displacement.cos(180)=-force*displacement)
however, after the body reaches 0 m/s, work done in changing velocity from 0m/s to -4m/s is positive as force acts towards left(it was always acting towards left).
Here the displacement is also towards left (as velocity is negative) so work comes out to be positive.(theta is 0 so cos0=1)
the net effect is that work done in the two cases cancels out.
making the net work done independent of direction of motion.