Skip to content
M
hscscience Ext 2 · Y12
0/100daily goal
0
0
0 due
0
L1 · 0 XP
KJ
Your weak spots
Insights load after your first practice round.
Module 15 · L09 of 16 ~40 min ⚡ +90 XP available

The t-Substitution

Some integrands — like $\dfrac{1}{2+\cos x}$ — resist every standard trig identity. The Weierstrass substitution $t = \tan(x/2)$ rewrites $\sin x$, $\cos x$ and $dx$ as rational functions of $t$, turning the problem into one a Year 12 student can solve with partial fractions or a standard arctan form. This lesson teaches you the three substitution formulas, the algebraic clean-up, and how to handle definite limits.

Today's hook — Try the integral $\displaystyle\int \frac{1}{2 + \cos x}\, dx$. None of the standard $u$-subs work — $\cos x$ is alone in the denominator, not as a power. Sketch what would happen if you could replace $\cos x$ by a rational function of a new variable $t$. Compare your idea after card 05.
0/5QUESTS
01
Recall — your gut answer first
+5 XP warm-up

Recall the double-angle identities. Using $t = \tan(x/2)$ and a right-triangle, express $\sin x$ and $\cos x$ as rational functions of $t$. Before checking — what do you expect $dx$ in terms of $dt$ to look like? Sketch your reasoning below.

auto-saved
02
The two moves for any t-sub problem
+5 XP to read

Every t-substitution problem rewards two habits: substitute all three pieces at once ($\sin x$, $\cos x$, $dx$), then simplify the algebra fully before integrating. The substitution always produces a rational function of $t$ — if you find anything else, an algebra slip has happened.

The substitute-simplify-integrate flow: (1) replace $\sin x$, $\cos x$ and $dx$ with their $t$-forms, (2) clear the $1+t^2$ factors and combine, (3) integrate the rational function (often a standard arctan form or partial fractions).

$\sin x = \dfrac{2t}{1+t^2}$  ·  $\cos x = \dfrac{1-t^2}{1+t^2}$  ·  $dx = \dfrac{2}{1+t^2}\,dt$

Sub all 3 Simplify clear 1+t² Integrate arctan / PF Back-sub: t = tan(x/2)
$\displaystyle dx = \frac{2}{1+t^2}\,dt$
Substitute all three
$\sin x$, $\cos x$ AND $dx$ all change. Forgetting the $dx$ replacement is the most common error — you must convert $dx \to \tfrac{2}{1+t^2}\,dt$.
Clear $1+t^2$ early
Multiply numerator and denominator by $1+t^2$ as soon as possible. The $1+t^2$ factors cancel between the trig terms and the $dx$ factor — algebra becomes much cleaner.
Change limits in definite integrals
If $x = 0$, $t = \tan 0 = 0$; if $x = \pi/2$, $t = \tan(\pi/4) = 1$; if $x = \pi$, $t \to \infty$. Re-compute limits so you never need to back-substitute.
03
What you'll master
Know

Key facts

  • $t = \tan(x/2)$ is the Weierstrass substitution
  • $\sin x = \dfrac{2t}{1+t^2}$, $\cos x = \dfrac{1-t^2}{1+t^2}$
  • $dx = \dfrac{2}{1+t^2}\,dt$
  • $\tan x = \dfrac{2t}{1-t^2}$ follows from sin/cos
Understand

Concepts

  • Why $t = \tan(x/2)$ converts any rational function of $\sin x, \cos x$ into a rational function of $t$
  • Why $1+t^2$ factors are the key simplifier (they come from $\sec^2(x/2)$)
  • How definite limits transform under the substitution
Can do

Skills

  • Apply $t = \tan(x/2)$ to integrals of the form $\int R(\sin x, \cos x)\,dx$
  • Simplify to a rational function of $t$ and integrate (arctan or partial fractions)
  • Handle definite integrals by transforming limits
04
Key terms
Weierstrass substitutionThe substitution $t = \tan(x/2)$, which converts integrals of rational functions of $\sin x$ and $\cos x$ into integrals of rational functions of $t$.
$\sin x$ in $t$$\sin x = \dfrac{2t}{1+t^2}$. Derived from $\sin x = 2 \sin(x/2)\cos(x/2)$ and the right-triangle picture.
$\cos x$ in $t$$\cos x = \dfrac{1-t^2}{1+t^2}$. Derived from $\cos x = \cos^2(x/2) - \sin^2(x/2)$.
$dx$ in $dt$$dx = \dfrac{2}{1+t^2}\,dt$. Comes from differentiating $t = \tan(x/2)$, giving $dt = \tfrac{1}{2}\sec^2(x/2)\,dx = \tfrac{1+t^2}{2}\,dx$.
Rational functionA function expressible as $\dfrac{P(t)}{Q(t)}$ for polynomials $P, Q$. After the $t$-sub, every standard integrand becomes one.
Standard form$\displaystyle\int \dfrac{1}{a^2 + u^2}\,du = \dfrac{1}{a}\arctan\!\left(\dfrac{u}{a}\right) + C$. The most common end-form after t-substitution.
MEX-C1NESA outcome (Further Integration): applies advanced techniques of integration including the t-substitution to evaluate integrals of rational functions of $\sin x$ and $\cos x$.
05
Deriving the three formulas
core concept

Let $t = \tan(x/2)$. Then by the right-triangle (opposite $t$, adjacent $1$, hypotenuse $\sqrt{1+t^2}$):

$\sin(x/2) = \dfrac{t}{\sqrt{1+t^2}}$ and $\cos(x/2) = \dfrac{1}{\sqrt{1+t^2}}$.

Double-angle for $\sin x$:

$\sin x = 2\sin(x/2)\cos(x/2) = 2 \cdot \dfrac{t}{\sqrt{1+t^2}} \cdot \dfrac{1}{\sqrt{1+t^2}} = \dfrac{2t}{1+t^2}$.

Double-angle for $\cos x$:

$\cos x = \cos^2(x/2) - \sin^2(x/2) = \dfrac{1}{1+t^2} - \dfrac{t^2}{1+t^2} = \dfrac{1-t^2}{1+t^2}$.

Differential $dx$: Differentiate $t = \tan(x/2)$ to give $dt = \tfrac{1}{2}\sec^2(x/2)\,dx = \tfrac{1}{2}(1+t^2)\,dx$, so $dx = \dfrac{2}{1+t^2}\,dt$.

Why it works. Every appearance of $\sin x$, $\cos x$ or $dx$ becomes a rational expression in $t$. Therefore any integrand built from those pieces becomes a rational function of $t$ — and rational functions are always integrable (in principle) by partial fractions.

$t = \tan(x/2)$ · $\sin x = \dfrac{2t}{1+t^2}$, $\cos x = \dfrac{1-t^2}{1+t^2}$, $dx = \dfrac{2}{1+t^2}\,dt$ · All three derived from the right-triangle and $dt = \tfrac{1}{2}(1+t^2)\,dx$ · Use whenever the integrand is a rational function of $\sin x, \cos x$ and nothing else works

Pause — copy $t = \tan(x/2)$, the three formulas ($\sin x$, $\cos x$, $dx$), and the rule to use $t$-sub when the integrand is a rational function of $\sin x$ and $\cos x$ into your book.

Quick check: Under the substitution $t = \tan(x/2)$, which of the following is the correct expression for $\cos x$?

06
Transforming a rational trig integral
core concept

We just saw the Weierstrass $t$-substitution: $t = \tan(x/2)$ gives $\sin x = 2t/(1+t^2)$, $\cos x = (1-t^2)/(1+t^2)$, $dx = 2\,dt/(1+t^2)$, derived from the right-triangle and $dt/dx = \tfrac{1}{2}(1+t^2)$. That raises a question: once substituted, how do we simplify the resulting rational function in $t$ to a recognisable form? This card answers it → replace all three pieces simultaneously; $1+t^2$ typically cancels in $dx$, leaving $\int A\,dt/(at^2+bt+c)$ → complete the square → arctan.

To evaluate $\displaystyle\int R(\sin x, \cos x)\,dx$ where $R$ is rational, replace each piece:

  • $\sin x \to \dfrac{2t}{1+t^2}$
  • $\cos x \to \dfrac{1-t^2}{1+t^2}$
  • $dx \to \dfrac{2}{1+t^2}\,dt$

Multiply top and bottom of the resulting expression by $1+t^2$ (or some power) to clear all denominators, then integrate the resulting rational function of $t$. Finally back-substitute $t = \tan(x/2)$.

$$\int R(\sin x, \cos x)\,dx \;=\; \int R\!\left(\frac{2t}{1+t^2}, \frac{1-t^2}{1+t^2}\right) \cdot \frac{2}{1+t^2}\,dt$$
Common simplification. A surprisingly common end-form is $\displaystyle\int \dfrac{2\,dt}{at^2 + bt + c}$, which is then integrated by completing the square and using $\arctan$. Be ready for that pattern.

Replace all three pieces — never just $\sin x$ or just $\cos x$ · Multiply through by $1+t^2$ to clear; the $dx$ factor often cancels the $1+t^2$ in the numerator · End-form is usually $\int \dfrac{A\,dt}{at^2 + bt + c}$ → complete the square → $\arctan$ · Back-substitute $t = \tan(x/2)$ at the end (or change limits for definite integrals)

Pause — copy the full substitution procedure (replace all three, clear $1+t^2$, complete the square → arctan), and the back-substitution $t = \tan(x/2)$ at the end into your book.

Did you get this? True or false: when using $t = \tan(x/2)$ on a definite integral from $x = 0$ to $x = \pi/2$, the new limits are $t = 0$ to $t = 1$.

PROBLEM 1 · COSINE ALONE

Evaluate $\displaystyle\int \frac{1}{2 + \cos x}\,dx$ using $t = \tan(x/2)$.

1
Substitute $\cos x = \dfrac{1-t^2}{1+t^2}$ and $dx = \dfrac{2}{1+t^2}\,dt$. Denominator: $2 + \dfrac{1-t^2}{1+t^2} = \dfrac{2(1+t^2) + (1-t^2)}{1+t^2} = \dfrac{3+t^2}{1+t^2}$.
Combine the constant with the substituted $\cos x$ over a common denominator before inverting — this avoids a triple-fraction mess.
PROBLEM 2 · SIN PLUS COS

Evaluate $\displaystyle\int \frac{1}{\sin x + \cos x}\,dx$ using $t = \tan(x/2)$.

1
Denominator: $\sin x + \cos x = \dfrac{2t}{1+t^2} + \dfrac{1-t^2}{1+t^2} = \dfrac{2t + 1 - t^2}{1+t^2} = \dfrac{-(t^2 - 2t - 1)}{1+t^2}$.
Combine over the common denominator $1+t^2$. The numerator is a quadratic in $t$ — expect to complete the square later.
PROBLEM 3 · DEFINITE INTEGRAL

Evaluate $\displaystyle\int_0^{\pi/2} \frac{1}{1 + \sin x}\,dx$ using $t = \tan(x/2)$.

1
Change limits: $x = 0 \Rightarrow t = 0$; $x = \pi/2 \Rightarrow t = \tan(\pi/4) = 1$. Integrand: $1 + \sin x = 1 + \dfrac{2t}{1+t^2} = \dfrac{1+t^2 + 2t}{1+t^2} = \dfrac{(1+t)^2}{1+t^2}$.
Always change limits first for definite integrals — you avoid back-substituting at the end. Notice the nice factorisation $(1+t)^2$.

Fill the gap: Under $t = \tan(x/2)$: $\sin x = \dfrac{2t}{1+t^2}$ and $dx = \dfrac{}{1+t^2}\,dt$, while $\cos x = \dfrac{1 - }{1+t^2}$.

Trap 01
Forgetting to substitute $dx$
Students often replace $\sin x$ and $\cos x$ but leave $dx$ untouched. The substitution requires $dx = \tfrac{2}{1+t^2}\,dt$ — this factor is essential and is what makes the $1+t^2$ cancellations work.
Trap 02
Confusing $t = \tan x$ with $t = \tan(x/2)$
A different substitution $t = \tan x$ exists (for integrands rational in $\sin^2 x, \cos^2 x$), with $\sin^2 x = \tfrac{t^2}{1+t^2}$ etc. The two are NOT interchangeable. The Weierstrass one is the half-angle.
Trap 03
Not changing limits for definite integrals
If the question gives bounds in $x$, you can either back-substitute at the end OR change limits. Mixing the two (evaluating a $t$-integrand at $x$-limits) gives wrong answers. Recommended: change limits early.

Did you get this? True or false: the substitution $t = \tan(x/2)$ is the same as $t = \tan x$ for the purposes of integration.

Work mode · how are you completing this lesson?
1

Apply $t = \tan(x/2)$ to write $\displaystyle\int \frac{1}{5 + 3\cos x}\,dx$ as an integral in $t$. Simplify but do not yet integrate.

2

Complete the previous integral to find $\displaystyle\int \frac{1}{5+3\cos x}\,dx$.

3

Evaluate $\displaystyle\int_0^{\pi/2} \frac{1}{1 + \cos x}\,dx$ using $t = \tan(x/2)$ and changing limits.

4

Use $t = \tan(x/2)$ to evaluate $\displaystyle\int \frac{1}{\sin x}\,dx$ (i.e., $\int \csc x\,dx$) and compare to the standard answer.

5

Show that $\displaystyle\int_0^{\pi/2} \frac{1}{2 + \sin x}\,dx$ reduces to an arctan form. Set up the rational $t$-integral, then evaluate.

Odd one out: Three of these are correct consequences of $t = \tan(x/2)$. Which one is NOT?

11
Revisit your thinking

Earlier you wondered what would happen if $\cos x$ could be replaced by a rational function of a new variable.

The Weierstrass substitution $t = \tan(x/2)$ does exactly that: $\cos x$ becomes $\tfrac{1-t^2}{1+t^2}$, $\sin x$ becomes $\tfrac{2t}{1+t^2}$, and $dx$ becomes $\tfrac{2}{1+t^2}\,dt$. The $1+t^2$ factors cancel cleanly between the substituted trig terms and the $dx$ factor, leaving a rational function of $t$ that you can integrate with partial fractions or a standard arctan. Reach for $t = \tan(x/2)$ whenever the integrand mixes $\sin x$ and $\cos x$ in a denominator and no obvious identity helps.

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. Using $t = \tan(x/2)$, write $\displaystyle\int \frac{1}{3 + \cos x}\,dx$ as an integral in $t$, fully simplified (but do not integrate). (2 marks)

auto-saved
ApplyBand 43 marks

Q2. Evaluate $\displaystyle\int \frac{1}{3 + \cos x}\,dx$ in closed form, expressing the answer in terms of $x$. (3 marks)

auto-saved
AnalyseBand 53 marks

Q3. Evaluate $\displaystyle\int_0^{\pi/2} \frac{1}{1 + \sin x + \cos x}\,dx$ using $t = \tan(x/2)$. Show the change of limits explicitly. (3 marks)

auto-saved
Comprehensive answers (click to reveal)

Activity answers:

1. $5 + 3\cos x = \dfrac{5(1+t^2) + 3(1-t^2)}{1+t^2} = \dfrac{8 + 2t^2}{1+t^2}$. Integral: $\displaystyle\int \dfrac{1+t^2}{8+2t^2} \cdot \dfrac{2}{1+t^2}\,dt = \int \dfrac{2}{8+2t^2}\,dt = \int \dfrac{dt}{4+t^2}$.

2. $\displaystyle\int \dfrac{dt}{4+t^2} = \dfrac{1}{2}\arctan\!\left(\dfrac{t}{2}\right) + C = \dfrac{1}{2}\arctan\!\left(\dfrac{\tan(x/2)}{2}\right) + C$.

3. Limits $0 \to 1$. $1 + \cos x = \dfrac{2}{1+t^2}$. Integrand: $\dfrac{1+t^2}{2} \cdot \dfrac{2}{1+t^2}\,dt = dt$. So $\displaystyle\int_0^1 dt = 1$.

4. $\displaystyle\int \csc x\,dx = \int \dfrac{(1+t^2)}{2t} \cdot \dfrac{2}{1+t^2}\,dt = \int \dfrac{dt}{t} = \ln|\tan(x/2)| + C$.

5. $2 + \sin x = \dfrac{2t^2 + 2t + 2}{1+t^2}$. Integrand: $\dfrac{2\,dt}{2t^2+2t+2} = \dfrac{dt}{t^2+t+1}$. Complete square: $(t+\tfrac{1}{2})^2 + \tfrac{3}{4}$. $\displaystyle\int_0^1 \dfrac{dt}{(t+1/2)^2 + 3/4} = \dfrac{2}{\sqrt{3}}\left[\arctan\!\left(\dfrac{2t+1}{\sqrt{3}}\right)\right]_0^1 = \dfrac{2}{\sqrt{3}}\left(\arctan\sqrt{3} - \arctan(1/\sqrt{3})\right) = \dfrac{2}{\sqrt{3}}\left(\dfrac{\pi}{3} - \dfrac{\pi}{6}\right) = \dfrac{\pi}{3\sqrt{3}}$.

Q1 (2 marks): Substitute $\cos x$, $dx$, combine over $1+t^2$ [1]: $\displaystyle\int \dfrac{dt}{2 + t^2}$ [1].

Q2 (3 marks): Standard arctan form with $a^2 = 2$ [1]: $\dfrac{1}{\sqrt{2}}\arctan\!\left(\dfrac{t}{\sqrt{2}}\right) + C$ [1]. Back-substitute $t = \tan(x/2)$: $\dfrac{1}{\sqrt{2}}\arctan\!\left(\dfrac{\tan(x/2)}{\sqrt{2}}\right) + C$ [1].

Q3 (3 marks): Limits $x = 0 \to t = 0$; $x = \pi/2 \to t = 1$ [1]. Simplify integrand to $\dfrac{dt}{1+t}$ [1]. $\displaystyle\int_0^1 \dfrac{dt}{1+t} = [\ln(1+t)]_0^1 = \ln 2$ [1].

01
Boss battle · The Weierstrass Wrangler
earn bronze · silver · gold

Five timed questions on the t-substitution — setup, simplification, and arctan/log forms. 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 quick t-substitution questions. Lighter alternative to the boss.

Mark lesson as complete

Tick when you've finished the practice and review.

🎓
Want help with The t-Substitution?

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

Book a free session →