Integrate tan^2x

Integrate tan^2x

To integrate tan^2x, also written as ∫tan2x dx, tan squared x, and (tan 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.

Divide throughout by cos squared x.

We divide throughout by cos2x. The reason for this will become apparent in the following step.

Substitution

We can now use this expression to substitute into the previous one.

New expression for tan squared x

Here we have an expression with tan2x, and all is moving according to plan.

Rearrange for tan squared x.

We rearrange the expression for tan2x by moving the 1 to the other side.

Equivalent integration

As you can see, we now have a simpler integration that means the same thing. Although the second term, which is a constant, is simple to integrate, we need to focus our attention on the first term.

Standard trig identity.

We start by using a well-known standard trig identity as shown above.

Square both sides.

If we were to square both sides then this is the result.

New version

Hence integration of the first term is equivalent to this new version which means the same thing.

Differential of tanx

Experience of differentiation reminds us that the differential of tan x is sec2x. This is usually found in standard formula booklets used in exams.

Integral of sec squared x

Therefore, we now have an integral for sec2x.

Integral of the first term.

Hence, the integral for the first term is shown above.

Back to the original integration.

We remind ourselves of the expression we previously found, and can now substitute the answer for the first term.

Substitution and solution

Hence, this is the solution, where C is the integration constant.