AP Calculus AB and BC

Integral of cos(2x): Answer, Proof, and Steps

The integral of cos(2x) is sin(2x)/2 + C. The antiderivative of cosine is sine, and because the inside is 2x you divide by the inner coefficient 2. Differentiating sin(2x)/2 gives (1/2) times cos(2x) times 2, which is cos(2x).

cos2xdx=sin2x2+C\int \cos 2x\,dx = \frac{\sin 2x}{2} + C

Setting up the antiderivative

The antiderivative of cosine is sine, and the inside function 2x2x calls for a u-substitution that divides by the inner coefficient.

cosxdx=sinx+C\int \cos x\,dx = \sin x + C

Let u=2xu = 2x, so du=2dxdu = 2\,dx and dx=du2dx = \frac{du}{2}.

cos2xdx=cosudu2=12cosudu=12sinu+C\int \cos 2x\,dx = \int \cos u \cdot \frac{du}{2} = \frac{1}{2}\int \cos u\,du = \frac{1}{2}\sin u + C

Return to xx by substituting u=2xu = 2x.

cos2xdx=sin2x2+C\int \cos 2x\,dx = \frac{\sin 2x}{2} + C

Verifying the 1/2

Differentiating confirms the coefficient. The chain rule brings out the inner factor 22.

ddx(sin2x2)=12cos2x2=cos2x\frac{d}{dx}\left(\frac{\sin 2x}{2}\right) = \frac{1}{2}\cdot\cos 2x\cdot 2 = \cos 2x

The 22 from the chain rule cancels the 12\frac{1}{2}, and the derivative of sine is cosine, so the result is exactly cos2x\cos 2x. Unlike the sine case, no sign flip is involved.

No leading minus

Cosine integrates without a sign change: cosudu=sinu+C\int \cos u\,du = \sin u + C. The negative only appears when you integrate sine.

Common mistakes

  • Forgetting the 12\frac{1}{2}. Without it the derivative comes out as 2cos2x2\cos 2x, twice the integrand.
  • Adding a stray negative sign. Integrating cosine gives positive sine; the minus belongs to sine's integral, not cosine's.
  • Multiplying by 22 rather than dividing. The inner coefficient enters as a reciprocal under integration.

Every answer on this page is machine checked

An automated test differentiates the antiderivative above and confirms it returns the integrand. A wrong sign or a missing factor fails the build, so it cannot reach you.

Frequently asked questions

What is the integral of cos(2x) from 0 to pi/4?

0π4cos2xdx=[sin2x2]0π4=sin(π2)20=12\int_0^{\frac{\pi}{4}} \cos 2x\,dx = \left[\frac{\sin 2x}{2}\right]_0^{\frac{\pi}{4}} = \frac{\sin\left(\frac{\pi}{2}\right)}{2} - 0 = \frac{1}{2}.

Why is there no negative sign in the integral of cos(2x)?

Because the antiderivative of cosine is +sin+\sin. The negative sign only shows up when integrating sine, where sinxdx=cosx+C\int \sin x\,dx = -\cos x + C.

How does the integral of cos(2x) differ from the integral of cos(x)?

Only by the factor of 12\frac{1}{2}. cosxdx=sinx+C\int \cos x\,dx = \sin x + C, while cos2xdx=sin2x2+C\int \cos 2x\,dx = \frac{\sin 2x}{2} + C. The inner coefficient 22 becomes a 12\frac{1}{2} out front.