What Is U-Substitution?
Substitution is the integration technique for undoing the chain rule: when an integrand contains a composite function together with its derivative, renaming the inner function u turns an intimidating integral into a basic one. This substitution calculator finds that substitution for the standard chain forms — powers like (3x + 2)^4, exponentials like x·e^(x^2), logarithms like (2x)/(x^2 + 1), roots like x/sqrt(x^2 + 4), and trig forms like cos(x)·e^(sin x) — and lays out the complete solution: the choice of u, the computation of du, any constant adjustment, the integral rewritten in u, and the final back-substitution, with the answer verified by differentiation.
How U-Substitution Works, Step by Step
- Choose u: the inner function of the composition — here, whatever sits inside the power, exponent, root, denominator or trig function.
- Compute du = u′(x) dx and locate that exact piece inside the integrand.
- Adjust constants if needed: if the integrand has half of du, multiply the integral by the reciprocal outside — constants are free to move.
- Rewrite and integrate in u using the basic rules (power, exponential, log, trig).
- Substitute back to x and add C. Then check by differentiating — the calculator does this numerically on every answer.
Worked Example 1: Integrating (3x + 2)^4
The composition is the power: the outer function is (·)^4 and the inner function is 3x + 2. Set u = 3x + 2, so du = 3 dx and dx = du/3. The integral becomes (1/3)∫u^4 du = (1/3)(u^5/5) = u^5/15. Back-substituting: (3x + 2)^5/15 + C. Differentiate to check: the chain rule gives 5(3x + 2)^4·3/15 = (3x + 2)^4 — the 3 from the chain rule is precisely what the 1/3 adjustment paid for.
Worked Example 2: Integrating (2x)/(x^2 + 1)
Here the inner function is in the denominator: u = x^2 + 1, and du = 2x dx is sitting in the numerator exactly. The integral becomes ∫du/u = ln|u| + C, so the answer is ln(x^2 + 1) + C (the absolute value can drop because x^2 + 1 is always positive). This numerator-is-the-derivative-of-the-denominator pattern is the most recognisable substitution in calculus — it always produces a logarithm.
Worked Example 3: Integrating x·sin(x^2)
Trig functions of a squared variable look impossible until you notice the x standing outside: it is the derivative of the inside, up to a constant. Set u = x^2, so du = 2x dx and x dx = du/2. The integral becomes (1/2)∫sin(u) du = −(1/2)cos(u) + C, and back-substituting gives −(1/2)cos(x^2) + C. The same shape recurs constantly: (sin x)^3·cos x takes u = sin x and becomes u^4/4; e^(5x) takes u = 5x and becomes e^(5x)/5; x/sqrt(x^2 + 4) takes u = x^2 + 4 and becomes sqrt(x^2 + 4). In every case the recipe is identical — find the inner function whose derivative is also present — and the calculator's step panel names that inner function explicitly, which is the observation that makes the technique learnable.
Substitution vs the Antiderivative and Integral Calculators
The three integration tools on this site divide the work by technique. The antiderivative calculator handles sums of basic forms term by term — no substitution needed. The integral calculator covers definite integrals and numeric evaluation. This page is the specialist: it exists to teach and execute the one technique, showing the u and du reasoning that a general answer key hides. If an integral needs parts or partial fractions rather than substitution, those are different techniques — the honest message this calculator gives when it cannot find a working u.
Three Mistakes to Watch For
First, forgetting to convert dx: every piece of the integrand, including dx, must be rewritten in u — mixing x and u in one integral is the classic error. Second, adjusting by a variable instead of a constant: you may multiply by 1/2, never by 1/x. Third, forgetting to substitute back at the end — an answer in u is not an answer to a question asked in x. Each step panel in the calculator exists to make one of these mistakes visible before it happens.