Conquering the Impossible Integral: A Guide to the t-Substitution

#Integration#Extension-2#Calculus

If you are navigating the HSC Mathematics Extension 2 syllabus, you already know that integration is as much an art as it is a science. While standard techniques like integration by parts, partial fractions, and reverse chain rule can solve a wide array of problems, there is a specific class of trigonometric integrals that stubbornly resists these standard tools.

Enter the tt-substitution (often known in university calculus as the Weierstrass substitution). It is the ultimate heavy-duty tool for dealing with messy rational trigonometric expressions. Let’s break down how it works and walk through some classic examples.

What is it, and why is it useful?

At its core, the tt-substitution is a clever algebraic bridge. It transforms a complex trigonometric integrand (involving sinx\sin x and cosx\cos x in the denominators) into a standard rational function (a polynomial divided by a polynomial).

Why is this a lifesaver? Because rational functions can almost always be integrated using algebraic techniques you already know, such as partial fractions, completing the square, or recognizing standard inverse tangent and logarithmic forms. Once the substitution is made, the trigonometry disappears entirely until the final step.

Quick Review of the Substitution

As outlined in the reference guide, the substitution relies on setting t=tan(x2)t = \tan\left(\frac{x}{2}\right). Using double-angle formulas, we can express sinx\sin x, cosx\cos x, and tanx\tan x strictly in terms of tt.

Here is your essential toolkit to memorize: Let t=tan(x2)t = \tan\left(\frac{x}{2}\right). Then:

  • sinx=2t1+t2\sin x = \frac{2t}{1+t^2}
  • cosx=1t21+t2\cos x = \frac{1-t^2}{1+t^2}
  • tanx=2t1t2\tan x = \frac{2t}{1-t^2}
  • dx=21+t2dtdx = \frac{2}{1+t^2} \, dt

Note: Don't forget to swap out the dxdx! The differential dxdx carries its own denominator of 1+t21+t^2, which usually elegantly cancels out the denominators introduced by the sinx\sin x and cosx\cos x substitutions.


Solving the Problems

Let’s apply this to a customized practice set based on the structures in image_8a0f0a.png. We will tackle a selection of both indefinite and definite integrals to see the mechanics in action.

Part 1: Indefinite Integrals

Problem 1a (Modified): Find 12+cosxdx\int \frac{1}{2+\cos x} \, dx

  1. Substitute: Replace cosx\cos x and dxdx with their tt-equivalents.
12+(1t21+t2)21+t2dt\int \frac{1}{2 + \left(\frac{1-t^2}{1+t^2}\right)} \cdot \frac{2}{1+t^2} \, dt
  1. Simplify: Multiply the top and bottom of the first fraction by 1+t21+t^2.
22(1+t2)+(1t2)dt=22+2t2+1t2dt=2t2+3dt\int \frac{2}{2(1+t^2) + (1-t^2)} \, dt = \int \frac{2}{2 + 2t^2 + 1 - t^2} \, dt = \int \frac{2}{t^2 + 3} \, dt
  1. Integrate: This fits the standard inverse tangent form 1t2+a2dt=1aarctan(ta)\int \frac{1}{t^2 + a^2} dt = \frac{1}{a}\arctan\left(\frac{t}{a}\right), where a=3a = \sqrt{3}.
23arctan(t3)+C\frac{2}{\sqrt{3}} \arctan\left(\frac{t}{\sqrt{3}}\right) + C
  1. Back-substitute: Swap tt back for xx.
23arctan(tan(x/2)3)+C\frac{2}{\sqrt{3}} \arctan\left(\frac{\tan(x/2)}{\sqrt{3}}\right) + C

Problem 1b (Modified): Find 112+sinxcosxdx\int \frac{1}{\frac{1}{2}+\sin x - \cos x} \, dx

  1. Substitute:
112+2t1+t21t21+t221+t2dt\int \frac{1}{\frac{1}{2} + \frac{2t}{1+t^2} - \frac{1-t^2}{1+t^2}} \cdot \frac{2}{1+t^2} \, dt
  1. Simplify: Multiply the numerator and denominator by 1+t21+t^2.
212(1+t2)+2t(1t2)dt=212+12t2+2t1+t2dt\int \frac{2}{\frac{1}{2}(1+t^2) + 2t - (1-t^2)} \, dt = \int \frac{2}{\frac{1}{2} + \frac{1}{2}t^2 + 2t - 1 + t^2} \, dt =232t2+2t12dt= \int \frac{2}{\frac{3}{2}t^2 + 2t - \frac{1}{2}} \, dt

Multiply the entire fraction by 22\frac{2}{2} to clear the denominators:

43t2+4t1dt\int \frac{4}{3t^2 + 4t - 1} \, dt
  1. Complete the Square: Let's prepare the denominator for an algebraic integration technique.
3t2+4t1=3(t2+43t)1=3[(t+23)249]1=3(t+23)2733t^2 + 4t - 1 = 3\left(t^2 + \frac{4}{3}t\right) - 1 = 3\left[\left(t + \frac{2}{3}\right)^2 - \frac{4}{9}\right] - 1 = 3\left(t + \frac{2}{3}\right)^2 - \frac{7}{3}

Pulling out the common factor of 33:

431(t+2/3)2(7/3)2dt\frac{4}{3} \int \frac{1}{(t + 2/3)^2 - (\sqrt{7}/3)^2} \, dt
  1. Integrate: Using the standard standard integral form 1u2a2du=12alnuau+a\int \frac{1}{u^2 - a^2} du = \frac{1}{2a}\ln\left\vert{}\frac{u-a}{u+a}\right\vert{}. Here, u=t+23u = t + \frac{2}{3} and a=73a = \frac{\sqrt{7}}{3}.
=4312(7/3)lnt+2/37/3t+2/3+7/3+C= \frac{4}{3} \cdot \frac{1}{2(\sqrt{7}/3)} \ln\left\vert{} \frac{t + 2/3 - \sqrt{7}/3}{t + 2/3 + \sqrt{7}/3} \right\vert{} + C =27ln3t+273t+2+7+C= \frac{2}{\sqrt{7}} \ln\left\vert{} \frac{3t + 2 - \sqrt{7}}{3t + 2 + \sqrt{7}} \right\vert{} + C
  1. Back-substitute:
27ln3tan(x/2)+273tan(x/2)+2+7+C\frac{2}{\sqrt{7}} \ln\left\vert{} \frac{3\tan(x/2) + 2 - \sqrt{7}}{3\tan(x/2) + 2 + \sqrt{7}} \right\vert{} + C

Part 2: Definite Integrals

Crucial Step: For definite integrals, you MUST change your limits of integration from xx-values to tt-values. This saves you from having to back-substitute at the end.

Problem 2a (Modified): Evaluate 0π/211sinxdx\int_0^{\pi/2} \frac{1}{1-\sin x} \, dx

  1. Change the limits:
  • When x=0x = 0, t=tan(0/2)=0t = \tan(0/2) = 0.
  • When x=π/2x = \pi/2, t=tan(π/4)=1t = \tan(\pi/4) = 1.
  1. Substitute:
01112t1+t221+t2dt\int_0^1 \frac{1}{1 - \frac{2t}{1+t^2}} \cdot \frac{2}{1+t^2} \, dt
  1. Simplify: Multiply through by 1+t21+t^2.
012(1+t2)2tdt=012(t1)2dt\int_0^1 \frac{2}{(1+t^2) - 2t} \, dt = \int_0^1 \frac{2}{(t-1)^2} \, dt
  1. Evaluate:
012(t1)2dt=[2(t1)1]01=[2t1]01\int_0^1 2(t-1)^{-2} \, dt = \left[ -2(t-1)^{-1} \right]_0^1 = \left[ \frac{-2}{t-1} \right]_0^1

Note: At t=1t=1, this expression approaches infinity. Looking closely at our original integrand, as xπ/2x \to \pi/2, sinx1\sin x \to 1, making the denominator 00. This is an improper integral!

limk1[2t1]0k=limk1(2k1)(201)=2=\lim_{k \to 1^-} \left[ \frac{-2}{t-1} \right]_0^k = \lim_{k \to 1^-} \left( \frac{-2}{k-1} \right) - \left( \frac{-2}{0-1} \right) = \infty - 2 = \infty

Takeaway: The integral diverges! Recognising domain limitations and asymptote behaviors under substitutions is a hallmark skill for Extension 2.

Problem 2c (Modified): Evaluate 0π/213+sinxdx\int_{0}^{\pi/2} \frac{1}{3+\sin x} \, dx

  1. Change the limits:
  • When x=0x = 0, t=tan(0)=0t = \tan(0) = 0.
  • When x=π/2x = \pi/2, t=tan(π/4)=1t = \tan(\pi/4) = 1.
  1. Substitute & Simplify:
0113+(2t1+t2)21+t2dt=0123(1+t2)+2tdt\int_{0}^1 \frac{1}{3 + \left(\frac{2t}{1+t^2}\right)} \cdot \frac{2}{1+t^2} \, dt = \int_{0}^1 \frac{2}{3(1+t^2) + 2t} \, dt =0123t2+2t+3dt= \int_{0}^1 \frac{2}{3t^2 + 2t + 3} \, dt
  1. Complete the Square: Factor out the 3: 3(t2+23t+1)3\left(t^2 + \frac{2}{3}t + 1\right) Complete the square: 3[(t+13)219+99]=3[(t+13)2+89]3\left[ \left(t + \frac{1}{3}\right)^2 - \frac{1}{9} + \frac{9}{9} \right] = 3\left[ \left(t + \frac{1}{3}\right)^2 + \frac{8}{9} \right]
  2. Integrate (Standard Inverse Tangent Form):
23011(t+1/3)2+(8/3)2dt\frac{2}{3} \int_{0}^1 \frac{1}{(t + 1/3)^2 + (\sqrt{8}/3)^2} \, dt

Using 1u2+a2du=1aarctan(ua)\int \frac{1}{u^2 + a^2} du = \frac{1}{a} \arctan\left(\frac{u}{a}\right), where a=83=223a = \frac{\sqrt{8}}{3} = \frac{2\sqrt{2}}{3}.

=23322[arctan(t+1/322/3)]01=12[arctan(3t+122)]01= \frac{2}{3} \cdot \frac{3}{2\sqrt{2}} \left[ \arctan\left(\frac{t + 1/3}{2\sqrt{2}/3}\right) \right]_{0}^1 = \frac{1}{\sqrt{2}} \left[ \arctan\left(\frac{3t + 1}{2\sqrt{2}}\right) \right]_{0}^1
  1. Evaluate:
=12(arctan(422)arctan(122))= \frac{1}{\sqrt{2}} \left( \arctan\left(\frac{4}{2\sqrt{2}}\right) - \arctan\left(\frac{1}{2\sqrt{2}}\right) \right) =12(arctan(2)arctan(122))= \frac{1}{\sqrt{2}} \left( \arctan(\sqrt{2}) - \arctan\left(\frac{1}{2\sqrt{2}}\right) \right)

Key Takeaways for the Exam

When utilizing the tt-substitution in an Extension 2 environment, keep this checklist in mind:

  • Identify the Trigger: Look for integrands with asinx+bcosx+ca\sin x + b\cos x + c in the denominator.
  • Don't Forget dxdx: The most common student error is replacing sinx\sin x and cosx\cos x but leaving dxdx as is. Always include the 21+t2dt\frac{2}{1+t^2}dt multiplier!
  • Definite Integrals = New Limits: Always update your limits of integration immediately. It saves time and drastically reduces algebraic errors at the end.
  • Watch the Boundaries: Pay close attention to integration limits like π\pi or values where the denominator becomes 00, as they can lead to undefined scenarios or improper integrals.

Conclusion

The tt-substitution can seem intimidating at first glance because it involves memorizing formulas and handling dense algebra. However, once you master the setup, it reduces complex trigonometry problems into predictable rational functions. Practice setting up the algebraic steps clearly—your marker will appreciate a well-structured response just as much as a correct final answer. Happy integrating!

Written by Vu Hung Nguyen

Mathematics Educator · LinkedIn · About