U-Substitution Calculator

Type an integrand that holds a function and its derivative, such as 2x cos(x^2).

Use x. Type powers with ^, and functions with brackets: sin(x), e^(2x), ln(x), sqrt(x).

Try

Result

You entered∫xx2+1 dx\int \frac{x}{x^{2} + 1}\,dx

∫xx2+1 dx=ln⁡(x2+1)2+C\displaystyle \int \frac{x}{x^{2} + 1}\,dx = \frac{\ln\left(x^{2} + 1\right)}{2} + C
Show the work
  1. u-substitution

    Choose u=x2+1u = x^{2} + 1, the inner function. Its derivative 2x2x is already in the integrand, so everything else becomes a function of uu alone.

    Using ∫f(g(x)) g′(x) dx=∫f(u) du\int f(g(x))\,g'(x)\,dx = \int f(u)\,du

    u=x2+1du=2x dx\begin{gathered} u = x^{2} + 1 \\ du = 2x\,dx \end{gathered}
  2. Rewrite in u

    Replace x2+1x^{2} + 1 by uu and 2x dx2x\,dx by dudu.

    ∫xx2+1 dx=∫12u du\int \frac{x}{x^{2} + 1}\,dx = \int \frac{1}{2u}\,du
  3. Constant multiple rule

    The constant factor 12\frac{1}{2} can be moved outside the integral.

    Using ∫c f(x) dx=c∫f(x) dx\int c\,f(x)\,dx = c\int f(x)\,dx

    ∫12u du=12∫1u du\int \frac{1}{2u}\,du = \frac{1}{2}\int \frac{1}{u}\,du
  4. Power rule for integrals

    This is one of the basic integrals, so the answer is read straight from the table.

    Using ∫1x dx=ln⁡∣x∣+C\int \frac{1}{x}\,dx = \ln\left|x\right| + C

    ∫1u du=ln⁡∣u∣\int \frac{1}{u}\,du = \ln\left|u\right|
  5. Substitute back

    Replace uu by x2+1x^{2} + 1.

    ln⁡∣u∣2=ln⁡∣x2+1∣2\frac{\ln\left|u\right|}{2} = \frac{\ln\left|x^{2} + 1\right|}{2}
  6. Result

    An antiderivative is only defined up to a constant, so the constant of integration CC is added.

    ∫xx2+1 dx=ln⁡(x2+1)2+C\int \frac{x}{x^{2} + 1}\,dx = \frac{\ln\left(x^{2} + 1\right)}{2} + C

Worked examples