We describe the trajectory of a thrown object (neglecting friction and similiar effects) with the curve
$$k(t) = \left(v_0\cos(\beta)t,\,v_0\sin(\beta)t-\frac{g}{2}t^2\right)$$
with $t\geq 0$. $v_0>0$ is the initial velocity, $\beta\in[0,2\pi]$ the initial angle and $g$ the constant of gravitation. Compute
$$s(t) = \int_0^t \|k'(u)\|\,\mathrm du.$$
I do fail with simple transformations. First the derivative is very simple $$k'(t) = (v_0\cos(\beta),\,v_0\sin(\beta)-gt)$$ and then I wanted to compute the length so my first steps were $$\begin{align}\|k'(t)\| &= \sqrt{v_0^2\cos^2(\beta)+v_0^2\sin^2(\beta)-2gtv_0\sin(\beta)+g^2t^2}\\ &= \sqrt{v_0^2-2gtv_0\sin(\beta)+g^2t^2}\end{align}$$ where I factorized $v_0$ and got $\sin^2(\beta)+\cos^2(\beta)=1$. However this still seems very difficult to integrate, so I am looking for better simplifications or good techniques on how to integrate this properly.
Hint: Use the method called "completing the square". In your case
$$\tag{1} v_0^2-2guv_0\sin\beta+g^2u^2= \left(gu-v_0 \sin \beta \right)^2+v_0^2 \cos ^2\beta . $$ This suggests the substitution $$y= g u-v_0 \sin \beta .$$
Spoiler below: