Why Rewrite an Integrand?
An integrand can be written in several algebraically equivalent ways. Those forms need not be equally convenient to integrate. Factoring can expose common factors or a useful pattern; expanding can turn a product into a polynomial; cancelling can remove a common factor from a quotient. The strategic question is not simply which form looks shortest. It is which form makes a valid next step easiest to see.
For instance, a product involving \(2x\) and a power of \(x^2+4\) may suggest changing variables, while expanding the same product creates several polynomial terms. In a rational function, factoring the denominator may reveal a sum of simpler fractions. In another expression, expansion may be the most direct route to an elementary antiderivative.
Three Algebraic Moves
Factoring expresses a sum or polynomial as a product. For example, \(x^2-9=(x-3)(x+3)\). This form can reveal common factors or split a denominator into factors.
Expanding uses the distributive law to write a product as a sum. For example, \((x+1)(x-2)=x^2-x-2\). This can be useful when the resulting terms are simple powers of \(x\).
Cancelling removes a common multiplicative factor from the numerator and denominator of a fraction. It is valid only when that factor is nonzero. In particular, terms within a sum cannot be cancelled separately.
Worked Example: Factoring and Cancelling a Common Factor
Worked Example: Simplifying a Quotient Before Integrating
Find an antiderivative of \(\frac{x^2-9}{x-3}\), keeping track of the original domain.
The denominator is zero at \(x=3\), so the original integrand is defined only when \(x\ne 3\). Factor the numerator:
For \(x\ne 3\), the common factor can be cancelled:
Thus, on any interval that does not contain \(3\), integrate the simpler expression:
Here the antiderivative applies separately on intervals such as \((-\infty,3)\) and \((3,\infty)\); the constants on those intervals need not be the same. Check by differentiating the proposed antiderivative:
The derivative agrees with the original integrand at every point where that integrand is defined. It does not follow that the original quotient is defined at \(x=3\).
Why Factoring Can Reveal a Substitution
Factoring is especially helpful when one factor is the derivative of another expression appearing repeatedly. This does not mean every product should be factored or that every such expression must be integrated by substitution. It means that preserving the factors can make a candidate change of variable visible before the expression becomes a longer sum.
The reason a suitable substitution works is the chain rule in reverse. If \(u=g(x)\) and \(H'(u)=h(u)\), then the chain rule gives \(\frac{d}{dx}H(g(x))=h(g(x))g'(x)\). Thus an integrand of the form \(h(g(x))g'(x)\) has the antiderivative \(H(g(x))\). Factoring or leaving an expression in product form can make these roles easier to identify.
Worked Example: Keeping a Product Form for Substitution
Worked Example: A Power of a Quadratic Expression
Evaluate \(\int 2x(x^2+4)^3\,dx\). The factored form shows the repeated inner expression \(x^2+4\) and its derivative \(2x\). Set \(u=x^2+4\), so \(du=2x\,dx\):
To see why expansion is less direct here, expand the cubic first:
and then multiply by \(2x\):
Integrating those powers gives \(\frac{x^8}{4}+4x^6+24x^4+64x^2\), which is equivalent to the compact answer up to the constant, but requires more terms. Check the compact answer directly:
The factored form was preferable because it displayed the inner expression and its derivative together.
Factoring a Denominator to Expose a Decomposition
For a rational integrand, factoring the denominator can reveal whether the expression can be written as a sum of simpler fractions. A decomposition is useful only if its coefficients are correct and the resulting terms are easier to integrate. The example below is a direct case with distinct linear factors; it is an illustration of why factoring can help, not a general rule for every rational function.
Worked Example: Factoring Before Decomposing
Worked Example: Two Linear Denominator Factors
Find an antiderivative of \(\frac{3x+5}{x^2+3x+2}\). Factor the denominator:
Seek constants \(A\) and \(B\) such that
Combining the fractions gives the numerator \(A(x+2)+B(x+1)\). Matching coefficients with \(3x+5\) yields
Subtract the first equation from the second: \(A=2\). Then \(2+B=3\), so \(B=1\). Therefore, wherever \(x\ne -1,-2\),
Integrate the two terms:
Check by differentiation and combine the fractions:
The original integrand is undefined at \(-1\) and \(-2\), so the antiderivative is understood on intervals that avoid those points.
When Expansion Is the Better Choice
Expansion is not the opposite of strategy; it is another strategic option. If multiplying out a product produces a short polynomial, then the power rule can make integration immediate. In contrast, preserving factors is often more useful when they expose a common factor, a repeated inner expression, or a denominator structure. The deciding factor is the work required after the rewrite, not whether a form is factored or expanded.
Worked Example: Expanding a Product into a Polynomial
Worked Example: A Product with No Useful Inner Pairing
Find an antiderivative of \((x+1)(x-2)\). Expanding gives
Integrate the resulting powers:
Check by differentiating:
Here expansion exposes a simple sum of powers. No common factor or repeated inner expression makes the unexpanded product more advantageous.
A Common Mistake: Cancelling Terms Instead of Factors
Cancellation is valid for a common factor of the entire numerator and denominator, not for parts of sums. For example, the following calculation is wrong:
This would amount to cancelling the \(x\) terms even though \(x\) is not a factor multiplying the whole numerator and denominator. A numerical check at \(x=1\) confirms the error: the original fraction is \(\frac{3}{6}=\frac12\), whereas the proposed result is \(\frac25\).
The correct procedure is to factor the numerator and denominator and cancel only an identical factor that multiplies each whole expression. If no such factor exists, do not cancel. Also check where a cancelled factor is zero: the simplified expression may have a larger domain than the original quotient.
A Practical Choice of Form
Identify products, sums, common factors, and denominator factors before changing the form.
Look for a common factor to cancel, a repeated inner expression, or factors in a denominator that may support a simpler decomposition.
Compare the expanded terms with the power rule rather than assuming that a product must be kept intact.
Record excluded inputs from the original denominator, then differentiate the proposed antiderivative to check it against the original integrand on its domain.
These are choices of representation, not competing integration rules. A useful rewrite leaves the value of the integrand unchanged where it is defined and makes the next mathematical step clearer. Sometimes factoring is best; sometimes expansion is best; sometimes cancellation removes clutter. When no rewrite gives a clear advantage, keep the original form and reassess the structure rather than manipulating it automatically.
Check Your Understanding
For each question, pay attention both to algebraic structure and to the original domain.
- Factor \(\frac{x^2-16}{x-4}\). For which values of \(x\) does the original expression exist?
- Should you expand or preserve \(2x(x^2+1)^4\) if you want to look for a substitution based on \(x^2+1\)? Explain what feature you would inspect.
- Factor the denominator in \(\frac{2x+3}{x^2+3x+2}\). What simple fraction terms might a decomposition use?
- Explain why cancelling the \(x\) terms in \(\frac{x+3}{x+7}\) is not valid.
- Expand \((x-1)(x+4)\), find an antiderivative of the resulting polynomial, and check it by differentiation.