MATH BOSS

All lessons

How do I integrate by parts?

Choose u that simplifies when differentiated, use the formula, and get an easier integral.

Grades 12 to 12 · Free. No sign-up. No ads. Nothing is collected.

Example

∫xexdx

Answer: xex−ex+C

Try it yourself: ∫xcosxdx

Why do I need this?

There is no product rule for integrals, so a product like x times e to the x needs another method.

The idea

The product rule says how to differentiate a product. Read backwards, it gives a way to integrate some products.

∫xexdx

Step by step

  1. Think first

    Which factor gets simpler when we differentiate it, and which one stays the same?

    Why? x becomes 1 when differentiated, and e to the x stays the same.

  2. Choose u and dv

    The factor that simplifies when differentiated is u, and the rest is dv.

    u=x,dv=exdx
    du=dx,v=ex
  3. Use the formula

    Write u times v minus the integral of v times du.

    xex−∫exdx
  4. Finish

    The remaining integral is easy, and we add a constant at the end.

    xex−ex+C

    Why? Check: the derivative of the result is x times e to the x.

More cases and examples

  1. A definite integral

    Put the limits into the finished result.

    ∫01xexdx=[xex−ex]01
    =(e−e)−(0−1)=1

The rule

Integration by parts

When to use it: The integrand is a product of two kinds of functions, like x and a power of e.

∫udv=uv−∫vdu
  • uthe factor we differentiate
  • dvthe factor we integrate
  • v,duthe results of integrating and differentiating

Watch out: If a function and its derivative sit inside, substitution is simpler.

Common mistakes

  • Wrong
    ∫udv=uv+∫vdu
    Right
    ∫udv=uv−∫vdu

    The formula has a minus.

  • Wrong
    ∫xexdx=x22·ex
    Right
    ∫xexdx=xex−ex+C

    We cannot integrate each factor on its own.

How to study this topic

  1. Read the idea first
  2. Then go through the steps, covering each result before you read it
  3. Then learn the rule
  4. Finally, check the common slips

Related lessons