MatheramaMatherama
← Indefinite Integration
Indefinite Integration·Section 5·6 min read

Special Substitutions I

In our previous tutorial, we explored the mechanics of substitution and the algebra of differentials.

Now we turn to a central skill in indefinite integration: knowing which substitution to choose when faced with specific algebraic and radical forms.

Many integrals contain expressions involving square roots that cannot be simplified by polynomial algebra. However, by replacing xx with an appropriate trigonometric function, the Pythagorean identities dissolve the square roots completely, turning difficult integrands into standard table forms.


Standard Trigonometric Substitutions§

Every trigonometric substitution relies on a fundamental identity to convert a two-term sum or difference under a square root into a single squared term.

Here is an exhaustive reference of the primary patterns:

Algebraic Expression Recommended Substitution Differential dxdx Key Identity Used Simplified Radical
a2−x2\sqrt{a^2 - x^2} x=asin⁡θx = a\sin\theta dx=acos⁡θ dθdx = a\cos\theta\,d\theta 1−sin⁡2θ=cos⁡2θ1 - \sin^2\theta = \cos^2\theta acos⁡θa\cos\theta
a2+x2\sqrt{a^2 + x^2} x=atan⁡θx = a\tan\theta dx=asec⁡2θ dθdx = a\sec^2\theta\,d\theta 1+tan⁡2θ=sec⁡2θ1 + \tan^2\theta = \sec^2\theta asec⁡θa\sec\theta
x2−a2\sqrt{x^2 - a^2} x=asec⁡θx = a\sec\theta dx=asec⁡θtan⁡θ dθdx = a\sec\theta\tan\theta\,d\theta sec⁡2θ−1=tan⁡2θ\sec^2\theta - 1 = \tan^2\theta atan⁡θa\tan\theta
a−xa+x\sqrt{\frac{a - x}{a + x}} or a+xa−x\sqrt{\frac{a + x}{a - x}} x=acos⁡2θx = a\cos 2\theta dx=−2asin⁡2θ dθdx = -2a\sin 2\theta\,d\theta 1−cos⁡2θ1+cos⁡2θ=tan⁡2θ\frac{1 - \cos 2\theta}{1 + \cos 2\theta} = \tan^2\theta tan⁡θ\tan\theta
(x−a)(b−x)\sqrt{(x - a)(b - x)} x=acos⁡2θ+bsin⁡2θx = a\cos^2\theta + b\sin^2\theta dx=(b−a)sin⁡2θ dθdx = (b - a)\sin 2\theta\,d\theta Factors become squares (b−a)sin⁡θcos⁡θ(b - a)\sin\theta\cos\theta
(x−a)(x−b)\sqrt{(x - a)(x - b)} x=asec⁡2θ−btan⁡2θx = a\sec^2\theta - b\tan^2\theta dx=2(a−b)sec⁡2θtan⁡θ dθdx = 2(a - b)\sec^2\theta\tan\theta\,d\theta sec⁡2θ−tan⁡2θ=1\sec^2\theta - \tan^2\theta = 1 (a−b)sec⁡θtan⁡θ(a - b)\sec\theta\tan\theta

Example 1§

Evaluate:

I=∫dxx2a2−x2I = \int \frac{dx}{x^2\sqrt{a^2 - x^2}}

Solution:

The presence of a2−x2\sqrt{a^2 - x^2} suggests the substitution x=asin⁡θx = a\sin\theta.

Let:

x=asin⁡θ  ⟹  dx=acos⁡θ dθx = a\sin\theta \implies dx = a\cos\theta\,d\theta

Under this substitution:

a2−x2=a2(1−sin⁡2θ)=acos⁡θ\sqrt{a^2 - x^2} = \sqrt{a^2(1 - \sin^2\theta)} = a\cos\theta

Substitute into the integral:

I=∫acos⁡θ dθ(a2sin⁡2θ)(acos⁡θ)=1a2∫dθsin⁡2θ=1a2∫csc⁡2θ dθI = \int \frac{a\cos\theta\,d\theta}{(a^2\sin^2\theta)(a\cos\theta)} = \frac{1}{a^2}\int \frac{d\theta}{\sin^2\theta} = \frac{1}{a^2}\int \csc^2\theta\,d\theta

Integrating csc⁡2θ\csc^2\theta:

I=−1a2cot⁡θ+CI = -\frac{1}{a^2}\cot\theta + C

To express the result in terms of xx, draw a right-angled triangle with angle θ\theta, opposite side xx, and hypotenuse aa. The adjacent side is a2−x2\sqrt{a^2 - x^2}.

Therefore:

cot⁡θ=a2−x2x\cot\theta = \frac{\sqrt{a^2 - x^2}}{x}

Substituting this back gives:

I=−a2−x2a2x+CI = -\frac{\sqrt{a^2 - x^2}}{a^2 x} + C

Example 2§

Evaluate:

I=∫dx(a2+x2)3/2I = \int \frac{dx}{(a^2 + x^2)^{3/2}}

Solution:

The term a2+x2a^2 + x^2 matches the Pythagorean identity 1+tan⁡2θ=sec⁡2θ1 + \tan^2\theta = \sec^2\theta.

Let:

x=atan⁡θ  ⟹  dx=asec⁡2θ dθx = a\tan\theta \implies dx = a\sec^2\theta\,d\theta

Then:

a2+x2=a2(1+tan⁡2θ)=a2sec⁡2θa^2 + x^2 = a^2(1 + \tan^2\theta) = a^2\sec^2\theta (a2+x2)3/2=(a2sec⁡2θ)3/2=a3sec⁡3θ(a^2 + x^2)^{3/2} = (a^2\sec^2\theta)^{3/2} = a^3\sec^3\theta

Substitute into the integral:

I=∫asec⁡2θ dθa3sec⁡3θ=1a2∫1sec⁡θ dθ=1a2∫cos⁡θ dθI = \int \frac{a\sec^2\theta\,d\theta}{a^3\sec^3\theta} = \frac{1}{a^2}\int \frac{1}{\sec\theta}\,d\theta = \frac{1}{a^2}\int \cos\theta\,d\theta I=1a2sin⁡θ+CI = \frac{1}{a^2}\sin\theta + C

From x=atan⁡θx = a\tan\theta, we have tan⁡θ=xa\tan\theta = \frac{x}{a}. The opposite side is xx, adjacent is aa, and the hypotenuse is a2+x2\sqrt{a^2 + x^2}.

Hence:

sin⁡θ=xa2+x2\sin\theta = \frac{x}{\sqrt{a^2 + x^2}}

Therefore:

I=xa2a2+x2+CI = \frac{x}{a^2\sqrt{a^2 + x^2}} + C

Example 3§

Evaluate:

I=∫x2−a2x dx(x>a>0)I = \int \frac{\sqrt{x^2 - a^2}}{x}\,dx \qquad (x > a > 0)

Solution:

The expression x2−a2\sqrt{x^2 - a^2} suggests the secant substitution.

Let:

x=asec⁡θ  ⟹  dx=asec⁡θtan⁡θ dθx = a\sec\theta \implies dx = a\sec\theta\tan\theta\,d\theta

Then:

x2−a2=a2(sec⁡2θ−1)=atan⁡θ\sqrt{x^2 - a^2} = \sqrt{a^2(\sec^2\theta - 1)} = a\tan\theta

Substitute these relations into the integral:

I=∫atan⁡θasec⁡θ(asec⁡θtan⁡θ dθ)=a∫tan⁡2θ dθI = \int \frac{a\tan\theta}{a\sec\theta}(a\sec\theta\tan\theta\,d\theta) = a\int \tan^2\theta\,d\theta

Using the identity tan⁡2θ=sec⁡2θ−1\tan^2\theta = \sec^2\theta - 1:

I=a∫(sec⁡2θ−1) dθ=a(tan⁡θ−θ)+CI = a\int (\sec^2\theta - 1)\,d\theta = a(\tan\theta - \theta) + C

Return to the variable xx:

Since sec⁡θ=xa\sec\theta = \frac{x}{a}, we have:

tan⁡θ=sec⁡2θ−1=x2−a2a\tan\theta = \sqrt{\sec^2\theta - 1} = \frac{\sqrt{x^2 - a^2}}{a} θ=sec⁡−1(xa)\theta = \sec^{-1}\left(\frac{x}{a}\right)

Substituting these yields:

I=a(x2−a2a−sec⁡−1(xa))+CI = a\left( \frac{\sqrt{x^2 - a^2}}{a} - \sec^{-1}\left(\frac{x}{a}\right) \right) + C I=x2−a2−asec⁡−1(xa)+CI = \sqrt{x^2 - a^2} - a\sec^{-1}\left(\frac{x}{a}\right) + C

Example 4§

Evaluate:

I=∫a−xa+x dx(−a<x<a)I = \int \sqrt{\frac{a - x}{a + x}}\,dx \qquad (-a < x < a)

Solution:

The ratio a−xa+x\frac{a - x}{a + x} can be transformed into a single trigonometric ratio using the half-angle identity:

1−cos⁡2θ1+cos⁡2θ=2sin⁡2θ2cos⁡2θ=tan⁡2θ\frac{1 - \cos 2\theta}{1 + \cos 2\theta} = \frac{2\sin^2\theta}{2\cos^2\theta} = \tan^2\theta

Let:

x=acos⁡2θ  ⟹  dx=−2asin⁡2θ dθx = a\cos 2\theta \implies dx = -2a\sin 2\theta\,d\theta

For x∈(−a,a)x \in (-a, a), we choose θ∈(0,π2)\theta \in \left(0, \frac{\pi}{2}\right). The radical simplifies to:

a−acos⁡2θa+acos⁡2θ=1−cos⁡2θ1+cos⁡2θ=tan⁡θ=sin⁡θcos⁡θ\sqrt{\frac{a - a\cos 2\theta}{a + a\cos 2\theta}} = \sqrt{\frac{1 - \cos 2\theta}{1 + \cos 2\theta}} = \tan\theta = \frac{\sin\theta}{\cos\theta}

Substitute into the integral:

I=∫(sin⁡θcos⁡θ)(−2asin⁡2θ dθ)I = \int \left(\frac{\sin\theta}{\cos\theta}\right)(-2a\sin 2\theta\,d\theta)

Using sin⁡2θ=2sin⁡θcos⁡θ\sin 2\theta = 2\sin\theta\cos\theta:

I=∫(sin⁡θcos⁡θ)(−4asin⁡θcos⁡θ dθ)=−4a∫sin⁡2θ dθI = \int \left(\frac{\sin\theta}{\cos\theta}\right)(-4a\sin\theta\cos\theta\,d\theta) = -4a\int \sin^2\theta\,d\theta

Apply the identity sin⁡2θ=1−cos⁡2θ2\sin^2\theta = \frac{1 - \cos 2\theta}{2}:

I=−2a∫(1−cos⁡2θ) dθ=−2a(θ−sin⁡2θ2)+C=−2aθ+asin⁡2θ+CI = -2a\int (1 - \cos 2\theta)\,d\theta = -2a\left( \theta - \frac{\sin 2\theta}{2} \right) + C = -2a\theta + a\sin 2\theta + C

Return to xx:

From x=acos⁡2θx = a\cos 2\theta, we have cos⁡2θ=xa\cos 2\theta = \frac{x}{a}, which gives:

2θ=cos⁡−1(xa)2\theta = \cos^{-1}\left(\frac{x}{a}\right) sin⁡2θ=1−cos⁡22θ=1−x2a2=a2−x2a\sin 2\theta = \sqrt{1 - \cos^2 2\theta} = \sqrt{1 - \frac{x^2}{a^2}} = \frac{\sqrt{a^2 - x^2}}{a}

Substituting these back:

I=−acos⁡−1(xa)+a2−x2+CI = -a\cos^{-1}\left(\frac{x}{a}\right) + \sqrt{a^2 - x^2} + C

(Note: Since cos⁡−1(xa)=π2−sin⁡−1(xa)\cos^{-1}\left(\frac{x}{a}\right) = \frac{\pi}{2} - \sin^{-1}\left(\frac{x}{a}\right), this antiderivative can equivalently be written as asin⁡−1(xa)+a2−x2+C1a\sin^{-1}\left(\frac{x}{a}\right) + \sqrt{a^2 - x^2} + C_1.)


Example 5§

Evaluate:

I=∫dx(x−a)(b−x)(a<x<b)I = \int \frac{dx}{\sqrt{(x - a)(b - x)}} \qquad (a < x < b)

Solution:

When the radical contains the product (x−a)(b−x)(x - a)(b - x), a weighted combination of squares decouples both factors simultaneously.

Let:

x=acos⁡2θ+bsin⁡2θ(0<θ<π2)x = a\cos^2\theta + b\sin^2\theta \qquad \left(0 < \theta < \frac{\pi}{2}\right)

Notice how each factor simplifies:

x−a=acos⁡2θ+bsin⁡2θ−a=a(cos⁡2θ−1)+bsin⁡2θ=(b−a)sin⁡2θx - a = a\cos^2\theta + b\sin^2\theta - a = a(\cos^2\theta - 1) + b\sin^2\theta = (b - a)\sin^2\theta b−x=b−acos⁡2θ−bsin⁡2θ=b(1−sin⁡2θ)−acos⁡2θ=(b−a)cos⁡2θb - x = b - a\cos^2\theta - b\sin^2\theta = b(1 - \sin^2\theta) - a\cos^2\theta = (b - a)\cos^2\theta

Multiplying both expressions:

(x−a)(b−x)=(b−a)2sin⁡2θcos⁡2θ(x - a)(b - x) = (b - a)^2\sin^2\theta\cos^2\theta (x−a)(b−x)=(b−a)sin⁡θcos⁡θ\sqrt{(x - a)(b - x)} = (b - a)\sin\theta\cos\theta

Now compute the differential dxdx:

dx=d[acos⁡2θ+bsin⁡2θ]=[−2acos⁡θsin⁡θ+2bsin⁡θcos⁡θ] dθ=2(b−a)sin⁡θcos⁡θ dθdx = d[a\cos^2\theta + b\sin^2\theta] = [-2a\cos\theta\sin\theta + 2b\sin\theta\cos\theta]\,d\theta = 2(b - a)\sin\theta\cos\theta\,d\theta

Substitute both parts into the integral:

I=∫2(b−a)sin⁡θcos⁡θ dθ(b−a)sin⁡θcos⁡θ=∫2 dθ=2θ+CI = \int \frac{2(b - a)\sin\theta\cos\theta\,d\theta}{(b - a)\sin\theta\cos\theta} = \int 2\,d\theta = 2\theta + C

Return to xx:

From x−a=(b−a)sin⁡2θx - a = (b - a)\sin^2\theta, we have:

sin⁡2θ=x−ab−a  ⟹  sin⁡θ=x−ab−a\sin^2\theta = \frac{x - a}{b - a} \implies \sin\theta = \sqrt{\frac{x - a}{b - a}} θ=sin⁡−1x−ab−a\theta = \sin^{-1}\sqrt{\frac{x - a}{b - a}}

Therefore:

I=2sin⁡−1x−ab−a+CI = 2\sin^{-1}\sqrt{\frac{x - a}{b - a}} + C

Substitutions Involving Powers of the Variable§

In the standard forms above, the terms inside the radical involve linear or quadratic expressions in xx.

In many integrals, the expression under the radical involves higher powers or fractional powers, such as:

(a2−x4)=a2−(x2)2,(a6−x6)=(a3)2−(x3)2,(a3−x3)=(a3/2)2−(x3/2)2(a^2 - x^4) = a^2 - (x^2)^2, \qquad (a^6 - x^6) = (a^3)^2 - (x^3)^2, \qquad (a^3 - x^3) = (a^{3/2})^2 - (x^{3/2})^2

The guiding principle is:

  1. Identify which power of xx is being squared inside the radical, say u=xnu = x^n.
  2. Check whether the remaining algebraic factor in the integrand provides the differential xn−1 dxx^{n-1}\,dx.
  3. Apply the appropriate trigonometric substitution directly to xnx^n.

Example 6§

Evaluate:

I=∫xa2−x2a2+x2 dx(0<x<a)I = \int x \sqrt{\frac{a^2 - x^2}{a^2 + x^2}}\,dx \qquad (0 < x < a)

Solution:

If the expression were a−xa+x\sqrt{\frac{a - x}{a + x}}, we would set x=acos⁡2θx = a\cos 2\theta.

Here, the terms inside the radical involve x2x^2 rather than xx. Notice that the factor x dxx\,dx outside is proportional to the differential of x2x^2.

Let:

x2=a2cos⁡2θ(0<θ<π4)x^2 = a^2\cos 2\theta \qquad \left(0 < \theta < \frac{\pi}{4}\right)

Differentiating both sides:

2x dx=−2a2sin⁡2θ dθ  ⟹  x dx=−a2sin⁡2θ dθ2x\,dx = -2a^2\sin 2\theta\,d\theta \implies x\,dx = -a^2\sin 2\theta\,d\theta

Now simplify the radical:

a2−x2a2+x2=a2(1−cos⁡2θ)a2(1+cos⁡2θ)=2sin⁡2θ2cos⁡2θ=sin⁡θcos⁡θ\sqrt{\frac{a^2 - x^2}{a^2 + x^2}} = \sqrt{\frac{a^2(1 - \cos 2\theta)}{a^2(1 + \cos 2\theta)}} = \sqrt{\frac{2\sin^2\theta}{2\cos^2\theta}} = \frac{\sin\theta}{\cos\theta}

Substitute into the integral:

I=∫(sin⁡θcos⁡θ)(−a2sin⁡2θ dθ)I = \int \left( \frac{\sin\theta}{\cos\theta} \right) (-a^2\sin 2\theta\,d\theta)

Using sin⁡2θ=2sin⁡θcos⁡θ\sin 2\theta = 2\sin\theta\cos\theta:

I=∫(sin⁡θcos⁡θ)(−2a2sin⁡θcos⁡θ dθ)=−2a2∫sin⁡2θ dθI = \int \left( \frac{\sin\theta}{\cos\theta} \right) (-2a^2\sin\theta\cos\theta\,d\theta) = -2a^2\int \sin^2\theta\,d\theta

Apply the half-angle formula sin⁡2θ=1−cos⁡2θ2\sin^2\theta = \frac{1 - \cos 2\theta}{2}:

I=−a2∫(1−cos⁡2θ) dθ=−a2(θ−sin⁡2θ2)+CI = -a^2\int (1 - \cos 2\theta)\,d\theta = -a^2\left( \theta - \frac{\sin 2\theta}{2} \right) + C I=−a2θ+a22sin⁡2θ+CI = -a^2\theta + \frac{a^2}{2}\sin 2\theta + C

Return to the variable xx:

Since cos⁡2θ=x2a2\cos 2\theta = \frac{x^2}{a^2}, we have 2θ=cos⁡−1(x2a2)2\theta = \cos^{-1}\left(\frac{x^2}{a^2}\right), so θ=12cos⁡−1(x2a2)\theta = \frac{1}{2}\cos^{-1}\left(\frac{x^2}{a^2}\right).

Also:

sin⁡2θ=1−cos⁡22θ=1−(x2a2)2=a4−x4a2\sin 2\theta = \sqrt{1 - \cos^2 2\theta} = \sqrt{1 - \left(\frac{x^2}{a^2}\right)^2} = \frac{\sqrt{a^4 - x^4}}{a^2}

Substituting these back:

I=−a22cos⁡−1(x2a2)+12a4−x4+CI = -\frac{a^2}{2}\cos^{-1}\left(\frac{x^2}{a^2}\right) + \frac{1}{2}\sqrt{a^4 - x^4} + C

Example 7§

Evaluate:

I=∫x2a6−x6 dx(∣x∣<a)I = \int \frac{x^2}{\sqrt{a^6 - x^6}}\,dx \qquad (|x| < a)

Solution:

Rewrite the expression under the radical as a difference of squares:

a6−x6=(a3)2−(x3)2a^6 - x^6 = (a^3)^2 - (x^3)^2

The numerator contains x2 dxx^2\,dx, which is proportional to the derivative of x3x^3.

Let:

x3=a3sin⁡θ(−π2<θ<π2)x^3 = a^3\sin\theta \qquad \left(-\frac{\pi}{2} < \theta < \frac{\pi}{2}\right)

Differentiating gives:

3x2 dx=a3cos⁡θ dθ  ⟹  x2 dx=a33cos⁡θ dθ3x^2\,dx = a^3\cos\theta\,d\theta \implies x^2\,dx = \frac{a^3}{3}\cos\theta\,d\theta

Rewrite the radical:

a6−x6=a6−(a3sin⁡θ)2=a6(1−sin⁡2θ)=a3cos⁡θ\sqrt{a^6 - x^6} = \sqrt{a^6 - (a^3\sin\theta)^2} = \sqrt{a^6(1 - \sin^2\theta)} = a^3\cos\theta

Substitute into the integral:

I=∫a33cos⁡θ dθa3cos⁡θ=13∫1 dθ=13θ+CI = \int \frac{\frac{a^3}{3}\cos\theta\,d\theta}{a^3\cos\theta} = \frac{1}{3}\int 1\,d\theta = \frac{1}{3}\theta + C

Return to xx:

Since x3=a3sin⁡θx^3 = a^3\sin\theta, we have sin⁡θ=x3a3\sin\theta = \frac{x^3}{a^3}, so θ=sin⁡−1(x3a3)\theta = \sin^{-1}\left(\frac{x^3}{a^3}\right).

Therefore:

I=13sin⁡−1(x3a3)+CI = \frac{1}{3}\sin^{-1}\left(\frac{x^3}{a^3}\right) + C

Example 8§

Evaluate:

I=∫xa3−x3 dx(0<x<a)I = \int \sqrt{\frac{x}{a^3 - x^3}}\,dx \qquad (0 < x < a)

Solution:

Rewrite the integrand:

x(a3/2)2−(x3/2)2\frac{\sqrt{x}}{\sqrt{(a^{3/2})^2 - (x^{3/2})^2}}

Notice that the numerator is x1/2x^{1/2}. Differentiating x3/2x^{3/2} gives:

ddx[x3/2]=32x1/2=32x\frac{d}{dx}[x^{3/2}] = \frac{3}{2}x^{1/2} = \frac{3}{2}\sqrt{x}

This reveals that x3/2x^{3/2} is the variable being squared inside the radical.

Let:

x3/2=a3/2sin⁡θ(0<θ<π2)x^{3/2} = a^{3/2}\sin\theta \qquad \left(0 < \theta < \frac{\pi}{2}\right)

Differentiating gives:

32x1/2 dx=a3/2cos⁡θ dθ  ⟹  x dx=23a3/2cos⁡θ dθ\frac{3}{2}x^{1/2}\,dx = a^{3/2}\cos\theta\,d\theta \implies \sqrt{x}\,dx = \frac{2}{3}a^{3/2}\cos\theta\,d\theta

Simplify the radical:

a3−x3=(a3/2)2−(a3/2sin⁡θ)2=a3/2cos⁡θ\sqrt{a^3 - x^3} = \sqrt{(a^{3/2})^2 - (a^{3/2}\sin\theta)^2} = a^{3/2}\cos\theta

Substitute both parts into the integral:

I=∫23a3/2cos⁡θ dθa3/2cos⁡θ=23∫1 dθ=23θ+CI = \int \frac{\frac{2}{3}a^{3/2}\cos\theta\,d\theta}{a^{3/2}\cos\theta} = \frac{2}{3}\int 1\,d\theta = \frac{2}{3}\theta + C

Return to xx:

sin⁡θ=x3/2a3/2=(xa)3/2  ⟹  θ=sin⁡−1[(xa)3/2]\sin\theta = \frac{x^{3/2}}{a^{3/2}} = \left(\frac{x}{a}\right)^{3/2} \implies \theta = \sin^{-1}\left[ \left(\frac{x}{a}\right)^{3/2} \right]

Therefore:

I=23sin⁡−1[(xa)3/2]+CI = \frac{2}{3}\sin^{-1}\left[ \left(\frac{x}{a}\right)^{3/2} \right] + C

Example 9§

Evaluate:

I=∫x1+x4 dxI = \int \frac{x}{\sqrt{1 + x^4}}\,dx

Solution:

The radical contains 1+x4=1+(x2)21 + x^4 = 1 + (x^2)^2. The numerator has x dx=12d(x2)x\,dx = \frac{1}{2}d(x^2).

This matches the form 1+u2\sqrt{1 + u^2} with u=x2u = x^2.

Let:

x2=tan⁡θ(0<θ<π2)x^2 = \tan\theta \qquad \left(0 < \theta < \frac{\pi}{2}\right)

Differentiating gives:

2x dx=sec⁡2θ dθ  ⟹  x dx=12sec⁡2θ dθ2x\,dx = \sec^2\theta\,d\theta \implies x\,dx = \frac{1}{2}\sec^2\theta\,d\theta

Rewrite the radical:

1+x4=1+tan⁡2θ=sec⁡θ\sqrt{1 + x^4} = \sqrt{1 + \tan^2\theta} = \sec\theta

Substitute into the integral:

I=∫12sec⁡2θ dθsec⁡θ=12∫sec⁡θ dθI = \int \frac{\frac{1}{2}\sec^2\theta\,d\theta}{\sec\theta} = \frac{1}{2}\int \sec\theta\,d\theta

From our standard table of integrals:

I=12ln⁡∣sec⁡θ+tan⁡θ∣+CI = \frac{1}{2}\ln|\sec\theta + \tan\theta| + C

Return to xx:

Since tan⁡θ=x2\tan\theta = x^2, we have sec⁡θ=1+tan⁡2θ=1+x4\sec\theta = \sqrt{1 + \tan^2\theta} = \sqrt{1 + x^4}.

Therefore:

I=12ln⁡(x2+1+x4)+CI = \frac{1}{2}\ln\left( x^2 + \sqrt{1 + x^4} \right) + C

Example 10§

Evaluate:

I=∫xa−x dx(0<x<a)I = \int \sqrt{\frac{x}{a - x}}\,dx \qquad (0 < x < a)

Solution:

Here the numerator has xx and the denominator has a−xa - x.

If we choose a substitution where xx is proportional to sin⁡2θ\sin^2\theta, then a−xa - x will naturally become proportional to cos⁡2θ\cos^2\theta, and their quotient will be tan⁡2θ\tan^2\theta.

Let:

x=asin⁡2θ(0<θ<π2)x = a\sin^2\theta \qquad \left(0 < \theta < \frac{\pi}{2}\right)

Differentiating gives:

dx=2asin⁡θcos⁡θ dθdx = 2a\sin\theta\cos\theta\,d\theta

Now evaluate the radical:

xa−x=asin⁡2θa−asin⁡2θ=asin⁡2θacos⁡2θ=sin⁡θcos⁡θ\sqrt{\frac{x}{a - x}} = \sqrt{\frac{a\sin^2\theta}{a - a\sin^2\theta}} = \sqrt{\frac{a\sin^2\theta}{a\cos^2\theta}} = \frac{\sin\theta}{\cos\theta}

Substitute into the integral:

I=∫(sin⁡θcos⁡θ)(2asin⁡θcos⁡θ dθ)I = \int \left( \frac{\sin\theta}{\cos\theta} \right) (2a\sin\theta\cos\theta\,d\theta)

The cos⁡θ\cos\theta cancels:

I=2a∫sin⁡2θ dθI = 2a\int \sin^2\theta\,d\theta

Using sin⁡2θ=1−cos⁡2θ2\sin^2\theta = \frac{1 - \cos 2\theta}{2}:

I=a∫(1−cos⁡2θ) dθ=a(θ−sin⁡2θ2)+C=a(θ−sin⁡θcos⁡θ)+CI = a\int (1 - \cos 2\theta)\,d\theta = a\left( \theta - \frac{\sin 2\theta}{2} \right) + C = a(\theta - \sin\theta\cos\theta) + C

Return to xx:

From x=asin⁡2θx = a\sin^2\theta:

sin⁡θ=xa  ⟹  θ=sin⁡−1xa\sin\theta = \sqrt{\frac{x}{a}} \implies \theta = \sin^{-1}\sqrt{\frac{x}{a}} cos⁡θ=1−sin⁡2θ=1−xa=a−xa\cos\theta = \sqrt{1 - \sin^2\theta} = \sqrt{1 - \frac{x}{a}} = \sqrt{\frac{a - x}{a}}

Therefore:

sin⁡θcos⁡θ=xa⋅a−xa=x(a−x)a\sin\theta\cos\theta = \sqrt{\frac{x}{a}} \cdot \sqrt{\frac{a - x}{a}} = \frac{\sqrt{x(a - x)}}{a}

Substitute these into our antiderivative:

I=a(sin⁡−1xa−x(a−x)a)+CI = a\left( \sin^{-1}\sqrt{\frac{x}{a}} - \frac{\sqrt{x(a - x)}}{a} \right) + C I=asin⁡−1xa−x(a−x)+CI = a\sin^{-1}\sqrt{\frac{x}{a}} - \sqrt{x(a - x)} + C
Section 5 of 10 · Indefinite Integration

Mark this section complete when you have worked through its proofs.