Skip to main content

Calculus Honors · AP-aligned study guide

6.3 · Integration by parts and partial fractions

Choose between reversing the product rule and decomposing a rational function, then verify the resulting antiderivative.

BC extension · Optional for AP Calculus AB

BC extensions: AP 6.11–6.12 · Reading: Larson & Edwards §§8.2, 8.5

Learning objectives

  • Apply integration by parts with a clear choice of u and dv.
  • Decompose a rational function with distinct linear factors.
  • Check an antiderivative by differentiating it.

Reverse the product rule

Integration by parts follows from integrating the product rule: ∫u dv=uv−∫v du\displaystyle \int u\,dv=uv-\int v\,du. Choose u\displaystyle u so that differentiating simplifies it, and choose dv\displaystyle dv so that it can be integrated.

For ∫xex dx\displaystyle \int xe^x\,dx, choose u=x\displaystyle u=x and dv=exdx\displaystyle dv=e^x dx. The remaining integral is simpler: xex−∫exdx\displaystyle xe^x-\int e^x dx. These techniques extend the AB core.

∫u dv=uv−∫v du\int u\,dv=uv-\int v\,du

A logarithm can be the factor u

For ∫ln⁡x dx\displaystyle \int\ln x\,dx on x>0\displaystyle x>0, think of the integrand as ln⁡x⋅1\displaystyle \ln x\cdot1. Choose u=ln⁡x\displaystyle u=\ln x, dv=dx\displaystyle dv=dx, so du=dx/x\displaystyle du=dx/x and v=x\displaystyle v=x. The result is xln⁡x−x+C\displaystyle x\ln x-x+C.

If the remaining integral becomes harder, reconsider the choice of factors. Some integrals require repeated parts, but every stage must preserve the minus sign.

Break a rational function into simpler fractions

For distinct linear factors, express a proper rational function as a sum with unknown constants, clear denominators, and solve for those constants. If the numerator degree is at least the denominator degree, divide polynomials first.

For 1/((x+1)(x+2))\displaystyle 1/((x+1)(x+2)), the decomposition is 1/(x+1)−1/(x+2)\displaystyle 1/(x+1)-1/(x+2). Integrating gives logarithms with absolute values on intervals that avoid the denominator zeros.

Worked examples

Integrate a product

Find ∫xex dx\displaystyle \int xe^x\,dx.

  1. Choose u=x\displaystyle u=x and dv=exdx\displaystyle dv=e^x dx.
  2. Then du=dx\displaystyle du=dx, v=ex\displaystyle v=e^x, giving xex−∫exdx\displaystyle xe^x-\int e^x dx.
  3. The result is (x−1)ex+C\displaystyle (x-1)e^x+C.

Integrate a rational function

Find ∫1(x+1)(x+2) dx\displaystyle \int\frac{1}{(x+1)(x+2)}\,dx.

  1. Set the fraction equal to A/(x+1)+B/(x+2)\displaystyle A/(x+1)+B/(x+2).
  2. Clearing denominators gives 1=A(x+2)+B(x+1)\displaystyle 1=A(x+2)+B(x+1), so A=1\displaystyle A=1, B=−1\displaystyle B=-1.
  3. The result is ln⁡∣x+1∣−ln⁡∣x+2∣+C\displaystyle \ln|x+1|-\ln|x+2|+C.

Common mistakes

  • Losing the minus sign in integration by parts.
  • Solving partial-fraction coefficients without clearing denominators correctly.
  • Ignoring excluded inputs in a logarithmic antiderivative.

Try it yourself

No calculator required.

1. Find ∫xcos⁡x dx\displaystyle \int x\cos x\,dx.

Show worked solution

Choose u=x\displaystyle u=x, dv=cos⁡xdx\displaystyle dv=\cos x dx. Then the integral is xsin⁡x−∫sin⁡xdx=xsin⁡x+cos⁡x+C\displaystyle x\sin x-\int\sin x dx=x\sin x+\cos x+C. Differentiation cancels the extra sine terms.

2. Find ∫ln⁡x dx\displaystyle \int\ln x\,dx for x>0\displaystyle x>0.

Show worked solution

Use u=ln⁡x\displaystyle u=\ln x, dv=dx\displaystyle dv=dx. The result is xln⁡x−x+C\displaystyle x\ln x-x+C. Its derivative is ln⁡x+1−1=ln⁡x\displaystyle \ln x+1-1=\ln x.

3. Find ∫1x(x+1) dx\displaystyle \int\frac{1}{x(x+1)}\,dx on intervals excluding −1\displaystyle -1 and 0\displaystyle 0.

Show worked solution

The decomposition is 1/x−1/(x+1)\displaystyle 1/x-1/(x+1). Integrating gives ln⁡∣x∣−ln⁡∣x+1∣+C\displaystyle \ln|x|-\ln|x+1|+C.

Need help with this topic?

Work through questions with a tutor and get help with the steps you find difficult.

Get help with this topic