To calculate the total displacement for a time dependent velocity, one can start from an infinitesimal displacement and integrate as follows $$dx=vdt$$ $$ \int_{x_i}^{x_f}dx= \int_{t_i}^{t_f}vdt $$ $$ x_f-x_i=\Delta x=\int_{t_i}^{t_f}vdt $$ My question is when we do the same thing for the calculation of work what should be the limits of the integral on the LHS? $$dW=Fdx$$ $$ \int_{?}^{?}dW= \int_{x_i}^{x_f}Fdx $$ Because in the textbook the answer is generally given as $$ W=\int_{x_i}^{x_f}Fdx $$
EDIT: Just found that this question has been asked before.
The accepted answer (by @danimal)states that the limits should be $$ \int_{W_i}^{W_f}dW=\Delta W= \int_{x_i}^{x_f}Fdx $$
The work integral is easier to understand if you think of it as ΔW, that is the change in work done, relative to some zero that you're pretty much free to choose. Energies only really care about differences, not absolutes, so some reference energy is usually chosen as 0.
I know that for potential energy the above statement is correct, one can choose the reference (zero) value as one wishes. But, for example, for kinetic energy the reference (zero) value is pretty much fixed (speed=0). So how can one be sure that work has a free reference value? Does it even make sense to talk about reference value for work?
One of the comments (by @lemon) in the original question states that if force is 0 then work must be 0 therefore the lower limit of the integral must be zero ($W_i=0$). However this statement is not correct. If the force is zero then $dW$ is zero therefore $W$ is constant!