Tutorials › Calculus II › Integrating the Polynomial Quotient

Improper Rational Functions · Tutorial 216 of 998

Integrating the Polynomial Quotient

Use the quotient-remainder identity to organize an indefinite integral, integrate its polynomial part accurately, and verify the combined result.

Intermediate 10 min read

What You'll Learn

  • Identify the polynomial quotient and proper remainder in an improper rational function.
  • Integrate each term of the polynomial quotient using the power rule.
  • Combine polynomial antiderivatives with partial-fraction antiderivatives.
  • Keep track of where the rational function is defined and how constants of integration apply.
  • Verify a proposed antiderivative by differentiating it.
  • Recognize and correct common errors when integrating the quotient.

Why Divide Before Integrating?

An improper rational function is a quotient of polynomials in which the numerator's degree is at least the denominator's degree. Partial fractions are designed for a proper rational function, where the numerator's degree is smaller. Polynomial division resolves the mismatch: it separates the integrand into a polynomial and a proper rational remainder.

That separation is useful for integration because the polynomial part can be integrated directly, one power at a time. The proper remainder can then be expressed using partial fractions, and its terms can be integrated using the appropriate antiderivative formulas. The final answer combines both parts.

Key idea: Divide first, then integrate the polynomial quotient term by term and add the antiderivative of the proper remainder. Leaving out the quotient means leaving out part of the original integrand.

The Quotient-Remainder Identity

Let \(P(x)\) and \(Q(x)\) be polynomials, with \(Q\) not the zero polynomial. Polynomial division gives unique polynomials \(S(x)\) and \(R(x)\) such that

$$ P(x)=Q(x)S(x)+R(x), \qquad R(x)=0\ \text{or}\ \deg R<\deg Q. $$

Where \(Q(x)\ne 0\), dividing this identity by \(Q(x)\) yields

$$ \frac{P(x)}{Q(x)} = S(x)+\frac{R(x)}{Q(x)}. $$

The polynomial \(S(x)\) is the quotient, and \(R(x)/Q(x)\) is the proper rational remainder when \(R\ne 0\). If the remainder is then decomposed into partial fractions, the original integral becomes the sum of the integral of \(S(x)\) and the integrals of those partial-fraction terms.

Rule: If \(S(x)=a_0+a_1x+\cdots+a_nx^n\), then an antiderivative of \(S\) is \(\frac{a_0}{1}x+\frac{a_1}{2}x^2+\cdots+\frac{a_n}{n+1}x^{n+1}\). Each coefficient is divided by the new exponent. A constant of integration is added to the full antiderivative.

Why the Terms Can Be Integrated Separately

The key fact is the linearity of differentiation. If \(F'(x)=f(x)\) and \(G'(x)=g(x)\), then \((F+G)'=f+g\). Multiplying an antiderivative by a constant works in the same way: \((cF)'=cf\). Therefore, once an integrand has been expressed as a sum of terms, we can find an antiderivative of each term and add the results.

For the polynomial part, the power rule supplies the needed antiderivatives. For example, when \(k\) is a nonnegative integer, the derivative of \(x^{k+1}/(k+1)\) is \(x^k\). Thus each monomial in the quotient has a direct antiderivative. The partial-fraction terms are handled separately using their standard antiderivatives; the examples below use simple linear factors.

Justification: Suppose polynomial division and partial fractions give \(\frac{P(x)}{Q(x)}=S(x)+\sum_{j=1}^{m} f_j(x)\) on an interval where \(Q(x)\ne0\). If \(A'(x)=S(x)\) and \(F_j'(x)=f_j(x)\) for each \(j\), then \[ \left(A(x)+\sum_{j=1}^{m}F_j(x)\right)' =A'(x)+\sum_{j=1}^{m}F_j'(x) =S(x)+\sum_{j=1}^{m}f_j(x) =\frac{P(x)}{Q(x)}. \] So adding the separate antiderivatives gives an antiderivative of the original rational function on that interval.

Worked Examples

Worked Example: A Linear Quotient and One Partial Fraction

Integrate \(\frac{x^2+3x+5}{x+1}\). The numerator has degree \(2\), while the denominator has degree \(1\), so first divide. The leading quotient term is \(x\), since \(x^2/x=x\). Multiplying gives \(x(x+1)=x^2+x\). Subtracting from the numerator leaves \(2x+5\). The next quotient term is \(2\), since \(2x/x=2\). Multiplying gives \(2(x+1)=2x+2\), leaving remainder \(3\). Therefore,

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

Integrate each term. The polynomial terms give \(\int x\,dx=x^2/2\) and \(\int 2\,dx=2x\). Since the derivative of \(\ln|x+1|\) is \(1/(x+1)\) wherever \(x\ne-1\), the remaining term gives \(3\ln|x+1|\). Thus

$$ \int\frac{x^2+3x+5}{x+1}\,dx = \frac{x^2}{2}+2x+3\ln|x+1|+C. $$

Check by differentiation: the derivative of the proposed answer is \(x+2+3/(x+1)\). Recombining over the common denominator gives \[ x+2+\frac{3}{x+1} =\frac{(x+2)(x+1)+3}{x+1} =\frac{x^2+3x+2+3}{x+1} =\frac{x^2+3x+5}{x+1}. \] This is the original integrand. The result holds on either interval that does not contain \(x=-1\), with the constant chosen on that interval.

Worked Example: A Quotient and Two Distinct Linear Factors

Integrate \(\frac{x^3+2x^2+5x+4}{x^2+x-2}\). Factor the denominator as \(x^2+x-2=(x-1)(x+2)\). For the division, the first quotient term is \(x\), because \(x^3/x^2=x\). Subtracting \(x(x^2+x-2)=x^3+x^2-2x\) leaves \(x^2+7x+4\). The next quotient term is \(1\). Subtracting \(x^2+x-2\) leaves \(6x+6\). Hence

$$ x^3+2x^2+5x+4 =(x^2+x-2)(x+1)+(6x+6). $$

The proper remainder is \(\frac{6x+6}{(x-1)(x+2)}\). Write it as \(A/(x-1)+B/(x+2)\). Clearing the denominators gives \(6x+6=A(x+2)+B(x-1)\). Setting \(x=1\) gives \(12=3A\), so \(A=4\). Setting \(x=-2\) gives \(-6=-3B\), so \(B=2\). Therefore,

$$ \frac{x^3+2x^2+5x+4}{x^2+x-2} =x+1+\frac{4}{x-1}+\frac{2}{x+2}. $$

Integrate the polynomial quotient term by term: \(\int x\,dx=x^2/2\) and \(\int 1\,dx=x\). The two simple linear terms give logarithms, so

$$ \int\frac{x^3+2x^2+5x+4}{x^2+x-2}\,dx = \frac{x^2}{2}+x+4\ln|x-1|+2\ln|x+2|+C. $$

For a check, differentiate: the result is \(x+1+4/(x-1)+2/(x+2)\). Combining the fractions, \[ \frac{4}{x-1}+\frac{2}{x+2} =\frac{4(x+2)+2(x-1)}{(x-1)(x+2)} =\frac{6x+6}{x^2+x-2}. \] Adding \(x+1\) over the same denominator gives numerator \((x+1)(x^2+x-2)+6x+6=x^3+2x^2+5x+4\), as required. The original denominator vanishes at \(1\) and \(-2\), so the antiderivative is considered on intervals that do not cross either value.

Worked Example: A Quadratic Quotient with a Proper Remainder

Integrate \(\frac{x^4-2x^3+2x^2+5x+4}{x^2-1}\). Divide the leading terms: \(x^4/x^2=x^2\). Subtracting \(x^2(x^2-1)=x^4-x^2\) leaves \(-2x^3+3x^2+5x+4\). The next quotient term is \(-2x\). Subtracting \(-2x(x^2-1)=-2x^3+2x\) leaves \(3x^2+3x+4\). The next quotient term is \(3\). Subtracting \(3(x^2-1)=3x^2-3\) leaves \(3x+7\). Thus

$$ \frac{x^4-2x^3+2x^2+5x+4}{x^2-1} =x^2-2x+3+\frac{3x+7}{x^2-1}. $$

Since \(x^2-1=(x-1)(x+1)\), decompose the proper remainder as \(A/(x-1)+B/(x+1)\). Clearing denominators gives \(3x+7=A(x+1)+B(x-1)\). Setting \(x=1\) gives \(10=2A\), so \(A=5\). Setting \(x=-1\) gives \(4=-2B\), so \(B=-2\). Therefore the integrand is \(x^2-2x+3+5/(x-1)-2/(x+1)\).

Integrating the quotient term by term gives \(x^3/3-x^2+3x\). Integrating the two simple linear terms gives the combined antiderivative

$$ \int\frac{x^4-2x^3+2x^2+5x+4}{x^2-1}\,dx = \frac{x^3}{3}-x^2+3x+5\ln|x-1|-2\ln|x+1|+C. $$

Differentiate to check: the derivative is \(x^2-2x+3+5/(x-1)-2/(x+1)\). The fractional part recombines as \[ \frac{5(x+1)-2(x-1)}{x^2-1} =\frac{3x+7}{x^2-1}. \] Combining this with the quotient reproduces the division identity above, and hence the original integrand. The denominator excludes \(x=-1\) and \(x=1\).

Constants and the Domain of an Antiderivative

An indefinite integral describes a family of antiderivatives. If two antiderivatives of the same function are defined on a connected interval, they differ by a constant. For rational functions, denominator zeros are excluded from the domain. These excluded values may divide the domain into separate intervals, and the constant can be chosen independently on each interval.

For example, an expression involving \(\ln|x-1|\) is defined for \(x<1\) and for \(x>1\), but not at \(x=1\). An antiderivative formula may be written on either interval; it does not make the original rational function defined at the excluded point. Keeping track of these restrictions is part of stating the result correctly.

A Common Error: Dropping the Quotient

In the first worked example, the division gives \(x+2+3/(x+1)\). If the quotient is mistakenly discarded, one might write \(3\ln|x+1|+C\) as the answer. Differentiating that expression gives only \(3/(x+1)\), not the original integrand. The correction is to integrate every part of the division identity: \(x\) contributes \(x^2/2\), \(2\) contributes \(2x\), and the remainder contributes \(3\ln|x+1|\).

A related error is to integrate \(x\) as \(\ln|x|\). That is incorrect because \(\frac{d}{dx}\ln|x|=1/x\), while \(\frac{d}{dx}(x^2/2)=x\). Differentiating the proposed antiderivative is an efficient way to catch either mistake.

A Reliable Sequence of Steps

1
Divide the polynomials.
Find \(S\) and \(R\) with \(P=QS+R\) and \(R=0\) or \(\deg R<\deg Q\).
2
Decompose the proper remainder.
Use partial fractions on \(R/Q\) when the remainder is nonzero.
3
Integrate all terms.
Apply the power rule to every quotient term and integrate the partial-fraction terms.
4
State the constant and domain.
Add \(C\) and exclude any values that make the original denominator zero.
5
Verify by differentiation.
Differentiate the complete answer and check that it equals the original rational function.

Check Your Understanding

Use the quotient-remainder identity to organize each integral. When checking, differentiate the complete antiderivative and compare it with the original integrand.

  1. What condition on the degrees of \(R\) and \(Q\) makes \(R/Q\) a proper rational function?
  2. For a quotient \(S(x)=3x^2-4x+5\), what is its term-by-term antiderivative?
  3. Why does omitting a nonzero polynomial quotient generally produce an incorrect antiderivative?
  4. Where is an antiderivative involving \(\ln|x-2|\) excluded from its domain?
  5. What does differentiating a proposed answer verify in an integration problem?

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