Skip to content
ihateDesmos

Integral of sin 2x

Updated 6 November 2026 · Checked numerically by the ihateDesmos engine
The integral of sin 2x
∫
sin(2x)
dx =
−cos(2x)2+C

The integral of sin 2x is −cos(2x)/2 + C. The minus sign comes from the integral of sine, and dividing by 2 undoes the chain rule.

−3−2−1123−110
Open in calculator
y=sin(2x)
in blue and its integral
y=−cos(2x)2
(with C = 0) in red.

How to integrate sin 2x

Method: u-substitution.

  1. 1
    Let u = 2x, so du = 2 dx, which means dx = du/2.
  2. 2
    The integral becomes (1/2) ∫sin u du.
  3. 3
    The integral of sin u is −cos u.
  4. 4
    So the result is −(1/2) cos u + C = −cos(2x)/2 + C.
  5. 5
    Check: the derivative of −cos(2x)/2 is 2 sin(2x)/2 = sin 2x.

What it means

sin 2x has period 2π/2, so positive and negative areas cancel over each full cycle. Over one positive arch, from 0 to π/2, the area is 2/2.

The integral from 0 to π/2

Using the antiderivative: F(π/2) − F(0) = 2/2, which is about 1. A direct numerical integration of sin 2x gives 1, which agrees.

−3−2.5−2−1.5−1−0.50.511.522.53−2−1.5−1−0.50.511.52

Check by differentiating

The derivative of the answer should give back the original function. The last column measures that slope directly from the answer, and it matches.

Checking the integral
xsin 2xSlope of the answer
−2.510.953060.95306
−1.57−0.00159265−0.00159265
−0.628−0.950859−0.950859
000
0.9420.9513510.951351
1.88−0.579738−0.579738
2.51−0.95306−0.95306

Common mistakes

  • Forgetting to divide by 2.
  • Dropping the minus sign.

Frequently asked questions

What is the integral of sin 2x?
The integral of sin 2x is −cos(2x)/2 + C.
What is the integral of sin 2x from 0 to π/2?
2/2, which is about 1.

Keep going

Integrate any function

Type your own function into the integral calculator for the steps, the answer and a graph.

Open the integral calculator