I started with an integral $ \int_{0}^{2\pi} \sqrt{2[\sin^2(t) + 16\cos^2(t) - 4\sin(t)\cos(t)]} \,dt $
And I simplified it to $ \int_{0}^{2\pi} \sqrt{17 + 15\cos(2t) - 4\sin(2t)} \, dt$
My question: I know this can be simplified with some sort of substitution that cancels the $\sin$ and $\cos$ with a $u$-sub, but I do not know how. I saw it online, with no explanation (see the first answer: find length of curve of intersection).
I think this has an exact elementary solution, if you use $\tan\left(\frac x2\right)$ substitution and possibly Feynman's trick if necessary.
$\begin{align} \int_0^{2\pi}\sqrt{17+15\cos2t-2\sin2t}\,dt&\overset{2t=x}{=}\frac12\int_0^{4\pi}\sqrt{17+15\cos x-2\sin x}\,dx\\ &=\int_0^{2\pi}\sqrt{17+15\cos x-2\sin x}\,dx\\ &=\int_0^{2\pi}\sqrt{17+\sqrt{229}\cos(x+\alpha)}\,dx\\ &=\int_\alpha^{2\pi+\alpha}\sqrt{17+\sqrt{229}\cos x}\,dx\\ &=\int_0^{2\pi}\sqrt{17+\sqrt{229}\cos x}\,dx\\ &=2\int_0^{\pi}\sqrt{17+\sqrt{229}\cos x}\,dx\\ &=2\int_0^{\pi}\sqrt{17+\sqrt{229}-2\sqrt{229}\sin^2(\frac x2)}\,dx\,\, (\text{By $\cos x=1-2\sin^2(x/2)$})\\ &\overset{x\rightarrow 2x}{=}4\int_0^{\pi/2}\sqrt{17+\sqrt{229}-2\sqrt{229}\sin^2x}\,dx\\ &=4\sqrt{17+\sqrt{229}}\int_0^{\pi/2}\sqrt{1-\frac{2\sqrt{229}}{17+\sqrt{229}}\sin^2x}\,dx\\ &=4\sqrt{17+\sqrt{229}}\int_0^{\pi/2}\sqrt{1-\frac{17\sqrt{229}-229}{30}\sin^2x}\,dx\\ &=4\sqrt{17+\sqrt{229}}E\left(\sqrt{\frac{17\sqrt{229}-229}{30}}\right) \end{align}$ In agreement with Wolfram Alpha. Here, WA uses $m=\frac{17\sqrt{229}-229}{30}$ but I used $k=\sqrt m$ as the variable of the function $E$.