Skip to main content

The t-formula: rational expressions for sin⁡θ\sin \theta, cos⁡θ\cos \theta and tan⁡θ\tan \theta via t=tan⁡(θ/2)t = \tan(\theta/2)

Syllabus dot point

“Use the t-formula (Weierstrass substitution) to express sin⁡θ\sin \theta, cos⁡θ\cos \theta and tan⁡θ\tan \theta as rational functions of t=tan⁡θ2t = \tan \frac{\theta}{2}”

HSCMaths Extension 1Trigonometric Functions (ME-T1, T2, T3)14 min read

Quick answer

With t=tan⁡θ2t = \tan \frac{\theta}{2}, the substitution gives sin⁡θ=2t1+t2\sin \theta = \frac{2 t}{1 + t^2}, cos⁡θ=1−t21+t2\cos \theta = \frac{1 - t^2}{1 + t^2} and tan⁡θ=2t1−t2\tan \theta = \frac{2 t}{1 - t^2} (read off a half-angle right triangle), converting many trig equations into algebraic quadratics in tt that you solve and then convert back via θ=2arctan⁡t\theta = 2\arctan t; always check θ=π+2nπ\theta = \pi + 2 n \pi separately because the substitution is undefined there.

Jump to a section
  1. What this dot point is asking
  2. The answer
  3. Exam-style questions

What this dot point is asking

NESA wants you to know the t-formula (also called the Weierstrass or half-angle substitution): set t=tan⁡θ2t = \tan \frac{\theta}{2} and rewrite sin⁡θ\sin \theta, cos⁡θ\cos \theta and tan⁡θ\tan \theta as rational functions of tt. The point is a change of subject: trig equations and integrals that mix sines and cosines are hard, but once everything is written in tt they become ordinary algebra, usually a quadratic. You trade the trigonometry for a polynomial, solve that, then convert back with θ=2arctan⁡t\theta = 2\arctan t. The one catch, which the exam loves, is that the substitution quietly excludes θ=π\theta = \pi (plus full turns), so you must check that value by hand.

The answer

The substitution

Let t=tan⁡θ2t = \tan \frac{\theta}{2}. Then

sin⁡θ=2t1+t2,cos⁡θ=1−t21+t2,tan⁡θ=2t1−t2.\sin \theta = \frac{2 t}{1 + t^2}, \qquad \cos \theta = \frac{1 - t^2}{1 + t^2}, \qquad \tan \theta = \frac{2 t}{1 - t^2}.

These are not arbitrary; they fall straight out of a right triangle for the half-angle together with the double-angle identities.

Where the formulas come from: a half-angle triangle

Write ϕ=θ2\phi = \frac{\theta}{2}, so t=tan⁡ϕt = \tan\phi. Build a right triangle whose angle at the origin is ϕ\phi, with the side opposite equal to tt and the side adjacent equal to 11. By Pythagoras the hypotenuse is 1+t2\sqrt{1 + t^2}.

Stage 1: the half-angle triangleA right triangle whose angle at the origin is theta on 2. The side opposite is t, the side adjacent is 1, so tan of theta on 2 equals t.θ/21t√(1 + t²)

Reading the triangle gives sine and cosine of the half-angle directly.

Stage 2: read sine and cosine of theta on 2From the triangle, sine of theta on 2 is t over the square root of 1 plus t squared, and cosine of theta on 2 is 1 over the same hypotenuse.θ/2sin θ/2 = t/√(1+t²)cos θ/2 = 1/√(1+t²)

Now feed these into the double-angle identities for θ=2ϕ\theta = 2\phi. For sine, sin⁡θ=2sin⁡ϕcos⁡ϕ=2⋅t1+t2⋅11+t2=2t1+t2\sin\theta = 2\sin\phi\cos\phi = 2\cdot\frac{t}{\sqrt{1+t^2}}\cdot\frac{1}{\sqrt{1+t^2}} = \frac{2t}{1+t^2}. For cosine, cos⁡θ=cos⁡2ϕ−sin⁡2ϕ=1−t21+t2\cos\theta = \cos^2\phi - \sin^2\phi = \frac{1 - t^2}{1+t^2}. Dividing gives tan⁡θ=2t1−t2\tan\theta = \frac{2t}{1-t^2}.

Stage 3: double-angle gives the t-formulasSubstituting sine and cosine of theta on 2 into the double-angle identities gives sine theta equals 2 t over 1 plus t squared, cosine theta equals 1 minus t squared over 1 plus t squared, and tan theta equals 2 t over 1 minus t squared.sin θ = 2 sin θ/2 cos θ/2= 2t / (1 + t²)cos θ = cos² θ/2 − sin² θ/2= (1 − t²) / (1 + t²)tan θ = sin θ / cos θ= 2t / (1 − t²)From the double-angle identities with t = tan θ/2:

The algebraic derivation (no triangle needed)

If you prefer pure algebra, start from the double-angle forms and divide top and bottom by cos⁡2ϕ\cos^2\phi. From sin⁡2ϕ=2sin⁡ϕcos⁡ϕ\sin 2\phi = 2\sin\phi\cos\phi,

sin⁡θ=2sin⁡ϕcos⁡ϕcos⁡2ϕ+sin⁡2ϕ=2tan⁡ϕ1+tan⁡2ϕ=2t1+t2.\sin\theta = \frac{2\sin\phi\cos\phi}{\cos^2\phi + \sin^2\phi} = \frac{2\tan\phi}{1 + \tan^2\phi} = \frac{2t}{1 + t^2}.

From cos⁡2ϕ=cos⁡2ϕ−sin⁡2ϕ\cos 2\phi = \cos^2\phi - \sin^2\phi, dividing by cos⁡2ϕ+sin⁡2ϕ\cos^2\phi + \sin^2\phi gives cos⁡θ=1−tan⁡2ϕ1+tan⁡2ϕ=1−t21+t2\cos\theta = \frac{1 - \tan^2\phi}{1 + \tan^2\phi} = \frac{1 - t^2}{1 + t^2}. Then tan⁡θ=sin⁡θcos⁡θ=2t1−t2\tan\theta = \frac{\sin\theta}{\cos\theta} = \frac{2t}{1 - t^2}, valid when 1−t2≠01 - t^2 \neq 0.

Key fact

With t=tan⁡θ2t = \tan\frac{\theta}{2}:

sin⁡θ=2t1+t2,cos⁡θ=1−t21+t2,tan⁡θ=2t1−t2.\sin\theta = \frac{2t}{1+t^2}, \qquad \cos\theta = \frac{1-t^2}{1+t^2}, \qquad \tan\theta = \frac{2t}{1-t^2}.

The common denominator 1+t21 + t^2 for sin⁡\sin and cos⁡\cos lets you clear fractions by multiplying through by 1+t21 + t^2, turning asin⁡θ+bcos⁡θ=ca\sin\theta + b\cos\theta = c into a quadratic in tt. Recover the angle with θ=2arctan⁡t\theta = 2\arctan t. The substitution is undefined at θ=π+2nπ\theta = \pi + 2n\pi (where tan⁡θ2\tan\frac{\theta}{2} blows up), so check θ=π\theta = \pi separately.

Turning an equation into a quadratic

To solve asin⁡θ+bcos⁡θ=ca\sin\theta + b\cos\theta = c with the t-formula, substitute and clear the denominator:

a⋅2t1+t2+b⋅1−t21+t2=c  ⟹  2at+b(1−t2)=c(1+t2).a\cdot\frac{2t}{1+t^2} + b\cdot\frac{1-t^2}{1+t^2} = c \implies 2at + b(1 - t^2) = c(1 + t^2).

Collect terms into a quadratic in tt:

(b+c)t2−2at+(c−b)=0.(b + c)t^2 - 2at + (c - b) = 0.

Solve for tt (factor or quadratic formula), then recover θ=2arctan⁡t\theta = 2\arctan t for each root. The general solution for θ\theta may add further branches, so read the interval the question asks for.

When to reach for the t-formula

The t-formula is the right tool when:

  1. The equation is asin⁡θ+bcos⁡θ=ca\sin\theta + b\cos\theta = c and you want exact or numerical roots (it competes with the auxiliary-angle method; t-formula shines when the quadratic factorises).
  2. You are integrating a rational function of sin⁡θ\sin\theta and cos⁡θ\cos\theta, such as ∫dθ1+sin⁡θ\int\frac{d\theta}{1+\sin\theta}, since dθ=21+t2 dtd\theta = \frac{2}{1+t^2}\,dt converts the whole integral to a rational function of tt.
  3. You are proving an identity in which every term can be rewritten in tt and then simplified.

The limitation you must always check

Because t=tan⁡θ2t = \tan\frac{\theta}{2} is undefined when θ2=π2+nπ\frac{\theta}{2} = \frac{\pi}{2} + n\pi, that is θ=π+2nπ\theta = \pi + 2n\pi, the substitution silently drops those angles. After solving in tt, substitute θ=π\theta = \pi (and θ=−π\theta = -\pi if relevant to the interval) into the original equation to see whether it is a solution the t-formula missed. This single check is worth a mark and is the most common t-formula trap.

How exam questions ask about the t-formula

  • "Using t=tan⁡θ2t = \tan\frac{\theta}{2}, show that sin⁡θ=…\sin\theta = \ldots" (or derive cos⁡θ\cos\theta, tan⁡θ\tan\theta): reproduce the half-angle triangle or the algebraic division.
  • "Use the t-formula to solve asin⁡θ+bcos⁡θ=ca\sin\theta + b\cos\theta = c in [interval]": substitute, clear to a quadratic in tt, solve, convert with θ=2arctan⁡t\theta = 2\arctan t, and check θ=π\theta = \pi.
  • "Prove the identity ... using t=tan⁡θ2t = \tan\frac{\theta}{2}": substitute every term, put over the common denominator 1+t21 + t^2, and simplify.
  • "Using t=tan⁡θ2t = \tan\frac{\theta}{2}, evaluate ∫(rational in sin⁡,cos⁡) dθ\int (\text{rational in }\sin,\cos)\,d\theta": substitute including dθ=21+t2 dtd\theta = \frac{2}{1+t^2}\,dt, integrate the rational function, back-substitute.
  • "Express sin⁡θ+cos⁡θ\sin\theta + \cos\theta in terms of tt": add the rational forms over 1+t21 + t^2.
Exam technique

Quote the three substitutions at the top of your working, then clear the denominator by multiplying through by 1+t21 + t^2 before doing anything else. Track the algebra: 2t1+t2×(1+t2)=2t\frac{2t}{1+t^2}\times(1+t^2) = 2t, not 22. Arrange the result as a quadratic in tt and solve by factoring if possible. Convert each root back with θ=2arctan⁡t\theta = 2\arctan t, and use the general solution if the interval is wide. Always finish with the θ=π\theta = \pi check (state the substitution and the value of the original LHS there), even when it is not a solution; markers look for it. Keep exact unless decimals are requested, and give answers to the stated accuracy.

Worked example

Solve a linear trig equation with the t-formula

Solve sin⁡θ+2cos⁡θ=1\sin\theta + 2\cos\theta = 1 for θ∈[0,2π)\theta \in [0, 2\pi).

Substitute the t-formula and reduce to a quadratic: Replace sin⁡θ\sin\theta and cos⁡θ\cos\theta using t=tan⁡θ2t = \tan\frac{\theta}{2}:

2t1+t2+2⋅1−t21+t2=1.\frac{2t}{1+t^2} + 2 \cdot \frac{1-t^2}{1+t^2} = 1.

Multiply every term by 1+t21+t^2 to clear the denominators:

2t+2(1−t2)=1+t2,so3t2−2t−1=0.2t + 2(1 - t^2) = 1 + t^2, \qquad \text{so} \qquad 3t^2 - 2t - 1 = 0.

Factor: (3t+1)(t−1)=0(3t+1)(t-1) = 0, giving t=−13t = -\frac{1}{3} or t=1t = 1.

Recover θ\theta from tt and check the excluded point: Convert each value of tt back via θ=2arctan⁡t\theta = 2\arctan t. For t=1t = 1: θ=2arctan⁡1=π2\theta = 2\arctan 1 = \frac{\pi}{2}. For t=−13t = -\frac{1}{3}: θ=2arctan⁡ ⁣(−13)≈−0.6435\theta = 2\arctan\!\left(-\frac{1}{3}\right) \approx -0.6435 rad, which lies outside [0,2π)[0, 2\pi), so add 2π2\pi to get θ≈5.640\theta \approx 5.640 rad.

The t-formula is undefined at θ=π\theta = \pi, so check it separately by direct substitution: sin⁡π+2cos⁡π=0+2(−1)=−2≠1\sin\pi + 2\cos\pi = 0 + 2(-1) = -2 \neq 1. It is not a solution. In [0,2π)[0, 2\pi): θ=π2\theta = \dfrac{\pi}{2} and θ≈5.640\theta \approx 5.640 rad.

Prove an identity by substituting the t-formula throughout

Show 1−cos⁡θsin⁡θ=tan⁡θ2\frac{1 - \cos\theta}{\sin\theta} = \tan\frac{\theta}{2}. Replace cos⁡θ\cos\theta and sin⁡θ\sin\theta with their t-formula expressions, then simplify by multiplying numerator and denominator by 1+t21+t^2:

1−cos⁡θsin⁡θ=1−1−t21+t22t1+t2=(1+t2)−(1−t2)2t=2t22t=t=tan⁡θ2.\frac{1 - \cos\theta}{\sin\theta} = \frac{1 - \frac{1-t^2}{1+t^2}}{\frac{2t}{1+t^2}} = \frac{(1+t^2) - (1-t^2)}{2t} = \frac{2t^2}{2t} = t = \tan\frac{\theta}{2}.

Express a combination of trig functions in terms of tt

Express sin⁡θ+cos⁡θ\sin\theta + \cos\theta in terms of t=tan⁡θ2t = \tan\frac{\theta}{2}. Add the two rational expressions with the common denominator 1+t21+t^2:

sin⁡θ+cos⁡θ=2t1+t2+1−t21+t2=2t+1−t21+t2.\sin\theta + \cos\theta = \frac{2t}{1+t^2} + \frac{1-t^2}{1+t^2} = \frac{2t + 1 - t^2}{1+t^2}.

This rational form in tt is useful when the resulting equation factorises cleanly after substitution.

Use the t-formula to evaluate an integral

Evaluate ∫dθ1+sin⁡θ\displaystyle\int \frac{d\theta}{1 + \sin\theta}. Set t=tan⁡θ2t = \tan\frac{\theta}{2}, so sin⁡θ=2t1+t2\sin\theta = \frac{2t}{1+t^2} and dθ=21+t2 dtd\theta = \frac{2}{1+t^2}\,dt. Substitute:

∫11+2t1+t2⋅21+t2 dt=∫2(1+t2)+2t dt=∫2(1+t)2 dt=−21+t+C.\int \frac{1}{1 + \frac{2t}{1+t^2}} \cdot \frac{2}{1+t^2}\, dt = \int \frac{2}{(1+t^2) + 2t}\, dt = \int \frac{2}{(1+t)^2}\, dt = -\frac{2}{1+t} + C.

Back-substitute t=tan⁡θ2t = \tan\frac{\theta}{2} to obtain −21+tan⁡(θ/2)+C-\dfrac{2}{1 + \tan(\theta/2)} + C.

Edge cases worth knowing

  • A repeated root gives one angle from the quadratic. If the quadratic in tt is a perfect square, like (3t−1)2=0(3t-1)^2 = 0, there is a single tt, hence one base angle from 2arctan⁡t2\arctan t (plus any from the θ=π\theta = \pi check).
  • cos⁡θ\cos\theta changes sign with ∣t∣|t|. cos⁡θ=1−t21+t2\cos\theta = \frac{1-t^2}{1+t^2} is positive for ∣t∣<1|t| < 1 and negative for ∣t∣>1|t| > 1; a quick number line settles the sign if you are unsure.
  • The integral version needs dθd\theta converted too. Forgetting dθ=21+t2 dtd\theta = \frac{2}{1+t^2}\,dt is the usual integral slip; it is what makes the integrand rational in tt.
Common traps
Forgetting θ=π+2nπ\theta = \pi + 2 n \pi
The substitution misses these points. Always check them separately against the original equation.
Sign error after 1−t21 - t^2
cos⁡θ=1−t21+t2\cos \theta = \frac{1 - t^2}{1 + t^2} is positive when ∣t∣<1|t| < 1 and negative when ∣t∣>1|t| > 1. Sketch a quick number line if unsure.
Treating tt as the final unknown
Solve for tt first, then recover θ=2arctan⁡t\theta = 2 \arctan t at the end. The general solution for θ\theta may include extra branches.
Cancelling wrongly when clearing fractions
2t1+t2\frac{2 t}{1 + t^2} multiplied by (1+t2)(1 + t^2) becomes 2t2 t, not 22. Track the cancellation.
Confusing tan⁡(θ/2)\tan(\theta/2) with 12tan⁡θ\frac{1}{2} \tan \theta
These are different functions. The t-formula uses the half-angle tangent.

Exam-style questions

Questions in the style of NESA exam questions on this dot point, each with a worked answer. They are written by ExamExplained unless tagged "Past paper"; the year shows the paper a question is modelled on.

HSC-style2 marks
Given t=tan⁡θ2t = \tan \frac{\theta}{2}, show that 1+sin⁡θcos⁡θ=1+t1−t\frac{1 + \sin \theta}{\cos \theta} = \frac{1 + t}{1 - t}.
Show worked answer →

Substitute sin⁡θ=2t1+t2\sin \theta = \frac{2 t}{1 + t^2} and cos⁡θ=1−t21+t2\cos \theta = \frac{1 - t^2}{1 + t^2}.

Numerator: 1+sin⁡θ=1+2t1+t2=(1+t2)+2t1+t2=(1+t)21+t21 + \sin \theta = 1 + \frac{2 t}{1 + t^2} = \frac{(1 + t^2) + 2 t}{1 + t^2} = \frac{(1 + t)^2}{1 + t^2}.

So 1+sin⁡θcos⁡θ=(1+t)2/(1+t2)(1−t2)/(1+t2)=(1+t)21−t2\frac{1 + \sin \theta}{\cos \theta} = \frac{(1 + t)^2 / (1 + t^2)}{(1 - t^2) / (1 + t^2)} = \frac{(1 + t)^2}{1 - t^2}.

Factor 1−t2=(1−t)(1+t)1 - t^2 = (1 - t)(1 + t): (1+t)2(1−t)(1+t)=1+t1−t\frac{(1 + t)^2}{(1 - t)(1 + t)} = \frac{1 + t}{1 - t}, as required.

HSC-style4 marks
Use the substitution t=tan⁡θ2t = \tan \frac{\theta}{2} to solve 3sin⁡θ+4cos⁡θ=53 \sin \theta + 4 \cos \theta = 5 for θ∈[0,2π)\theta \in [0, 2\pi), giving the answer to two decimal places.
Show worked answer →

Substitute: 3⋅2t1+t2+4⋅1−t21+t2=53 \cdot \frac{2 t}{1 + t^2} + 4 \cdot \frac{1 - t^2}{1 + t^2} = 5.

Multiply by 1+t21 + t^2: 6t+4(1−t2)=5(1+t2)6 t + 4(1 - t^2) = 5(1 + t^2).

6t+4−4t2=5+5t26 t + 4 - 4 t^2 = 5 + 5 t^2, so 9t2−6t+1=09 t^2 - 6 t + 1 = 0, i.e. (3t−1)2=0(3 t - 1)^2 = 0.

Thus t=13t = \frac{1}{3} (repeated), so θ=2arctan⁡13≈2(0.32175)≈0.64\theta = 2 \arctan \frac{1}{3} \approx 2(0.32175) \approx 0.64 rad.

Check θ=π\theta = \pi (where the substitution fails): 3sin⁡π+4cos⁡π=−4≠53 \sin \pi + 4 \cos \pi = -4 \neq 5, not a solution. So θ≈0.64\theta \approx 0.64 in [0,2π)[0, 2\pi).

Practise this

Sources & how we know this

ExamExplained