Tutorials › Calculus II › Solving Coefficients by Polynomial Identity

Improper Rational Functions · Tutorial 211 of 998

Solving Coefficients by Polynomial Identity

Learn how to turn a partial-fraction decomposition into a polynomial identity, solve the resulting coefficient equations, and verify the constants.

Intermediate 10 min read

What You'll Learn

  • Clear denominators without omitting any factor from a numerator term.
  • Match coefficients of like powers to form a system of equations.
  • Solve coefficient systems for repeated linear factors.
  • Determine linear numerators for repeated irreducible quadratic factors.
  • Handle coefficient equations involving mixed repeated factors.
  • Check a proposed decomposition by reconstructing its numerator.

Why Polynomial Identities Determine the Coefficients

Once the form of a partial-fraction decomposition is known, its unknown constants can be found by algebra. The essential move is to multiply both sides by the common denominator. The resulting equality is an equality between polynomials, so the coefficients of matching powers of \(x\) must agree.

This method applies to proper rational functions whose denominators have been factored into linear factors and irreducible quadratic factors. For repeated factors, the complete form includes a term for each power of the factor. The numerator over a linear factor is a constant; the numerator over an irreducible quadratic is linear. These bounded numerator forms are the starting point, not something to guess during the coefficient calculation.

Definition: A polynomial identity is an equality between polynomials that holds for every value of the variable. To solve coefficients by polynomial identity, clear the denominators in a proposed partial-fraction decomposition and equate the coefficients of each power of \(x\).

For example, if the denominator contains \((x-a)^2(x+b)\), the two linear factors are distinct only when \(a+b\ne 0\). Under that condition, a complete form for a proper remainder is

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

If \(a+b=0\), the factors coincide instead: the denominator is \((x-a)^3\), so the corresponding form has terms for all three powers of that single factor. The distinction matters because the denominators in the proposed decomposition must match the actual factorization.

From Rational Equality to Coefficient Equations

Suppose a decomposition has been proposed and its denominator factors are all included. Multiply both sides by the common denominator. Each fraction becomes a polynomial term: its numerator is multiplied by the parts of the common denominator that were not under that fraction’s original denominator. Expand those terms, collect like powers of \(x\), and equate coefficients.

This is valid on every value of \(x\) where the original rational expressions are defined. After denominators have been cleared, the two sides are polynomials. If they agree for all such \(x\), they agree at infinitely many values. Two polynomials that agree at infinitely many values are identical, so their coefficients match. Conversely, if the coefficients match, the cleared polynomial identity holds, and dividing by the common denominator recovers the rational equality wherever that denominator is nonzero.

1
Write the complete decomposition form.
Include the required terms for every power of each repeated factor.
2
Multiply through by the common denominator.
For each term, retain precisely the factors not already in its denominator.
3
Expand and collect.
Group the resulting terms by powers of \(x\).
4
Match coefficients and solve.
Set the coefficients of like powers equal, then solve the resulting linear system.
5
Check the identity.
Substitute the constants back into the cleared equation and verify the numerator.

Worked Example: A Repeated Linear Factor

Worked Example: Determine Three Constants

Find \(A\), \(B\), and \(C\) in the decomposition

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

The factors \(x-1\) and \(x+2\) are distinct. Multiply both sides by \((x-1)^2(x+2)\):

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

Expand each product:

$$ A(x-1)(x+2)=A(x^2+x-2)=Ax^2+Ax-2A, $$ $$ B(x+2)=Bx+2B, \qquad C(x-1)^2=C(x^2-2x+1)=Cx^2-2Cx+C. $$

Collect the right-hand side by powers of \(x\):

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

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

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

From the first equation, \(C=5-A\). Substitute this into the second equation:

$$ A+B-2(5-A)=-5 \quad\Longrightarrow\quad 3A+B=5 \quad\Longrightarrow\quad B=5-3A. $$

Substitute \(C=5-A\) into the third equation and then use \(B=5-3A\):

$$ -2A+2B+(5-A)=-3 \quad\Longrightarrow\quad -3A+2B=-8, $$ $$ -3A+2(5-3A)=-8 \quad\Longrightarrow\quad -9A+10=-8 \quad\Longrightarrow\quad A=2. $$

Therefore \(B=5-3(2)=-1\), and \(C=5-2=3\). Check the cleared identity with these values:

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

Thus the constants are \(A=2\), \(B=-1\), and \(C=3\), and substituting them reproduces the given numerator.

Why Matching Coefficients Works

The coefficient comparison is not an approximation or a convenient pattern. It follows from the meaning of polynomial equality. Here is the key fact and its justification.

Theorem: Two polynomials are identical if and only if the coefficients of every power of the variable agree.

To justify the direction used in coefficient solving, subtract one polynomial from the other. If the polynomials agree at infinitely many values, their difference has infinitely many roots. A nonzero polynomial of degree \(n\) has at most \(n\) roots, so the difference must be the zero polynomial. A polynomial is the zero polynomial exactly when all of its coefficients are zero. Therefore the coefficients in the original polynomials agree power by power. In the other direction, equal coefficients give equal sums of powers, so the polynomials are identical.

In a partial-fraction calculation, the cleared equality holds for every \(x\) in the domain of the original rational function. Only finitely many values are excluded by its denominator, leaving infinitely many values. The fact therefore applies. This explains why a coefficient system encodes the entire rational identity rather than merely checking it at a few chosen inputs.

Worked Example: A Repeated Irreducible Quadratic

Worked Example: Solve for Linear Numerators

Determine \(A\), \(B\), \(C\), and \(D\) in

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

Multiply by \((x^2+1)^2\):

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

Expand the first product, keeping the contributions from \(Ax\) and \(B\) distinct:

$$ (Ax+B)(x^2+1) =Ax^3+Bx^2+Ax+B. $$

Including \(Cx+D\), collect coefficients:

$$ x^3-2x^2+4x+2 = Ax^3+Bx^2+(A+C)x+(B+D). $$

Equating coefficients gives

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

Thus \(A=1\), \(B=-2\), \(C=4-A=3\), and \(D=2-B=4\). Check by rebuilding the numerator:

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

The reconstructed numerator matches the original, so the constants are correct.

Worked Example: Mixed Repeated Factors

Worked Example: Match Four Coefficients

Find \(A\), \(B\), \(C\), and \(D\) in the complete decomposition

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

Clear the denominator. The three terms on the right acquire the remaining factors as follows:

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

Expand each term:

$$ A(x-1)(x^2+1)=Ax^3-Ax^2+Ax-A, $$ $$ B(x^2+1)=Bx^2+B, $$ $$ (Cx+D)(x-1)^2 =(Cx+D)(x^2-2x+1) =Cx^3+(-2C+D)x^2+(C-2D)x+D. $$

After collecting powers, compare with the left-hand side:

$$ A+C=5, $$ $$ -A+B-2C+D=-7, $$ $$ A+C-2D=1, $$ $$ -A+B+D=-1. $$

Use the first equation to write \(C=5-A\). Substituting into the third equation gives

$$ A+(5-A)-2D=1 \quad\Longrightarrow\quad 5-2D=1 \quad\Longrightarrow\quad D=2. $$

Now the constant equation gives \(-A+B+2=-1\), so \(B=A-3\). Substitute \(C=5-A\), \(D=2\), and \(B=A-3\) into the \(x^2\) equation:

$$ -A+(A-3)-2(5-A)+2=-7, $$ $$ -3-10+2A+2=-7 \quad\Longrightarrow\quad 2A-11=-7 \quad\Longrightarrow\quad A=2. $$

It follows that \(B=2-3=-1\) and \(C=5-2=3\), while \(D=2\). Check all terms by recombining the cleared numerator:

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

The numerator is recovered, confirming the constants.

A Common Error: Clearing the Denominator Incompletely

Each fraction must be multiplied by every factor of the common denominator that remains after canceling its own denominator. Omitting one of those factors changes the polynomial equation and can produce a false system.

For the first worked example, the term \(B/(x-1)^2\) must be multiplied by \(x+2\) when the common denominator is cleared. A mistaken calculation might write

$$ 5x^2-5x-3 \mathrel{\color{red}{\ne}} A(x-1)(x+2)+B+C(x-1)^2. $$

The \(B\) term is wrong: its denominator is \((x-1)^2\), so multiplying it by the common denominator leaves the factor \(x+2\). The corrected identity is

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

With the incorrect expression, the constant \(B\) contributes no \(x\)-term; in the correct expression, \(B(x+2)=Bx+2B\) contributes to both the \(x\)-coefficient and the constant coefficient. Keeping the uncanceled factors visible until after clearing denominators is a reliable way to avoid this error.

Using the Method Reliably

Coefficient matching is especially useful when repeated factors create several unknowns and when the denominator contains both linear and quadratic factors. A sound calculation keeps the algebra organized: write the full cleared identity first, expand each product separately, then collect powers. Do not skip directly from the rational expression to a coefficient system, because that makes omitted factors and sign errors harder to spot.

After solving, check the result at the polynomial level by substituting the constants into the cleared identity and expanding. This confirms that the proposed numerators reproduce the original numerator. Matching coefficients establishes the identity; the explicit reconstruction is a practical way to catch arithmetic mistakes in the expansion or system-solving steps.

Check Your Understanding

Work through these questions by writing the cleared polynomial identity before matching coefficients.

  1. For a denominator \((x-2)^2(x+1)\), write the complete partial-fraction form for a proper remainder, and state why the two linear factors are distinct.
  2. When clearing denominators in a term \(B/(x-2)^2\) with common denominator \((x-2)^2(x+1)\), what factor multiplies \(B\)?
  3. For a repeated irreducible quadratic \((x^2+4)^2\), what numerator forms belong over the first and second powers?
  4. Why does an equality of cleared polynomials imply equality of the coefficients of each power of \(x\)?
  5. After solving a coefficient system, what polynomial calculation checks that the proposed constants work?

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