MATH BOSS

All lessons

How do I do u substitution?

Name the inner part, replace everything with u, integrate and go back to x.

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

Example

∫xex2dx

Answer: ex22+C

Try it yourself: ∫2xcos(x2)dx

Why do I need this?

When an integral has a composite function and the derivative of its inner part, substitution turns it into a direct integral.

The idea

The derivative of a composite function contains the derivative of its inner part. Naming the inner part u makes the integral simple.

∫xex2dx

Step by step

  1. Think first

    Look for an inner part whose derivative almost appears in the problem too.

    Why? Here x squared sits inside e, and the x beside it is almost its derivative.

  2. Name the inner part

    Call the inner part u and compute its derivative.

    u=x2
    du=2xdx⇒xdx=du2
  3. Rewrite

    Replace everything with u, and what is left, x dx, becomes half of du.

    ∫eu·12du
  4. Integrate and go back

    Integrate in u and put x back in place of u.

    12eu+C=ex22+C

    Why? Check: the derivative of the result brings back the original problem.

More cases and examples

  1. A definite integral

    With limits, put them into the finished result, after going back to x.

    ∫01xex2dx=[ex22]01
    =e2−12=e−12

The rule

Substitution

When to use it: The derivative of the inner part appears as a factor, up to a number.

∫f(g(x))g'(x)dx=∫f(u)du,u=g(x)
  • g(x)the inner part
  • ua new name for the inner part
  • dx,duthe small step in x and in u

Watch out: If a different x is left over, substitution fails and parts may work.

Common mistakes

  • Wrong
    ∫xex2dx=ex2+C
    Right
    ∫xex2dx=ex22+C

    The half is missing: du is 2x dx, so x dx is half of du.

  • Wrong
    ∫xex2dx=x22·ex2
    Right
    ∫xex2dx=ex22+C

    There is no product rule for integrals; use a substitution.

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