Look for an inner expression and a multiple of its derivative. Set \(u=g(x)\), convert both the integrand and the differential, integrate, then restore \(x\).
The product rule gives \(\int u\,dv=uv-\int v\,du\). Choose \(u\) so differentiating it simplifies the remaining integral. A linear factor times an exponential is one common example.
First use division if the numerator degree is at least the denominator degree. For distinct linear factors, split a proper fraction into terms with one factor each. Find constants by comparing coefficients or substituting roots after clearing denominators.