Why Factor Before Choosing \(u\)?
A substitution can be difficult to see when an integrand is written as an expanded polynomial. A numerator such as \(x^2+2x+1\) may not immediately look like the derivative of a denominator. But factoring gives \((x+1)^2\), which can make the relationship clear.
The algebra does not change the integral: it reveals structure that was already present. Once the expression is rewritten, we can ask whether one part is the derivative of another part, up to a constant. If it is, substitution can turn the integral into a simpler one.
What Counts as a Useful Rewrite?
For an integral \(\int f(x)\,dx\), a substitution \(u=g(x)\) is useful when rewriting the integrand in terms of \(g(x)\) also reveals a factor proportional to \(g'(x)\,dx\). Here \(g'(x)\) is the derivative of the inner function. A constant multiple is acceptable because it can be taken outside the integral.
Factoring often reveals one of these patterns:
- An expanded polynomial is a power, such as \(x^2+2x+1=(x+1)^2\).
- A polynomial is a difference of squares, such as \(x^2-4=(x-2)(x+2)\).
- A polynomial is the derivative of a composite denominator once its terms are grouped.
- A high-degree polynomial is a power of a simpler expression, making that expression a natural choice for \(u\).
A factorization is useful for substitution only if the remaining factors fit together. It is not enough to spot a familiar expression somewhere in the integrand. The derivative factor must be present, possibly after multiplication or division by a constant.
A Reliable Routine
Use the following sequence when an integral contains polynomials that might hide a substitution:
Factor, group terms, or recognize a shifted power. Keep the equality exact, including constant terms.
Look for the expression that appears inside a power, logarithm, or denominator.
Calculate \(g'(x)\) and compare it with the full factor left beside the composite expression.
Replace \(g'(x)\,dx\) by \(du\), including any constant multiplier, and integrate in \(u\).
Write an antiderivative in the original variable and differentiate it to compare with the original integrand.
Worked Examples
Worked Example: Factoring a Numerator to Match a Denominator
Evaluate \[ \int \frac{x^2+2x+1}{x^3+3x^2+3x+7}\,dx. \]
First factor the numerator and rewrite the denominator using the binomial expansion:
Let \(u=(x+1)^3+6\). Its derivative is
The numerator is \((x+1)^2\), so \((x+1)^2\,dx=\frac{1}{3}\,du\). Therefore,
The absolute value is needed for the logarithmic antiderivative on any interval where the denominator is nonzero. To check, differentiate the result:
This is the original integrand in factored form.
Worked Example: Factoring Both the Numerator and the Derivative
Evaluate \[ \int \frac{x^2-4}{x^3-12x+5}\,dx. \]
The numerator is a difference of squares:
Now choose \(u=x^3-12x+5\), the denominator. Differentiating gives
Thus \(du=3(x^2-4)\,dx\), or \((x^2-4)\,dx=\frac{1}{3}\,du\). Substitution gives
Check the result by differentiating:
The check holds wherever the denominator is nonzero, which is where the logarithmic expression is defined.
Worked Example: Recognizing a Power Hidden in an Expanded Polynomial
Evaluate \[ \int x\left(x^6-12x^4+48x^2-64\right)\,dx. \]
The degree-six polynomial is a cube of a quadratic expression. Expanding \((x^2-4)^3\) confirms the identity:
The integrand is therefore \(x(x^2-4)^3\). Choose \(u=x^2-4\), so \(du=2x\,dx\), or \(x\,dx=\frac{1}{2}\,du\). Then
For a check, differentiate:
Expanding that final factor gives exactly the original integrand.
Why the Rewriting Is Valid
Factoring is an algebraic identity: it expresses a polynomial in a different form without changing its value. If the rewritten integrand has the form \(c\,g'(x)/g(x)\), where \(g(x)\ne 0\), the chain rule gives a direct justification for the logarithmic result.
For a power composition, the same reasoning uses the chain rule for powers: if the rewritten integrand is \(c\,g'(x)g(x)^n\), then an antiderivative for \(n\ne -1\) is \(c\,g(x)^{n+1}/(n+1)+C\), on intervals where the expression is defined.
A Common Mistake: Matching Only the Leading Term
In the second example, a tempting but incorrect step would be to notice that the derivative of \(x^3-12x+5\) begins with \(3x^2\), then treat it as \(3x^2\) and write
The proposed answer happens to be correct, but that displayed reasoning is not: the derivative of the denominator is \(3x^2-12\), not \(3x^2\). It matches the numerator only after factoring the entire derivative:
A derivative match must include every term. Ignoring a constant or lower-degree term can make a plausible substitution invalid. Here, factoring shows that the full match does hold.
There is a related warning in the power example. The expression \(x^6-12x^4+48x^2-64\) factors as \((x^2-4)^3\), but that observation alone would not justify substituting \(u=x^2-4\) if the integrand were just \((x^2-4)^3\,dx\). Since \(du=2x\,dx\), the factor \(x\) is essential for this substitution. Always check both the composite expression and its derivative factor.
When Factoring Helps—and When It Does Not
Factoring is most useful when it reveals a complete pattern: a derivative match, a power composition, or a simpler expression after cancellation. It is not a promise that every polynomial integral can be handled by substitution. If no proposed inner function has its derivative present, factoring alone may not make substitution applicable.
Keep the domain in view, too. For a logarithmic answer, the inner function must be nonzero on the interval under consideration. An antiderivative can be stated separately on each interval that avoids its zeros. This is why logarithmic results are written with absolute values and why the calculation is understood on intervals where the denominator does not vanish.
The practical habit is simple: rewrite first, differentiate the proposed inner function exactly, and compare every term. That short algebraic check can distinguish a valid substitution from a pattern that only looks familiar.
Check Your Understanding
For each question, focus on what the factorization reveals and whether the derivative factor is complete.
- Factor \(x^2+6x+9\). If it is the numerator and the denominator is \((x+3)^3+2\), what substitution would you test?
- For \(g(x)=x^4-8x^2+3\), factor \(g'(x)\). Which quadratic factor could help you recognize a numerator derivative match?
- Rewrite \(x^6-6x^4+12x^2-8\) as a power of a quadratic expression.
- Why is a factor \(x\) needed to use \(u=x^2-4\) in the third worked example?
- What must be true of the inner function when using \(\ln|g(x)|\) as an antiderivative pattern?