Integral of sin²(x)

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

Answer

Indefinite integral
x2−sin⁡(2x)4+C\frac{x}{2} - \frac{\sin{\left(2 x \right)}}{4} + C

Checked numerically before it is shown

Step-by-step solution

  1. Rewrite the integrand

    sin⁡2(x)=12−cos⁡(2x)2\sin^{2}{\left(x \right)} = \frac{1}{2} - \frac{\cos{\left(2 x \right)}}{2}
  2. Sum rule

    Integrate term by term:

    ∫(12−cos⁡(2x)2) dx=∫12 dx+∫−cos⁡(2x)2 dx\int \left(\frac{1}{2} - \frac{\cos{\left(2 x \right)}}{2}\right)\,dx = \int \frac{1}{2}\,dx + \int - \frac{\cos{\left(2 x \right)}}{2}\,dx
  3. Integral of a constant

    ∫12 dx=x2\int \frac{1}{2}\,dx = \frac{x}{2}
  4. Constant multiple rule

    Take the constant factor out of the integral:

    ∫−cos⁡(2x)2 dx=−12∫cos⁡(2x) dx\int - \frac{\cos{\left(2 x \right)}}{2}\,dx = - \frac{1}{2} \int \cos{\left(2 x \right)}\,dx
  5. Substitution

    Substitute u=2xu = 2 x, so du=2 dxdu = 2\,dx.

  6. Change the variable

    Rewrite the integral in the new variable:

    ∫cos⁡(2x) dx=∫cos⁡(u)2 du\int \cos{\left(2 x \right)}\,dx = \int \frac{\cos{\left(u \right)}}{2}\,du
  7. Constant multiple rule

    Take the constant factor out of the integral:

    ∫cos⁡(u)2 du=12∫cos⁡(u) du\int \frac{\cos{\left(u \right)}}{2}\,du = \frac{1}{2} \int \cos{\left(u \right)}\,du
  8. Standard integral

    ∫cos⁡(u) du=sin⁡(u)\int \cos{\left(u \right)}\,du = \sin{\left(u \right)}
  9. Substitute back

    Substitute back u=2xu = 2 x.

  10. Constant of integration

    Add the constant of integration:

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

Change the problem in the solver Integral calculator

Related solved examples