Integration of Irrational Functions and Euler Substitutions
Integrals containing roots are made rational by a substitution: for √(ax + b) use u = √(ax + b), for √(a2 − x2) use x = a sin θ, and for √(ax2 + bx + c) the Euler substitutions turn the integral into one of a rational function. In brief: ∫ dx/(x + √x) with u = √x becomes ∫ 2 du/(u + 1) = 2 ln(√x + 1) + C, and ∫ √(1 − x2) dx = (x√(1 − x2) + arcsin x)/2 + C. The first Euler substitution is √(ax2 + bx + c) = t ± √a x for a > 0.
Roots in an integrand prevent the direct use of the standard formulas. Three families of techniques remove them: linear substitutions for roots of linear expressions, trigonometric (and hyperbolic) substitutions for roots of quadratics of special form and the Euler substitutions for the general quadratic under the root. This guide explains each method with worked examples, shows the standard integrals that result and gives a table of substitutions.
How do you integrate roots of linear expressions?
For an integrand with n√(ax + b) (possibly several roots with exponents p/q), substitute u = N√(ax + b), where N is the least common multiple of the root indices. Then x = (uN − b)/a is a polynomial in u, and the integral becomes rational.
Example 1
∫ dx/(x + √x): u = √x, x = u2, dx = 2u du. ∫ 2u du/(u2 + u) = ∫ 2 du/(u + 1) = 2 ln(u + 1) + C = 2 ln(√x + 1) + C.
Example 2: two different roots
∫ dx/(√x + 3√x): the least common multiple of 2 and 3 is 6. u = 6√x, x = u6, dx = 6u5 du, √x = u3, 3√x = u2. The integral is ∫ 6u5 du/(u3 + u2) = ∫ 6u3 du/(u + 1). Divide: u3/(u + 1) = u2 − u + 1 − 1/(u + 1). So 6(u3/3 − u2/2 + u − ln|u + 1|) + C = 2u3 − 3u2 + 6u − 6 ln|u + 1| + C with u = 6√x.
Example 3: with a linear fraction
For roots of linear fractions √((ax + b)/(cx + d)), the substitution u = √((ax + b)/(cx + d)) makes the integrand rational. Take ∫ √((1 + x)/(1 − x)) dx with u = √((1 + x)/(1 − x)). Then x = (u2 − 1)/(u2 + 1) and dx = 4u du/(u2 + 1)2. The integral becomes ∫ 4u2 du/(u2 + 1)2.
How do trigonometric substitutions work?
For integrals with one of the roots below, the substitution removes the root by a Pythagorean identity.
- √(a2 − x2): x = a sin θ, √(…) = a cos θ, dx = a cos θ dθ.
- √(a2 + x2): x = a tan θ, √(…) = a sec θ, dx = a sec2θ dθ.
- √(x2 − a2): x = a sec θ, √(…) = a tan θ, dx = a sec θ tan θ dθ.
A general quadratic is first reduced to one of these forms by completing the square.
Example 4: √(1 − x2)
∫ √(1 − x2) dx: x = sin θ, dx = cos θ dθ. ∫ cos2θ dθ = θ/2 + sin 2θ/4 + C = (θ + sin θ cos θ)/2 + C = (arcsin x + x√(1 − x2))/2 + C. This is the area under a circle: ∫01 √(1 − x2) dx = π/4, the area of a quarter of the unit disc.
Example 5: dx/√(x2 + 4)
x = 2 tan θ, dx = 2 sec2θ dθ, √(x2 + 4) = 2 sec θ. ∫ sec θ dθ = ln|sec θ + tan θ| + C = ln|√(x2 + 4)/2 + x/2| + C = ln|x + √(x2 + 4)| + C′. In general ∫ dx/√(x2 ± a2) = ln|x + √(x2 ± a2)| + C.
Example 6: x2/√(4 − x2)
x = 2 sin θ: ∫ 4 sin2θ · 2 cos θ dθ/(2 cos θ) = ∫ 4 sin2θ dθ = 2θ − sin 2θ + C = 2 arcsin(x/2) − (x/2)√(4 − x2) + C.
Example 7: completing the square
∫ dx/√(3 + 2x − x2) = ∫ dx/√(4 − (x − 1)2) = arcsin((x − 1)/2) + C.
Example 8: √(x2 − 9)/x
x = 3 sec θ: ∫ (3 tan θ/(3 sec θ)) 3 sec θ tan θ dθ = 3 ∫ tan2θ dθ = 3(tan θ − θ) + C = √(x2 − 9) − 3 arccos(3/x) + C (for x > 3).
What are the Euler substitutions?
For ∫ R(x, √(ax2 + bx + c)) dx, with R a rational function, Euler found three substitutions that give a rational integrand in t:
- First (a > 0): √(ax2 + bx + c) = t − √a x. Squaring: ax2 + bx + c = t2 − 2√a x t + ax2, so x = (t2 − c)/(b + 2√a t), which is rational in t.
- Second (c > 0): √(ax2 + bx + c) = xt ± √c. Squaring and cancelling c gives x = (±2√c t − b)/(a − t2).
- Third (the quadratic has real roots x1, x2): √(a(x − x1)(x − x2)) = t(x − x1). Then a(x − x2) = t2(x − x1), which is solved for x as a rational function of t.
Example 9: first substitution
∫ dx/√(x2 + 1): a = 1, so √(x2 + 1) = t − x. Squaring: x2 + 1 = t2 − 2tx + x2, so x = (t2 − 1)/(2t) and dx = (t2 + 1)/(2t2) dt, with √(x2 + 1) = t − x = (t2 + 1)/(2t). The integrand becomes dt/t. The integral is ln|t| + C = ln(x + √(x2 + 1)) + C, the inverse hyperbolic sine, consistent with Example 5.
Example 10: third substitution
∫ dx/√((x − 1)(x − 2)) has two real roots, so the third substitution applies: √((x − 1)(x − 2)) = t(x − 1). Squaring and dividing by x − 1: x − 2 = t2(x − 1), so x = (t2 − 2)/(t2 − 1), which is rational in t. For this integral, completing the square is shorter: x2 − 3x + 2 = (x − 3/2)2 − 1/4, so by the standard formula ∫ dx/√((x − 3/2)2 − 1/4) = ln|x − 3/2 + √(x2 − 3x + 2)| + C.
Example 11: an application
The arc length of the parabola y = x2 from 0 to 1 is ∫01 √(1 + 4x2) dx. With 2x = tan θ: (1/2) ∫ sec3θ dθ = (1/4)[sec θ tan θ + ln|sec θ + tan θ|], evaluated from θ = 0 to arctan 2: (1/4)(√5 · 2 + ln(√5 + 2)) = (1/4)(4.472 + 1.444) = 1.479. The arc length is about 1.479.
What are the standard integrals with roots?
- ∫ dx/√(a2 − x2) = arcsin(x/a) + C.
- ∫ √(a2 − x2) dx = (x/2)√(a2 − x2) + (a2/2) arcsin(x/a) + C.
- ∫ dx/√(x2 + k) = ln|x + √(x2 + k)| + C.
- ∫ √(x2 + k) dx = (x/2)√(x2 + k) + (k/2) ln|x + √(x2 + k)| + C.
Table of substitutions
| Expression under the root | Substitution | Result of the root |
|---|---|---|
| ax + b | u = √(ax + b) | u |
| (ax + b)/(cx + d) | u = √((ax + b)/(cx + d)) | u |
| a2 − x2 | x = a sin θ | a cos θ |
| a2 + x2 | x = a tan θ | a sec θ |
| x2 − a2 | x = a sec θ | a tan θ |
| ax2 + bx + c, a > 0 | Euler 1: √(…) = t − √a x | rational in t |
| ax2 + bx + c, c > 0 | Euler 2: √(…) = xt + √c | rational in t |
| a(x − x1)(x − x2) | Euler 3: √(…) = t(x − x1) | rational in t |
Where do the methods come from?
The substitutions bear the name of Leonhard Euler, who published them in his Institutionum calculi integralis (1768–1770). The trigonometric substitutions follow from the geometry of the circle and the hyperbola and were in use by Newton and Leibniz. The question of which integrals with roots can be expressed with elementary functions was answered in the nineteenth century: integrals with the square root of a quadratic always can, while those with the square root of a cubic or quartic (elliptic integrals) generally cannot.
Where are they used?
Roots under integrals appear in arc length (√(1 + f′2)), in the area of circles and ellipses, in the period of a pendulum (an elliptic integral) and in relativity, where energies contain √(1 − v2/c2). The trigonometric substitutions are standard in physics for the potential of a charged rod, which gives ∫ dx/(x2 + a2)3/2 = x/(a2√(x2 + a2)) + C.
Which mistakes are common?
Forgetting to convert dx
With x = a sin θ, dx = a cos θ dθ. Missing this factor changes the integral.
Wrong substitution for the sign
√(x2 − a2) needs sec θ, not sin θ. Match the form to the identity: 1 − sin2 = cos2, 1 + tan2 = sec2, sec2 − 1 = tan2.
Writing √(cos2θ) = cos θ without a check
√(cos2θ) = |cos θ|. The substitution x = a sin θ with θ in [−π/2, π/2] makes cos θ ≥ 0, so it is valid.
Back-substituting incorrectly
Use a right triangle: for x = 2 sin θ, sin θ = x/2, cos θ = √(4 − x2)/2.