Tutorials › Calculus II › Solving Coefficients For Repeated Quadratics

Partial Fractions Foundations · Tutorial 193 of 998

Solving Coefficients For Repeated Quadratics

Learn to set up and solve coefficient equations for powers of an irreducible quadratic, then check the result by recombining the terms.

Beginner 10 min read

What You'll Learn

  • Set up the partial-fraction form for a repeated irreducible quadratic factor.
  • Clear denominators to turn a rational identity into a polynomial identity.
  • Expand the resulting numerator and match coefficients systematically.
  • Solve coefficient systems for quadratic factors of different forms and powers.
  • Check a proposed decomposition by recombining its terms.
  • Recognize and correct a common expansion error.

Why Coefficient Matching Works

When a quadratic factor is repeated in a denominator, its partial-fraction decomposition contains a term for each power of that factor. Finding the decomposition therefore means finding several unknown numerator coefficients at once. Clearing the denominator converts the rational equation into a polynomial equation, where the unknowns can be found by matching coefficients.

The key is to preserve every term while expanding. A missed cross term can produce plausible-looking but incorrect coefficients. In this tutorial, we will set up the equations, solve them in order, and verify each result by recombining the fractions.

Definition: A real quadratic \(Q(x)=x^2+px+q\) is irreducible over the reals if it cannot be factored into real linear factors. For a monic quadratic, this is equivalent to \(p^2-4q<0\). A repeated quadratic factor \(Q(x)^m\) in a denominator has one partial-fraction term for each power \(Q,Q^2,\ldots,Q^m\), each with a numerator of degree less than \(2\), hence of the form \(Ax+B\).

For a proper rational function with denominator \(Q^m\), the decomposition form is

$$ \frac{P(x)}{Q(x)^m} = \frac{A_1x+B_1}{Q(x)} +\frac{A_2x+B_2}{Q(x)^2} +\cdots+ \frac{A_mx+B_m}{Q(x)^m}, $$

where “proper” means that the degree of \(P\) is less than the degree of the denominator. The coefficients \(A_i,B_i\) are the unknowns to determine. The method here is to multiply through by \(Q^m\), expand the resulting polynomial, and equate the coefficients of like powers of \(x\).

Clearing the Denominator for a Repeated Quadratic

For a squared quadratic, the form is

$$ \frac{P(x)}{Q(x)^2} = \frac{Ax+B}{Q(x)} +\frac{Cx+D}{Q(x)^2}. $$

Multiplication by \(Q(x)^2\) gives a polynomial identity:

$$ P(x)=(Ax+B)Q(x)+(Cx+D). $$

This identity is the working equation. Once both sides are written as sums of powers of \(x\), the coefficient of \(x^3\) on one side must equal the coefficient of \(x^3\) on the other, and likewise for every other power. This is valid because two polynomials are equal precisely when all their corresponding coefficients are equal.

Why the method works: On every \(x\) where \(Q(x)\ne 0\), multiplying the proposed rational identity by \(Q(x)^2\) preserves equality and gives the polynomial identity above. Conversely, dividing that polynomial identity by \(Q(x)^2\) recovers the rational identity. Since an irreducible real quadratic has no real zeros, this applies to every real \(x\).

For \(Q(x)=x^2+px+q\), expanding gives a useful general system:

$$ (Ax+B)(x^2+px+q)+(Cx+D) = Ax^3+(pA+B)x^2+(qA+pB+C)x+(qB+D). $$

Thus, if \(P(x)=u_3x^3+u_2x^2+u_1x+u_0\), matching coefficients produces

$$ A=u_3,\qquad pA+B=u_2,\qquad qA+pB+C=u_1,\qquad qB+D=u_0. $$

The equations are often easiest to solve from the highest power downward: first find \(A\), then \(B\), then \(C\), and finally \(D\). Each new equation uses coefficients already determined.

Worked Example: A Squared Quadratic with No Linear Term

Decompose

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

The quadratic \(x^2+4\) is irreducible over the reals, since its discriminant is \(0^2-4(1)(4)=-16<0\). Write the decomposition form:

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

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

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

Expand the product, keeping the contributions of \(Ax\) and \(B\) separate:

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

Therefore the right-hand side is

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

Match coefficients with \(x^3+2x^2+7x-3\):

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

Substitute the known values into the remaining equations:

$$ 4(1)+C=7 \quad\Longrightarrow\quad C=3, $$ $$ 4(2)+D=-3 \quad\Longrightarrow\quad D=-11. $$

The decomposition is

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

Check by recombining. The numerator on the right becomes

$$ (x+2)(x^2+4)+(3x-11) =x^3+2x^2+4x+8+3x-11 =x^3+2x^2+7x-3. $$

This is the original numerator, so the decomposition checks.

A Third-Power Quadratic Factor

With a cubic power of \(Q\), there are three numerator pairs. Clearing denominators gives

$$ \frac{P(x)}{Q(x)^3} = \frac{Ax+B}{Q(x)} +\frac{Cx+D}{Q(x)^2} +\frac{Ex+F}{Q(x)^3} \quad\Longrightarrow\quad P(x)=(Ax+B)Q(x)^2+(Cx+D)Q(x)+(Ex+F). $$

For \(Q(x)=x^2+1\), we have \(Q(x)^2=x^4+2x^2+1\). Expanding the right-hand side gives the coefficient equations

$$ \begin{aligned} [x^5]:&\ A,\\ [x^4]:&\ B,\\ [x^3]:&\ 2A+C,\\ [x^2]:&\ 2B+D,\\ [x]:&\ A+C+E,\\ [1]:&\ B+D+F. \end{aligned} $$

Here \([x^k]\) means “the coefficient of \(x^k\).” In practice, expand the products directly and read off these coefficients; the notation simply organizes the matching.

Worked Example: Solving Six Coefficients

Decompose

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

Use the three-term form and clear the denominator:

$$ \frac{x^5+2x^4+5x^3+3x^2+6x+5}{(x^2+1)^3} = \frac{Ax+B}{x^2+1} +\frac{Cx+D}{(x^2+1)^2} +\frac{Ex+F}{(x^2+1)^3}, $$ $$ x^5+2x^4+5x^3+3x^2+6x+5 =(Ax+B)(x^4+2x^2+1)+(Cx+D)(x^2+1)+(Ex+F). $$

Expand each product:

$$ (Ax+B)(x^4+2x^2+1) =Ax^5+Bx^4+2Ax^3+2Bx^2+Ax+B, $$ $$ (Cx+D)(x^2+1)=Cx^3+Dx^2+Cx+D. $$

After adding \(Ex+F\), the coefficients are \(A\) for \(x^5\), \(B\) for \(x^4\), \(2A+C\) for \(x^3\), \(2B+D\) for \(x^2\), \(A+C+E\) for \(x\), and \(B+D+F\) for the constant term. Matching them gives

$$ A=1,\quad B=2,\quad 2A+C=5,\quad 2B+D=3,\quad A+C+E=6,\quad B+D+F=5. $$

Solve in order:

$$ A=1,\qquad B=2, $$ $$ 2(1)+C=5 \quad\Longrightarrow\quad C=3, $$ $$ 2(2)+D=3 \quad\Longrightarrow\quad D=-1, $$ $$ 1+3+E=6 \quad\Longrightarrow\quad E=2, $$ $$ 2+(-1)+F=5 \quad\Longrightarrow\quad F=4. $$

Therefore,

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

To check, recombine the numerators over the common denominator:

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

Adding these and \(2x+4\) gives

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

The recombined numerator matches the original exactly.

A Quadratic with a Linear Term

Coefficient matching works the same way when the irreducible quadratic is not centered at zero. The terms involving \(p\) in \(x^2+px+q\) must be included in the expansion; they affect more than one coefficient.

Worked Example: Matching a Non-Centered Quadratic

Decompose

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

The discriminant of \(x^2+2x+5\) is \(2^2-4(1)(5)=-16<0\), so it is irreducible over the reals. Set

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

Clearing denominators and expanding gives

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

Thus the coefficient equations are

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

Solve successively:

$$ A=2, $$ $$ 2(2)+B=3 \quad\Longrightarrow\quad B=-1, $$ $$ 5(2)+2(-1)+C=11 \quad\Longrightarrow\quad 8+C=11 \quad\Longrightarrow\quad C=3, $$ $$ 5(-1)+D=-1 \quad\Longrightarrow\quad D=4. $$

The result is

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

Check the numerator after recombination:

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

The numerator agrees with the one given, confirming the decomposition.

Common Pitfall: Losing a Cross Term

A frequent error is to expand a product such as \((Ax+B)(x^2+4)\) incompletely. For example, omitting the product \(Ax\cdot4\) leads to the incorrect expansion

$$ (Ax+B)(x^2+4)\ \text{incorrectly written as}\ Ax^3+Bx^2+4B. $$

This expression is missing \(4Ax\). In the first worked example, using the incorrect expansion would make the coefficient of \(x\) appear to be just \(C\), and would give \(C=7\). The correct expansion includes \(4Ax\), so the coefficient equation is \(4A+C=7\). Since \(A=1\), the correct value is \(C=3\).

The wrong value fails the recombination check: its numerator would have \(4x+7x=11x\), rather than the required \(7x\). Writing each product on its own line before collecting like powers helps prevent this mistake.

A Reliable Coefficient-Solving Procedure

1
Write every required numerator.
For a factor \(Q^m\), include a linear numerator over each power \(Q,Q^2,\ldots,Q^m\).
2
Clear the denominator.
Multiply both sides by \(Q^m\) and write the resulting polynomial identity.
3
Expand without skipping products.
Keep track of every contribution to each power of \(x\), including constant and cross terms.
4
Match coefficients and solve.
Begin with the highest power, then substitute known coefficients into the remaining equations.
5
Recombine to check.
Multiply each numerator by the missing denominator factors and confirm that their sum is the original numerator.

This process matters because it turns a decomposition into a finite algebra problem. It also gives a direct way to detect errors: the proposed coefficients are correct only if recombination reproduces the original polynomial numerator exactly.

Check Your Understanding

Use coefficient matching to answer the following questions. Check each proposed decomposition by recombining its numerators.

  1. For a denominator \(Q(x)^2\), what is the degree of each numerator in the partial-fraction form, and why?
  2. After clearing denominators in \(\frac{P(x)}{Q(x)^2}=\frac{Ax+B}{Q(x)}+\frac{Cx+D}{Q(x)^2}\), what polynomial identity results?
  3. Set up the coefficient equations for \(\frac{3x^3+4x^2+9x+2}{(x^2+1)^2}\).
  4. For the quadratic \(x^2+2x+5\), what is its discriminant, and is it irreducible over the reals?
  5. Why is matching coefficients equivalent to checking that the cleared polynomial identity holds?

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