Skip to content
M
hscscience Ext 1 · Y12
0/100daily goal
0
0
0 due
0
L1 · 0 XP
KJ
Your weak spots
Insights load after your first practice round.
Module 8 · L8 of 20 ~35 min ⚡ +100 XP available

Integrating $\tan^2 x$ and $\sec^2 x$

You already know $\dfrac{d}{dx}\tan x = \sec^2 x$, so $\displaystyle\int \sec^2 x\,dx = \tan x + C$ is instant. But what about $\tan^2 x$? There's no direct antiderivative rule — the trick is a single Pythagorean identity that converts $\tan^2 x$ into $\sec^2 x - 1$, both of which integrate cleanly. Nail this conversion and you unlock a whole family of harder integrals too.

Today's hook — You know $\int \sin^2 x\,dx$ requires the double-angle identity. Before you read any further, guess: what identity might you need to integrate $\tan^2 x$? Does it involve $\sec^2 x$? Write your instinct — you'll check it at card 05.
0/5QUESTS
01
Recall — your gut answer first
+5 XP warm-up

You know that $\dfrac{d}{dx}\tan x = \sec^2 x$. What does that immediately tell you about $\displaystyle\int \sec^2 x\,dx$? And can you think of any reason why $\displaystyle\int \tan^2 x\,dx$ might need a different approach? Write your instinct before reading on.

auto-saved
02
The one identity that unlocks everything
+5 XP to read

The entire lesson rests on a single Pythagorean identity for tangent and secant:

Dividing $\sin^2 x + \cos^2 x = 1$ through by $\cos^2 x$ gives:

$\tan^2 x + 1 = \sec^2 x$

Rearranged: $\tan^2 x = \sec^2 x - 1$. This allows us to replace $\tan^2 x$ in any integral with $\sec^2 x - 1$, both of which integrate cleanly.

tan²x + 1 = sec²x ⇓ rearrange tan²x = sec²x − 1
$\int \sec^2 x\,dx$ is instant
Since $\dfrac{d}{dx}\tan x = \sec^2 x$, reversing gives $\int \sec^2 x\,dx = \tan x + C$. No manipulation needed.
$\int \tan^2 x\,dx$ requires one step
Replace $\tan^2 x$ with $\sec^2 x - 1$: $\int(\sec^2 x-1)\,dx = \tan x - x + C$.
The chain-rule version
$\int \sec^2(ax+b)\,dx = \dfrac{\tan(ax+b)}{a} + C$ — just divide by the inner derivative $a$.
03
What you'll master
Know

Key facts

  • $\tan^2 x = \sec^2 x - 1$ (Pythagorean identity for tan/sec)
  • $\int \sec^2 x\,dx = \tan x + C$
  • $\int \tan^2 x\,dx = \tan x - x + C$
Understand

Concepts

  • Why $\tan^2 x$ has no "direct" antiderivative without an identity
  • How the Pythagorean identity $\tan^2 x + 1 = \sec^2 x$ is derived from $\sin^2 x + \cos^2 x = 1$
  • How to extend the $\sec^2$ integral using the chain rule
Can do

Skills

  • Evaluate $\int \tan^2 x\,dx$, $\int \tan^2(2x)\,dx$, and related definite integrals
  • Integrate expressions involving linear combinations of $\sec^2 x$ and $\tan^2 x$
  • Recognise when to apply the $\tan^2 = \sec^2 - 1$ substitution in mixed integrals
04
Key terms
$\sec x$Secant: $\sec x = \dfrac{1}{\cos x}$. Defined wherever $\cos x \neq 0$.
$\tan^2 x + 1 = \sec^2 x$Obtained by dividing $\sin^2 x + \cos^2 x = 1$ by $\cos^2 x$. The key conversion identity for this lesson.
$\int \sec^2 x\,dx$$= \tan x + C$. This is just the reverse of $\dfrac{d}{dx}\tan x = \sec^2 x$.
$\int \tan^2 x\,dx$$= \int(\sec^2 x-1)\,dx = \tan x - x + C$. One identity then two standard integrals.
Chain rule reverse$\int \sec^2(ax+b)\,dx = \dfrac{\tan(ax+b)}{a} + C$. Divide by the coefficient of $x$ inside the argument.
$+C$Always include the constant of integration for indefinite integrals; omit for definite integrals.
05
Integrating $\sec^2 x$ and its chain-rule forms
core concept

Because $\dfrac{d}{dx}\tan x = \sec^2 x$, we can reverse the process immediately:

$$\int \sec^2 x\,dx = \tan x + C$$

For the chain-rule version with a linear argument, divide by the coefficient of $x$:

$$\int \sec^2(ax+b)\,dx = \frac{\tan(ax+b)}{a} + C$$

Example: $\displaystyle\int \sec^2(3x)\,dx = \dfrac{\tan 3x}{3} + C$.

Check: $\dfrac{d}{dx}\!\left(\dfrac{\tan 3x}{3}\right) = \dfrac{1}{3} \cdot \sec^2(3x) \cdot 3 = \sec^2(3x)$ ✓

Definite integral example: $\displaystyle\int_0^{\pi/4} \sec^2 x\,dx = \left[\tan x\right]_0^{\pi/4} = \tan\tfrac{\pi}{4} - \tan 0 = 1 - 0 = 1$.

$\int\sec^2 x\,dx=\tan x+C$; chain rule: $\int\sec^2(ax+b)\,dx=\frac{1}{a}\tan(ax+b)+C$; $\int\tan^2 x\,dx=\tan x-x+C$ (use $\tan^2=\sec^2-1$).

Pause — copy $\int\sec^2 x\,dx=\tan x+C$ and the chain-rule extension $\int\sec^2(ax+b)\,dx=\frac{1}{a}\tan(ax+b)+C$ into your book.

Quick check: Which of the following is the correct antiderivative of $\sec^2(2x)$?

06
Integrating $\tan^2 x$
core concept

We just saw that $\int\sec^2 x\,dx=\tan x+C$ and chain-rule extensions give $\int\sec^2(ax+b)\,dx=\frac{1}{a}\tan(ax+b)+C$. That raises a question: there is no direct formula for $\int\tan^2 x\,dx$ — which Pythagorean identity converts $\tan^2 x$ into an integrable form? This card answers it → use $\tan^2 x=\sec^2 x-1$, so $\int\tan^2 x\,dx=\tan x-x+C$.

There is no direct rule for $\int \tan^2 x\,dx$. The key is to use the Pythagorean identity to rewrite $\tan^2 x$:

$$\tan^2 x = \sec^2 x - 1$$

Now both terms integrate directly:

$$\int \tan^2 x\,dx = \int (\sec^2 x - 1)\,dx = \tan x - x + C$$

Check: $\dfrac{d}{dx}(\tan x - x) = \sec^2 x - 1 = \tan^2 x$ ✓

For $\tan^2(ax+b)$, apply the same identity, then use the chain rule:

$$\int \tan^2(ax+b)\,dx = \int (\sec^2(ax+b)-1)\,dx = \frac{\tan(ax+b)}{a} - x + C$$
Definite integral example: $\displaystyle\int_0^{\pi/4} \tan^2 x\,dx = \left[\tan x - x\right]_0^{\pi/4} = (1-\tfrac{\pi}{4}) - (0-0) = 1 - \dfrac{\pi}{4}$.

There is no direct rule for $\int \tan^2 x\,dx$. The key is to use the Pythagorean identity to rewrite $\tan^2 x$:

Pause — copy the $\tan^2 x$ integral: use identity $\tan^2 x=\sec^2 x-1$ to get $\int\tan^2 x\,dx=\tan x-x+C$ into your book.

Did you get this? True or false: $\displaystyle\int \tan^2 x\,dx = \tan x - x + C$.

PROBLEM 1 · DEFINITE INTEGRAL

Evaluate $\displaystyle\int_0^{\pi/4} \tan^2 x\,dx$ exactly.

1
Replace $\tan^2 x = \sec^2 x - 1$: $\displaystyle\int_0^{\pi/4}(\sec^2 x - 1)\,dx$
Apply the Pythagorean identity. Both resulting terms have standard antiderivatives.
PROBLEM 2 · CHAIN RULE FORM

Find $\displaystyle\int \tan^2(3x)\,dx$.

1
$\tan^2(3x) = \sec^2(3x) - 1$, so $\displaystyle\int(\sec^2(3x)-1)\,dx$
Apply the identity; notice $3x$ is a linear function so the chain rule gives a divisor of $3$.
PROBLEM 3 · MIXED EXPRESSION

Find $\displaystyle\int (1 + \tan^2 x)\,dx$. Comment on the result.

1
Recognise $1 + \tan^2 x = \sec^2 x$ (the identity applied in reverse).
The expression $1 + \tan^2 x$ is exactly the left-hand side of the Pythagorean identity, equal to $\sec^2 x$.

Fill the gap: $\displaystyle\int \tan^2(2x)\,dx = \dfrac{\tan(2x)}{2} - $ $+ C$.

Trap 01
Writing $\int \tan^2 x\,dx = \dfrac{\tan^3 x}{3} + C$
You can't integrate $\tan^2 x$ using a "power rule" — $\tan x$ is not a polynomial. The correct approach uses the identity $\tan^2 x = \sec^2 x - 1$, giving $\tan x - x + C$. The $-x$ term is especially easy to drop.
Trap 02
Forgetting the $-x$ in $\int \tan^2 x\,dx$
The identity gives $\int(\sec^2 x - 1)\,dx = \tan x - x + C$. Students often write just $\tan x + C$, omitting the $\int 1\,dx = x$ contribution. Always write both terms.
Trap 03
Incorrect chain rule divisor for $\sec^2(ax)$
$\int \sec^2(3x)\,dx = \dfrac{\tan(3x)}{3} + C$, not $3\tan(3x) + C$. When reversing the chain rule, you divide by the inner derivative — you do not multiply. Check by differentiating: $\dfrac{d}{dx}\!\left(\tfrac{\tan 3x}{3}\right) = \sec^2(3x)$ ✓.

Did you get this? True or false: $\displaystyle\int_0^{\pi/4} \sec^2 x\,dx = 1$.

Work mode · how are you completing this lesson?
1

Find $\displaystyle\int \sec^2(4x)\,dx$.

2

Find $\displaystyle\int \tan^2(2x)\,dx$.

3

Evaluate $\displaystyle\int_0^{\pi/3} \tan^2 x\,dx$ exactly. (Use $\tan\tfrac{\pi}{3}=\sqrt{3}$.)

4

Show that $\displaystyle\int 3\sec^2 x - 2\tan^2 x\,dx = \sec^2 x\,dx$ in disguise. (Hint: replace $\tan^2 x$ and simplify before integrating.)

5

Verify by differentiation that $\int \tan^2 x\,dx = \tan x - x + C$.

Odd one out: Three of these results are correct. Which one is NOT correct?

11
Revisit your thinking

At the start you guessed whether integrating $\tan^2 x$ involves $\sec^2 x$. The answer is yes — the identity $\tan^2 x = \sec^2 x - 1$ is the only tool you need. Once you apply it, everything reduces to two standard integrals: $\int \sec^2 x\,dx = \tan x$ and $\int 1\,dx = x$.

The lesson is that many "impossible" integrals become easy the moment you apply the right identity. In future, whenever you see $\tan^2$, your first thought should be: replace with $\sec^2 - 1$.

auto-saved
01
Multiple choice
+5 XP per correct · +25 XP all-correct

Pick your answer, then rate your confidence — that tells the system what to drill next. Each retry pulls a fresh mix from the bank.

02
Short answer
ApplyBand 32 marks

Q1. Find $\displaystyle\int \tan^2 x\,dx$, showing the identity you use. (2 marks)

auto-saved
ApplyBand 43 marks

Q2. Evaluate $\displaystyle\int_0^{\pi/4} \tan^2 x\,dx$ exactly. (3 marks)

auto-saved
AnalyseBand 53 marks

Q3. Find $\displaystyle\int (2\tan^2 x + 3\sec^2 x)\,dx$. Show all simplification steps. (3 marks)

auto-saved
Comprehensive answers (click to reveal)

Activity answers: 1. $\tfrac{\tan(4x)}{4}+C$  ·  2. $\tfrac{\tan(2x)}{2}-x+C$  ·  3. $\sqrt{3}-\tfrac{\pi}{3}$  ·  4. $3\sec^2 x-2(\sec^2 x-1)=\sec^2 x+2$, so $\int(\sec^2 x+2)\,dx=\tan x+2x+C$  ·  5. $\tfrac{d}{dx}(\tan x-x)=\sec^2 x-1=\tan^2 x$ ✓

Q1 (2 marks): $\tan^2 x = \sec^2 x-1$ [1]. $\int(\sec^2 x-1)\,dx=\tan x-x+C$ [1].

Q2 (3 marks): Identity: $\tan^2 x = \sec^2 x-1$ [1]. $\int_0^{\pi/4}(\sec^2 x-1)\,dx=\left[\tan x-x\right]_0^{\pi/4}$ [1]. $=(1-\tfrac{\pi}{4})-(0-0)=1-\dfrac{\pi}{4}$ [1].

Q3 (3 marks): $2\tan^2 x+3\sec^2 x = 2(\sec^2 x-1)+3\sec^2 x = 5\sec^2 x-2$ [1]. $\int(5\sec^2 x-2)\,dx$ [1]. $= 5\tan x-2x+C$ [1].

01
Boss battle · The Tangent Titan
earn bronze · silver · gold

Five timed questions on integrating $\tan^2 x$, $\sec^2 x$, and related expressions. Beat the boss to bank a tier — gold (90% + speed), silver (75%), or bronze (50%). Replays welcome.

⚔ Enter the arena
02
Science Jump · platform challenge

Climb platforms by answering trig integration questions. Lighter alternative to the boss.

Mark lesson as complete

Tick when you've finished the practice and review.

🎓
Want help with Integrating tan² x and sec² x?

Work through this topic 1-on-1 with an experienced HSC tutor.

Book a free session →