Integration by parts

The product rule run backwards gives $\int u\,dv = uv - \int v\,du$; choose $u$ to get simpler when differentiated and $dv$ to be easy to integrate.

From Calculus 2.