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∫2x cos⁡(x2) dx\int 2x\,\cos\left(x^{2}\right)\,dx

∫2x cos⁡(x2) dx=sin⁡(x2)+C\displaystyle \int 2x\,\cos\left(x^{2}\right)\,dx = \sin\left(x^{2}\right) + C
Show the work
  1. Constant multiple rule

    The constant factor 22 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

    ∫2x cos⁡(x2) dx=2∫x cos⁡(x2) dx\int 2x\,\cos\left(x^{2}\right)\,dx = 2\int x\,\cos\left(x^{2}\right)\,dx
  2. u-substitution

    Choose u=x2u = x^{2}, 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=x2du=2x dx\begin{gathered} u = x^{2} \\ du = 2x\,dx \end{gathered}
  3. Rewrite in u

    Replace x2x^{2} by uu and 2x dx2x\,dx by dudu.

    ∫x cos⁡(x2) dx=∫cos⁡u2 du\int x\,\cos\left(x^{2}\right)\,dx = \int \frac{\cos u}{2}\,du
  4. 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

    ∫cos⁡u2 du=12∫cos⁡u du\int \frac{\cos u}{2}\,du = \frac{1}{2}\int \cos u\,du
  5. Integral of cosine

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

    Using ∫cos⁡x dx=sin⁡x+C\int \cos x\,dx = \sin x + C

    ∫cos⁡u du=sin⁡u\int \cos u\,du = \sin u
  6. Substitute back

    Replace uu by x2x^{2}.

    sin⁡u2=sin⁡(x2)2\frac{\sin u}{2} = \frac{\sin\left(x^{2}\right)}{2}
  7. Result

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

    ∫2x cos⁡(x2) dx=sin⁡(x2)+C\int 2x\,\cos\left(x^{2}\right)\,dx = \sin\left(x^{2}\right) + C

Worked examples