We've recently started learning about work and energy and these were the definitions given to us which also lines up with a lot of stuff I've seen online, work is ''the dot product of force and displacement'' or ''it is the product of the magnitude of the force and the displacement along the direction of the force'', energy is ''the capacity/ability to do work''. Calculating work is pretty straight forward and it was said to us that ''energy is measured by the total work a body can do''. But in most places including my textbooks, lectures from my teachers I've seen the derivation of the equation for kinetic energy done like this:
Suppose a body at rest travels a distance $s$ in the direction of the force $F$ with acceleration $a$ and the final velocity of the body is $v$, the work done by the body will be $W=Fs=mas$ now from the equations of motion we have $v^2=u^2+2as$ and since $u$ i.e. the initial velocity is 0, we can solve for $as$ and it turns out to be $\frac{1}{2}v^2$ substituting this in the equation for work done we get $W=\frac{1}{2}mv^2$ and this is also the kinetic energy of the body, usually denoted by $E_k=\frac{1}{2}mv^2$
My issue with this approach is what we're doing here is we're calculating the amount of work done to reach the final position but according to the definition of energy and the way of measuring energy I've stated previously the kinetic energy of the body should be the amount of work the body can do before coming to rest, now if we take that approach,
Let's say the current velocity of the body is $v$ and it comes to rest after we apply a force $F$ which causes an acceleration, $a$(which is negative). Now the work that can be done by the body is again, $W=Fs=mas$ using the equations of motion again we have $0=v^2+2as$(since the final velocity is $0$ and the initial is $v$, solving for $as$ and subbing it in the equation for work we get $E_k=-\frac{1}{2}mv^2$, which is the result we wanted but this minus popped out unexpectedly, now my teacher suggested that I should've used the equation $v^2=u^2-2as$, to account for the retardation happening here, but I don't quite understand that, another hypothesis of mine was since the displacement is opposite to the direction of the force the work done would be $-|F||s|$ but that also leaves me with the same answer but I could've done some mistakes, nevertheless, I mainly have 2 questions left-
(i)Why am I not getting the right equation with this approach and
(ii)Why do so many places online and even my textbooks, teachers calculate the work done by a body to reach a position as the kinetic energy of a body in that position but the definition suggests that the kinetic energy of a body in a position is the amount of work a moving body can do until it comes to rest, could anyone please explain which of the approaches are actually correct and if the first approach I mentioned is indeed correct, why so? it seems to be different from the definition of energy, also I have also seen this in the derivation of the equation of gravitational potential energy for example but I decided to explain the scenario with kinetic energy since that was more common and made me more confused, sorry for the extremely long question, but it was a very specific question and I wanted to provide as much context as possible, thanks!