Mathwords logoMathwords

Tangent Half-Angle Substitution — Definition, Formula & Example

Tangent half-angle substitution is an integration technique that replaces xx with t=tan⁡(x/2)t = \tan(x/2). Every sine and cosine in the integrand then becomes a fraction built from polynomials in tt, which you can integrate with algebra.

For an integral ∫R(sin⁡x,cos⁡x) dx\int R(\sin x, \cos x)\,dx, where RR is a rational function of two variables, the substitution t=tan⁡(x/2)t = \tan(x/2), so x=2arctan⁡tx = 2\arctan t with −π<x<π-\pi < x < \pi, gives 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}, and dx=2 dt1+t2dx = \frac{2\,dt}{1+t^2}. The result is an integral of a rational function of tt. Partial fractions and the basic integral rules can always evaluate it.

Key Formula

t=tan⁡x2,sin⁡x=2t1+t2,cos⁡x=1−t21+t2,dx=2 dt1+t2t = \tan\frac{x}{2}, \qquad \sin x = \frac{2t}{1+t^2}, \qquad \cos x = \frac{1-t^2}{1+t^2}, \qquad dx = \frac{2\,dt}{1+t^2}
Where:
  • xx = The original variable of integration, an angle in radians with -π < x < π
  • tt = The new variable, equal to the tangent of half the angle x
  • dxdx = The differential, found by differentiating x = 2 arctan t

Worked Example

Problem: Evaluate ∫0π/2dx1+sin⁡x+cos⁡x\displaystyle\int_0^{\pi/2} \frac{dx}{1 + \sin x + \cos x}.
Step 1: Let t=tan⁡(x/2)t = \tan(x/2). Convert the bounds of integration. When x=0x = 0, t=tan⁡0=0t = \tan 0 = 0. When x=π/2x = \pi/2, t=tan⁡(π/4)=1t = \tan(\pi/4) = 1.
x=0⇒t=0,x=π2⇒t=1x = 0 \Rightarrow t = 0, \qquad x = \frac{\pi}{2} \Rightarrow t = 1
Step 2: Replace sin⁡x\sin x and cos⁡x\cos x, then combine the terms over the common denominator 1+t21 + t^2.
1+2t1+t2+1−t21+t2=(1+t2)+2t+(1−t2)1+t2=2+2t1+t21 + \frac{2t}{1+t^2} + \frac{1-t^2}{1+t^2} = \frac{(1+t^2) + 2t + (1 - t^2)}{1+t^2} = \frac{2+2t}{1+t^2}
Step 3: Multiply the reciprocal of that denominator by dx=2 dt1+t2dx = \frac{2\,dt}{1+t^2}. The factors of 1+t21 + t^2 cancel, which leaves a simple rational integral.
∫011+t22+2t⋅21+t2 dt=∫01dt1+t=[ln⁡∣1+t∣]01=ln⁡2−ln⁡1=ln⁡2\int_0^1 \frac{1+t^2}{2+2t}\cdot\frac{2}{1+t^2}\,dt = \int_0^1 \frac{dt}{1+t} = \Big[\ln|1+t|\Big]_0^1 = \ln 2 - \ln 1 = \ln 2
Answer: ∫0π/2dx1+sin⁡x+cos⁡x=ln⁡2≈0.6931\displaystyle\int_0^{\pi/2} \frac{dx}{1 + \sin x + \cos x} = \ln 2 \approx 0.6931

Why It Matters

In Calculus II, this is the method that always works on rational expressions in sine and cosine, such as 12+cos⁡x\frac{1}{2 + \cos x}, when no identity or simple u-substitution helps. It also appears in physics and engineering when you average or integrate over one period of an oscillation. Examples include orbital mechanics and AC circuit analysis.

Common Mistakes

Mistake: Applying the substitution across an interval that contains an odd multiple of π. For example, converting the bounds of ∫02π\int_0^{2\pi} to t=0t = 0 and t=0t = 0 and concluding the integral is 0.
Correction: The function tan⁡(x/2)\tan(x/2) is undefined at x=πx = \pi, so the substitution is valid only on intervals inside (−π,π)(-\pi, \pi), or inside a shifted copy such as (π,3π)(\pi, 3\pi). Split the integral at the break point, or use symmetry so that each piece stays on a valid interval.

Related Terms