U-Substitution Calculator: Step-by-Step Integration With Steps

During my calculus final exam preparation, the integral ∫x·sin(x²) dx had me stuck for twenty minutes. I knew u-substitution was the right method, but I couldn't figure out which part to substitute. When I finally used a step-by-step tool that showed me u = x² and why du = 2x dx was the key, everything clicked. That moment of understanding is exactly what our u-substitution calculator delivers for every integral you encounter.
This free integration by substitution calculator transforms complex integrals into simpler forms using the u-sub method. Enter any integrand — from basic polynomial compositions to trigonometric and exponential functions — and get a complete step-by-step solution showing how to choose u, find du, transform the integral, integrate in terms of u, and back-substitute. Whether you call it a u sub calculator, an integral substitution calculator, or an integration method tool, this calculator handles both indefinite and definite integrals with detailed explanations at every step.
How to Use the U-Substitution Calculator With Steps
Using this u sub calculator with steps is straightforward. Type your integrand in the input field — for example, "x*sin(x^2)" or "cos(3x)". The calculator offers two modes:
- Auto Detection analyzes your function and picks the optimal u substitution based on pattern recognition of composite functions and their derivatives.
- Manual Mode lets you specify your own substitution choice, which is ideal for learning and exploring alternative approaches.
Click "Calculate" and the tool walks you through six clear steps: choosing u, finding du, solving for dx, transforming the integral, integrating with respect to u, and back-substituting to get your final answer. For foundational antiderivative concepts, our indefinite integral calculator covers the basics before you tackle substitution methods.
For definite integrals with u-substitution, toggle the "Definite" option, enter your bounds, and the calculator converts limits to u-values and evaluates the result using the Fundamental Theorem of Calculus.
What Is U-Substitution in Integration?
U-substitution (also called the substitution rule for integration) is the reverse of the chain rule for derivatives. When you have an integral of the form ∫f(g(x))·g'(x) dx, you can substitute u = g(x), which transforms it into the simpler integral ∫f(u) du.
The key insight is recognizing that the integrand contains a composite function and the derivative of the inner function (possibly up to a constant factor). For example, in ∫2x·cos(x²) dx, the inner function is x², its derivative 2x appears as a factor, and cos is the outer function — making u = x² the natural choice.
This method is the most frequently used integration technique in calculus, appearing in everything from basic Calculus I homework to advanced physics and engineering problems. Understanding how to identify and apply u-substitution is essential before moving on to more complex methods like integration by parts or trigonometric substitution.
How to Choose U in U-Substitution: Step-by-Step Guide
Choosing the right u is the most important step. Here are the strategies our u substitution integration calculator uses, ordered by priority:
- Inner function of a composition — If you see sin(x²), e^(3x), or (2x+1)⁵, the expression inside the parentheses is almost always the right choice for u.
- Denominator of a fraction — In integrals like ∫x/(x²+1) dx, setting u equal to the denominator often works because the numerator is related to its derivative.
- Expression under a radical — For ∫x·√(x²+4) dx, choose u = x²+4 since du = 2x dx matches the remaining factor.
- Logarithmic or exponential base — In ∫ln(x)/x dx, setting u = ln(x) gives du = (1/x)dx, which perfectly matches the remaining factor.
- Check the derivative appears — After choosing u, verify that du (or a constant multiple) is present in the integrand. If not, try a different u.
Building strong derivative recognition skills makes choosing u much more intuitive, since you need to spot the derivative of your chosen u within the integrand.
U-Substitution Examples With Step-by-Step Solutions
Here are worked examples that demonstrate the most common u-substitution patterns our integration by substitution calculator with steps handles:
Example 1: Polynomial Inside Trig — ∫x·sin(x²) dx
- Let u = x² → du = 2x dx → x dx = du/2
- Transform: ∫sin(u)·(1/2) du = (1/2)∫sin(u) du
- Integrate: (1/2)·(−cos(u)) = −(1/2)cos(u)
- Back-substitute: −(1/2)cos(x²) + C
Example 2: Linear Inside Trig — ∫cos(3x) dx
- Let u = 3x → du = 3 dx → dx = du/3
- Transform: ∫cos(u)·(1/3) du
- Integrate: (1/3)sin(u)
- Back-substitute: (1/3)sin(3x) + C
Example 3: Definite Integral — ∫₀¹ x·e^(x²) dx
- Let u = x² → du = 2x dx → x dx = du/2
- Convert bounds: x=0 → u=0, x=1 → u=1
- Transform: (1/2)∫₀¹ e^u du = (1/2)[e^u]₀¹
- Evaluate: (1/2)(e¹ − e⁰) = (1/2)(e − 1) ≈ 0.8591
Example 4: Derivative in Numerator — ∫x/(x²+1) dx
- Let u = x²+1 → du = 2x dx → x dx = du/2
- Transform: (1/2)∫(1/u) du
- Integrate: (1/2)ln|u|
- Back-substitute: (1/2)ln|x²+1| + C
U-Substitution for Definite Integrals
When applying u-substitution to definite integrals, you have two approaches:
- Change the limits (recommended): Convert x-bounds to u-bounds by evaluating u at each limit. This avoids back-substitution entirely — you integrate in u and evaluate directly. Our u substitution definite integral calculator uses this method by default.
- Back-substitute first: Find the indefinite integral, back-substitute to get the answer in terms of x, then apply the original x-limits.
The first method is cleaner and less error-prone. For example, in ∫₀² x·cos(x²) dx with u = x²: when x = 0, u = 0; when x = 2, u = 4. The integral becomes (1/2)∫₀⁴ cos(u) du = (1/2)[sin(u)]₀⁴ = (1/2)(sin4 − sin0).
For comprehensive coverage of both definite and indefinite integration methods, our integral calculator provides unified access to all major techniques.
Common U-Substitution Patterns and When to Use Them
Recognizing common patterns speeds up your substitution choices. Here are the most frequent patterns this u sub calc handles:
| Integral Pattern | Choose u = | Result Form |
|---|---|---|
| ∫f'(x)·[f(x)]ⁿ dx | f(x) | uⁿ⁺¹/(n+1) + C |
| ∫f'(x)/f(x) dx | f(x) | ln|u| + C |
| ∫f'(x)·eᶠ⁽ˣ⁾ dx | f(x) | eᵘ + C |
| ∫f'(x)·sin(f(x)) dx | f(x) | −cos(u) + C |
| ∫f'(x)·cos(f(x)) dx | f(x) | sin(u) + C |
| ∫f'(x)·√f(x) dx | f(x) | (2/3)u^(3/2) + C |
When U-Substitution Does Not Work
U-substitution is powerful but has limitations. If the derivative of your chosen u does not appear (even as a constant multiple) in the integrand, substitution alone won't simplify the integral. In these cases, consider:
- Integration by parts — for products like ∫x·eˣ dx or ∫x·sin(x) dx, use our integration by parts calculator.
- Trigonometric substitution — for radicals like √(a²−x²) or √(x²+a²), try our trig substitution calculator.
- Partial fractions — for rational functions like ∫1/((x+1)(x−2)) dx, use our partial fraction decomposition calculator.
Our calculator will tell you if it cannot find a valid substitution, prompting you to try manual mode or an alternative technique.
About the Author
U-Substitution Calculator: Why Students and Professionals Choose This Tool
Our u substitution calculator with steps combines pattern recognition with educational transparency. Every calculation shows the complete substitution process — from choosing u through back-substitution — so you don't just get an answer, you understand why the answer works. The auto-detection mode handles dozens of common integral patterns, while manual mode lets you experiment with different substitution strategies.
Whether you're a student preparing for a calculus exam, a teacher looking for a demonstration tool, or an engineer verifying integration results, this integration by substitution calculator delivers accurate, step-by-step solutions that build real mathematical understanding. Bookmark this page and transform your approach to integration.



