I am a physics student and recently attended my first lectures. One thing that strikes me even now was the way the professor derived the formula for the kinetic energy.
He started with the (already given) definition of "work": $$W = \int_{p_{start}}^{p_{end}} F(s) \space ds = \int_{p_{start}}^{p_{end}} m \space a(s) \space ds.$$
Then, he did this: $$W = \int_{t_{start}}^{t_{end}} m \space a \space v \space dt$$ Without explaining, what exactly he did. I am assuming this was some kind of "Integration by substitution" due to $\frac{ds}{dt} = v$ and thus $ds = v \space dt$. The question that bugs me is what happened to the $t$ in $a(t)$?
He continued with $$W = \int_{t_{start}}^{t_{end}} m \space \frac{dv}{dt} \space v \space dt$$ and cancelled out the $dt$s: $$W = \int_{v_{start}}^{v_{end}} m \space v \space dv$$ What exactly happened here?
The rest was simple integration. But I cannot see what exactly happened in both of theses steps. Can someone explain this to me and give me a mathematically correct alternative?