U-Substitution

U-substitution simplifies integrals by transforming them into easier forms using a change of variables, ideal when you spot a function and its derivative.

f(g(x))g(x)dx=f(u)du\int f\big(g(x)\big)g'(x)\,dx = \int f(u)\,du

Solve a problem with U-Substitution

Type the problem. The solver will use U-Substitution where U-Substitution is the right tool, and tell you when it is not.

Drag one in or paste from the clipboard. JPEG, PNG or WebP. You get the transcription to check before anything is solved.

How to get a better answer
  • Paste the whole problem, including the instruction word — "simplify", "solve for x" and "factor" lead to three different answers.
  • Say what you have already tried. "I got x = 4 and the book says 2" turns a solution into a diagnosis.
  • Set the level in the settings button. A calculus shortcut is not a better answer if you have not met derivatives yet.
  • For a photo, get the whole problem in frame and hold the page flat — you get the transcription to fix before anything is solved.

What each symbol means

What U-Substitution takes
ff
gg
uu
xx
U-Substitution
SymbolMeaning
ffThe outer function in a composite f(g(x))f(g(x)) that you are integrating; if you choose uu correctly, the integral becomes f(u)du\int f(u) \, du, which is simpler to solve.
ggThe inner function in a composite expression; its derivative g(x)g'(x) must appear in the original integrand for U-substitution to work cleanly and avoid messy algebra.
uuThe new variable that replaces g(x)g(x) during substitution; the integral is rewritten entirely in terms of uu, often becoming a standard form like a power or exponential.
xxThe original variable of integration; U-substitution converts the integral from f(g(x))g(x)dx\int f(g(x))g'(x) \, dx to f(u)du\int f(u) \, du, and you substitute xx back at the end.

When to use it

Use U-substitution when an integral contains a composite function and its derivative appears in the integrand.

Level

Usually taught in: Calculus I · Appears on: AP Calculus

Worked examples

1. Integrate a polynomial composite function

Problem

Find (x2+1)52xdx\int (x^2 + 1)^5 \cdot 2x \, dx
  1. u=x2+1,du=2xdxu = x^2 + 1, \quad du = 2x \, dx

    Identify the inside function u=x2+1u = x^2 + 1 and differentiate it to get du=2xdxdu = 2x \, dx, which matches exactly what appears in the integrand.

  2. (x2+1)52xdx=u5du\int (x^2 + 1)^5 \cdot 2x \, dx = \int u^5 \, du

    Substitute the new variable uu and dudu to replace the composite expression and rewrite the integral in a simpler form.

  3. u5du=u66+C\int u^5 \, du = \frac{u^6}{6} + C

    Apply the power rule for integration: undu=un+1n+1+C\int u^n \, du = \frac{u^{n+1}}{n+1} + C with n=5n = 5.

  4. (x2+1)66+C\frac{(x^2+1)^6}{6} + C

    Substitute u=x2+1u = x^2 + 1 back into the antiderivative to express the final answer in terms of the original variable xx.

Answer: (x2+1)66+C\frac{(x^2+1)^6}{6} + C

This is a textbook case for U-substitution: the integrand contains a composite function raised to a power, and its derivative is multiplied directly in front. Recognizing that u=x2+1u = x^2 + 1 and du=2xdxdu = 2x \, dx lets us turn the integral into a simple power rule, which would be tedious to expand by hand.

2. Integrate a rational function with a negative exponent

Problem

Find 6x(2x25)3dx\int \frac{-6x}{(2x^2-5)^3} \, dx
  1. u=2x25,du=4xdxu = 2x^2 - 5, \quad du = 4x \, dx

    Let uu be the denominator base, and differentiate: du=4xdxdu = 4x \, dx.

  2. 6xdx=32du-6x \, dx = -\frac{3}{2} \, du

    From du=4xdxdu = 4x \, dx, we have xdx=14dux \, dx = \frac{1}{4} du, so 6xdx=614du=32du-6x \, dx = -6 \cdot \frac{1}{4} du = -\frac{3}{2} du. This step is crucial: the coefficient must match.

  3. 6x(2x25)3dx=3/2u3du=32u3du\int \frac{-6x}{(2x^2-5)^3} \, dx = \int \frac{-3/2}{u^3} \, du = -\frac{3}{2} \int u^{-3} \, du

    Substitute to get a simple power integral with a negative exponent.

  4. 32u22+C=34u2+C-\frac{3}{2} \cdot \frac{u^{-2}}{-2} + C = \frac{3}{4} u^{-2} + C

    Apply the power rule: u3du=u22\int u^{-3} \, du = \frac{u^{-2}}{-2}, then simplify by multiplying 32-\frac{3}{2} by 12\frac{1}{-2}.

  5. 34(2x25)2+C\frac{3}{4(2x^2-5)^2} + C

    Substitute u=2x25u = 2x^2 - 5 back and write the answer with positive exponents.

Answer: 34(2x25)2+C\frac{3}{4(2x^2-5)^2} + C

This example requires careful bookkeeping: because du=4xdxdu = 4x \, dx but the integral shows 6xdx-6x \, dx, we must account for the coefficient ratio. The negative exponent and fraction also make this harder to spot at first, but U-substitution still cuts through the algebra cleanly.

3. Model fuel consumption on a road trip

Problem

A car on a road trip consumes fuel at a rate of r(t)=120e0.5tr(t) = 120e^{-0.5t} gallons per hour, where tt is time in hours. Due to the driver settling into a steady pace, consumption decreases exponentially. How much fuel was consumed during the first 22 hours?
  1. 02120e0.5tdt\int_0^2 120e^{-0.5t} \, dt

    Set up the integral of the consumption rate to find total fuel used.

  2. u=0.5t,du=0.5dt,dt=2duu = -0.5t, \quad du = -0.5 \, dt, \quad dt = -2 \, du

    Let uu be the exponent, then rearrange to express dtdt in terms of dudu.

  3. When t=0:u=0;When t=2:u=1\text{When } t = 0: u = 0; \quad \text{When } t = 2: u = -1

    Convert the limits of integration to the new variable: substituting t=0t=0 gives u=0u=0, and t=2t=2 gives u=1u=-1.

  4. 02120e0.5tdt=01120eu(2)du=24001eudu\int_0^2 120e^{-0.5t} \, dt = \int_0^{-1} 120e^u \cdot (-2) \, du = -240 \int_0^{-1} e^u \, du

    Substitute uu, dudu, and the new limits into the integral.

  5. 240[eu]01=240(e1e0)=240(e11)-240 [e^u]_0^{-1} = -240(e^{-1} - e^0) = -240(e^{-1} - 1)

    Integrate eue^u and apply the Fundamental Theorem of Calculus.

  6. 240e1+240=240240e1-240e^{-1} + 240 = 240 - 240e^{-1}

    Distribute the 240-240 and rearrange to get the final form: 240(1e1)240(1 - e^{-1}) gallons.

Answer: 240240e1 gallons151.7 gallons240 - 240e^{-1} \text{ gallons} \approx 151.7 \text{ gallons}

This problem shows U-substitution in a real-world setting: modeling changing rates. The exponential decay in fuel consumption is realistic, and the integral eaxdx\int e^{ax} \, dx always requires U-substitution (or knowledge of a formula). Changing the limits when substituting is essential for definite integrals, and this example shows why: the limits for tt are different from those for uu.

Common mistakes

Where U-Substitution usually goes wrong
Answer came out wrong
Writing u5du=u66+C\int u^5 \, du = \frac{u^6}{6} + C and stopping, leaving the answer in terms of uu instead of xx.
Always substitute your original variable back in at the end: u66+C=(x2+1)66+C\frac{u^6}{6} + C = \frac{(x^2+1)^6}{6} + C.
If u=x2+1u = x^2 + 1, incorrectly writing du=2x2dxdu = 2x^2 \, dx instead of du=2xdxdu = 2x \, dx.
Carefully differentiate: ddx(x2+1)=2x\frac{d}{dx}(x^2 + 1) = 2x, so du=2xdxdu = 2x \, dx. Double-check this step before substituting.
In 6x(2x25)3dx\int \frac{-6x}{(2x^2-5)^3} dx with u=2x25u = 2x^2 - 5 and du=4xdxdu = 4x \, dx, writing 6u3du\int \frac{-6}{u^3} du instead of 3/2u3du\int \frac{-3/2}{u^3} du.
After setting uu and dudu, solve for $x \, dx$ (or whatever expression appears in the integral): xdx=14dux \, dx = \frac{1}{4} du, then 6xdx=32du-6x \, dx = -\frac{3}{2} du.
The mistakeWhy it is wrongThe fix
Writing u5du=u66+C\int u^5 \, du = \frac{u^6}{6} + C and stopping, leaving the answer in terms of uu instead of xx.The problem asks for an antiderivative in terms of the original variable xx; an answer in terms of uu is incomplete and incorrect.Always substitute your original variable back in at the end: u66+C=(x2+1)66+C\frac{u^6}{6} + C = \frac{(x^2+1)^6}{6} + C.
If u=x2+1u = x^2 + 1, incorrectly writing du=2x2dxdu = 2x^2 \, dx instead of du=2xdxdu = 2x \, dx.The derivative of x2x^2 is 2x2x, not 2x22x^2. Using the wrong derivative will lead to an incorrect constant factor in the answer.Carefully differentiate: ddx(x2+1)=2x\frac{d}{dx}(x^2 + 1) = 2x, so du=2xdxdu = 2x \, dx. Double-check this step before substituting.
In 6x(2x25)3dx\int \frac{-6x}{(2x^2-5)^3} dx with u=2x25u = 2x^2 - 5 and du=4xdxdu = 4x \, dx, writing 6u3du\int \frac{-6}{u^3} du instead of 3/2u3du\int \frac{-3/2}{u^3} du.When you substitute, all parts of dxdx must be accounted for. Since du=4xdxdu = 4x \, dx, then 6xdx=32du-6x \, dx = -\frac{3}{2} du, not 6du-6 du. Forgetting to adjust the coefficient causes the answer to be off by a factor.After setting uu and dudu, solve for $x \, dx$ (or whatever expression appears in the integral): xdx=14dux \, dx = \frac{1}{4} du, then 6xdx=32du-6x \, dx = -\frac{3}{2} du.

Tips and when to use something else

  • U-substitution works when the derivative of an inner function appears in the integrand; if it does not, try Integration by Parts or another method instead.
  • Always write down dudu immediately after choosing uu, and check that dudu (or a simple multiple of it) appears in the original integral—if not, your choice of uu may be wrong.
  • For definite integrals, change the limits of integration to match the new variable; this avoids having to convert back to the original variable and then re-evaluate.
  • If du=4xdxdu = 4x \, dx but your integral shows only $x \, dx$, divide both sides: xdx=14dux \, dx = \frac{1}{4} du. Pull out fractional coefficients as constants in front of the integral sign.

Frequently asked questions

How do I know which part of the integral to use as uu?
Look for a composite function (an inner function inside another function) and check if its derivative appears somewhere in the integrand. The inner function is usually your best choice for uu. For example, in 2x(x2+1)5dx\int 2x(x^2+1)^5 dx, the inner function is x2+1x^2+1 and its derivative 2x2x is visible in front, so you choose u=x2+1u = x^2+1.
Why do the limits of integration change when I use U-substitution on a definite integral?
When you replace xx with u=g(x)u = g(x), the variable of integration changes, so the limits must change too. If you integrate from x=ax=a to x=bx=b, you now integrate from u=g(a)u=g(a) to u=g(b)u=g(b). This ensures the integral represents the same area or quantity before and after substitution.
What should I do if dudu does not match exactly what appears in my integral?
Pull out constants and scale appropriately. If du=4xdxdu = 4x \, dx but the integrand shows $x \, dx$, rewrite xdx=14dux \, dx = \frac{1}{4} du. If the integrand shows $3x \, dx$, then 3xdx=34du3x \, dx = \frac{3}{4} du. Factor out the coefficient in front of the integral sign and continue with the simpler form.
Can I always use U-substitution to solve any integral?
No. U-substitution requires that the derivative of your chosen uu (or a simple multiple of it) appears in the integrand. If this condition is not met, the substitution will not simplify the integral. In those cases, try Integration by Parts, Partial Fractions, trigonometric substitution, or look up a table of antiderivatives.

Need a different method?

The full solver is not scoped to one formula — type any problem and it will pick the method.

Open the math solver

Reviewed 2026-09-18