Partial fraction decomposition

In algebra, the partial fraction decomposition or partial fraction expansion of a rational fraction (that is, a fraction such that the numerator and the denominator are both polynomials) is an operation that consists of expressing the fraction as a sum of a polynomial (possibly zero) and one or several fractions with a simpler denominator.

The importance of the partial fraction decomposition lies in the fact that it provides algorithms for various computations with rational functions, including the explicit computation of antiderivatives, Taylor series expansions, inverse Z-transforms, and inverse Laplace transforms. The concept was discovered independently in 1702 by both Johann Bernoulli and Gottfried Leibniz.

In symbols, the partial fraction decomposition of a rational fraction of the form $ \frac{f(x)}{g(x)}, $ where $f$ and $g$ are polynomials, is its expression as

$$\frac{f(x)}{g(x)}=p(x) + \sum_j \frac{f_j(x)}{g_j(x)} $$

where $p(x)$ is a polynomial, and, for each $j$, the denominator $g_{j} (x)$ is a power of an irreducible polynomial (that is not factorable into polynomials of positive degrees), and the numerator $f_{j} (x)$ is a polynomial of a smaller degree than the degree of this irreducible polynomial.

When explicit computation is involved, a coarser decomposition is often preferred, which consists of replacing "irreducible polynomial" by "square-free polynomial" in the description of the outcome. This allows replacing polynomial factorization by the much easier-to-compute square-free factorization. This is sufficient for most applications, and avoids introducing irrational coefficients when the coefficients of the input polynomials are integers or rational numbers.

Basic principles
Let $$R(x) = \frac FG$$ be a rational fraction, where $F$ and $G$ are univariate polynomials in the indeterminate $x$ over a field. The existence of the partial fraction can be proved by applying inductively the following reduction steps.

Polynomial part
There exist two polynomials $E$ and $F1$ such that $$\frac FG=E+\frac{F_1}G,$$ and $$\deg F_1 <\deg G,$$ where $$\deg P$$ denotes the degree of the polynomial $P$.

This results immediately from the Euclidean division of $F$ by $G$, which asserts the existence of $E$ and $F1$ such that $$F = EG + F_1$$ and $$\deg F_1 < \deg G.$$

This allows supposing in the next steps that $$\deg F <\deg G.$$

Factors of the denominator
If $$\deg F < \deg G,$$ and $$G = G_1 G_2,$$ where $G1$ and $G2$ are coprime polynomials, then there exist polynomials $$F_1$$ and $$F_2$$ such that $$\frac FG=\frac{F_1}{G_1}+\frac{F_2}{G_2},$$ and $$\deg F_1 < \deg G_1\quad\text{and}\quad\deg F_2 < \deg G_2.$$

This can be proved as follows. Bézout's identity asserts the existence of polynomials $C$ and $D$ such that $$CG_1 + DG_2 = 1$$ (by hypothesis, $1$ is a greatest common divisor of $G1$ and $G2$).

Let $$DF=G_1Q+F_1$$ with $$\deg F_1 < \deg G_1$$ be the Euclidean division of $DF$ by $$G_1.$$ Setting $$F_2=CF+QG_2,$$ one gets $$\begin{align} \frac FG&=\frac{F(CG_1 + DG_2)}{G_1G_2} =\frac{D F}{G_1}+\frac{CF}{G_2}\\ &=\frac{F_1+G_1Q}{G_1}+\frac{F_2-G_2Q}{G_2}\\ &=\frac{F_1}{G_1}+\frac{F_2}{G_2}. \end{align}$$ It remains to show that $$\deg F_2 < \deg G_2.$$ By reducing the last sum of fractions to a common denominator, one gets $$F=F_2G_1+F_1G_2,$$ and thus $$\begin{align} \deg F_2 &=\deg(F-F_1G_2)-\deg G_1 \le \max(\deg F,\deg (F_1G_2))-\deg G_1\\ &< \max(\deg G,\deg(G_1G_2))-\deg G_1= \deg G_2 \end{align}$$

Powers in the denominator
Using the preceding decomposition inductively one gets fractions of the form $$\frac F {G^k},$$ with $$\deg F < \deg G^k= k\deg G,$$ where $G$ is an irreducible polynomial. If $k > 1$, one can decompose further, by using that an irreducible polynomial is a square-free polynomial, that is, $$1$$ is a greatest common divisor of the polynomial and its derivative. If $$G'$$ is the derivative of $G$, Bézout's identity provides polynomials $C$ and $D$ such that $$CG + DG' = 1$$ and thus $$F=FCG+FDG'.$$ Euclidean division of $$FDG'$$ by $$G$$ gives polynomials $$H_k$$ and $$Q$$ such that $$FDG' = QG + H_k$$ and $$\deg H_k < \deg G.$$ Setting $$F_{k-1}=FC+Q,$$ one gets $$\frac F {G^k} = \frac{H_k}{G^k}+\frac{F_{k-1}}{G^{k-1}},$$ with $$\deg H_k <\deg G.$$

Iterating this process with $$\frac{F_{k-1}}{G^{k-1}}$$ in place of $$\frac F{G^k}$$ leads eventually to the following theorem.

Statement
The uniqueness can be proved as follows. Let $f$. All together, $g$ and the $K$ have $d$ coefficients. The shape of the decomposition defines a linear map from coefficient vectors to polynomials $f$ of degree less than $d$. The existence proof means that this map is surjective. As the two vector spaces have the same dimension, the map is also injective, which means uniqueness of the decomposition. By the way, this proof induces an algorithm for computing the decomposition through linear algebra.

If $g$ is the field of complex numbers, the fundamental theorem of algebra implies that all $b$ have degree one, and all numerators $$a_{ij}$$ are constants. When $a_{ij}$ is the field of real numbers, some of the $deg a_{ij} < deg p_{i}$ may be quadratic, so, in the partial fraction decomposition, quotients of linear polynomials by powers of quadratic polynomials may also occur.

In the preceding theorem, one may replace "distinct irreducible polynomials" by "pairwise coprime polynomials that are coprime with their derivative". For example, the $deg f < deg g$ may be the factors of the square-free factorization of $b = 0$. When $d = max(1 + deg f, deg g)$ is the field of rational numbers, as it is typically the case in computer algebra, this allows to replace factorization by greatest common divisor computation for computing a partial fraction decomposition.

Application to symbolic integration
For the purpose of symbolic integration, the preceding result may be refined into

This reduces the computation of the antiderivative of a rational function to the integration of the last sum, which is called the logarithmic part, because its antiderivative is a linear combination of logarithms.

There are various methods to compute decomposition in the Theorem. One simple way is called Hermite's method. First, b is immediately computed by Euclidean division of f by g, reducing to the case where deg(f) < deg(g). Next, one knows deg(cij) < deg(pi), so one may write each cij as a polynomial with unknown coefficients. Reducing the sum of fractions in the Theorem to a common denominator, and equating the coefficients of each power of x in the two numerators, one gets a system of linear equations which can be solved to obtain the desired (unique) values for the unknown coefficients.

Procedure
Given two polynomials $$P(x)$$ and $$Q(x) = (x-\alpha_1)(x-\alpha_2) \cdots (x-\alpha_n)$$, where the αn are distinct constants and $b$, explicit expressions for partial fractions can be obtained by supposing that $$\frac{P(x)}{Q(x)} = \frac{c_1}{x-\alpha_1} + \frac{c_2}{x-\alpha_2} + \cdots + \frac{c_n}{x-\alpha_n}$$ and solving for the ci constants, by substitution, by equating the coefficients of terms involving the powers of x, or otherwise. (This is a variant of the method of undetermined coefficients. After both sides of the equation are multiplied by Q(x), one side of the equation is a specific polynomial, and the other side is a polynomial with undetermined coefficients. The equality is possible only when the coefficients of like powers of x are equal. This yields n equations in n unknowns, the ck.)

A more direct computation, which is strongly related to Lagrange interpolation, consists of writing $$\frac{P(x)}{Q(x)} = \sum_{i=1}^n \frac{P(\alpha_i)}{Q'(\alpha_i)}\frac{1}{(x-\alpha_i)} $$ where $$Q'$$ is the derivative of the polynomial $$Q$$. The coefficients of $$\tfrac{1}{x-\alpha_j}$$ are called the residues of f/g.

This approach does not account for several other cases, but can be modified accordingly:


 * If $$\deg P \geq \deg Q, $$ then it is necessary to perform the Euclidean division of P by Q, using polynomial long division, giving $a_{ij}$ with $K$. Dividing by Q(x) this gives $$\frac{P(x)}{Q(x)} = E(x) + \frac{R(x)}{Q(x)},$$ and then seek partial fractions for the remainder fraction (which by definition satisfies $p_{i}$).
 * If Q(x) contains factors which are irreducible over the given field, then the numerator N(x) of each partial fraction with such a factor F(x) in the denominator must be sought as a polynomial with $K$, rather than as a constant. For example, take the following decomposition over R: $$\frac{x^2 + 1}{(x+2)(x-1)\color{Blue}(x^2+x+1)} = \frac{a}{x+2} + \frac{b}{x-1} + \frac{\color{OliveGreen}cx + d}{\color{Blue}x^2 + x + 1}.$$
 * Suppose $p_{i}$ and $p_{i}$, that is $g$ is a root of $K$ of multiplicity $r$. In the partial fraction decomposition, the $r$ first powers of $deg c_{ij} < deg p_{i}$ will occur as denominators of the partial fractions (possibly with a zero numerator). For example, if $deg P < n$ the partial fraction decomposition has the form $$\frac{P(x)}{Q(x)} = \frac{P(x)}{(x-\alpha)^r} = \frac{c_1}{x-\alpha} + \frac{c_2}{(x-\alpha)^2} + \cdots + \frac{c_r}{(x-\alpha)^r}.$$

Illustration
In an example application of this procedure, $P(x) = E(x) Q(x) + R(x)$ can be decomposed in the form

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

Clearing denominators shows that $deg R < n$. Expanding and equating the coefficients of powers of $deg R < deg Q$ gives

Solving this system of linear equations for $deg N < deg F$ and $Q(x) = (x − α)^{r} S(x)$ yields $S(α) ≠ 0$. Hence,

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

Residue method
Over the complex numbers, suppose f(x) is a rational proper fraction, and can be decomposed into

$$f(x) = \sum_i \left( \frac{a_{i1}}{x - x_i} + \frac{a_{i2}}{( x - x_i)^2} + \cdots + \frac{a_{i k_i}}{(x - x_i)^{k_i}} \right). $$

Let $$ g_{ij}(x) = (x - x_i)^{j-1}f(x),$$ then according to the uniqueness of Laurent series, aij is the coefficient of the term $α$ in the Laurent expansion of gij(x) about the point xi, i.e., its residue $$a_{ij} = \operatorname{Res}(g_{ij},x_i).$$

This is given directly by the formula $$a_{ij} = \frac 1 {(k_i-j)!}\lim_{x\to x_i}\frac{d^{k_i-j}}{dx^{k_i-j}} \left((x-x_i)^{k_i} f(x)\right),$$ or in the special case when xi is a simple root, $$a_{i1}=\frac{P(x_i)}{Q'(x_i)},$$ when $$f(x)=\frac{P(x)}{Q(x)}.$$

Over the reals
Partial fractions are used in real-variable integral calculus to find real-valued antiderivatives of rational functions. Partial fraction decomposition of real rational functions is also used to find their Inverse Laplace transforms. For applications of partial fraction decomposition over the reals, see


 * Application to symbolic integration, above
 * Partial fractions in Laplace transforms

General result
Let $$f(x)$$ be any rational function over the real numbers. In other words, suppose there exist real polynomials functions $$p(x)$$ and $$q(x) \neq 0$$, such that $$f(x) = \frac{p(x)}{q(x)}$$

By dividing both the numerator and the denominator by the leading coefficient of $$q(x)$$, we may assume without loss of generality that $$q(x)$$ is monic. By the fundamental theorem of algebra, we can write

$$q(x) = (x-a_1)^{j_1}\cdots(x-a_m)^{j_m}(x^2+b_1x+c_1)^{k_1}\cdots(x^2 + b_n x + c_n)^{k_n}$$

where $$a_1, \dots, a_m$$, $$b_1, \dots, b_n$$, $$c_1, \dots, c_n$$ are real numbers with $$b_{i}^{2} -4c_{i} < 0$$, and $$j_1, \dots, j_m $$, $$k_1, \dots, k_n $$ are positive integers. The terms $$ (x -a_i) $$ are the linear factors of $$q(x)$$ which correspond to real roots of $$q(x)$$, and the terms $$ ( x_i^2 + b_ix + c_i ) $$ are the irreducible quadratic factors of $$q(x)$$ which correspond to pairs of complex conjugate roots of $$q(x)$$.

Then the partial fraction decomposition of $$f(x)$$ is the following:

$$f(x) = \frac{p(x)}{q(x)} = P(x) + \sum_{i=1}^m\sum_{r=1}^{j_i} \frac{A_{ir}}{(x-a_i)^r} + \sum_{i=1}^n\sum_{r=1}^{k_i} \frac{B_{ir}x+C_{ir}}{(x^2+b_ix+c_i)^r}$$

Here, P(x) is a (possibly zero) polynomial, and the Air, Bir, and Cir are real constants. There are a number of ways the constants can be found.

The most straightforward method is to multiply through by the common denominator q(x). We then obtain an equation of polynomials whose left-hand side is simply p(x) and whose right-hand side has coefficients which are linear expressions of the constants Air, Bir, and Cir. Since two polynomials are equal if and only if their corresponding coefficients are equal, we can equate the coefficients of like terms. In this way, a system of linear equations is obtained which always has a unique solution. This solution can be found using any of the standard methods of linear algebra. It can also be found with limits (see Example 5).

Example 1
$$f(x)=\frac{1}{x^2+2x-3}$$

Here, the denominator splits into two distinct linear factors:

$$q(x)=x^2+2x-3=(x+3)(x-1)$$

so we have the partial fraction decomposition

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

Multiplying through by the denominator on the left-hand side gives us the polynomial identity

$$1=A(x-1)+B(x+3)$$

Substituting x = −3 into this equation gives A = −1/4, and substituting x  = 1 gives B = 1/4, so that

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

Example 2
$$f(x)=\frac{x^3+16}{x^3-4x^2+8x}$$

After long division, we have

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

The factor x2 − 4x + 8 is irreducible over the reals, as its discriminant $Q(x)$ is negative. Thus the partial fraction decomposition over the reals has the shape

$$\frac{4x^2-8x+16}{x(x^2-4x+8)}=\frac{A}{x}+\frac{Bx+C}{x^2-4x+8}$$

Multiplying through by x3 − 4x2 + 8x, we have the polynomial identity

$$4x^2-8x+16 = A \left(x^2-4x+8\right) + \left(Bx+C\right)x$$

Taking x = 0, we see that 16 = 8A, so A = 2. Comparing the x2 coefficients, we see that 4 = A + B = 2 + B, so B = 2. Comparing linear coefficients, we see that −8 = −4A + C = −8 + C, so C = 0. Altogether,

$$f(x)=1+2\left(\frac{1}{x}+\frac{x}{x^2-4x+8}\right)$$

The fraction can be completely decomposed using complex numbers. According to the fundamental theorem of algebra every complex polynomial of degree n has n (complex) roots (some of which can be repeated). The second fraction can be decomposed to:

$$\frac{x}{x^2-4x+8}=\frac{D}{x-(2+2i)}+\frac{E}{x-(2-2i)}$$

Multiplying through by the denominator gives:

$$x=D(x-(2-2i))+E(x-(2+2i)) $$

Equating the coefficients of $(x − α)$ and the constant (with respect to $S(x) = 1$) coefficients of both sides of this equation, one gets a system of two linear equations in $(3x + 5)/(1 − 2x)^{2}$ and $3x + 5 = A + B(1 − 2x)$, whose solution is

$$D=\frac{1+i}{2i}=\frac{1-i}{2}, \qquad E=\frac{1-i}{-2i}=\frac{1+i}{2}.$$

Thus we have a complete decomposition:

$$f(x)=\frac{x^3+16}{x^3-4x^2+8x}=1+\frac{2}{x}+\frac{1-i}{x-(2+2i)}+\frac{1+i}{x-(2-2i)}$$

One may also compute directly $x$ and $5 = A + B$ with the residue method (see also example 4 below).

Example 3
This example illustrates almost all the "tricks" we might need to use, short of consulting a computer algebra system.

$$f(x)=\frac{x^9-2x^6+2x^5-7x^4+13x^3-11x^2+12x-4}{x^7-3x^6+5x^5-7x^4+7x^3-5x^2+3x-1}$$

After long division and factoring the denominator, we have

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

The partial fraction decomposition takes the form

$$\frac{2x^6-4x^5+5x^4-3x^3+x^2+3x}{(x-1)^3(x^2+1)^2} = \frac{A}{x-1}+\frac{B}{(x-1)^2}+\frac{C}{(x-1)^3}+\frac{Dx+E}{x^2+1}+\frac{Fx+G}{(x^2+1)^2}.$$

Multiplying through by the denominator on the left-hand side we have the polynomial identity

$$\begin{align} &2x^6 - 4x^5 + 5x^4 - 3x^3 + x^2 + 3x \\[4pt] ={}&A\left(x-1\right)^2 \left(x^2+1\right)^2+B\left(x-1\right)\left(x^2+1\right)^2 +C\left(x^2+1\right)^2 + \left(Dx+E\right)\left(x-1\right)^3\left(x^2+1\right)+\left(Fx+G\right)\left(x-1\right)^3 \end{align}$$

Now we use different values of x to compute the coefficients:

$$\begin{cases} 4 = 4C & x =1 \\ 2 + 2i = (Fi + G) (2+ 2i) & x = i \\ 0 = A- B +C - E - G & x = 0 \end{cases}$$

Solving this we have:

$$\begin{cases} C = 1 \\ F =0, G =1 \\ E = A-B\end{cases}$$

Using these values we can write:

$$\begin{align} &2x^6-4x^5+5x^4-3x^3+x^2+3x \\[4pt] ={}& A\left(x-1\right)^2 \left(x^2+1\right)^2 + B\left(x-1\right)\left(x^2+1\right)^2 + \left(x^2 + 1\right)^2 + \left(Dx + \left(A-B\right)\right)\left(x-1\right)^3 \left(x^2+1\right) + \left(x-1\right)^3 \\[4pt] ={}& \left(A + D\right) x^6 + \left(-A - 3D\right) x^5 + \left(2B + 4D + 1\right) x^4 + \left(-2B - 4D + 1\right) x^3 + \left(-A + 2B + 3D - 1\right) x^2 + \left(A - 2B - D + 3\right) x \end{align}$$

We compare the coefficients of x6 and x5 on both side and we have:

$$\begin{cases} A+D=2 \\ -A-3D = -4 \end{cases} \quad \Rightarrow \quad A= D = 1.$$

Therefore:

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

which gives us B = 0. Thus the partial fraction decomposition is given by:

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

Alternatively, instead of expanding, one can obtain other linear dependences on the coefficients computing some derivatives at $$x = 1, \imath$$ in the above polynomial identity. (To this end, recall that the derivative at x = a of (x − a)mp(x) vanishes if m > 1 and is just p(a) for m = 1.) For instance the first derivative at x = 1 gives

$$ 2\cdot6-4\cdot5+5\cdot4-3\cdot3+2+3  = A\cdot(0+0) + B\cdot( 4+ 0) + 8 + D\cdot0 $$

that is 8 = 4B + 8 so B = 0.

Example 4 (residue method)
$$ f(z)=\frac{z^{2}-5}{(z^2-1)(z^2+1)}=\frac{z^{2}-5}{(z+1)(z-1)(z+i)(z-i)}$$

Thus, f(z) can be decomposed into rational functions whose denominators are z+1, z−1, z+i, z−i. Since each term is of power one, −1, 1, −i and i are simple poles.

Hence, the residues associated with each pole, given by $$\frac{P(z_i)}{Q'(z_i)} = \frac{z_i^2 - 5}{4z_i^3},$$ are $$ 1, -1, \tfrac{3i}{2}, -\tfrac{3i}{2},$$ respectively, and

$$ f(z)=\frac{1}{z+1}-\frac{1}{z-1}+\frac{3i}{2}\frac{1}{z+i}-\frac{3i}{2}\frac{1}{z-i}. $$

Example 5 (limit method)
Limits can be used to find a partial fraction decomposition. Consider the following example:

$$ \frac{1}{x^3 - 1}$$

First, factor the denominator which determines the decomposition:

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

Multiplying everything by $$x-1$$, and taking the limit when $$x \to 1$$, we get

$$\lim_{x \to 1} \left((x-1)\left ( \frac{A}{x-1} + \frac{Bx + C}{x^2 + x + 1} \right )\right) = \lim_{x \to 1} A + \lim_{x \to 1}\frac{(x-1)(Bx + C)}{x^2 + x + 1} =A.$$

On the other hand,

$$\lim_{x \to 1} \frac{(x-1)}{(x - 1)(x^2 + x + 1)} = \lim_{x \to 1}\frac{1}{x^2 + x + 1} = \frac13,$$

and thus:

$$A = \frac{1}{3}.$$

Multiplying by $3x = −2Bx$ and taking the limit when $$x \to \infty$$, we have

$$\lim_{x \to \infty} x\left( \frac{A}{x-1} + \frac{Bx + C}{x^2 + x + 1} \right )= \lim_{x \to \infty} \frac{Ax}{x-1} + \lim_{x \to \infty} \frac{Bx^2+Cx}{x^2+x+1}= A+B,$$

and

$$\lim_{x \to \infty} \frac{x}{(x - 1)(x^2 + x + 1)} =0.$$

This implies $A$ and so $$B = -\frac{1}{3}$$.

For $B$, we get $$-1 = -A + C,$$ and thus  $$C = -\tfrac{2}{3}$$.

Putting everything together, we get the decomposition

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

Example 6 (integral)
Suppose we have the indefinite integral:

$$\int \frac{x^4+x^3+x^2+1}{x^2+x-2} \,dx$$

Before performing decomposition, it is obvious we must perform polynomial long division and factor the denominator. Doing this would result in:

$$\int \left(x^2 + 3 + \frac{-3x+7}{(x+2)(x-1)}\right) dx$$

Upon this, we may now perform partial fraction decomposition.

$$\int \left(x^2+3+ \frac{-3x+7}{(x+2)(x-1)}\right) dx = \int \left(x^2+3+ \frac{A}{(x+2)}+\frac{B}{(x-1)}\right) dx$$ so: $$A(x-1)+B(x+2)=-3x+7$$. Upon substituting our values, in this case, where x=1 to solve for B and x=-2 to solve for A, we will result in:

$$A=\frac{-13}{3} \, B=\frac{4}{3} $$

Plugging all of this back into our integral allows us to find the answer:

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

The role of the Taylor polynomial
The partial fraction decomposition of a rational function can be related to Taylor's theorem as follows. Let

$$P(x), Q(x), A_1(x),\ldots, A_r(x)$$

be real or complex polynomials assume that

$$Q=\prod_{j=1}^{r}(x-\lambda_j)^{\nu_j},$$

satisfies $$\deg A_1<\nu_1, \ldots, \deg A_r<\nu_r, \quad \text{and} \quad \deg(P)<\deg(Q)=\sum_{j=1}^{r}\nu_j.$$

Also define

$$Q_i=\prod_{j\neq i}(x-\lambda_j)^{\nu_j}=\frac{Q}{(x-\lambda_i)^{\nu_i}}, \qquad 1 \leqslant i \leqslant r.$$

Then we have

$$\frac{P}{Q}=\sum_{j=1}^{r}\frac{A_j}{(x-\lambda_j)^{\nu_j}}$$

if, and only if, each polynomial $$A_i(x)$$ is the Taylor polynomial of $$\tfrac{P}{Q_i}$$ of order $$\nu_i-1$$ at the point $$\lambda_i$$:

$$A_i(x):=\sum_{k=0}^{\nu_i-1} \frac{1}{k!}\left(\frac{P}{Q_i}\right)^{(k)}(\lambda_i)\ (x-\lambda_i)^k. $$

Taylor's theorem (in the real or complex case) then provides a proof of the existence and uniqueness of the partial fraction decomposition, and a characterization of the coefficients.

Sketch of the proof
The above partial fraction decomposition implies, for each 1 ≤ i ≤ r, a polynomial expansion

$$\frac{P}{Q_i}=A_i + O((x-\lambda_i)^{\nu_i}), \qquad \text{for } x\to\lambda_i,$$

so $$A_i$$ is the Taylor polynomial of $$\tfrac{P}{Q_i}$$, because of the unicity of the polynomial expansion of order $$\nu_i-1$$, and by assumption $$\deg A_i<\nu_i$$.

Conversely, if the $$A_i$$ are the Taylor polynomials, the above expansions at each $$\lambda_i$$ hold, therefore we also have

$$P-Q_i A_i = O((x-\lambda_i)^{\nu_i}), \qquad \text{for } x\to\lambda_i,$$

which implies that the polynomial $$ P-Q_iA_i$$ is divisible by $$ (x-\lambda_i)^{\nu_i}.$$

For $$ j\neq i, Q_jA_j$$ is also divisible by $$(x-\lambda_i)^{\nu_i}$$, so

$$ P- \sum_{j=1}^{r}Q_jA_j$$

is divisible by $$Q$$. Since

$$ \deg\left( P- \sum_{j=1}^{r}Q_jA_j \right) < \deg(Q)$$

we then have

$$ P- \sum_{j=1}^{r}Q_jA_j=0,$$

and we find the partial fraction decomposition dividing by $$ Q$$.

Fractions of integers
The idea of partial fractions can be generalized to other integral domains, say the ring of integers where prime numbers take the role of irreducible denominators. For example:

$$\frac{1}{18} = \frac{1}{2} - \frac{1}{3} - \frac{1}{3^2}. $$