Tutorials › Calculus II › Comparing Candidate Methods By Algebraic Cost

Integration Strategy · Tutorial 19 of 998

Comparing Candidate Methods By Algebraic Cost

Learn to compare integration strategies by the work they create, not just by how familiar they look.

Beginner 9 min read

What You'll Learn

  • Compare candidate methods by the complexity of the resulting integrand.
  • Track how many rewrites and substitutions a method requires.
  • Recognize when expansion creates more terms than it removes.
  • Evaluate whether a compact antiderivative is easy to check.
  • Use differentiation to confirm worked answers.

Why Compare Candidate Methods?

An integrand can invite more than one reasonable approach. You might recognize a composition and try substitution, or expand an expression and integrate term by term. Both approaches may be valid, but they need not demand the same amount of algebra.

The aim is not to assign a universal score to every method. Instead, compare the work each method creates: how complicated the new integrand becomes, how many transformations are needed, and whether the resulting antiderivative is easy to check. This kind of comparison helps avoid lengthy calculations when a simpler route is available.

Key idea: A promising method usually turns the integrand into a form that is simpler to integrate without creating a larger algebraic problem. “Simpler” can mean fewer terms, familiar powers, or a more direct check.

Three Measures of Algebraic Cost

Use three questions to compare candidate methods. They are guides rather than a rigid scoring system.

  • What does the new integrand look like? Does it become a familiar power or a short sum, or does it acquire more terms and awkward factors?
  • How many transformations are required? Count meaningful rewrites and substitutions, including the algebra needed to express every part of the integrand in the new variable.
  • How easy is the result to check? A compact expression can be easy to differentiate; an expanded expression may be longer but can make individual terms easy to inspect.

A method with fewer visible steps is not automatically better. A substitution that leaves the original variables mixed with the new variable has not simplified the problem. Likewise, expansion can be helpful when it exposes a short polynomial, but wasteful when it produces many terms that could have been avoided.

Worked Example: Substitute or Expand?

Worked Example: Substitute or Expand?

Compare two ways to evaluate \(\int x(x^2+1)^3\,dx\).

Method 1: Use the inner expression as a substitution. Let \(u=x^2+1\). Then \(du=2x\,dx\), so \(x\,dx=\frac12\,du\). Therefore

$$ \int x(x^2+1)^3\,dx =\frac12\int u^3\,du =\frac{u^4}{8}+C =\frac{(x^2+1)^4}{8}+C. $$

This route requires one substitution and one power-rule integration. The new integrand is a single power.

Method 2: Expand first. Using the binomial expansion, \((x^2+1)^3=x^6+3x^4+3x^2+1\). Multiplying by \(x\) gives \(x^7+3x^5+3x^3+x\). Thus

$$ \begin{aligned} \int x(x^2+1)^3\,dx &=\int (x^7+3x^5+3x^3+x)\,dx\\ &=\frac{x^8}{8}+\frac{x^6}{2}+\frac{3x^4}{4}+\frac{x^2}{2}+C. \end{aligned} $$

Expansion is also valid, but it creates four terms to integrate. The two answers differ only by a constant: expanding \(\frac18(x^2+1)^4\) gives the second expression plus \(\frac18\).

Check the compact answer:

$$ \frac{d}{dx}\left(\frac{(x^2+1)^4}{8}\right) =\frac18\cdot4(x^2+1)^3\cdot2x =x(x^2+1)^3. $$

Both methods work, but substitution has lower algebraic cost here: it avoids expansion and leaves a one-term integrand. The check is also short because the expression still displays its composition.

Why Substitution Works Here

The comparison above depends on a precise relationship between the new variable and the original integrand. In this example, \(u=x^2+1\) has derivative \(2x\), and the factor \(x\,dx\) is therefore \(\frac12\,du\). More generally, the chain rule explains why substitution can simplify an integral.

Substitution principle: If \(u=g(x)\), then \(du=g'(x)\,dx\). An integrand containing \(f(g(x))g'(x)\) can be rewritten as \(f(u)\,du\), and an antiderivative \(F\) of \(f\) gives \(F(g(x))\), since the chain rule yields \(\frac{d}{dx}F(g(x))=f(g(x))g'(x)\).

This is also a useful way to assess a candidate substitution before carrying it out: look for the derivative of the proposed inner expression, including any constant factor. If that factor is absent, the proposed rewrite is not yet justified.

Worked Example: Compare Two Substitutions

Worked Example: Compare Two Substitutions

Consider \(\int x^3\sqrt{x^2+1}\,dx\). Two substitutions can turn it into a polynomial or a sum of powers.

Method 1: Set \(u=x^2+1\). Since \(du=2x\,dx\), we have \(x\,dx=\frac12\,du\), and \(x^2=u-1\). Rewrite \(x^3\,dx\) as \(x^2(x\,dx)\):

$$ \begin{aligned} \int x^3\sqrt{x^2+1}\,dx &=\frac12\int (u-1)u^{1/2}\,du\\ &=\frac12\int (u^{3/2}-u^{1/2})\,du\\ &=\frac15u^{5/2}-\frac13u^{3/2}+C\\ &=\frac15(x^2+1)^{5/2}-\frac13(x^2+1)^{3/2}+C. \end{aligned} $$

The new integrand has two power terms. The substitution requires expressing \(x^2\) as \(u-1\), as well as replacing \(x\,dx\).

Method 2: Set \(v=\sqrt{x^2+1}\). Then \(v^2=x^2+1\), so \(x^2=v^2-1\). Differentiating gives \(2v\,dv=2x\,dx\), or \(x\,dx=v\,dv\). Also \(\sqrt{x^2+1}=v\). Hence

$$ \begin{aligned} \int x^3\sqrt{x^2+1}\,dx &=\int x^2(x\,dx)v\\ &=\int (v^2-1)v^2\,dv\\ &=\int (v^4-v^2)\,dv\\ &=\frac{v^5}{5}-\frac{v^3}{3}+C\\ &=\frac15(x^2+1)^{5/2}-\frac13(x^2+1)^{3/2}+C. \end{aligned} $$

Both substitutions produce a two-term power integral and the same antiderivative. The first keeps the substitution variable tied directly to the expression under the radical. The second removes the radical from the integrand, but requires differentiating the square root and replacing \(x\,dx\). Neither is automatically superior; the relative cost is modest, and a learner may find one rewrite clearer than the other.

Check the common answer: Put \(u=x^2+1\). Its derivative is

$$ \begin{aligned} \frac{d}{dx}\left(\frac15u^{5/2}-\frac13u^{3/2}\right) &=\left(\frac12u^{3/2}-\frac12u^{1/2}\right)2x\\ &=x(u^{3/2}-u^{1/2})\\ &=xu^{1/2}(u-1)\\ &=x\sqrt{x^2+1}\,x^2\\ &=x^3\sqrt{x^2+1}. \end{aligned} $$

The final check confirms the result and shows why the two forms agree.

Transformations Should Reduce the Work

A transformation is useful when it makes the next step easier. For instance, rewriting an expression can expose a familiar integration form; earlier material on polynomial division and completing the square develops two such strategic rewrites. But an extra transformation has a cost: it takes algebra, creates opportunities for errors, and may make the final answer harder to read.

When comparing options, write down the resulting integrands before committing. Ask whether a proposed rewrite removes complexity or merely moves it. If a substitution is chosen, check that every occurrence of the original variable has been handled. If an expression is expanded, count the terms that will need integration.

Worked Example: Division Before Integration

Worked Example: Division Before Integration

Evaluate \(\int \frac{x^2+1}{x+1}\,dx\). One candidate is to simplify the rational expression by polynomial division. Since \(x^2+1=(x+1)(x-1)+2\),

$$ \frac{x^2+1}{x+1}=x-1+\frac{2}{x+1}, \qquad x\ne -1. $$

Therefore, on any interval that does not cross \(x=-1\),

$$ \begin{aligned} \int \frac{x^2+1}{x+1}\,dx &=\int\left(x-1+\frac{2}{x+1}\right)\,dx\\ &=\frac{x^2}{2}-x+2\ln|x+1|+C. \end{aligned} $$

As a second candidate, split the numerator first:

$$ \frac{x^2+1}{x+1}=\frac{x^2}{x+1}+\frac{1}{x+1}. $$

The first fraction still needs simplification. Using \(x^2=(x+1)(x-1)+1\), it becomes \(x-1+\frac{1}{x+1}\). Adding the remaining fraction gives \(x-1+\frac{2}{x+1}\), so the same antiderivative follows. This route adds a split and then a separate simplification; division exposes the integrable terms directly.

Check:

$$ \begin{aligned} \frac{d}{dx}\left(\frac{x^2}{2}-x+2\ln|x+1|\right) &=x-1+\frac{2}{x+1}\\ &=\frac{(x-1)(x+1)+2}{x+1}\\ &=\frac{x^2+1}{x+1}, \qquad x\ne -1. \end{aligned} $$

The restriction \(x\ne-1\) matters because the original integrand is undefined there. A domain condition is part of checking that a proposed antiderivative applies to the integrand under consideration.

A Concrete Algebra Pitfall

A method that is efficient in principle can still fail if a transformation is carried out incorrectly. For example, after expanding the first worked integrand, it would be wrong to write

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

The final term is incorrect: multiplying the constant \(1\) by \(x\) gives \(x\), not \(1\). The correct expansion is

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

The wrong expansion would lead to the proposed antiderivative \(\frac{x^8}{8}+\frac{x^6}{2}+\frac{3x^4}{4}+x+C\). Differentiating gives \(x^7+3x^5+3x^3+1\), which is not the original integrand. Checking exposes the mistake. In practice, a compact route can reduce the number of expansion steps where such errors occur, but every route still needs accurate algebra.

Make the Comparison Explicit

A short comparison table can help when two routes seem plausible. Record what each route does to the integrand rather than choosing solely by habit.

QuestionWhat to look for
Resulting integrandFewer terms, familiar forms, or less complicated factors
TransformationsNecessary rewrites and substitutions, including all variable replacements
CheckingWhether differentiating the proposed answer recovers the original integrand clearly

This comparison is especially useful when different methods appear equally plausible. A method can win by producing fewer terms, by avoiding awkward algebra, or by making the final check more transparent. The best choice is the one that reduces the total work while preserving a clear path back to the original integrand.

Check Your Understanding

For each question, compare the algebra required by the candidate methods, not just the names of the methods.

  1. For \(\int x(x^2+4)^2\,dx\), what new integrand results from setting \(u=x^2+4\)? How many terms result from expansion instead?
  2. Why must a substitution account for every occurrence of the original variable in the integrand?
  3. In the radical example, what additional replacement is needed after setting \(u=x^2+1\)?
  4. Why can an algebraically correct antiderivative still require a domain qualification?
  5. What does differentiating a proposed antiderivative tell you about a calculation?

Test yourself: Calculus II final exam practice

Ready to check what you know? Work a full-length practice final, then open the complete worked solutions.

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers the full Calculus AB & BC curriculum (the core of Calculus I and II): 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