This section uses systems of linear equations to rewrite rational functions in a form more palatable to Calculus students. In College Algebra, the function

\begin{equation} \label {falg} f(x) = \frac {x^2-x-6}{x^4+x^2} \tag {1} \end{equation}

is written in the best form possible to construct a sign diagram and to find zeros and asymptotes, but certain applications in Calculus require us to rewrite \(f(x)\) as

\begin{equation} \label {fcalc} f(x) = \frac {x+7}{x^2+1} - \frac {1}{x} - \frac {6}{x^2} \tag {2} \end{equation}

If we are given the form of \(f(x)\) in (fcalc), it is a matter of Intermediate Algebra to determine a common denominator to obtain the form of \(f(x)\) given in (falg). The focus of this section is to develop a method by which we start with \(f(x)\) in the form of (falg) and ‘resolve it into partial fractions’ to obtain the form in (fcalc). Essentially, we need to reverse the least common denominator process.

Starting with the form of \(f(x)\) in (falg), we begin by factoring the denominator

\[ \frac {x^2-x-6}{x^4+x^2} = \frac {x^2-x-6}{x^2 \left (x^2+1\right )} \]

We now think about which individual denominators could contribute to obtain \(x^2 \left (x^2+1\right )\) as the least common denominator. Certainly \(x^2\) and \(x^2+1\), but are there any other factors? Since \(x^2+1\) is an irreducible quadratic there are no factors of it that have real coefficients which can contribute to the denominator.

The factor \(x^2\), however, is not irreducible, since we can think of it as \(x^2 = xx = (x-0)(x-0)\), a so-called ‘repeated’ linear factor. This means it’s possible that a term with a denominator of just \(x\) contributed to the expression as well. What about something like \(x \left (x^2+1\right )\)? This, too, could contribute, but we would then wish to break down that denominator into \(x\) and \(\left (x^2+1\right )\), so we leave out a term of that form.

At this stage, we have guessed

\[ \frac {x^2-x-6}{x^4+x^2} = \frac {x^2-x-6}{x^2 \left (x^2+1\right )} = \frac {?}{x} + \frac {?}{x^2} + \frac {?}{x^2+1} \]

Our next task is to determine what form the unknown numerators take. It stands to reason that since the expression \(\frac {x^2-x-6}{x^4+x^2}\) is ‘proper’ in the sense that the degree of the numerator is less than the degree of the denominator, we are safe to make the ansatz that all of the partial fraction resolvents are also. This means that the numerator of the fraction with \(x\) as its denominator is just a constant and the numerators on the terms involving the denominators \(x^2\) and \(x^2+1\) are at most linear polynomials.

In other words, we guess that there are real numbers \(A\), \(B\), \(C\), \(D\) and \(E\) so that

\[ \frac {x^2-x-6}{x^4+x^2} = \frac {x^2-x-6}{x^2 \left (x^2+1\right )} = \frac {A}{x} + \frac {Bx+C}{x^2} + \frac {Dx+E}{x^2+1} \]

However, if we look more closely at the term \(\frac {Bx+C}{x^2}\), we see that \(\frac {Bx+C}{x^2} = \frac {Bx}{x^2} + \frac {C}{x^2} = \frac {B}{x} + \frac {C}{x^2}\). The term \(\frac {B}{x}\) has the same form as the term \(\frac {A}{x}\) which means it contributes nothing new to our expansion. Hence, we drop it and, after re-labeling, we find ourselves with our new guess:

\[ \frac {x^2-x-6}{x^4+x^2} = \frac {x^2-x-6}{x^2 \left (x^2+1\right )} = \frac {A}{x} + \frac {B}{x^2} + \frac {Cx+D}{x^2+1} \]

Our next task is to determine the values of our unknowns. Clearing denominators gives

\[x^2 - x- 6 = Ax\left (x^2+1\right ) + B\left (x^2+1\right ) + (Cx+D)x^2 \]

Gathering the like powers of \(x\) we have

\[x^2 - x - 6 = (A+C)x^3+(B+D)x^2+Ax + B \]

In order for this to hold for all values of \(x\) in the domain of \(f\), we equate the coefficients of corresponding powers of \(x\) on each side of the equation and obtain the system of linear equations

\[ \left \{ \begin{array}{lrcrl} (E1) & A+C & = & 0 & \text {From equating coefficients of $x^{3}$} \\ (E2) & B+D & = & 1 & \text {From equating coefficients of $x^{2}$} \\ (E3) & A & = & -1 & \text {From equating coefficients of $x$} \\ (E4) & B & = & -6 & \text {From equating the constant terms} \\ \end{array} \right . \]

To solve this system of equations, we could use any of the methods presented in Sections LinSystems through Determinants, but none of these methods are as efficient as the good old-fashioned substitution from High School algebra. From \(E3\), we have \(A=-1\) and we substitute this into \(E1\) to get \(C = 1\). Similarly, since \(E4\) gives us \(B=-6\), we have from \(E2\) that \(D = 7\). We get

\[ \frac {x^2-x-6}{x^4+x^2} = \frac {x^2-x-6}{x^2 \left (x^2+1\right )} = -\frac {1}{x} - \frac {6}{x^2} + \frac {x+7}{x^2+1} \]

which matches the formula given in (fcalc).

As we have seen in this opening example, resolving a rational function into partial fractions takes two steps: first, we need to determine the form of the decomposition, and then we need to determine the unknown coefficients which appear in said form.

Theorem realfactorization guarantees that any polynomial with real coefficients can be factored over the real numbers as a product of linear factors and irreducible quadratic factors. Once we have this factorization of the denominator of a rational function, the next theorem tells us the form the decomposition takes. The reader is encouraged to review the Factor Theorem (Theorem factorthm) and its connection to the role of multiplicity to fully appreciate the statement of the following theorem.

The proof of Theorem pfdecomp is best left to a course in Abstract Algebra. Notice that the theorem provides for the general case, so we need to use subscripts, \(A_1\), \(A_2\), etc., to denote different unknown coefficients as opposed to the usual convention of \(A\), \(B\), etc.. The stress on multiplicities is to help us correctly group factors in the denominator. For example, consider the rational function

\[\frac {3x-1}{\left (x^2-1\right )\left (2-x-x^2\right )}\]

Factoring the denominator to find the zeros, we get \((x+1)(x-1)(1-x)(2+x)\). We find \(x = -1\) and \(x=-2\) are zeros of multiplicity one but that \(x=1\) is a zero of multiplicity two due to the two different factors \((x-1)\) and \((1-x)\). One way to handle this is to note that \((1-x) = -(x-1)\) so

\[\frac {3x-1}{(x+1)(x-1)(1-x)(2+x)} = \frac {3x-1}{-(x-1)^2(x+1)(x+2)} = \frac {1-3x}{(x-1)^2(x+1)(x+2)}\]

from which we proceed with the partial fraction decomposition

\[\frac {1-3x}{(x-1)^2(x+1)(x+2)} = \frac {A}{x-1} + \frac {B}{(x-1)^2} + \frac {C}{x+1} + \frac {D}{x+2}\]

Turning our attention to non-real zeros, we note that the tool of choice to determine the irreducibility of a quadratic \(ax^2+bx+c\) is the discriminant, \(b^2-4ac\). If \(b^2 - 4ac < 0\), the quadratic admits a pair of non-real complex conjugate zeros. Even though one irreducible quadratic gives two distinct non-real zeros, we list the terms with denominators involving a given irreducible quadratic only once to avoid duplication in the form of the decomposition. The trick, of course, is factoring the denominator or otherwise finding the zeros and their multiplicities in order to apply Theorem pfdecomp. We recommend that the reader review the techniques set forth in Sections RealZeros and ComplexZeros.

Next, we state a theorem that if two polynomials are equal, the corresponding coefficients of the like powers of \(x\) are equal. This is the principal by which we shall determine the unknown coefficients in our partial fraction decomposition.

Believe it or not, the proof of Theorem polyequality is a consequence of Theorem complexfactorization. Define \(p(x)\) to be the difference of the left hand side of the equation in Theorem polyequality and the right hand side. Then \(p(x) = 0\) for all \(x\) in the open interval \(I\). If \(p(x)\) were a nonzero polynomial of degree \(k\), then, by Theorem complexfactorization, \(p\) could have at most \(k\) zeros in \(I\), \(k\) being a finite number. Since \(p(x) = 0\) for all real numbers \(x\) in \(I\), \(p\) has infinitely many zeros, and hence, \(p\) is the zero polynomial. This means there can be no nonzero terms in \(p(x)\) and the theorem follows. Arguably, the best way to make sense of either of the two preceding theorems is to work some examples.