What that derivation shows is that $F=ma$ and conservation of the sum of potential and kinetic energy are related.
Those two are not independent cases: they are two ways to express the same thing.
Here's the thing: have you ever wondered why the expression for kinetic energy $\tfrac{1}{2}mv^2$ features that factor $\tfrac{1}{2}$?
What we have there is an expression with a squared quantity, and a factor $\tfrac{1}{2}$.
That combination of a squared quantity and a factor $\tfrac{1}{2}$ is typical for the outcome of evaluating the area between a slanted line and a horizontal line:
With cartesian coordinates, take the following simple graph: a straight line extending from the origin $(0,0)$, according to: $f(x) = x$
Next we give the expression for the area between that diagonal line and the $x$-axis, from the origin $0$ to a final point $x_f.$
The triangle with the base from $(0,0)$ to $(x_f, 0)$ is a right-angled triangle, which gives that the area between that graph and the x-axis is given by $\tfrac{1}{2}{x_f}^2$.
Now we take the following well known expression for uniform acceleration, with:
- $s_f$ final position
- $s_i$ initial position.
\begin{equation}\label{eq:1}
s_f - s_i = v_i t + \tfrac{1}{2}at^2. \tag{1}
\end{equation}
The factor $\tfrac{1}{2}$ of $\tfrac{1}{2}at^2$ correlates with the area of a triangle: with uniform acceleration the distance covered as a function of time is proportional to half the area of the rectancle with sides $t$ and $at$.
For later use:
\eqref{eq:2} for the relation that with uniform acceleration the velocity increases linear with time:
\begin{equation}\label{eq:2}
v_f - v_i = at. \tag{2}
\end{equation}
Multiply both sides of \eqref{eq:1} by $a$ for acceleration, and group the factor $(at)$ together:
\begin{equation}\label{eq:3}
a(s_f - s_i) = v_i(at) + \tfrac{1}{2}(at)^2. \tag{3}
\end{equation}
Use \eqref{eq:2} to substitute the factor $(at)$:
\begin{equation}\label{eq:4}
a(s_f - s_i) = v_i (v_f - v_i) + \tfrac{1}{2}(v_f - v_i)^2 \tag{4}
\end{equation}
\begin{equation}\label{eq:5}
a(s_f - s_i) = v_i v_f - {v_i}^2 + \tfrac{1}{2}{v_f}^2 - v_i v_f + \tfrac{1}{2}{v_i}^2 .\tag{5}
\end{equation}
The result is:
\begin{equation}\label{eq:6}
a(s_f - s_i) = \tfrac{1}{2}{v_f}^2 - \tfrac{1}{2}{v_i}^2 \tag{6}.
\end{equation}
Both sides of \eqref{eq:6} can be interpreted in terms of area:
- The left hand side is the area of a rectangle, $a(s_f - s_i)$
- In the right hand side the factor $\tfrac{1}{2}{v_f}^2$ is the area of a right triangle with $v_f$ for the length of the base and $v_f$ for the height. Likewise for $v_i$.
Next:
To combine $F=ma$ and \eqref{eq:6}:
take $F=ma$, and multiply both sides by $(s_f - s_i)$:
\begin{equation}\label{eq:7}
F(s_f - s_i) = ma(s_f - s_i) \tag{7}
\end{equation}
\begin{equation}\label{eq:8}
F \Delta s = \tfrac{1}{2}m{v_f}^2 - \tfrac{1}{2}m{v_i}^2. \tag{8}
\end{equation}
The definitions of potential energy and kinetic energy are specifically chosen to slot in with the above.
Until around the 1850's physicists used a precursor to the kinetic energy concept that was called 'Vis Viva' (The living force), which was defined as $mv^2$.
It was around 1850 that a french physicist by the name of Gustave Gaspard Coriolis proposed a new name and a new definition: 'kinetic energy' and $\tfrac{1}{2}mv^2$. That innovation was adopted rapidly.
(Recognizing the value of defining a quantity $F\cdot \Delta s$ goes back all the way to Huygens. The interpretation of what it stands for changed over time, but not the definition.)
The point is: it is not a remarkable coincidence that $F=ma$ and conservation of the sum of potential and kinetic energy slot together: the definition of kinetic energy was specifically chosen to make that happen. The choice was made because physicists recognized how it makes a lot of things fall into place.
Generalizations
Generalization of \eqref{eq:6} to non-uniform acceleration.
First step.
Let there be two stages of uniform acceleration: from $s_0$ to $s_1$, and from $s_1$ to $s_2$.
\begin{equation}\label{eq:7a}
a(s_1 - s_0) = \tfrac{1}{2}{v_1}^2 - \tfrac{1}{2}{v_0}^2 \tag{7}
\end{equation}
\begin{equation}\label{eq:8a}
a(s_2 - s_1) = \tfrac{1}{2}{v_2}^2 - \tfrac{1}{2}{v_1}^2. \tag{8}
\end{equation}
Add \eqref{eq:7a} and \eqref{eq:8a} together:
\begin{equation}\label{eq:9}
a(s_1 - s_0) + a(s_2 - s_1) = \tfrac{1}{2}{v_1}^2 - \tfrac{1}{2}{v_0}^2 + \tfrac{1}{2}{v_2}^2 - \tfrac{1}{2}{v_1}^2. \tag{9}
\end{equation}
On the left hand side the factor $s_1$ drops out and on the right hand side the factor $\tfrac{1}{2}{v_1}^2$ drops out.
\begin{equation}\label{eq:10}
a(s_2 - s_0) = \tfrac{1}{2}{v_2}^2 - \tfrac{1}{2}{v_0}^2. \tag{10}
\end{equation}
This dropping out of intermediate terms generalizes to summation of a sequence of infinitesimally narrow rectangles, which of course is evaluation of an integral.
\begin{equation}\label{eq:11}
\int_{s_i}^{s_f} a \ \mathrm{d}s
= \int_{v_i}^{v_f} v \ \mathrm{d}v \\
= \tfrac{1}{2}{v_f}^2 - \tfrac{1}{2}{v_i}^2 \tag{11}
\end{equation}
(In \eqref{eq:11}, to go from the first to the second step:
$$\mathrm{d}s = v \ \mathrm{d}t \quad \text{and} \quad a \ \mathrm{d}t = \mathrm{d}v.$$
We have:
$$\int_0^s a \ \mathrm{d}s = \int_0^t a \ v \ \mathrm{d}t = \int_0^t v \ a \ \mathrm{d}t = \int_0^v v \ \mathrm{d}v$$).
Repeating \eqref{eq:11} with the inbetween step omitted:
\begin{equation}\label{eq:12}
\int_{s_i}^{s_f} a \ \mathrm{d}s = \tfrac{1}{2}{v_f}^2 - \tfrac{1}{2}{v_i}^2. \tag{12}
\end{equation}
In mechanics the starting point is $F=ma$.
Integrating with respect to position coordinate, and using \eqref{eq:12} to process $\int m \ a \ \mathrm{d}s$:
\begin{equation}\label{eq:13}
\int_{s_i}^{s_f} F \ \mathrm{d}s \\
= \int_{s_i}^{s_f} ma \ \mathrm{d}s \\
= \tfrac{1}{2}m{v_f}^2 - \tfrac{1}{2}m{v_i}^2 \tag{13}
\end{equation}
Generalization to areas other than mechanics
\eqref{eq:12} is not a physical property: it is a mathematical property.
Let me refer to not taking a derivative as 'zeroth derivative'.
If you have occuring together:
zeroth derivative
first derivative
second derivative,
then there is a counterpart of \eqref{eq:12}.
Let $s$ represent any form of state that has a first time derivative and a second time derivative. Then:
\begin{equation}\label{eq:14}
\int_{s_i}^{s_f} \frac{\mathrm{d}^2s}{\mathrm{d}t^2} \ \mathrm{d}s = \tfrac{1}{2}{\left(\frac{\mathrm{d}s}{\mathrm{d}t}\right)_f}^2 - \tfrac{1}{2}{\left(\frac{\mathrm{d}s}{\mathrm{d}t}\right)_i}^2. \tag{14}
\end{equation}
Example:
The case of electric current in a circuit:
change of current strength is the second derivative of position of charge.
A coil with self-inductance will oppose change of current strength.
Through an inductor: change of current strength is proportional to electromotive force (electric potential), divided by the coefficient of self-induction (inductance).
With:
- $F_e$ electromotive force
- $L$ inductance
- $C$ position of charge
- $I$ first time derivative: current,
\begin{equation}\label{eq:15}
\frac{\mathrm{d}^2 C}{\mathrm{d}t^2} = \frac{F_e}{L}, \tag{15}
\end{equation}
which can be restated as:
\begin{equation}\label{eq:16}
F_e = L \frac{\mathrm{d}^2C}{\mathrm{d}t^2}. \tag{16}
\end{equation}
So when a current $I$ is flowing through an inductor, we expect an associated energy of $\tfrac{1}{2}LI^2.$
Generally:
In any area of physics where the dynamics is described with an equation that expresses that the second time derivative of some state relates to a particular change causing factor the relation \eqref{eq:14} can be used to transform the expression to energy form.