This question is about kinematics and $a , v, x$ stand respectively for acceleration, velocity, position. Supposing we have an expression of $a$ in function of $x$, we have the following theorem:
$$v^2=v_0 ^2+2\int _{x_0} ^x a(x) \, dx$$
One proof I often saw is the following:
$$\int _{x_0}^{x}a \,dx=\int _{t_0}^{t}\dfrac {dv}{dt} \dfrac {dx}{dt}dt=\int _{v_0} ^{v}v\,dv=\frac{1}{2}v^2-\frac {1}2v_0 ^2$$
Now, i was trying to formulate the same proof in more rigorous terms. Putting $x=f(t)$ we have:
$$\int _{f(t_0)} ^{f(t)} f''(f)df= \int _{t_0} ^{t} f''(f(t))f'(t)dt$$
I don't know how to continue: I see that the result would follow if $$f''(f(t))dt=df' \qquad \iff \qquad f''(f(t))=f''(t)$$
but I don't think this is correct. Any help is appreciated.
EDIT - Answer: I think i've spotted the flaw of my reasoning, suggested by the comments above. Giving a function $a(x)$ means that we know a function of position which satifisfies the differential equation $$x''=a(x)$$. So, it's ok to substitute in the (first) integral $a(x)$ with $dv/dt=d^2x/dt^2$. What makes no sense (and that i didn't initially realize) is to write $f''(f(t))$ which is just symbolism. So (as one would expect) books' proofs are correct.