Tutorials › Calculus II › Coefficient Matching For Distinct Linear Factors

Partial Fractions Foundations · Tutorial 180 of 998

Coefficient Matching For Distinct Linear Factors

Use a cleared-denominator identity to form and solve coefficient equations, then verify the resulting decomposition.

Beginner 9 min read

What You'll Learn

  • Clear denominators to turn a rational decomposition into a polynomial identity
  • Expand products associated with distinct linear factors accurately
  • Match coefficients of like powers to form a system of equations
  • Solve and check the resulting partial-fraction constants
  • Distinguish what root substitution determines from what coefficient matching must still find

Why Match Coefficients?

Partial fractions rewrite a rational function as a sum of simpler rational functions. When the denominator has distinct linear factors, each fraction in the standard partial-fraction form has a constant numerator. The constants can be found by clearing denominators and comparing coefficients of powers of \(x\).

For a proper rational function whose denominator is a product of \(n\) distinct linear factors, root substitution can determine the \(n\) fraction constants directly. Coefficient matching is still useful: it gives a systematic way to solve for them and check the result. It is especially important when the full decomposition also has a polynomial part, because evaluating at the denominator's roots does not determine that part.

Definition: To match coefficients, first clear the denominators in a proposed partial-fraction identity. Expand both sides as polynomials, then equate the coefficients of the same powers of \(x\). This produces equations for the unknown constants.

From a Rational Equation to a Polynomial Identity

Suppose the denominator factors into distinct linear factors, and consider a proper rational function with three such factors. Its proposed form is

$$ \frac{P(x)}{(x-a)(x-b)(x-c)} = \frac{A}{x-a}+\frac{B}{x-b}+\frac{C}{x-c}, $$

where \(P(x)\) is a polynomial of degree less than \(3\), and \(A,B,C\) are constants to be found. For \(x\ne a,b,c\), multiply both sides by \((x-a)(x-b)(x-c)\). The result is

$$ P(x)=A(x-b)(x-c)+B(x-a)(x-c)+C(x-a)(x-b). $$

Both sides are now polynomials. Expand the products, collect like powers, and equate the coefficients. For instance, if each side has degree at most \(2\), compare the coefficients of \(x^2\), \(x\), and \(1\). This gives three equations for the three unknowns.

Why is this comparison valid? The cleared equation holds for every \(x\) except possibly the three roots of the original denominator, so the difference between its two sides is a polynomial that vanishes at infinitely many real numbers. A nonzero polynomial of degree \(d\) has at most \(d\) roots: if \(r\) is a root, the factor theorem writes the polynomial as \((x-r)\) times a polynomial of degree one less, and this argument can be repeated. Therefore the difference polynomial must be the zero polynomial. Its coefficients are all zero, which is exactly why like-power coefficients must agree.

A Reliable Coefficient-Matching Procedure

1
Write the proposed form.
Give each distinct linear factor its own constant numerator. If the rational function is improper, include its polynomial part after polynomial division.
2
Clear the denominators.
Multiply by the full denominator so that no fractions remain.
3
Expand and collect.
Expand each product and group terms by powers of \(x\).
4
Match and solve.
Equate coefficients of the same powers, solve the resulting equations, and substitute the constants into the original decomposition to check it.

Worked Examples

Worked Example: Matching Coefficients with Three Distinct Factors

Decompose

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

Because the numerator has degree \(2\) and the denominator has degree \(3\), use the form

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

Clear denominators by multiplying through by \((x-1)(x+2)(x-3)\):

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

Expand each product:

$$ (x+2)(x-3)=x^2-x-6,\qquad (x-1)(x-3)=x^2-4x+3,\qquad (x-1)(x+2)=x^2+x-2. $$

Thus the right-hand side is

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

Match the coefficients of \(x^2\), \(x\), and \(1\):

$$ A+B+C=2,\qquad -A-4B+C=3,\qquad -6A+3B-2C=5. $$

Solving this system gives \(A=-\frac{5}{3}\), \(B=\frac{7}{15}\), and \(C=\frac{16}{5}\). Check the coefficients: for \(x^2\), \(-\frac{25}{15}+\frac{7}{15}+\frac{48}{15}=2\); for \(x\), \(\frac{25}{15}-\frac{28}{15}+\frac{48}{15}=3\); and for the constant, \(10+\frac{7}{5}-\frac{32}{5}=5\). Therefore the decomposition is

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

Clearing denominators in this final expression reproduces \(2x^2+3x+5\), confirming the result.

Worked Example: Solving a Two-Equation System

Find constants \(A\) and \(B\) such that

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

Multiply through by \((x-2)(x+1)\):

$$ 7x-5=A(x+1)+B(x-2). $$

Expand and collect powers of \(x\):

$$ 7x-5=(A+B)x+(A-2B). $$

Matching the coefficients gives \(A+B=7\) and \(A-2B=-5\). Subtract the second equation from the first to obtain \(3B=12\), so \(B=4\). Then \(A+4=7\), so \(A=3\). The proposed decomposition is

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

Check by recombining the right-hand side: its numerator is \(3(x+1)+4(x-2)=3x+3+4x-8=7x-5\), as required.

When Root Substitution Is Not Enough

For a proper fraction with only distinct linear factors, setting \(x\) equal to each denominator root isolates the corresponding fraction constant. That is the basis of the cover-up method. But if the function is improper, its decomposition also contains a polynomial part. At the roots, that part is multiplied by the denominator and disappears, so root substitution cannot determine its coefficients. Matching all powers of \(x\) supplies the additional equations.

Worked Example: Finding a Polynomial Part as Well as Fraction Constants

Decompose

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

The numerator has degree \(3\), larger than the denominator's degree \(2\). Use a linear polynomial part and one constant numerator for each distinct factor:

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

Since \((x-1)(x+1)=x^2-1\), clearing denominators gives

$$ x^3+2x^2+3x+4=(Cx+D)(x^2-1)+A(x+1)+B(x-1). $$

Expand every term:

$$ x^3+2x^2+3x+4 = Cx^3+Dx^2-Cx-D+(A+B)x+(A-B). $$

Now match coefficients of \(x^3,x^2,x,\) and \(1\):

$$ C=1,\qquad D=2,\qquad -C+A+B=3,\qquad -D+A-B=4. $$

Substitute \(C=1\) and \(D=2\) into the last two equations. They become \(A+B=4\) and \(A-B=6\). Adding these equations gives \(2A=10\), hence \(A=5\); then \(B=4-5=-1\). The decomposition is

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

Check by multiplying the right-hand side by \(x^2-1\):

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

The check recovers the original numerator. Root substitution at \(x=1\) or \(x=-1\) can determine \(A\) and \(B\), but it cannot determine \(C\) and \(D\); the coefficient equations determine all four constants.

A Common Coefficient-Matching Mistake

When expanding the cleared identity, it is easy to lose a minus sign in a constant term. For example, in the second worked example, the product \(B(x-2)\) is \(Bx-2B\), not \(Bx+2B\). The incorrect expansion would give

$$ A(x+1)+B(x-2)=(A+B)x+(A+2B), $$

and would lead to the wrong constant equation \(A+2B=-5\). The correction is to distribute \(B\) to both terms, including the negative term: \(B(x-2)=Bx-2B\). Thus the correct expansion is \((A+B)x+(A-2B)\), and the correct equations give \(A=3\), \(B=4\). Recombining the fractions is a useful check because it exposes sign errors in the numerator.

How Coefficient Matching and Root Substitution Work Together

These methods are complementary, but they do not provide exactly the same information in every setup. In the proper three-factor example, matching coefficients produced a system for the three fraction constants. Root substitution could also find those constants directly. In the improper example, root substitution could find the two fraction constants, but only coefficient matching determined the polynomial part.

Takeaway: After clearing denominators, the identity is a polynomial equation. Matching coefficients provides equations for every unknown coefficient in the proposed form; root substitution alone only gives information at the chosen roots.

Whenever the constants have been found, check the decomposition by combining its terms over the original denominator and simplifying the numerator. This verifies that the proposed expression reproduces the rational function wherever its denominator is nonzero.

Check Your Understanding

Answer these questions to check your understanding of coefficient matching for distinct linear factors.

  1. What equation results from clearing denominators in \(\frac{P(x)}{(x-a)(x-b)}=\frac{A}{x-a}+\frac{B}{x-b}\)?
  2. Why can coefficients of the same powers of \(x\) be equated after the denominators have been cleared?
  3. For a proper fraction with two distinct linear factors, how many coefficient equations arise when both sides have degree at most \(1\)?
  4. Why does root substitution fail to determine the polynomial part in the improper-fraction example?
  5. What is one effective way to check a proposed partial-fraction decomposition?

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