Tutorials › Calculus II › Reducing Polynomial Numerators Before Integration

Completing the Square Techniques · Tutorial 255 of 998

Reducing Polynomial Numerators Before Integration

Divide first, then split the remainder into a multiple of the denominator's derivative plus a constant, to integrate with a polynomial, a logarithm, and an arctangent.

Intermediate 10 min read

What You'll Learn

  • Recognize when the numerator degree is at least the denominator degree.
  • Use polynomial division to separate a polynomial from a proper fraction.
  • Split a linear remainder into a derivative term and a constant term.
  • Integrate the polynomial, logarithm, and arctangent pieces.
  • Verify by differentiation and evaluate definite integrals.

Improper Rational Functions

A rational function is improper when the degree of the numerator is at least the degree of the denominator. The reciprocal and linear-numerator formulas for irreducible quadratics apply only to proper fractions, so an improper fraction must be divided first. The division produces a polynomial quotient, which is integrated by the power rule, plus a remainder of lower degree over the quadratic, which is integrated by the logarithm and arctangent methods.

With a quadratic denominator, the remainder has degree at most one, so it can always be written as \(px+q\). The decomposition of this remainder is the second key step, and it is what links the present tutorial to the previous one.

Strategy: (1) Divide the numerator by the quadratic. (2) Write the remainder \(px+q\) as \(\frac p2(2x+b)+\bigl(q-\frac{pb}{2}\bigr)\) for the denominator \(x^2+bx+c\). (3) Integrate: \(\frac p2\ln(x^2+bx+c)\) plus an arctangent.

Two Ways to Divide

Long division works for any numerator, but for simple numerators a shortcut is faster: add and subtract the denominator. For example, \(x^2=(x^2+4)-4\), so \(\frac{x^2}{x^2+4}=1-\frac{4}{x^2+4}\). In general, rewrite the numerator so that a multiple of the denominator appears, then cancel it. This numerator decomposition is the technique used in the earlier tutorials for \(\frac{x^2}{1+x^2}\), and it works whenever the leading coefficients are easy to match.

Worked Examples

Worked Example: Shortcut Decomposition

Find \(\int\frac{x^2}{x^2+4}\,dx\) and evaluate it from \(0\) to \(2\).

Write \(\frac{x^2}{x^2+4}=1-\frac{4}{x^2+4}\). The integral of \(\frac{4}{x^2+4}\) is \(4\cdot\frac12\arctan\frac x2=2\arctan\frac x2\). Therefore

$$ \int\frac{x^2}{x^2+4}\,dx=x-2\arctan\frac x2+C,\qquad \int_0^2\frac{x^2}{x^2+4}\,dx=2-2\cdot\frac\pi4=2-\frac\pi2\approx0.429. $$

The integrand is \(0\) at \(x=0\) and \(\frac12\) at \(x=2\), so an area of about \(0.43\) over an interval of length \(2\) is plausible.

Worked Example: Division with an Irreducible Denominator

Find \(\int\frac{x^2+x}{x^2+2x+5}\,dx\).

Divide: \(x^2+x=1\cdot(x^2+2x+5)+(-x-5)\), so the integrand is \(1-\frac{x+5}{x^2+2x+5}\). Split the numerator: \(x+5=\frac12(2x+2)+4\). Then \(\int\frac{x+5}{x^2+2x+5}\,dx=\frac12\ln(x^2+2x+5)+4\int\frac{dx}{(x+1)^2+4}=\frac12\ln(x^2+2x+5)+2\arctan\frac{x+1}{2}\). Therefore

$$ \int\frac{x^2+x}{x^2+2x+5}\,dx=x-\frac12\ln(x^2+2x+5)-2\arctan\frac{x+1}{2}+C. $$

The quotient \(1\) contributes the term \(x\). The remainder carries the logarithm and the arctangent, with signs reversed by the minus sign in the remainder.

Worked Example: A Cubic Numerator

Find \(\int\frac{x^3}{x^2+1}\,dx\) and evaluate it from \(0\) to \(1\).

Divide: \(x^3=x(x^2+1)-x\), so the integrand is \(x-\frac{x}{x^2+1}\). Integrating gives

$$ \int\frac{x^3}{x^2+1}\,dx=\frac{x^2}{2}-\frac12\ln(x^2+1)+C,\qquad \int_0^1\frac{x^3}{x^2+1}\,dx=\frac12-\frac12\ln2\approx0.153. $$

No arctangent appears here because the remainder \(-x\) is exactly a multiple of the derivative of the denominator.

Worked Example: A General Quadratic Numerator

Find \(\int\frac{2x^2-3x+1}{x^2-2x+2}\,dx\) and evaluate it from \(1\) to \(2\).

Divide: \(2x^2-3x+1=2(x^2-2x+2)+(x-3)\). The remainder splits as \(x-3=\frac12(2x-2)-2\). Then the integral of \(\frac{x-3}{x^2-2x+2}\) is \(\frac12\ln(x^2-2x+2)-2\arctan(x-1)\). Hence

$$ \int\frac{2x^2-3x+1}{x^2-2x+2}\,dx=2x+\frac12\ln(x^2-2x+2)-2\arctan(x-1)+C. $$

On \([1,2]\), the value is \(\bigl(4+\frac12\ln2-\frac\pi2\bigr)-\bigl(2+0-0\bigr)=2+\frac12\ln2-\frac\pi2\approx0.776\).

Worked Example: A Cubic over a Shifted Quadratic

Find \(\int\frac{x^3+x}{x^2+2x+2}\,dx\).

Divide: \(x^3+x=(x-2)(x^2+2x+2)+(3x+4)\). The remainder splits as \(3x+4=\frac32(2x+2)+1\). Since \(x^2+2x+2=(x+1)^2+1\), the integral is

$$ \int\frac{x^3+x}{x^2+2x+2}\,dx=\frac{x^2}{2}-2x+\frac32\ln(x^2+2x+2)+\arctan(x+1)+C. $$

The quotient \(x-2\) integrates to \(\frac{x^2}{2}-2x\). The remainder produces \(\frac32\ln(\cdot)\) and \(\arctan(x+1)\).

A Reliable Procedure

1
Compare degrees.
If the numerator has degree at least \(2\), divide.
2
Divide.
Get a polynomial quotient and a remainder \(px+q\).
3
Split the remainder.
Write \(px+q=\frac p2(2x+b)+\bigl(q-\frac{pb}{2}\bigr)\).
4
Integrate each piece.
Use the power rule, the logarithm, and the arctangent formula.
5
Check.
Differentiate and recombine over the common denominator.

Common Mistakes

The leading mistake is to skip the division and apply the arctangent formula to an improper fraction. Another is to drop the remainder or to lose its sign: in the second example the remainder is \(-x-5\), and the minus sign carries into the logarithm and arctangent. A third is to forget the factor \(\frac12\) in the logarithm term when the numerator is split with \(2x+b\).

Interpreting the Result

For large \(|x|\), the proper fraction part tends to zero, so the integrand is close to the polynomial quotient and the antiderivative is close to the polynomial's antiderivative, with a logarithmic correction. This explains why every answer above begins with a polynomial term and then adds slowly varying terms. It also gives a quick check: the leading term of your answer must match the integral of the quotient.

A Numerical Spot Check

Check \(\int_0^1\frac{x^3}{x^2+1}\,dx\approx0.153\) with Simpson's rule: the heights are \(0\), \(\frac{0.125}{1.25}=0.1\), and \(\frac12\). Then \(\frac{0.5}{3}(0+0.4+0.5)=0.15\), which agrees to two digits with \(0.1534\).

Practice Problems with Answers

Try each problem before reading the answer. Every answer below was checked by differentiation or by numerical integration.

  1. Evaluate \(\int_0^2\frac{x^2}{x^2+4}\,dx\). Hint: write \(x^2=(x^2+4)-4\). Answer: \(2-\frac\pi2\)
  2. Find an antiderivative of \(\frac{x^2+x}{x^2+2x+5}\). Hint: the remainder is \(-x-5\). Answer: \(x-\frac12\ln(x^2+2x+5)-2\arctan\frac{x+1}{2}\)
  3. Evaluate \(\int_0^1\frac{x^3}{x^2+1}\,dx\). Hint: write \(x^3=x(x^2+1)-x\). Answer: \(\frac12-\frac12\ln2\)
  4. Find an antiderivative of \(\frac{2x^2-3x+1}{x^2-2x+2}\). Hint: the remainder is \(x-3\). Answer: \(2x+\frac12\ln(x^2-2x+2)-2\arctan(x-1)\)
Takeaway: Divide an improper fraction first, split the linear remainder into a derivative part and a constant part, and integrate the polynomial, logarithm, and arctangent pieces separately. Then differentiate, or recombine the terms, to confirm the result.

The General Formula for the Remainder

For a proper fraction with a monic quadratic denominator, \(\int\frac{px+q}{x^2+bx+c}\,dx=\frac p2\ln(x^2+bx+c)+\Bigl(q-\frac{pb}{2}\Bigr)\int\frac{dx}{x^2+bx+c}\). The first term comes from the part of the numerator equal to \(\frac p2\) times the derivative \(2x+b\) of the denominator, and the second term takes whatever is left. For an irreducible denominator, the last integral is the arctangent of the previous tutorial. This formula is the backbone of the present method: after division, every remainder is processed by it.

Worked Example: Full Procedure on a Positive-Leading-Coefficient Case

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

Divide: \(3x^2+2x+4=3(x^2+x+1)+(-x+1)\). The remainder is \(-x+1\), so \(p=-1\), \(q=1\), \(b=1\). Then \(q-\frac{pb}{2}=1+\frac12=\frac32\). The remainder integral is \(-\frac12\ln(x^2+x+1)+\frac32\int\frac{dx}{x^2+x+1}\), and \(\int\frac{dx}{x^2+x+1}=\frac{2}{\sqrt3}\arctan\frac{2x+1}{\sqrt3}\). Hence

$$ \int\frac{3x^2+2x+4}{x^2+x+1}\,dx=3x-\frac12\ln(x^2+x+1)+\sqrt3\arctan\frac{2x+1}{\sqrt3}+C. $$

The coefficient of the arctangent is \(\frac32\cdot\frac{2}{\sqrt3}=\sqrt3\). Writing it as \(\frac{3}{\sqrt3}\) or \(\sqrt3\) is equivalent.

Checking by Recombination

An efficient check recombines the pieces over the common denominator. For the second example, let \(Q=x^2+2x+5=(x+1)^2+4\). The derivative of the answer is \(1-\frac{x+1}{Q}-\frac{1}{1+\frac{(x+1)^2}{4}}\), and the last fraction equals \(\frac{4}{Q}\). So the derivative is \(\frac{Q-(x+1)-4}{Q}=\frac{x^2+2x+5-x-5}{Q}=\frac{x^2+x}{Q}\), the original integrand. When a recombination check is awkward, compare numerical values of the integrand and of a finite-difference estimate of the antiderivative's derivative.

Domain and Continuity

The denominators in this tutorial are irreducible quadratics, which never vanish for real \(x\). The integrand is therefore continuous on the entire real line, and the logarithm \(\ln(x^2+bx+c)\) has a positive argument, so no absolute values are needed. This makes the whole family friendlier than rational functions with real roots, where the logarithms need absolute values and intervals must avoid the poles.

Where This Fits in the Course

This tutorial belongs to the module “Completing the Square Techniques”. The tutorial just before it is “Linear Numerators Over Irreducible Quadratics,” and the one that follows is “Definite Integrals of Inverse-Tangent Forms.” It combines the linear-numerator method from the previous tutorial with polynomial division. The following tutorial applies the same ideas to definite integrals, where the exact values of the arctangent at standard angles make the answers compact. Practice the division step until it is automatic, since an error there propagates into every later term of the answer.

Check Your Understanding

Use the method and examples above to answer these questions.

  1. Why must \(\frac{x^3}{x^2+1}\) be divided before integration?
  2. Write \(x+5\) as a multiple of \(2x+2\) plus a constant.
  3. Evaluate \(\int_0^1\frac{x^3}{x^2+1}\,dx\).
  4. Which pieces of the answer come from the quotient and which from the remainder?
  5. Differentiate \(x-2\arctan\frac x2\) and confirm \(\frac{x^2}{x^2+4}\).

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