Skip to content

Integration by Substitution

In our previous tutorials, we integrated functions by matching them to standard forms using algebra and trigonometry.

However, many functions cannot be simplified by algebra alone. For example, consider:

\[\int 2x \cos(x^2)\,dx\]

Here, the argument of the cosine is \(x^2\), not a linear term \(ax + b\). But notice that \(x^2\) is multiplied by its derivative, \(2x\).

To integrate such functions, we reverse the Chain Rule of differentiation. This technique is called Integration by Substitution (or Change of Variable).


Changing the Variable of Integration

Let us understand why substitution works by deriving it from the definition of an antiderivative and the Chain Rule.

The Starting Integral

Suppose we wish to evaluate:

\[I = \int f(x)\,dx\]

If \(F(x)\) is an antiderivative of \(f(x)\), then:

\[\frac{d}{dx}[F(x)] = f(x)\]

which means:

\[\int f(x)\,dx = F(x) + C\]

Introducing a New Variable

Now suppose the variable \(x\) depends on another variable \(t\) through a differentiable relation:

\[x = g(t)\]

Since \(x = g(t)\), we can write the antiderivative \(F(x)\) in terms of \(t\) as a composite function:

\[F(x) = F(g(t))\]

Differentiating with Respect to the New Variable

What is the derivative of \(F(g(t))\) with respect to \(t\)?

Applying the Chain Rule:

\[\frac{d}{dt}\big[ F(g(t)) \big] = F'(g(t)) \cdot g'(t)\]

Since \(F'(x) = f(x)\), evaluating this at \(x = g(t)\) gives:

\[F'(g(t)) = f(g(t))\]

Substituting this into the Chain Rule equation:

\[\frac{d}{dt}\big[ F(g(t)) \big] = f(g(t)) \cdot g'(t)\]

Integrating with Respect to the New Variable

This equation shows that the derivative of \(F(g(t))\) with respect to \(t\) is \(f(g(t)) \cdot g'(t)\).

Therefore, by the definition of an antiderivative:

\[\int f(g(t)) \cdot g'(t)\,dt = F(g(t)) + C\]

Connecting Both Sides

Since \(F(g(t)) = F(x)\), and \(F(x) + C = \int f(x)\,dx\), we get:

\[\int f(x)\,dx = \int f(g(t)) \cdot g'(t)\,dt \qquad \text{where } x = g(t)\]

Why Does This Make Integration Easier?

At first glance, this identity might seem to make things harder:

\[\int f(x)\,dx = \int f(g(t)) \cdot g'(t)\,dt\]

We started with a single function \(f(x)\), and now we have a product of two functions: \(f(g(t))\) and an extra factor \(g'(t)\).

Why would this help?

Because an expression that is difficult to handle in terms of \(x\) may simplify completely in terms of \(t\).

  1. Simplifying Stubborn Expressions: An algebraic term like \(\sqrt{1 - x^2}\) cannot be simplified using basic algebra. But if we replace \(x\) with a trigonometric function like \(\sin\theta\), the identity \(1 - \sin^2\theta = \cos^2\theta\) removes the square root entirely.
  2. Help from the Derivative Factor: The extra factor \(g'(t)\) is not extra baggage. It often cancels an awkward denominator or combines with the rest of the expression to produce a standard formula from our integration table.

Let us see how this works with two concrete examples using \(x = \sin\theta\).


Example 1

Evaluate:

\[I = \int \frac{dx}{\sqrt{1 - x^2}} \qquad (|x| < 1)\]

Solution:

Here, \(f(x) = \frac{1}{\sqrt{1 - x^2}}\). We cannot simplify \(\sqrt{1 - x^2}\) using basic algebra.

Let us change the variable by setting:

\[x = \sin\theta \qquad \left(-\frac{\pi}{2} < \theta < \frac{\pi}{2}\right)\]

Here \(g(\theta) = \sin\theta\). Its derivative is:

\[g'(\theta) = \frac{d}{d\theta}[\sin\theta] = \cos\theta\]

Now evaluate \(f(g(\theta))\):

\[f(\sin\theta) = \frac{1}{\sqrt{1 - \sin^2\theta}} = \frac{1}{\sqrt{\cos^2\theta}}\]

Since \(\theta \in \left(-\frac{\pi}{2}, \frac{\pi}{2}\right)\), \(\cos\theta > 0\), so \(\sqrt{\cos^2\theta} = \cos\theta\):

\[f(\sin\theta) = \frac{1}{\cos\theta}\]

Now form the product \(f(g(\theta)) \cdot g'(\theta)\):

\[f(g(\theta)) \cdot g'(\theta) = \frac{1}{\cos\theta} \cdot \cos\theta = 1\]

The denominator \(\cos\theta\) and the derivative \(g'(\theta) = \cos\theta\) cancel out completely. The integral becomes:

\[I = \int 1\,d\theta = \theta + C\]

Finally, we express the answer in terms of \(x\). Since \(x = \sin\theta\), we have \(\theta = \sin^{-1} x\):

\[I = \sin^{-1} x + C\]

Example 2

Evaluate:

\[I = \int \frac{dx}{(1 - x^2)^{3/2}} \qquad (|x| < 1)\]

Solution:

Here, the denominator contains \((1 - x^2)^{3/2} = (\sqrt{1 - x^2})^3\). Algebra cannot simplify this directly.

Use the same substitution:

\[x = \sin\theta \qquad \left(-\frac{\pi}{2} < \theta < \frac{\pi}{2}\right)\]

The derivative is:

\[g'(\theta) = \cos\theta\]

Transform \(f(x) = \frac{1}{(1 - x^2)^{3/2}}\):

\[f(\sin\theta) = \frac{1}{(1 - \sin^2\theta)^{3/2}} = \frac{1}{(\cos^2\theta)^{3/2}} = \frac{1}{\cos^3\theta}\]

Now multiply by \(g'(\theta) = \cos\theta\):

\[f(g(\theta)) \cdot g'(\theta) = \frac{1}{\cos^3\theta} \cdot \cos\theta = \frac{1}{\cos^2\theta} = \sec^2\theta\]

The radical fraction has simplified into \(\sec^2\theta\), which is directly in our table of standard integrals:

\[I = \int \sec^2\theta\,d\theta = \tan\theta + C\]

To express the answer in terms of \(x\), draw a reference right triangle with acute angle \(\theta\):

Reference right-angled triangle for the substitution x = sin theta

From the triangle:

  • The side opposite to \(\theta\) is \(x\).
  • The hypotenuse is \(1\).
  • By the Pythagorean theorem, the adjacent side is \(\sqrt{1 - x^2}\).

Therefore:

\[\tan\theta = \frac{\text{Opposite}}{\text{Adjacent}} = \frac{x}{\sqrt{1 - x^2}}\]

Substituting this back gives:

\[I = \frac{x}{\sqrt{1 - x^2}} + C\]

We can verify this result by differentiating:

\[\frac{d}{dx}\left[ \frac{x}{\sqrt{1 - x^2}} \right] = \frac{\sqrt{1 - x^2}(1) - x\left( \frac{-2x}{2\sqrt{1 - x^2}} \right)}{1 - x^2} = \frac{(1 - x^2) + x^2}{(1 - x^2)^{3/2}} = \frac{1}{(1 - x^2)^{3/2}}\]

which matches the original integrand.


The Meaning of dx and the Beauty of Leibniz Notation

When learning differential calculus, students are often taught:

"Do not treat \(\frac{dy}{dx}\) as an ordinary fraction! It is not \(dy\) divided by \(dx\); it is a single limit symbol representing \(\lim_{\Delta x \to 0} \frac{\Delta y}{\Delta x}\)."

Because of this warning, many students assume that the symbol \(dx\) in an integral \(\int f(x)\,dx\) is just a punctuation mark—a harmless label telling you that \(x\) is the variable of integration.

In integral calculus, however, \(dx\) plays a very real algebraic role.

What Are Differentials?

When a variable \(x\) depends on another variable \(t\) through a differentiable relation:

\[x = g(t)\]

its rate of change is given by the derivative:

\[\frac{dx}{dt} = g'(t)\]

We now define two quantities, called differentials:

  • The differential of the independent variable \(t\) is denoted by \(dt\).
  • The differential of \(x\), denoted by \(dx\), is defined as:
\[dx = g'(t)\,dt\]

Notice what this definition accomplishes. If you formally divide both sides by \(dt\), you recover the derivative:

\[\frac{dx}{dt} = g'(t)\]

By defining \(dx\) this way, the derivative \(\frac{dx}{dt}\) really does behave like the quotient of two quantities, \(dx\) and \(dt\).

Treating dx as an Algebraic Quantity

Now compare this definition of \(dx\) with the change-of-variable theorem we proved earlier using the Chain Rule:

\[\int f(x)\,\mathbf{dx} = \int f(g(t)) \cdot \mathbf{g'(t)\,dt}\]

Look at what this means in practice:

  • Everywhere you see \(x\), you substitute \(g(t)\).
  • Everywhere you see \(\mathbf{dx}\), you substitute \(\mathbf{g'(t)\,dt}\).

In other words, you can treat \(dx\) and \(dt\) as genuine algebraic quantities!

Whenever you make a substitution \(x = g(t)\), you do not need to re-derive the Chain Rule each time. You simply:

  1. Differentiate \(x\) with respect to \(t\): \(\frac{dx}{dt} = g'(t)\).
  2. "Multiply across" by \(dt\) to find the differential: \(dx = g'(t)\,dt\).
  3. Substitute \(g(t)\) for \(x\) and substitute \(g'(t)\,dt\) for \(dx\) directly into the integral.

This is the beauty of the notation created by Gottfried Wilhelm Leibniz in the 1670s. Leibniz deliberately designed his notation so that the algebra of differentials would automatically enforce the deep rules of calculus. When you algebraically replace \(dx\) by \(g'(t)\,dt\), the Chain Rule takes care of itself behind the scenes.


Another Forward Substitution

Before we reverse our perspective, let us look at one more forward substitution where trigonometric relations dissolve a sum of squares.

Example 3

Evaluate:

\[I = \int \frac{dx}{x^2 + a^2} \qquad (a > 0)\]

Solution:

In terms of \(x\), the denominator is the sum of squares \(x^2 + a^2\). Standard polynomial algebra cannot factor this over the real numbers.

Recall the Pythagorean identity \(1 + \tan^2\theta = \sec^2\theta\). To factor out \(a^2\), we set:

\[x = a\tan\theta \qquad \left(-\frac{\pi}{2} < \theta < \frac{\pi}{2}\right)\]

Differentiating gives the differential \(dx\):

\[dx = a\sec^2\theta\,d\theta\]

Now rewrite the denominator:

\[x^2 + a^2 = (a\tan\theta)^2 + a^2 = a^2\tan^2\theta + a^2 = a^2(1 + \tan^2\theta) = a^2\sec^2\theta\]

Substitute both the denominator and \(dx\) into the integral:

\[I = \int \frac{a\sec^2\theta\,d\theta}{a^2\sec^2\theta}\]

Cancel the common factor \(a\sec^2\theta\):

\[I = \frac{1}{a}\int 1\,d\theta = \frac{1}{a}\theta + C\]

Return to \(x\) by inverting the substitution:

\[x = a\tan\theta \implies \tan\theta = \frac{x}{a} \implies \theta = \tan^{-1}\left(\frac{x}{a}\right)\]

Therefore:

\[I = \frac{1}{a}\tan^{-1}\left(\frac{x}{a}\right) + C\]

This first-principles derivation proves the standard inverse tangent formula from our table.


Reading the Substitution Rule in Reverse

In Examples 1, 2, and 3, we used substitution in the forward direction: we started with an integral in \(x\), decided that \(x\) was trapped in an awkward expression, and substituted \(x = g(t)\) to unlock it.

Now let us pause and look at our fundamental theorem in the reverse direction—from right to left.

In mathematics, every equality works both ways:

\[\int f(g(x)) \cdot g'(x)\,dx = \int f(t)\,dt \qquad \text{where } t = g(x)\]

Notice what this reverse perspective is telling us:

Suppose you are given an integral that already contains:

  1. An inner function: \(g(x)\).
  2. An outer function: \(f(\dots)\) evaluated at \(g(x)\).
  3. The derivative of the inner function: \(g'(x)\), multiplying \(dx\).

If you see this structure, you can define:

\[t = g(x)\]

Then the differential of \(t\) is:

\[dt = g'(x)\,dx\]

Now watch how the integral transforms:

\[\int f(\underbrace{g(x)}_{t}) \cdot \underbrace{g'(x)\,dx}_{dt} = \int f(t)\,dt\]

Why Reverse Substitution Works

Why would we do this?

Because the original integral in \(x\) looked cluttered and complicated. But in terms of \(t\), the derivative factor \(g'(x)\) is completely absorbed into \(dt\), and the inner expression \(g(x)\) becomes a single variable \(t\).

We are left with \(\int f(t)\,dt\), which is often an elementary formula from our standard table!

Once we evaluate the integral:

\[\int f(t)\,dt = F(t) + C\]

we simply replace \(t\) with \(g(x)\) to express the final answer in terms of \(x\):

\[F(g(x)) + C\]

The Skill of Pattern Recognition

In theory, reverse substitution looks straightforward. But in practice, students face an immediate challenge:

Integrals do not come with labels telling you who is \(g(x)\) and where \(g'(x)\) is located.

To use reverse substitution successfully, you must train yourself to spot this hidden structure. When looking at any integral, ask yourself three questions:

  1. Where is the inner function? Look for an expression trapped inside a power, under a square root, in an exponent, or in a denominator. Call this candidate \(g(x)\).
  2. What is its derivative? Compute \(g'(x)\) mentally.
  3. Is that derivative present outside? Scan the rest of the integrand. Is \(g'(x)\) (or a constant multiple of it) multiplying \(dx\)?

Let us see how this pattern recognition works in straightforward cases.


Example 4

Evaluate:

\[I = \int 2x \cos(x^2)\,dx\]

Solution:

  1. Spot the inner function: The cosine function acts on \(x^2\). So our candidate is \(g(x) = x^2\).
  2. Compute its derivative: \(\frac{d}{dx}[x^2] = 2x\).
  3. Locate the derivative: The factor \(2x\) is sitting right next to \(dx\)!

Let:

\[t = x^2\]

Then:

\[dt = 2x\,dx\]

Substitute into the integral:

\[I = \int \cos(t)\,dt = \sin(t) + C\]

Substitute back \(t = x^2\):

\[I = \sin(x^2) + C\]

Example 5

Evaluate:

\[I = \int x^2 (x^3 + 5)^7\,dx\]

Solution:

  1. Spot the inner function: Inside the seventh power sits \(x^3 + 5\).
  2. Compute its derivative: \(\frac{d}{dx}[x^3 + 5] = 3x^2\).
  3. Locate the derivative: Outside we have \(x^2\). This matches \(3x^2\) up to a constant scalar factor of \(3\).

Let:

\[t = x^3 + 5\]

Differentiating gives:

\[dt = 3x^2\,dx \implies x^2\,dx = \frac{dt}{3}\]

Substitute into the integral:

\[I = \int t^7 \left( \frac{dt}{3} \right) = \frac{1}{3}\int t^7\,dt = \frac{1}{3}\left( \frac{t^8}{8} \right) + C = \frac{t^8}{24} + C\]

Substitute back \(t = x^3 + 5\):

\[I = \frac{(x^3 + 5)^8}{24} + C\]

Example 6

Evaluate:

\[I = \int \tan x\,dx\]

Solution:

Write \(\tan x\) as a quotient:

\[I = \int \frac{\sin x}{\cos x}\,dx\]

The denominator is \(\cos x\), and its derivative is \(-\sin x\), which is present in the numerator.

Let:

\[t = \cos x\]

Then:

\[dt = -\sin x\,dx \implies \sin x\,dx = -dt\]

Substitute into the integral:

\[I = \int \frac{-dt}{t} = -\ln|t| + C = -\ln|\cos x| + C\]

Using \(-\ln|A| = \ln|1/A|\) and \(1/\cos x = \sec x\):

\[I = \ln|\sec x| + C\]

Example 7

Evaluate:

\[I = \int \frac{(\ln x)^3}{x}\,dx \qquad (x > 0)\]

Solution:

Rewrite the integrand as:

\[I = \int (\ln x)^3 \cdot \frac{1}{x}\,dx\]

The inner function is \(\ln x\), and its derivative is \(\frac{1}{x}\).

Let:

\[t = \ln x\]

Then:

\[dt = \frac{1}{x}\,dx\]

Substitute into the integral:

\[I = \int t^3\,dt = \frac{t^4}{4} + C = \frac{(\ln x)^4}{4} + C\]

Hidden Substitutions and Algebraic Manipulation

The examples above were clean because the derivative \(g'(x)\) was sitting right in plain sight.

In advanced integration, however, \(g'(x)\) is almost never visible at first glance.

If you simply look at the expression as given, you will not see a function and its derivative. You must first perform algebraic or trigonometric manipulation to manufacture or reveal the pair \(g(x)\) and \(g'(x)\).

This connects our previous study of algebraic manipulation with the method of substitution: we often reshape an integrand specifically to create a substitution.

Let us study five challenging examples where algebraic surgery is required to uncover the hidden substitution.


Example 8

Evaluate:

\[I = \int \frac{dx}{x^2 (x^4 + 1)^{3/4}}\]

Solution:

At first glance, if we try \(t = x^4 + 1\), its derivative is \(4x^3\). But we do not have \(x^3\) in the numerator; we have \(x^2\) in the denominator! The substitution fails immediately.

How can we reveal a hidden derivative?

Factor out \(x^4\) from inside the bracket:

\[(x^4 + 1)^{3/4} = \left[ x^4 \left( 1 + \frac{1}{x^4} \right) \right]^{3/4} = (x^4)^{3/4} \left( 1 + x^{-4} \right)^{3/4} = x^3 \left( 1 + x^{-4} \right)^{3/4}\]

Now combine \(x^3\) with the \(x^2\) already in the denominator:

\[x^2 \cdot x^3 = x^5\]

The integrand becomes:

\[\frac{1}{x^5 (1 + x^{-4})^{3/4}} = \frac{x^{-5}}{(1 + x^{-4})^{3/4}}\]

Now examine what has happened!

Look at the inner expression: \(g(x) = 1 + x^{-4}\).

Compute its derivative:

\[\frac{d}{dx}[1 + x^{-4}] = -4x^{-5}\]

The factor \(x^{-5}\) is now sitting in the numerator! By factoring out \(x^4\), we manufactured the exact derivative needed.

Let:

\[t = 1 + x^{-4}\]

Then:

\[dt = -4x^{-5}\,dx \implies x^{-5}\,dx = -\frac{dt}{4}\]

Substitute into the integral:

\[I = \int \frac{-\frac{1}{4}\,dt}{t^{3/4}} = -\frac{1}{4}\int t^{-3/4}\,dt\]

Integrate using the power rule:

\[I = -\frac{1}{4}\left( \frac{t^{1/4}}{1/4} \right) + C = -t^{1/4} + C\]

Substitute back \(t = 1 + x^{-4} = \frac{x^4 + 1}{x^4}\):

\[I = -\left( \frac{x^4 + 1}{x^4} \right)^{1/4} + C = -\frac{(x^4 + 1)^{1/4}}{x} + C\]

Example 9

Evaluate:

\[I = \int \frac{x^2 - 1}{x^4 + 1}\,dx\]

Solution:

Neither the numerator nor the denominator is the derivative of the other. Long division does not help because the degree of the numerator is smaller than the denominator.

Divide both numerator and denominator by \(x^2\):

\[\frac{x^2 - 1}{x^4 + 1} = \frac{1 - \frac{1}{x^2}}{x^2 + \frac{1}{x^2}}\]

Now examine the numerator: \(1 - \frac{1}{x^2}\).

Ask yourself: What function has \(1 - \frac{1}{x^2}\) as its derivative?

Recall that:

\[\frac{d}{dx}\left( x + \frac{1}{x} \right) = 1 - \frac{1}{x^2}\]

This tells us that our substitution must be:

\[t = x + \frac{1}{x}\]

Can we rewrite the denominator \(x^2 + \frac{1}{x^2}\) in terms of \(t\)?

Complete the square:

\[\left( x + \frac{1}{x} \right)^2 = x^2 + 2 + \frac{1}{x^2} \implies x^2 + \frac{1}{x^2} = \left( x + \frac{1}{x} \right)^2 - 2 = t^2 - (\sqrt{2})^2\]

The entire integral transforms into:

\[I = \int \frac{dt}{t^2 - (\sqrt{2})^2}\]

This is a standard form from our table: \(\int \frac{dt}{t^2 - a^2} = \frac{1}{2a}\ln\left|\frac{t - a}{t + a}\right|\) with \(a = \sqrt{2}\):

\[I = \frac{1}{2\sqrt{2}}\ln\left| \frac{t - \sqrt{2}}{t + \sqrt{2}} \right| + C\]

Substitute back \(t = x + \frac{1}{x} = \frac{x^2 + 1}{x}\):

\[\frac{t - \sqrt{2}}{t + \sqrt{2}} = \frac{\frac{x^2 + 1}{x} - \sqrt{2}}{\frac{x^2 + 1}{x} + \sqrt{2}} = \frac{x^2 - \sqrt{2}x + 1}{x^2 + \sqrt{2}x + 1}\]

Therefore:

\[I = \frac{1}{2\sqrt{2}}\ln\left| \frac{x^2 - \sqrt{2}x + 1}{x^2 + \sqrt{2}x + 1} \right| + C\]

Example 10

Evaluate:

\[I = \int \frac{dx}{1 + e^x}\]

Solution:

The denominator is \(1 + e^x\), but there is no \(e^x\) in the numerator to serve as its derivative.

How can we create the derivative?

Multiply both numerator and denominator by \(e^{-x}\):

\[\frac{1}{1 + e^x} = \frac{e^{-x}}{e^{-x}(1 + e^x)} = \frac{e^{-x}}{e^{-x} + 1}\]

Now look at the fraction:

The denominator is \(e^{-x} + 1\). Its derivative is \(-e^{-x}\), which is now present in the numerator!

Let:

\[t = e^{-x} + 1\]

Then:

\[dt = -e^{-x}\,dx \implies e^{-x}\,dx = -dt\]

Substitute into the integral:

\[I = \int \frac{-dt}{t} = -\ln|t| + C\]

Substitute back \(t = e^{-x} + 1\):

\[I = -\ln(e^{-x} + 1) + C\]

This can also be written in an alternative clean form:

\[I = -\ln\left( \frac{1 + e^x}{e^x} \right) + C = \ln\left( \frac{e^x}{1 + e^x} \right) + C = x - \ln(1 + e^x) + C\]

Example 11

Evaluate:

\[I = \int \frac{dx}{\sin x \cos^3 x}\]

Solution:

Here sine and cosine are multiplied in the denominator. There is no obvious derivative in the numerator.

Recall from trigonometry that dividing powers of sine and cosine by powers of \(\cos x\) produces \(\tan x\) and \(\sec x\).

Notice the total power of trigonometric terms in the denominator is \(1 + 3 = 4\).

Divide both numerator and denominator by \(\cos^4 x\):

\[\frac{\frac{1}{\cos^4 x}}{\frac{\sin x \cos^3 x}{\cos^4 x}} = \frac{\sec^4 x}{\frac{\sin x}{\cos x}} = \frac{\sec^4 x}{\tan x}\]

Rewrite \(\sec^4 x\) as \((1 + \tan^2 x)\sec^2 x\):

\[\frac{(1 + \tan^2 x)\sec^2 x}{\tan x}\]

Now the substitution is obvious!

The inner function is \(\tan x\), and its derivative \(\sec^2 x\) is multiplying \(dx\).

Let:

\[t = \tan x\]

Then:

\[dt = \sec^2 x\,dx\]

Substitute into the integral:

\[I = \int \frac{1 + t^2}{t}\,dt = \int \left( \frac{1}{t} + t \right)\,dt\]

Integrate term by term:

\[I = \ln|t| + \frac{t^2}{2} + C\]

Substitute back \(t = \tan x\):

\[I = \ln|\tan x| + \frac{\tan^2 x}{2} + C\]

Example 12

Evaluate:

\[I = \int \frac{dx}{x\sqrt{x^6 - 1}} \qquad (x > 1)\]

Solution:

If we try setting \(u = x^6 - 1\), its derivative requires an \(x^5\) in the numerator, which is completely missing.

Let us manufacture the missing \(x^5\) by multiplying both the numerator and the denominator by \(x^5\):

\[\frac{dx}{x\sqrt{x^6 - 1}} = \frac{x^5\,dx}{x^6 \sqrt{x^6 - 1}}\]

Now look at what we have created:

  • In the denominator, we have \(x^6\) and \(\sqrt{x^6 - 1}\).
  • In the numerator, we have \(x^5\,dx\), which is proportional to the differential of \(x^6\).

Let:

\[t = \sqrt{x^6 - 1}\]

Square both sides:

\[t^2 = x^6 - 1 \implies x^6 = t^2 + 1\]

Differentiating both sides:

\[2t\,dt = 6x^5\,dx \implies x^5\,dx = \frac{t\,dt}{3}\]

Now substitute everything into the integral:

  • Replace \(x^5\,dx\) with \(\frac{t\,dt}{3}\).
  • Replace \(x^6\) with \(t^2 + 1\).
  • Replace \(\sqrt{x^6 - 1}\) with \(t\).
\[I = \int \frac{\frac{t\,dt}{3}}{(t^2 + 1) \cdot t} = \frac{1}{3}\int \frac{dt}{t^2 + 1}\]

The variable factor \(t\) cancels out completely, leaving the standard inverse tangent integral:

\[I = \frac{1}{3}\tan^{-1}(t) + C\]

Substitute back \(t = \sqrt{x^6 - 1}\):

\[I = \frac{1}{3}\tan^{-1}\left( \sqrt{x^6 - 1} \right) + C\]

Two Canonical Substitution Patterns

There are two special forms of reverse substitution that appear so frequently in calculus that you should learn to recognize them on sight.


The Logarithmic Derivative Pattern

Whenever the numerator of a fraction is the exact derivative of its denominator:

\[\int \frac{f'(x)}{f(x)}\,dx = \ln|f(x)| + C\]

Derivation:

Let \(t = f(x)\). Differentiating gives \(dt = f'(x)\,dx\).

Substituting into the integral:

\[\int \frac{f'(x)\,dx}{f(x)} = \int \frac{dt}{t} = \ln|t| + C = \ln|f(x)| + C\]

This single pattern allows us to derive the fundamental trigonometric integrals for \(\cot x\), \(\sec x\), and \(\csc x\) that were introduced in Tutorial 02.

For \(\cot x\), we express it as \(\frac{\cos x}{\sin x}\):

\[\int \cot x\,dx = \int \frac{\cos x}{\sin x}\,dx\]

Since \(\frac{d}{dx}[\sin x] = \cos x\), the numerator is the derivative of the denominator:

\[\int \cot x\,dx = \ln|\sin x| + C\]

For \(\sec x\), the derivative is not immediately visible. But we can manufacture the pattern by multiplying the numerator and denominator by \((\sec x + \tan x)\):

\[\int \sec x\,dx = \int \frac{\sec x(\sec x + \tan x)}{\sec x + \tan x}\,dx = \int \frac{\sec^2 x + \sec x \tan x}{\sec x + \tan x}\,dx\]

Notice that the derivative of the denominator is:

\[\frac{d}{dx}[\sec x + \tan x] = \sec x \tan x + \sec^2 x\]

The numerator is the exact derivative of the denominator! Therefore:

\[\int \sec x\,dx = \ln|\sec x + \tan x| + C\]

Similarly, for \(\csc x\), multiply numerator and denominator by \((\csc x - \cot x)\):

\[\int \csc x\,dx = \int \frac{\csc x(\csc x - \cot x)}{\csc x - \cot x}\,dx = \int \frac{\csc^2 x - \csc x \cot x}{\csc x - \cot x}\,dx\]

Since \(\frac{d}{dx}[\csc x - \cot x] = -\csc x \cot x - (-\csc^2 x) = \csc^2 x - \csc x \cot x\), we have:

\[\int \csc x\,dx = \ln|\csc x - \cot x| + C\]

The Extended Power Pattern

Whenever a function raised to a constant power is multiplied by its derivative:

\[\int [f(x)]^n \cdot f'(x)\,dx = \frac{[f(x)]^{n+1}}{n + 1} + C \qquad (n \neq -1)\]

Derivation:

Let \(t = f(x)\). Then \(dt = f'(x)\,dx\). The integral transforms into the standard power rule:

\[\int t^n\,dt = \frac{t^{n+1}}{n + 1} + C = \frac{[f(x)]^{n+1}}{n + 1} + C\]