Tutorials › AP Calculus › Rewriting Integrands Before Substitution

Antiderivatives and Substitution · Tutorial 503 of 999

Rewriting Integrands Before Substitution

Learn to rewrite an integrand so substitution becomes visible, then check the result by differentiating.

Intermediate 10 min read

What You'll Learn

  • Recognize when an algebraic rewrite can reveal an inner expression and its derivative
  • Match a numerator to the derivative of a denominator, including constant factors
  • Rewrite powers of \(x\) using the proposed inner expression
  • Split an integrand into simpler terms before substituting
  • Verify an antiderivative by differentiating it

Why Rewrite Before Substituting?

In some integrals, the expression to substitute is easy to recognize, but the rest of the integrand does not yet look like its derivative. A small algebraic rewrite can make the relationship visible. The goal is not to change the value of the integrand; it is to express it in a form where the reverse chain rule can be applied.

For example, if an integrand contains a power of \(x^2+4\), it may be natural to consider \(u=x^2+4\), whose differential is \(du=2x\,dx\). If the integrand contains \(x^3\,dx\), the factor \(x\) is present, but the remaining \(x^2\) can first be rewritten as \((x^2+4)-4\). That is the key kind of algebraic preparation studied here.

Key idea: Before substituting, use algebra to make the integrand display both the inner expression and a constant multiple of its derivative. Common tools include factoring, expanding, splitting a sum, and replacing a power of \(x\) with an equivalent expression involving the proposed inner function.

The Algebra Behind Substitution

The substitution method is a form of the reverse chain rule. If \(u=g(x)\), then \(du=g'(x)\,dx\). An integral is especially direct when its integrand can be written as \(f(g(x))g'(x)\), or as a constant multiple of that form. The algebraic rewrite happens before changing variables: it helps show that the needed factors are actually present.

When the derivative factor is present only up to a constant, account for that constant explicitly. For instance, if \(u=2x^2+6x+7\), then \(du=(4x+6)\,dx\). If the integrand has \(4x+6\), there is no extra factor to supply. If it has \(2x+3\), then \(du=2(2x+3)\,dx\), so the substitution introduces a factor of \(1/2\).

Sometimes only part of the integrand fits a substitution. In that case, an identity may split the integrand into a sum of simpler terms. Each term must still be integrated, and a substitution should be used only where the corresponding differential factor is present.

Worked Example: Match a Numerator to a Denominator's Derivative

Worked Example: Match a Numerator to a Denominator's Derivative

Evaluate \(\displaystyle \int \frac{4x+6}{2x^2+6x+7}\,dx\).

Let the denominator be the inner expression:

$$ u=2x^2+6x+7. $$

Differentiate it:

$$ \frac{du}{dx}=4x+6, \qquad du=(4x+6)\,dx. $$

The numerator and \(dx\) are exactly \(du\), so the integral becomes

$$ \int \frac{4x+6}{2x^2+6x+7}\,dx = \int \frac{1}{u}\,du = \ln|u|+C. $$

Substitute back. The quadratic is positive for every real \(x\): its leading coefficient is positive and its discriminant is \(6^2-4(2)(7)=-20<0\). Thus the absolute value can be omitted:

$$ \int \frac{4x+6}{2x^2+6x+7}\,dx = \ln(2x^2+6x+7)+C. $$

Check: Differentiating the proposed antiderivative gives

$$ \frac{d}{dx}\ln(2x^2+6x+7) = \frac{4x+6}{2x^2+6x+7}, $$

which is the original integrand.

This example illustrates a useful pattern: a quotient with a denominator \(g(x)\) and numerator \(g'(x)\) integrates to \(\ln|g(x)|+C\). If the numerator is a constant multiple of \(g'(x)\), that constant must be included in the answer. The algebraic task is to compare the numerator with the derivative of the entire denominator, not just with one term of it.

Rewrite Powers Using the Inner Expression

A common obstacle is having too many powers of \(x\), or the wrong-looking power, alongside a composite expression. If the inner expression is \(u=x^2+a\), then \(x^2=u-a\). This identity lets you rewrite powers of \(x\) in terms of \(u\), while keeping the factor \(x\,dx\) for the differential.

Worked Example: Rewrite a Power Before Substituting

Evaluate \(\displaystyle \int x^3\sqrt{x^2+4}\,dx\).

The radical suggests \(u=x^2+4\), so \(du=2x\,dx\), or \(x\,dx=\frac12du\). The integrand has \(x^3\,dx=x^2(x\,dx)\). Rewrite \(x^2\) using the proposed inner expression:

$$ x^2=(x^2+4)-4. $$

Therefore the entire integrand can be rearranged as

$$ x^3\sqrt{x^2+4}\,dx = x\bigl((x^2+4)-4\bigr)\sqrt{x^2+4}\,dx. $$

Now set \(u=x^2+4\). Since \(\sqrt{x^2+4}=u^{1/2}\), substitution gives

$$ \int x^3\sqrt{x^2+4}\,dx = \frac12\int (u-4)u^{1/2}\,du = \frac12\int \bigl(u^{3/2}-4u^{1/2}\bigr)\,du. $$

Integrate each power:

$$ \frac12\left(\frac{2}{5}u^{5/2}-4\cdot\frac{2}{3}u^{3/2}\right)+C = \frac15u^{5/2}-\frac43u^{3/2}+C. $$

Substituting back gives

$$ \int x^3\sqrt{x^2+4}\,dx = \frac15(x^2+4)^{5/2} -\frac43(x^2+4)^{3/2} +C. $$

Check: Differentiate the result using the chain rule:

$$ \begin{aligned} \frac{d}{dx}\left[ \frac15(x^2+4)^{5/2} -\frac43(x^2+4)^{3/2} \right] &= \frac15\cdot\frac52(x^2+4)^{3/2}(2x) -\frac43\cdot\frac32(x^2+4)^{1/2}(2x)\\ &= x(x^2+4)^{3/2}-4x(x^2+4)^{1/2}\\ &= x(x^2+4)^{1/2}\bigl((x^2+4)-4\bigr)\\ &= x^3\sqrt{x^2+4}. \end{aligned} $$

The last line is exactly the original integrand.

Split the Integrand When That Makes the Pattern Clear

An algebraic identity can also separate an integrand into a term that is easy to integrate directly and another term suited to substitution. The identity must preserve the whole expression, including any factors outside the fraction. A reliable check is to combine the rewritten terms again and confirm that the original integrand is recovered.

Worked Example: Divide and Split Before Substitution

Evaluate \(\displaystyle \int \frac{x(x^2+3)}{x^2+1}\,dx\).

The numerator has a factor \(x\), which is useful for \(u=x^2+1\), since \(du=2x\,dx\). But the factor \(x^2+3\) is not simply the denominator. Rewrite it as

$$ x^2+3=(x^2+1)+2. $$

Then split the fraction:

$$ \frac{x(x^2+3)}{x^2+1} = \frac{x\bigl((x^2+1)+2\bigr)}{x^2+1} = x+\frac{2x}{x^2+1}. $$

Thus

$$ \int \frac{x(x^2+3)}{x^2+1}\,dx = \int x\,dx+\int\frac{2x}{x^2+1}\,dx. $$

The first term has antiderivative \(x^2/2\). For the second, let \(u=x^2+1\), so \(du=2x\,dx\):

$$ \int\frac{2x}{x^2+1}\,dx = \int\frac{1}{u}\,du = \ln|u|+C = \ln(x^2+1)+C. $$

Combining the terms, an antiderivative is

$$ \frac{x^2}{2}+\ln(x^2+1)+C. $$

Check:

$$ \begin{aligned} \frac{d}{dx}\left(\frac{x^2}{2}+\ln(x^2+1)\right) &=x+\frac{2x}{x^2+1}\\ &=\frac{x(x^2+1)+2x}{x^2+1}\\ &=\frac{x(x^2+3)}{x^2+1}. \end{aligned} $$

This matches the original integrand.

Why the Rewrite Works

The substitution itself works because of the chain rule. If \(G\) is an antiderivative of \(f\), then differentiating the composite function \(G(g(x))\) gives

$$ \frac{d}{dx}G(g(x))=G'(g(x))g'(x)=f(g(x))g'(x). $$

Consequently, whenever the integrand can be rewritten as \(f(g(x))g'(x)\), the function \(G(g(x))\) is an antiderivative. A constant multiple is handled by keeping that constant outside the integral. The algebraic rewrite does not create a new calculus rule; it reveals the factors needed to use the reverse chain rule.

For instance, in the second example the identity \(x^2=(x^2+4)-4\) turned \(x^3\,dx\) into a sum of terms involving \(x\,dx\) multiplied by powers of \(x^2+4\). That made the differential \(du=2x\,dx\) available in every term. The substitution then converted the remaining factors into powers of \(u\).

A Common Mistake: Replacing Only Part of a Power

In the radical example, a tempting but incorrect step is to write \(x^3=xu\) after setting \(u=x^2+4\). This drops the \(4\), because \(u\) is not equal to \(x^2\). The incorrect calculation would give

$$ x^3\sqrt{x^2+4}\,dx \ \not=\ xu\sqrt{u}\,dx. $$

The correction is to solve the substitution equation for the power being replaced:

$$ u=x^2+4 \quad\Longrightarrow\quad x^2=u-4 \quad\Longrightarrow\quad x^3\,dx=(u-4)x\,dx. $$

Then use \(x\,dx=\frac12du\). Keeping the constant term in this identity is essential; it changes the integral and its answer. More generally, write the full identity first, and check it by expanding or substituting back before proceeding.

A Practical Algebra Check

Before integrating, verify that the rewrite is an identity and that the differential is accounted for. These checks help distinguish a useful rearrangement from an accidental change to the integrand.

  • Check the inner expression: Write down \(u=g(x)\) and compute \(du=g'(x)\,dx\).
  • Check the algebra: Expand, factor, or recombine the rewritten terms to recover the original integrand.
  • Check constant factors: If \(du\) is twice or half the factor in the integral, carry that multiplier through the substitution.
  • Check the result: Differentiate the proposed antiderivative and compare it with the original integrand.

These checks are particularly useful when an expression has several terms or powers. Substitution is not a reason to discard a factor that does not appear to fit; algebra must account for every part of the original integrand.

Check Your Understanding

For each question, focus on the algebraic identity that makes the substitution possible.

  1. For \(\displaystyle \int \frac{6x+2}{3x^2+2x+5}\,dx\), identify an inner expression and its differential.
  2. When \(u=x^2+9\), rewrite \(x^4\) in terms of \(u\).
  3. Rewrite \(\displaystyle \frac{x(x^2+5)}{x^2+1}\) as a sum in which one term is a constant multiple of \(\frac{x}{x^2+1}\).
  4. Why is \(x^2=u-4\), rather than \(x^2=u\), when \(u=x^2+4\)?
  5. What calculation can confirm that a proposed antiderivative is correct?

Test yourself: AP Calculus practice exams

Ready to check what you know? Work an AP-style practice exam, then open the full solutions.

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers all of AP Calculus AB & BC: full review, every practice question, and step-by-step solutions to each one.

QR code to download the Calc Pass app

Get the Calc Pass App

Scan to download and practice on the go, with instant scoring.

Calc Pass Volume 1: 1,114 Practice Questions book cover

Vol. 1: 1,114 Questions

The complete practice question bank, organized by AB & BC topic.

View on Amazon
Calc Pass Volume 2: Solutions Manual book cover

Vol. 2: Solutions Manual

Fully worked solutions to every question in Volume 1.

View on Amazon