Tutorials › AP Calculus › Partial Fractions with Repeated Linear Factors

Numerical and BC Integration Methods · Tutorial 525 of 999

Partial Fractions with Repeated Linear Factors

Learn to include each required power of a repeated linear factor, integrate the resulting terms, and verify your answer by differentiation.

Advanced 9 min read

What You'll Learn

  • Write the partial-fraction terms required by a repeated linear factor of multiplicity \(m\).
  • Determine coefficients by clearing denominators and matching polynomial coefficients.
  • Integrate first-power terms using logarithms and higher-power terms using the power rule.
  • Use absolute values correctly in logarithmic antiderivatives.
  • Check a partial-fraction antiderivative by differentiating it.
  • Recognize why omitting an intermediate power can make a decomposition impossible.

Why Repeated Factors Need Special Attention

A rational function can have a denominator containing the same linear factor more than once. The repeated factor affects the form of its partial-fraction decomposition: a factor with multiplicity three requires terms for the first, second, and third powers. Those terms do not all integrate in the same way. The first-power term produces a logarithm, while higher powers produce negative powers.

The essential task is to include the full sequence of required powers before finding coefficients. Leaving one out can make a correct decomposition impossible, even if the remaining terms look plausible.

Definition: If a denominator contains \((x-r)^m\), where \(m\) is a positive integer, then its partial-fraction contribution has the form \( \frac{A_1}{x-r}+\frac{A_2}{(x-r)^2}+\cdots+\frac{A_m}{(x-r)^m} \), where each \(A_j\) is a constant. The terms for every power from \(1\) through \(m\) must be included in the general setup.

Setting Up the Decomposition

For a proper rational function, the degree of the numerator is less than the degree of the denominator. If a rational function is not proper, polynomial division must be done first. When the denominator consists of linear factors, each distinct factor contributes its own terms. A factor \((x-r)^m\) contributes all powers from \((x-r)^{-1}\) through \((x-r)^{-m}\).

For example, a proper rational function with denominator \((x-1)^2(x+2)\) has the form

$$ \frac{P(x)}{(x-1)^2(x+2)} = \frac{A}{x-1}+\frac{B}{(x-1)^2}+\frac{C}{x+2}. $$

To determine the constants, multiply both sides by the original denominator. The result is a polynomial identity, so the coefficients of matching powers of \(x\) must be equal. The earlier material on partial fractions with distinct linear factors uses the same clearing-denominators idea; the additional feature here is the complete set of powers for each repeated factor.

Key rule: A repeated linear factor of multiplicity \(m\) requires one term for each denominator power \(1,2,\ldots,m\). The numerator of each term is a constant when the factor is linear and the rational function is proper.

Why Every Power Is Included

The need for the full sequence can be understood from the algebra after clearing denominators. Multiplying by \((x-r)^m\) turns the contribution from the repeated factor into a polynomial of the form

$$ A_1(x-r)^{m-1}+A_2(x-r)^{m-2}+\cdots+A_{m-1}(x-r)+A_m. $$

Each coefficient \(A_j\) controls a different power of \((x-r)\) in this polynomial. Omitting one of the terms forces the corresponding coefficient to be zero, which may not be consistent with the numerator of the original rational function. For instance, when \(m=3\), the full contribution is \(A_1(x-r)^2+A_2(x-r)+A_3\). The linear, constant, and quadratic parts all have a place in the identity. A particular coefficient may turn out to be zero, but the term should still be included when setting up the general form.

Integrating the Terms

Once the decomposition is found, integrate each term. For \(x\ne r\), the first power gives a logarithm. For powers greater than one, apply the power rule to \((x-r)^{-j}\). The antiderivative formulas are

$$ \int \frac{1}{x-r}\,dx=\ln|x-r|+C, \qquad \int \frac{1}{(x-r)^j}\,dx = -\frac{1}{(j-1)(x-r)^{j-1}}+C \quad (j\ge 2). $$

The logarithm uses an absolute value because the real logarithm is defined for positive inputs, while \(x-r\) can be positive or negative. Each formula applies on an interval that does not contain \(r\); the rational function itself is undefined at \(x=r\).

To justify the second formula, write the integrand as \((x-r)^{-j}\). The derivative of \((x-r)^{1-j}\), by the chain rule, is \((1-j)(x-r)^{-j}\). Therefore multiplying \((x-r)^{1-j}\) by \(1/(1-j)\) gives an antiderivative. Since \(1/(1-j)=-1/(j-1)\), this is precisely the displayed formula. For the first formula, the derivative of \(\ln|x-r|\) is \(1/(x-r)\) wherever \(x\ne r\).

Integration rule: A term \(A_1/(x-r)\) integrates to \(A_1\ln|x-r|\). For \(j\ge2\), a term \(A_j/(x-r)^j\) integrates to \(-A_j/((j-1)(x-r)^{j-1})\). Add one constant of integration to the resulting antiderivative.

Worked Examples

Worked Example: A Repeated Factor of Order Two

Decompose and integrate \( \frac{3x+5}{(x-1)^2} \).

The denominator has a repeated factor of multiplicity two, so include both required terms:

$$ \frac{3x+5}{(x-1)^2} = \frac{A}{x-1}+\frac{B}{(x-1)^2}. $$

Multiply both sides by \((x-1)^2\):

$$ 3x+5=A(x-1)+B=Ax-A+B. $$

Match coefficients. The coefficient of \(x\) gives \(A=3\). The constant terms give \(5=-A+B\), so \(5=-3+B\), and \(B=8\). Thus

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

Integrate each term:

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

Check by differentiation: \( \frac{d}{dx}\left(3\ln|x-1|-8(x-1)^{-1}\right)=3/(x-1)+8/(x-1)^2 \). Combining these terms gives \( [3(x-1)+8]/(x-1)^2=(3x+5)/(x-1)^2 \), as required.

Worked Example: A Repeated Factor Alongside a Distinct Factor

Decompose and integrate \( \frac{3x^2-x-5}{(x-1)^2(x+2)} \).

The repeated factor \((x-1)^2\) requires two terms, and the distinct factor \(x+2\) requires one:

$$ \frac{3x^2-x-5}{(x-1)^2(x+2)} = \frac{A}{x-1}+\frac{B}{(x-1)^2}+\frac{C}{x+2}. $$

Clear the denominators:

$$ 3x^2-x-5 = A(x-1)(x+2)+B(x+2)+C(x-1)^2. $$

Expand each product: \((x-1)(x+2)=x^2+x-2\), and \((x-1)^2=x^2-2x+1\). The right side becomes

$$ (A+C)x^2+(A+B-2C)x+(-2A+2B+C). $$

Matching coefficients gives \(A+C=3\), \(A+B-2C=-1\), and \(-2A+2B+C=-5\). The values \(A=2\), \(B=-1\), \(C=1\) satisfy all three equations: \(2+1=3\), \(2-1-2=-1\), and \(-4-2+1=-5\). Therefore

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

Integrating gives

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

For the check, differentiate the proposed antiderivative to obtain \(2/(x-1)-1/(x-1)^2+1/(x+2)\). With the common denominator \((x-1)^2(x+2)\), the numerator is \(2(x-1)(x+2)-(x+2)+(x-1)^2\). Expanding gives \(2x^2+2x-4-x-2+x^2-2x+1=3x^2-x-5\). This recovers the original integrand.

Worked Example: A Repeated Factor of Order Three

Decompose and integrate \( \frac{x^2+4x}{(x+1)^3} \).

Since the repeated factor has multiplicity three, include all three powers:

$$ \frac{x^2+4x}{(x+1)^3} = \frac{A}{x+1}+\frac{B}{(x+1)^2}+\frac{C}{(x+1)^3}. $$

After multiplying by \((x+1)^3\), the identity is

$$ x^2+4x=A(x+1)^2+B(x+1)+C. $$

Expand the right side: \(A(x^2+2x+1)+Bx+B+C=Ax^2+(2A+B)x+(A+B+C)\). Matching coefficients gives \(A=1\), \(2A+B=4\), and \(A+B+C=0\). Thus \(B=2\), and \(1+2+C=0\) gives \(C=-3\). The decomposition is

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

Integrate term by term:

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

Differentiate to check: the derivative is \(1/(x+1)+2/(x+1)^2-3/(x+1)^3\). Putting these terms over \((x+1)^3\) gives numerator \((x+1)^2+2(x+1)-3=x^2+4x\). The original integrand is recovered.

A Common Mistake: Skipping an Intermediate Power

A frequent error is to include only the first and last powers for a repeated factor. For example, one might try to write

$$ \frac{1}{(x-1)^2} \overset{\text{wrong}}{=} \frac{A}{x-1}+\frac{C}{(x-1)^3}. $$

Clearing denominators by multiplying through by \((x-1)^3\) would require

$$ x-1=A(x-1)^2+C. $$

The coefficient of \(x^2\) on the right is \(A\), so matching the left side forces \(A=0\). But then the right side is the constant \(C\), which cannot equal \(x-1\) for every \(x\). The proposed form is impossible.

The correction is to use the powers required by the denominator structure, including the missing second power. In this case, \(1/(x-1)^2\) is already the second-power term; when setting up a general decomposition for a denominator containing \((x-1)^3\), include terms with powers one, two, and three. Do not decide in advance that a term can be omitted; let coefficient matching show whether its coefficient is zero.

A Reliable Procedure

1
Check the rational function.
If its numerator degree is at least its denominator degree, perform polynomial division first.
2
Write the complete form.
For every repeated linear factor of multiplicity \(m\), include one term for each power from one through \(m\).
3
Find the constants.
Clear denominators, expand, and match coefficients in the resulting polynomial identity.
4
Integrate each term.
Use a logarithm for a first power and the power rule for each higher power.
5
Check the result.
Differentiate the antiderivative and verify that it equals the original rational function.

Why the Structure Matters

The decomposition separates a complicated rational function into terms whose antiderivatives are familiar. The repeated factor determines which powers appear, and therefore whether each term produces a logarithm or a negative power. If even one required term is absent, coefficient matching may fail; if the decomposition is correct, integrating term by term and differentiating to check provides a direct way to confirm the result.

Check Your Understanding

Use the repeated-factor rules to answer these questions.

  1. What terms must be included for a repeated factor \((x-3)^4\)?
  2. Why does a term with denominator \((x-r)\) integrate differently from one with denominator \((x-r)^3\)?
  3. Set up, but do not solve, the partial-fraction form for a proper rational function with denominator \((x+1)^2(x-4)^3\).
  4. Integrate \(5/(x+2)^2\), and check your result by differentiation.
  5. Why should a coefficient be allowed to equal zero rather than omitting its term before coefficient matching?

Test yourself: AP Calculus practice exams

Ready to check what you know? Work an AP-style practice exam, then open the full solutions.

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers all of AP Calculus AB & BC: 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