Evaluate
Choose substitution over integration by parts. By parts is the reflex for a product, but here the outside factor is (up to a constant) exactly the derivative of the inside of the sine. That is the signature of a -substitution, and by parts would only make the integral worse.
Set up the substitution. Let
The constant is what absorbs the mismatch between and .
Rewrite the integral entirely in .
No remains, which is the check that the substitution was the right one.
Integrate and substitute back. Since :
The minus sign comes from the antiderivative of sine and is the easiest thing to drop here.
Verify by differentiating back. By the chain rule,
A numerical derivative confirms this at , and to within ✓. The cancels exactly, which is the whole reason the constant was chosen that way.
Need to solve a different problem like this? Open the solver →