Calculus guide · 7 min read

U Substitution Step by Step (With Examples)

U substitution is the chain rule run in reverse, and it is the first integration technique to learn after the basic rules. You replace a messy inside function with a single letter u, integrate something simple, then switch back. This guide shows how to pick u and works through indefinite and definite integrals step by step.

The Idea Behind U Substitution

The chain rule says ddx[F(g(x))]=F′(g(x))⋅g′(x)\frac{d}{dx}\left[F(g(x))\right] = F'(g(x)) \cdot g'(x). Reading that backward gives the substitution rule:

∫f(g(x)) g′(x) dx=∫f(u) duwhere u=g(x)\int f(g(x))\,g'(x)\,dx = \int f(u)\,du \quad \text{where } u = g(x)

So u substitution works when the integral contains an inside function and that inside function's derivative (up to a constant factor).

How to choose u. Good choices are usually:

  • The expression inside parentheses raised to a power, like x2+1x^2 + 1 in (x2+1)5(x^2 + 1)^5.
  • The expression under a square root.
  • The exponent in esomethinge^{\text{something}}.
  • The input of a trig function, like x2x^2 in cos⁡(x2)\cos(x^2).
  • A denominator whose derivative appears in the numerator.

The 5-Step Method

  1. Choose uu, usually the inside function.
  2. Find dudu by differentiating: du=u′ dxdu = u'\,dx.
  3. Rewrite the whole integral in terms of uu. No xx and no dxdx may be left over.
  4. Integrate with respect to uu.
  5. Substitute back to get an answer in terms of xx, and add +C+ C.

Example: Find ∫2x(x2+1)5 dx\int 2x(x^2 + 1)^5\,dx.

  1. Let u=x2+1u = x^2 + 1.
  2. Then du=2x dxdu = 2x\,dx.
  3. The 2x dx2x\,dx in the integral is exactly dudu, so the integral becomes ∫u5 du\int u^5\,du.
  4. Integrate: u66+C\frac{u^6}{6} + C.
  5. Substitute back: (x2+1)66+C\frac{(x^2 + 1)^6}{6} + C.

Check by differentiating: 6(x2+1)5⋅2x6=2x(x2+1)5\frac{6(x^2 + 1)^5 \cdot 2x}{6} = 2x(x^2 + 1)^5. It matches the integrand.

Fixing a Missing Constant

Often dudu is off by a constant factor. Solve for the piece you have and pull the constant out front.

Example 1: Find ∫xcos⁡(x2) dx\int x\cos(x^2)\,dx.

  1. Let u=x2u = x^2, so du=2x dxdu = 2x\,dx.
  2. The integral only has x dxx\,dx, so divide by 2: x dx=12dux\,dx = \frac{1}{2}du.
  3. Rewrite: ∫cos⁡u⋅12 du=12∫cos⁡u du\int \cos u \cdot \frac{1}{2}\,du = \frac{1}{2}\int \cos u\,du.
  4. Integrate: 12sin⁡u+C\frac{1}{2}\sin u + C.
  5. Substitute back: 12sin⁡(x2)+C\frac{1}{2}\sin(x^2) + C.

Example 2: Find ∫x2x3+4 dx\int \frac{x^2}{x^3 + 4}\,dx.

  1. Let u=x3+4u = x^3 + 4, so du=3x2 dxdu = 3x^2\,dx and x2 dx=13dux^2\,dx = \frac{1}{3}du.
  2. Rewrite: 13∫1u du\frac{1}{3}\int \frac{1}{u}\,du.
  3. Integrate and substitute back: 13ln⁡∣x3+4∣+C\frac{1}{3}\ln|x^3 + 4| + C.

You can only fix constants this way. If you are missing a factor of xx, you cannot pull it outside the integral.

Definite Integrals: Change the Bounds

With a definite integral, the bounds are xx values. Once you switch to uu, convert them to uu values using your substitution. Then you never have to switch back.

Example 1: Evaluate ∫02x(x2+1)3 dx\int_0^2 x(x^2 + 1)^3\,dx.

  1. Let u=x2+1u = x^2 + 1, so du=2x dxdu = 2x\,dx and x dx=12dux\,dx = \frac{1}{2}du.
  2. Change the bounds: when x=0x = 0, u=02+1=1u = 0^2 + 1 = 1. When x=2x = 2, u=22+1=5u = 2^2 + 1 = 5.
  3. Rewrite: 12∫15u3 du\frac{1}{2}\int_1^5 u^3\,du.
  4. Integrate: 12⋅u44∣15=u48∣15\frac{1}{2} \cdot \frac{u^4}{4}\Big|_1^5 = \frac{u^4}{8}\Big|_1^5.
  5. Evaluate: 54−148=625−18=6248=78\frac{5^4 - 1^4}{8} = \frac{625 - 1}{8} = \frac{624}{8} = 78.

Example 2: Evaluate ∫1eln⁡xx dx\int_1^e \frac{\ln x}{x}\,dx.

  1. Let u=ln⁡xu = \ln x, so du=1x dxdu = \frac{1}{x}\,dx.
  2. Change the bounds: x=1x = 1 gives u=ln⁡1=0u = \ln 1 = 0. x=ex = e gives u=ln⁡e=1u = \ln e = 1.
  3. Rewrite: ∫01u du\int_0^1 u\,du.
  4. Evaluate: u22∣01=12−0=12\frac{u^2}{2}\Big|_0^1 = \frac{1}{2} - 0 = \frac{1}{2}.

If you would rather keep the original bounds, substitute back to xx first and then plug in the xx bounds. For Example 1 that gives (x2+1)48∣02=625−18=78\frac{(x^2 + 1)^4}{8}\Big|_0^2 = \frac{625 - 1}{8} = 78, the same answer. Just never mix uu expressions with xx bounds.

When an Extra x Is Left Over

Sometimes an xx remains after substituting. If so, solve your uu equation for xx and replace it.

Example: Find ∫xx−1 dx\int x\sqrt{x - 1}\,dx.

  1. Let u=x−1u = x - 1, so du=dxdu = dx. That leaves the outside xx unaccounted for.
  2. Solve for xx: x=u+1x = u + 1.
  3. Rewrite: ∫(u+1)u1/2 du=∫(u3/2+u1/2)du\int (u + 1)u^{1/2}\,du = \int \left(u^{3/2} + u^{1/2}\right)du.
  4. Integrate with the power rule: 25u5/2+23u3/2+C\frac{2}{5}u^{5/2} + \frac{2}{3}u^{3/2} + C.
  5. Substitute back: 25(x−1)5/2+23(x−1)3/2+C\frac{2}{5}(x - 1)^{5/2} + \frac{2}{3}(x - 1)^{3/2} + C.

If no choice of uu makes the integral simpler, the problem probably needs another technique, such as integration by parts. Paste it into the VeilGPT solver to check your steps.

Common mistakes

  • Leaving dx in the integral after substituting, instead of replacing it with an expression in du.
  • Changing to u but keeping the original x bounds on a definite integral, which gives the wrong value.
  • Trying to pull a missing variable, like an extra x, outside the integral as if it were a constant.
  • Forgetting to substitute back to x or to add + C on an indefinite integral.

Try one yourself

Evaluate the integral of x^2 (x^3 + 1)^4 dx from x = 0 to x = 1

Work it out, then check every step with the VeilGPT calculus solver.

Check it with VeilGPT

Questions about this topic

How do I know what to pick for u?

Look for an inside function whose derivative also appears in the integral, up to a constant. If your first choice does not simplify things, try a different part of the expression.

Do I have to change the bounds on a definite integral?

You have two valid options: change the bounds to u values, or substitute back to x and use the original bounds. Both give the same answer as long as you do not mix them.

Does u substitution work on every integral?

No. It only works when the integrand has the shape f(g(x)) g'(x) or can be rearranged into it. Other integrals need methods like integration by parts or partial fractions.

More study guides