Integrate cos^2x

Integrate cos^2x

To integrate cos^2x, also written as ∫cos2x dx, cos squared x, and (cos x)^2, we start by using standard trig identities to simplify the integral.

Trig Identity 1

We start by using the Pythagorean trig identity sin2x+cos2x=1.

Rearrange trig identity 1

We rearrange it for cos2x.

Trig Identity 2

We recall the double-angle trig idnetity shown above.

Rearrange trig identity 2

We arrange this identity for sin2x, so that we can substitute it into the first trig identity.

Substitute trig identity

The contents of the brackets is what we have substituted into the first trig identity.

Simplify

We open out the brackets and pay attention to the sign change.

Grouping the terms

The cos2x goes to the LHS with a sign change. By grouping them together, we can add them to simplify.

Add the terms

In this step, we add the cos2x terms.

Rearrange for cos^2x term

We divide throughout by ½ so that we have an expression for cos2x.

New equivalent integral

As you can see, we now have a new integral which is the same as the original but easier to perform. The constant ½ is very simple to integrate, and now we must endeavour to focus our attention on integrating the second term cos2x.

integrate cos2x

In order to integrate cos2x we use the u substitution method.

Using the u substitution method.

Let u=2x

Differential

Therefore, the differential is 2.

Rearrange for dx

We rearrange for dx as shown above.

Equivalent integral in terms of u.

As you can see, we now have an equivalent integral in terms of u that is simple to perform. As usual, we tuck away the constant ½ outside of the integral.

Simple Integration

At this step, the integration is simple, as you can imagine.

Simplify

We now reintroduce the constant ½ to the result.

Substitute for u

Since we know that u=2x, we can substitute that back in to give the above result.

Remembering previous expression.

Coming back to this expression, which we made earlier, we are now in a position to substitute the answer for the integral of cos2x.

Substituting the part result.

The contents of the brackets is the part we have substituted, and C is the integration constant.

Simplify the final answer.

We now simplify the answer by removing the brackets.