∫Yoboa Math
Home / Guides / u-Substitution

u-Substitution

u-substitution is the chain rule run backwards. Look for a function inside another function whose derivative also shows up (up to a constant) somewhere in the integrand.

The method

  1. Pick \(u\) to be the inner function: the thing inside a power, root, exponential or trig function, or a denominator.
  2. Compute \(du = u'(x)\,dx\).
  3. Rewrite the whole integral in terms of \(u\). No \(x\) should be left over.
  4. Integrate, then substitute \(u\) back.

If an \(x\) is still left after step 3, either try a different \(u\) or solve \(u = g(x)\) for \(x\) and substitute that in too.

Example: \(x \cos{\left(x^{2} \right)}\)

The inner function is \(x^2\), and its derivative \(2x\) is already there, up to the factor 2.

\[\int x \cos{\left(x^{2} \right)}\,dx = \frac{\sin{\left(x^{2} \right)}}{2} + C\]
1Substitution (u-sub)technique▶

Let \(u = x^{2}\). Then \(du = 2 x\,dx\). Rewriting the integral in terms of \(u\):

\[\int x \cos{\left(x^{2} \right)}\,dx = \int \frac{\cos{\left(u \right)}}{2}\,du\]
1Pull out the constant▶

Constants factor out of an integral: move \(\frac{1}{2}\) outside.

\[\int \frac{\cos{\left(u \right)}}{2}\,du = \frac{1}{2}\int \cos{\left(u \right)}\,du\]
1Integral of cosine▶

The antiderivative of cosine is sine.

\[\int \cos{\left(u \right)}\,du = \sin{\left(u \right)}\]
2Multiply back by the constant▶
\[\frac{1}{2}\cdot\left(\sin{\left(u \right)}\right) = \frac{\sin{\left(u \right)}}{2}\]
2Substitute back▶

Replace \(u\) with \(x^{2}\):

\[\frac{\sin{\left(u \right)}}{2}\;\to\;\frac{\sin{\left(x^{2} \right)}}{2}\]
Open this in the calculator →

Example: \(\frac{x}{x^{2} + 1}\)

The numerator is (half of) the derivative of the denominator, so the answer is a logarithm.

\[\int \frac{x}{x^{2} + 1}\,dx = \frac{\ln{\left(x^{2} + 1 \right)}}{2} + C\]
1Pull out the constant▶

Constants factor out of an integral: move \(\frac{1}{2}\) outside.

\[\int \frac{x}{x^{2} + 1}\,dx = \frac{1}{2}\int \frac{2 x}{x^{2} + 1}\,dx\]
1Substitution (u-sub)technique▶

Let \(u = x^{2} + 1\). Then \(du = 2 x\,dx\). Rewriting the integral in terms of \(u\):

\[\int \frac{x}{x^{2} + 1}\,dx = \int \frac{1}{u}\,du\]
1Reciprocal rule▶

The integral of \(\frac{1}{u}\) is \(\ln\left|u\right|\).

\[\int \frac{1}{u}\,du = \ln\left|u\right|\]
2Substitute back▶

Replace \(u\) with \(x^{2} + 1\):

\[\ln{\left(\left|{u}\right| \right)}\;\to\;\ln{\left(x^{2} + 1 \right)}\]
2Multiply back by the constant▶
\[\frac{1}{2}\cdot\left(\ln{\left(x^{2} + 1 \right)}\right) = \frac{\ln{\left(x^{2} + 1 \right)}}{2}\]
Open this in the calculator →

Example: \(x^{3} \sqrt{x^{2} + 1}\)

Let \(u = 1+x^2\). The leftover \(x^2\) becomes \(u - 1\). This is a classic exam problem.

\[\int x^{3} \sqrt{x^{2} + 1}\,dx = \frac{\sqrt{x^{2} + 1} \left(3 x^{4} + x^{2} - 2\right)}{15} + C\]
1Substitution (u-sub)technique▶

Let \(u = x^{2} + 1\). Then \(du = 2 x\,dx\). Any leftover \(x^2\) becomes \(u - 1\). The integral becomes:

\[\int x^{3} \sqrt{x^{2} + 1}\,dx = \int \frac{\sqrt{u} \left(u - 1\right)}{2}\,du\]
1Pull out the constant▶

Constants factor out of an integral: move \(\frac{1}{2}\) outside.

\[\int \frac{\sqrt{u} \left(u - 1\right)}{2}\,du = \frac{1}{2}\int \sqrt{u} \left(u - 1\right)\,du\]
1Substitution (u-sub)technique▶

Let \(u = \sqrt{u}\). Then \(du = \frac{1}{2 \sqrt{u}}\,du\). Rewriting the integral in terms of \(u\):

\[\int \sqrt{u} \left(u - 1\right)\,du = \int 2 u^{2} \left(u^{2} - 1\right)\,du\]
1Pull out the constant▶

Constants factor out of an integral: move \(2\) outside.

\[\int 2 u^{2} \left(u^{2} - 1\right)\,du = 2\int u^{2} \left(u^{2} - 1\right)\,du\]
1Expandtechnique▶

Multiply out the integrand:

\[u^{2} \left(u^{2} - 1\right) = u^{4} - u^{2}\]
1Split into separate integrals▶

The integral of a sum is the sum of the integrals. Integrate each term:

\[\int u^{4} - u^{2}\,du = \int u^{4}\,du + \int - u^{2}\,du\]
1Power rule▶

Use \(\int x^{n}\,dx = \frac{x^{n+1}}{n+1}\) with \(n = 4\).

\[\int u^{4}\,du = \frac{u^{5}}{5}\]
2Pull out the constant▶

Constants factor out of an integral: move \(-1\) outside.

\[\int - u^{2}\,du = -1\int u^{2}\,du\]
1Power rule▶

Use \(\int x^{n}\,dx = \frac{x^{n+1}}{n+1}\) with \(n = 2\).

\[\int u^{2}\,du = \frac{u^{3}}{3}\]
2Multiply back by the constant▶
\[-1\cdot\left(\frac{u^{3}}{3}\right) = - \frac{u^{3}}{3}\]
3Add the results▶
\[\int u^{4} - u^{2}\,du = \frac{u^{5}}{5} - \frac{u^{3}}{3}\]
2Multiply back by the constant▶
\[2\cdot\left(\frac{u^{5}}{5} - \frac{u^{3}}{3}\right) = \frac{2 u^{5}}{5} - \frac{2 u^{3}}{3}\]
2Substitute back▶

Replace \(u\) with \(\sqrt{u}\):

\[\frac{2 u^{5}}{5} - \frac{2 u^{3}}{3}\;\to\;\frac{2 u^{\frac{5}{2}}}{5} - \frac{2 u^{\frac{3}{2}}}{3}\]
2Multiply back by the constant▶
\[\frac{1}{2}\cdot\left(\frac{2 u^{\frac{5}{2}}}{5} - \frac{2 u^{\frac{3}{2}}}{3}\right) = \frac{u^{\frac{5}{2}}}{5} - \frac{u^{\frac{3}{2}}}{3}\]
2Substitute back▶

Replace \(u\) with \(x^{2} + 1\):

\[\frac{u^{\frac{5}{2}}}{5} - \frac{u^{\frac{3}{2}}}{3}\;\to\;\frac{\sqrt{x^{2} + 1} \left(3 x^{4} + x^{2} - 2\right)}{15}\]
Open this in the calculator →

Definite integrals

With bounds, either change the bounds to \(u\)-values (\(u(a)\) and \(u(b)\)) and never go back to \(x\), or substitute back to \(x\) and use the original bounds. Don't mix the two.

How to spot it

  • A composite function \(f(g(x))\) next to \(g'(x)\).
  • A fraction whose numerator is roughly the derivative of its denominator. That gives \(\ln|\cdot|\).
  • \(\sin^n x\cos x\) or \(\tan^n x\sec^2 x\): let \(u\) be the trig function.

Try your own

Paste any integral into the integral calculator to get the full step-by-step solution and a graph.

More techniques