Skip to content
ihateDesmos

Integral of cos 2x

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

The integral of cos 2x is sin(2x)/2 + C. Dividing by 2 undoes the chain rule.

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

How to integrate cos 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) ∫cos u du.
  3. 3
    The integral of cos u is sin u.
  4. 4
    So the result is sin(2x)/2 + C.

What it means

This integral is the key step in integrating sin²x and cos²x, since the double angle identities rewrite those in terms of cos 2x.

The integral from 0 to π/4

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

−3−2.5−2−1.5−1−0.50.511.522.53−1.5−1−0.50.511.5

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
xcos 2xSlope of the answer
−2.510.3027830.302783
−1.57−0.999999−0.999999
−0.6280.3096230.309623
011
0.942−0.308108−0.308108
1.88−0.814803−0.814803
2.510.3027830.302783

Common mistakes

  • Forgetting to divide by 2.
  • Multiplying by 2 instead, which is the derivative’s rule.

Frequently asked questions

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

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