1

How to evaluate the integral $\displaystyle\int_0^r x^2\cos x\,dx$ for $r\in\mathbb{R}$ without using integration by parts?

And the hint is differentiate $\displaystyle\int_0^r\cos(tx)\,dx$ twice with respect to $t$.

The hint does not help. Can someone help me?

Frank Lu
  • 7,010

1 Answers1

4

Let us write $$I(t) = \int_0^r \cos(tx)\ dx$$ Then from the Leibniz rule, we have $$\frac{d^2}{dt^2}I(t) = \int_0^r\frac{\partial^2}{\partial t^2}\cos(tx)\ dx=\int_0^r x^2\cos(tx)\ dx$$ Therefore your original integral is given by $$\frac{d^2}{dt^2}I(t)\Bigg|_{t=1}$$ Can you take it from here?

EuYu
  • 41,421