@DanielFischer In
this answer, why does repeated integration by parts only give the first term of an asymptotic expansion for the integral $\int_{0}^{\pi/4} \cos(xt^{2}) \tan^{2}(t) \, dt $ as $x \to \infty$? The accepted answer says that it's because the second term blows up at the $t=0$ limit. But by choosing $1- \frac{\cos(xt^{2})}{2x}$ for the antiderivative of $t \sin(xt^{2})$, the second boundary term vanishes at the $t=0$ limit.