AP Calculus AB and BC

Integral of cos^2 x: Answer and Power Reduction

The integral of cos^2 x with respect to x is x/2 + sin(2x)/4 + C. You cannot integrate cos^2 x directly, so you first replace it with the power reducing identity cos^2 x = (1 + cos 2x)/2, which turns the problem into two basic antiderivatives. An equivalent form is x/2 + (sin x cos x)/2 + C.

cos2xdx=x2+sin2x4+C\int \cos^{2} x\,dx = \frac{x}{2} + \frac{\sin 2x}{4} + C

How to integrate cos^2 x with power reduction

There is no antiderivative rule for a squared trig function, and substitution fails because cos2xdx\cos^{2} x\,dx contains no sinx\sin x to absorb a dudu. The move is to change the integrand before integrating, using the power reducing identity that trades the square for a doubled angle.

cos2x=1+cos2x2\cos^{2} x = \frac{1 + \cos 2x}{2}

That identity comes straight from the double angle formula cos2x=2cos2x1\cos 2x = 2\cos^{2} x - 1, rearranged. Once the square is gone, both pieces are basic antiderivatives.

cos2xdx=12(1+cos2x)dx=12(x+sin2x2)+C\int \cos^{2} x\,dx = \frac{1}{2}\int \left(1 + \cos 2x\right)dx = \frac{1}{2}\left(x + \frac{\sin 2x}{2}\right) + C

The 12\frac{1}{2} inside comes from the chain rule running backwards: the antiderivative of cos2x\cos 2x is sin2x2\frac{\sin 2x}{2}, not sin2x\sin 2x. Distributing the outer 12\frac{1}{2} gives the standard form.

cos2xdx=x2+sin2x4+C\int \cos^{2} x\,dx = \frac{x}{2} + \frac{\sin 2x}{4} + C

Check it by differentiating

Differentiate x2+sin2x4\frac{x}{2} + \frac{\sin 2x}{4} to get 12+2cos2x4=1+cos2x2\frac{1}{2} + \frac{2\cos 2x}{4} = \frac{1 + \cos 2x}{2}, which is exactly the identity you started from, so it equals cos2x\cos^{2} x.

Equivalent forms of the answer

Graders accept several forms, and a calculator or textbook may hand you a different one. They differ only by algebra, not by a constant, so none is more correct than another.

x2+sin2x4+C=x2+sinxcosx2+C=x+sinxcosx2+C\frac{x}{2} + \frac{\sin 2x}{4} + C = \frac{x}{2} + \frac{\sin x\cos x}{2} + C = \frac{x + \sin x\cos x}{2} + C

The middle form follows from the double angle identity sin2x=2sinxcosx\sin 2x = 2\sin x\cos x. If your answer and the answer key disagree, try that substitution before assuming you made an error.

The companion result for sin2x\sin^{2} x has the same shape with one sign flipped, because its power reducing identity is sin2x=1cos2x2\sin^{2} x = \frac{1 - \cos 2x}{2}.

sin2xdx=x2sin2x4+C\int \sin^{2} x\,dx = \frac{x}{2} - \frac{\sin 2x}{4} + C

Adding the two results gives x+Cx + C, which is the check that they are consistent: sin2x+cos2x=1\sin^{2} x + \cos^{2} x = 1, and the antiderivative of 11 is xx.

Where the integral of cos^2 x shows up on the AP exam

Basic antiderivatives are Topic 6.8 and substitution is Topic 6.9, both on AB and BC, and Topic 6.14 (Selecting Techniques for Antidifferentiation) is where you have to notice that an identity comes before any integration technique. Unit 6 carries a weighting of 15 to 20 percent on both exams.

The most quotable consequence is the average value of cos2x\cos^{2} x over a full period, which is 12\frac{1}{2}. This is why the result appears in physics contexts such as average power.

12π02πcos2xdx=12π[x2+sin2x4]02π=12ππ=12\frac{1}{2\pi}\int_{0}^{2\pi} \cos^{2} x\,dx = \frac{1}{2\pi}\left[\frac{x}{2} + \frac{\sin 2x}{4}\right]_{0}^{2\pi} = \frac{1}{2\pi}\cdot \pi = \frac{1}{2}

The sin2x\sin 2x term contributes nothing over a full period because sin4π=sin0=0\sin 4\pi = \sin 0 = 0, so only the x2\frac{x}{2} part survives. The same argument gives average value 12\frac{1}{2} for sin2x\sin^{2} x.

On a volume of revolution problem, cos2x\cos^{2} x appears the moment you square a cosx\cos x radius, so this antiderivative is often the last step of a disk method question rather than the question itself.

Common mistakes with the integral of cos^2 x

  • Writing cos3x3\frac{\cos^{3} x}{3}. The power rule antidifferentiates xnx^{n}, not cosnx\cos^{n} x. Differentiating cos3x3\frac{\cos^{3} x}{3} gives cos2xsinx-\cos^{2} x\sin x, which is not the integrand.
  • Forgetting the inner 12\frac{1}{2} on cos2xdx\int \cos 2x\,dx and writing sin2x2\frac{\sin 2x}{2} as the final term instead of sin2x4\frac{\sin 2x}{4}.
  • Using the wrong sign in the identity. cos2x=1+cos2x2\cos^{2} x = \frac{1 + \cos 2x}{2} takes a plus; the minus belongs to sin2x\sin^{2} x. Test at x=0x = 0: cos20=1\cos^{2} 0 = 1, and 1+12=1\frac{1 + 1}{2} = 1 confirms the plus.
  • Trying u=cosxu = \cos x. That needs du=sinxdxdu = -\sin x\,dx, and there is no sinx\sin x anywhere in cos2xdx\cos^{2} x\,dx to supply it.
  • Assuming the answer is periodic. The x2\frac{x}{2} term grows without bound, which is correct: cos2x\cos^{2} x is never negative, so its accumulated area must keep increasing.

Odd powers are a different problem

Power reduction is for EVEN powers. For cos3xdx\int \cos^{3} x\,dx, peel off one factor and use cos2x=1sin2x\cos^{2} x = 1 - \sin^{2} x, then substitute u=sinxu = \sin x. Recognizing which parity you are looking at picks the method.

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^2 x?

It is x2+sin2x4+C\frac{x}{2} + \frac{\sin 2x}{4} + C, equivalently x2+sinxcosx2+C\frac{x}{2} + \frac{\sin x\cos x}{2} + C. Use cos2x=1+cos2x2\cos^{2} x = \frac{1 + \cos 2x}{2} first, then integrate term by term.

Why can I not just use the power rule on cos^2 x?

The power rule for antiderivatives applies to xnx^{n}, where the base is the variable itself. Here the base is cosx\cos x, a function of xx, so differentiating cos3x3\frac{\cos^{3} x}{3} triggers the chain rule and produces an extra sinx-\sin x that is not in the integrand.

Is the integral of cos^2 x on the AP Calculus AB exam?

Yes. It uses only the power reducing identity from precalculus plus basic antiderivatives and substitution, all of which are on AB. It shows up most often as the final step of a disk method volume problem.

What is the average value of cos^2 x?

Over any whole number of periods it is exactly 12\frac{1}{2}. The sin2x4\frac{\sin 2x}{4} term returns to where it started, so only x2\frac{x}{2} contributes, and dividing by the interval length leaves 12\frac{1}{2}.

How does the integral of sin^2 x compare?

It is x2sin2x4+C\frac{x}{2} - \frac{\sin 2x}{4} + C, identical except for the sign, because sin2x=1cos2x2\sin^{2} x = \frac{1 - \cos 2x}{2}. Adding the two antiderivatives gives x+Cx + C, matching sin2x+cos2x=1\sin^{2} x + \cos^{2} x = 1.