Let's say I want to calculate the height of a thrown ball: Let $x''(t)=-g$ and $x(0)=x(T)=0$ and $x'(0)=v_0$.
One could then integrate 2 times and it is done. My professor told me to write it this way, and I just don't get it: Could somebody help me understand it?:
$$x(t)=\int_0^t\left(\int_0^s x''(r) \mathrm{d}r \right)\mathrm{d}s=-\int_0^t(gs+C_1)\mathrm{d}s=-\frac{1}{2}gs^2-C_1t-C_2$$
Why from $0$ to $s$? And why are there integration constants?