I am having troubles trying to understand why is work defined as it is.
So, I know how work is defined: $W = \vec{F}\cdot{}\vec{d}$ (F is the force, d the displacement) and I am okay with it. This, and the quantity $E_k = \frac{1}{2}mv^2$, are a mathematical object useful to describe the state of a system more easily. I also know the more general definition of $W=\int{\vec{F}\cdot{}d\vec{r}}$ where the integral is calculated along the path of the body. It's also known that the four fundamental interactions are distance-depending forces. Now, it is possible to imagine a scenario in wich we have two bodies, say $A$ and $B$, in one dimension for simplicity (a line) and one of this four forces, say $\vec{f}$ (and of course $-\vec{f}$), acts on them. In the definition of work, the quantity $W$ is calculated assuming the force being constant, so the distance between the two bodies must remain a constant too, $d$. For this to be true, the two bodies have the same displacement $\vec{r}$. So the work on $A$, $W_A$, is the opposite of $W_B$, according to the third of the Newton's principles. This makes sense to me, because at this point (if what I am saying is not wrong, and I am sure it is indeed wrong) energy is actually something that is conserved, in every physical scenario, because we could (just theoretically) break it down to the four fundamental interactions and that's it. I know I am probably doing something wrong, and if this is the case, I would like to ask a question: is it possible to explain the mathematical intuition behind the definition of work using just Newton's laws? I've studied classical mechanics only. Thanks.