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∫sin⁡x cos⁡x dx\int \sin x\,\cos x\,dx

∫sin⁡x cos⁡x dx=sin⁡2x2+C\displaystyle \int \sin x\,\cos x\,dx = \frac{\sin^{2} x}{2} + C
Show the work
  1. u-substitution

    Choose u=sin⁡xu = \sin x, the inner function. Its derivative cos⁡x\cos x 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=sin⁡xdu=cos⁡x dx\begin{gathered} u = \sin x \\ du = \cos x\,dx \end{gathered}
  2. Rewrite in u

    Replace sin⁡x\sin x by uu and cos⁡x dx\cos x\,dx by dudu.

    ∫sin⁡x cos⁡x dx=∫u du\int \sin x\,\cos x\,dx = \int u\,du
  3. Power rule for integrals

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

    Using ∫xn dx=xn+1n+1+C\int x^n\,dx = \frac{x^{n+1}}{n+1} + C

    ∫u du=u22\int u\,du = \frac{u^{2}}{2}
  4. Substitute back

    Replace uu by sin⁡x\sin x.

    u22=sin⁡2x2\frac{u^{2}}{2} = \frac{\sin^{2} x}{2}
  5. Result

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

    ∫sin⁡x cos⁡x dx=sin⁡2x2+C\int \sin x\,\cos x\,dx = \frac{\sin^{2} x}{2} + C

Worked examples