Comment by saghm
To be fair, as someone who has a similar view of physics that you have to math, some things in physics have a similar "deus ex machina" vibe to me. Potential energy and conservation of energy are the immediate one that spring to mind; it kinda feels like the only reason energy is "conserved" is because we defined a term to be exactly equal to the amount we need to have conservation of energy. It's extremely useful, and I imagine there might be some deeper truth to it that's apparent to an expert, but as a novice, it looks a lot like we just came to with a convenient way to do calculations, slapped a name on it, and declared it a scientific law.
Energy conservation comes directly from integrating Newton’s second law one time, assuming a conservative force field:
1. F = ma
2. -dV/dx = m d2x/dt2 # force is the negative gradient of potential. Acceleration is the second time derivative of displacement.
3. Rewrite d/dx as 1/v * d/dt via the chain rule: d/dt V = d/dx V * dx/dt => d/dx V = 1/v d/dt V => d/dx = 1/v d/dt.
4. Rearrange (2). 0 = dV/dt + m v d2x/dt2.
5. Integrate both sides by t. E = V + 1/2 m v^2 # where the constant of integration is a conserved quantity (energy).