The Weierstrass substitution

The Weierstrass substitution

Spec 2.5 · Edexcel A-Level Further Maths: Revision notes

Studying this course? Keep your progress in one place.

Key facts

  • The Weierstrass substitution is t=tan⁡x2t=\tan\frac x2: sin⁡x=2t1+t2\sin x=\frac{2t}{1+t^2}, cos⁡x=1−t21+t2\cos x=\frac{1-t^2}{1+t^2}, dx=2 dt1+t2\mathrm{d}x=\frac{2\,\mathrm{d}t}{1+t^2}.
  • It turns trig integrals into rational integrals in tt; the factors (1+t2)(1+t^2) usually cancel.
  • For definite integrals convert the limits: x=π2→t=1x=\frac\pi2\to t=1.
  • Some integrands need partial fractions or the arctan result after substituting.

The substitution

t=tan⁡x2t=\tan\frac x2 turns an integral of trig functions into an integral of a rational function of tt.

The Weierstrass substitution (the tangent half-angle substitution) is t=tan⁡x2t=\tan\frac x2. It turns an integral of trigonometric functions into an integral of a rational function of tt.

The last result comes from dtdx=12sec⁡2x2=12(1+t2)\frac{\mathrm{d}t}{\mathrm{d}x}=\frac12\sec^2\frac x2=\frac12(1+t^2).

Use it for integrals with denominators such as 1+sin⁡x1+\sin x, 2+cos⁡x2+\cos x or cosec⁡x\operatorname{cosec}x.

−3−2−1123−8−6−4−22468xt(0, 0)(π/2, 1)t = tan(x/2)
t = tan(x/2): as x runs from −π to π, t covers every real value, which is why the substitution works
  • sin⁡x\sin x2t1+t2\dfrac{2t}{1+t^2}
  • cos⁡x\cos x1−t21+t2\dfrac{1-t^2}{1+t^2}
  • dx\mathrm{d}x2 dt1+t2\dfrac{2\,\mathrm{d}t}{1+t^2}

What is dx\mathrm{d}x in terms of tt and dt\mathrm{d}t?

An indefinite integral

The (1+t2)(1+t^2) factors cancel completely, leaving ∫1t dt\int\frac1t\,\mathrm{d}t.

The (1+t2)(1+t^2) factors cancel completely. For an indefinite integral the answer must be returned in terms of xx, so substitute back t=tan⁡x2t=\tan\frac x2 at the end.

  1. 1

    Substitute

    cosec⁡x=1+t22t\operatorname{cosec}x=\frac{1+t^2}{2t} and dx=2 dt1+t2\mathrm{d}x=\frac{2\,\mathrm{d}t}{1+t^2}

  2. 2

    Cancel

    1+t22t⋅21+t2=1t\frac{1+t^2}{2t}\cdot\frac2{1+t^2}=\frac1t

  3. 3

    Integrate

    ln⁡∣t∣+c\ln|t|+c

  4. 4

    Substitute back

    t=tan⁡x2t=\tan\frac x2

Integrating cosec x

Worked example

Find ∫cosec⁡x dx\int\operatorname{cosec}x\,\mathrm{d}x.

After substituting, ∫cosec⁡x dx\int\operatorname{cosec}x\,\mathrm{d}x becomes which integral?

Definite integrals

Convert each limit with t=tan⁡x2t=\tan\frac x2; then no back-substitution is needed.

For a definite integral, change the limits using t=tan⁡x2t=\tan\frac x2: x=0→t=0x=0\to t=0, x=π3→t=13x=\frac\pi3\to t=\frac1{\sqrt3} and x=π2→t=1x=\frac\pi2\to t=1. Then no back-substitution is needed.

Since 1+sin⁡x=(1+t)21+t21+\sin x=\frac{(1+t)^2}{1+t^2}, the integrand 11+sin⁡x\frac1{1+\sin x} becomes 2(1+t)2\frac2{(1+t)^2}.

Another: ∫11+cos⁡x dx\int\frac1{1+\cos x}\,\mathrm{d}x becomes ∫dt=tan⁡x2+c\int\mathrm{d}t=\tan\frac x2+c.

−0.4−0.20.20.40.60.811.21.41.61.820.20.40.60.811.21.4xy(0, 1)(π/2, 1/2)y = 1/(1 + sin x)
The area under y = 1/(1 + sin x) from 0 to π/2 is 1.

Worked example

Evaluate ∫0π/211+sin⁡x dx\int_0^{\pi/2}\frac1{1+\sin x}\,\mathrm{d}x.

What is the tt limit corresponding to x=π3x=\frac\pi3?

Needing partial fractions

Some integrands reduce to 1t(t+1)\frac1{t(t+1)} and need partial fractions.

Some integrals need partial fractions after the substitution.

Combine logarithms at the end with ln⁡a−ln⁡b=ln⁡ab\ln a-\ln b=\ln\frac ab to give a single exact logarithm.

  1. 1

    Substitute

    write the denominator in tt

  2. 2

    Simplify

    the integrand becomes 1t(t+1)\frac1{t(t+1)}

  3. 3

    Partial fractions

    1t−1t+1\frac1t-\frac1{t+1}

  4. 4

    Integrate and combine

    use ln⁡a−ln⁡b=ln⁡ab\ln a-\ln b=\ln\frac ab

A route needing partial fractions

Worked example

Evaluate ∫π/3π/211+sin⁡x−cos⁡x dx\int_{\pi/3}^{\pi/2}\frac1{1+\sin x-\cos x}\,\mathrm{d}x.

What is the partial-fraction form of 1t(t+1)\frac1{t(t+1)}?

A quadratic denominator

Use the arctan result ∫1a2+t2 dt=1aarctan⁡ta+c\int\frac1{a^2+t^2}\,\mathrm{d}t=\frac1a\arctan\frac ta+c.

If the substituted integrand has a denominator of the form a2+t2a^2+t^2, use the arctan form:

∫1a2+t2 dt=1aarctan⁡ta+c.\int\frac1{a^2+t^2}\,\mathrm{d}t=\frac1a\arctan\frac ta+c.

If the (1+t2)(1+t^2) factors do not cancel, recheck the algebra for the denominator.

−6−4−2246−2−1.5−1−0.50.511.52tyy = π/2y = −π/2y = arctan ty = 1/(1 + t²)
The integrand 1/(1 + t²) and its integral arctan t, which tends to ±π/2
  • ∫1a2+t2 dt\int\frac1{a^2+t^2}\,\mathrm{d}t1aarctan⁡ta+c\frac1a\arctan\frac ta+c

Worked example

Evaluate ∫0π/212+cos⁡x dx\int_0^{\pi/2}\frac1{2+\cos x}\,\mathrm{d}x.

Which standard integral is used for ∫23+t2 dt\int\frac2{3+t^2}\,\mathrm{d}t?

Try an exam question

Use the substitution t=tan⁡x2t=\tan\frac x2 to show that ∫0π/211+sin⁡x+cos⁡x dx=ln⁡2\int_0^{\pi/2}\frac1{1+\sin x+\cos x}\,\mathrm{d}x=\ln2.

[4 marks]

That's the notes covered.

Carry on to the next subtopic.

Try a question

Which expression is equal to dx\mathrm{d}x in terms of tt and dt\mathrm{d}t?

1 mark, marked against the mark scheme

Revision notes