Unit 6 · Topic 6.12 · BC

Linear partial fractions

Builds on polynomial long division and the antiderivatives that give logarithms. 12 minutes.

  1. Example 1Prepare the rational expression
  2. Example 2Write the partial-fraction form
  3. Example 3Determine the coefficients
  4. Example 4Integrate the decomposed expression

A rational function is a fraction of two polynomials. Topic 6.10 integrates one whose bottom, the denominator, is linear. When the bottom has two or more distinct linear factors, the fraction can be a sum of simpler fractions, one over each factor:

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

Adding the fractions on the right over their common denominator gives the left side. Such simpler fractions are called partial fractions, and the sum is the partial-fraction decomposition of the fraction. Each partial fraction has a logarithm as an antiderivative. This topic shows which fractions split in this way, how to find the partial fractions, and how to integrate them.

One term for each factor

The graph of a fraction with dashed vertical lines at x = b, on the left, and x = a, on the right. Between the lines the curve is a U above the axis that rises without bound beside both lines; outside them it lies below the axis and falls without bound beside each line. Two faint curves are the graphs of A over (x − a), which has the line x = a as a vertical asymptote and crosses the line x = b, and of B over (x − b), which has x = b as a vertical asymptote and crosses x = a. At an input x between the lines, marked by a faint vertical line, a solid orange bar rises from the axis to the height of A over (x − a), and a dashed orange bar above it adds the height of B over (x − b), ending at an orange dot on the curve. A button slides the line x = b onto x = a: the curve then lies below the axis and falls without bound on both sides of x = a, and a red curve, one term over x − a, rises without bound on the left of the line and falls without bound on the right.

Figure 1The dashed lines mark the zeros \(a\) and \(b\) of the bottom, and the faint curves are the graphs of the two partial fractions. At \(x\), the solid and dashed orange bars have their heights and stack up to the orange dot on the curve. With the factors equal, the red curve is one term over \(x-a\).

The degree of a polynomial is its highest power of \(x\). A fraction is proper when its top, the numerator, has a lower degree than its bottom. The curve in Figure 1 is the graph of a proper fraction \(\frac{P(x)}{(x-a)(x-b)}\) with \(a\ne b\), so its top \(P(x)\) has degree at most 1. The bottom is 0 at \(x=a\) and \(x=b\), its zeros, where the dashed lines are vertical asymptotes.

Suppose that constants \(A\) and \(B\) make the fraction equal to \(\frac{A}{x-a}+\frac{B}{x-b}\) at every \(x\) other than \(a\) and \(b\). Multiply both sides by \((x-a)(x-b)\), which clears the bottoms. Each factor cancels the bottom of its own term:

\[P(x)=A(x-b)+B(x-a)\]

Both sides are polynomials of degree at most 1, so their graphs are lines. The two lines meet at every \(x\) other than \(a\) and \(b\), and two lines with two common points are the same line. The equation therefore holds at every \(x\), including \(a\) and \(b\), where the fraction itself has no value.

Substitute \(x=a\). The term with \(B\) is 0, so \(P(a)=A(a-b)\), and since \(a\ne b\), \(A=\frac{P(a)}{a-b}\). In the same way, \(x=b\) gives \(B=\frac{P(b)}{b-a}\). Some books call this shortcut the cover-up method: with the factor \(x-a\) covered, the rest of the fraction at \(x=a\) is \(A\).

Conversely, with these values of \(A\) and \(B\), the line \(y=A(x-b)+B(x-a)\) meets the line \(y=P(x)\) at \(x=a\) and at \(x=b\). Two points fix a line, so the two lines are the same. Dividing by \((x-a)(x-b)\) then gives the split at every \(x\) other than \(a\) and \(b\). Every proper fraction with the bottom \((x-a)(x-b)\), where \(a\ne b\), therefore splits, and in only one way.

A second route expands the right side to \((A+B)x-(Ab+Ba)\). The two lines are the same, so the coefficients of \(x\) match, and so do the constant terms. Each route can check the other.

In Figure 1, the faint curves are the graphs of the two partial fractions. A faint vertical line marks the input \(x\) set by the slider. There, the solid orange bar has the height of \(\frac{A}{x-a}\), and the dashed orange bar above it has the height of \(\frac{B}{x-b}\). Move \(x\) with the slider. At every position, the dashed bar ends at the orange dot on the curve, because the fraction is the sum of its partial fractions.

As \(x\) approaches \(a\), the solid bar grows without bound, while the dashed bar approaches \(\frac{B}{a-b}\). Near \(x=a\), the curve therefore runs beside the graph of \(\frac{A}{x-a}\). Each faint curve has a vertical asymptote where its own bottom is 0, and it crosses the other dashed line. Near each dashed line, only one term grows without bound, so each factor of the bottom needs its own term.

The factors must be distinct. Use the button under Figure 1 to make them equal. The line \(x=b\) slides onto \(x=a\), and the bottom becomes \((x-a)^2\). The curve then falls without bound on both sides of \(x=a\). Two terms over \(x-a\), one for each factor, add up to one term \(\frac{A}{x-a}\). If \(A\ne0\), this term, like the red curve, falls without bound on only one side. Clearing the bottom in \(\frac{P(x)}{(x-a)^2}=\frac{A}{x-a}\) gives \(P(x)=A(x-a)\), which is false at \(x=a\) unless \(P(a)=0\). A repeated factor needs a second term over \((x-a)^2\), which the AP course leaves out.

Preparing the fraction

The steps above need a proper fraction whose bottom is a product of distinct linear factors. If the top has at least the degree of the bottom, divide first. For a top \(P\) and a bottom \(Q\), long division (topic 6.10) gives a quotient \(S\) and a remainder \(R\) with \(P=QS+R\). The remainder is 0 or has a lower degree than \(Q\). Wherever \(Q\ne0\), the fraction is \(S\) plus \(\frac{R}{Q}\), and only \(\frac{R}{Q}\) is split.

The graph of a fraction whose top has degree 3 and whose bottom has degree 2, with two dashed vertical lines where the bottom is 0, and a faint rising line y = S(x). Far to the left and far to the right, the curve runs close to the faint line, slightly above it. Between the dashed lines the curve is an arch below the line that falls without bound beside both dashed lines. A button adds a red curve, the sum of two terms A over (x − a) and B over (x − b): it rises and falls beside the dashed lines as the curve does, but far from them it approaches the axis, so it differs from the curve by the height of the faint line.

Figure 2The curve is the graph of a fraction whose top has degree 3 and whose bottom, 0 at the dashed lines, has degree 2. The faint line is the graph of its quotient \(S(x)\). The button adds a red curve, the sum of the two terms found without dividing.

The curve in Figure 2 is the graph of such a fraction. Far from the dashed lines, it runs close to the faint line \(y=S(x)\). The gap between them is \(\frac{R}{Q}\), a proper fraction, which approaches 0 as \(x\) grows in size (topic 1.15). Use the button under Figure 2 to split the fraction without dividing. Substituting the zeros \(a\) and \(b\) into the cleared equation still gives two constants. Since \(P(a)=R(a)\) when \(Q(a)=0\), their terms add up to \(\frac{R}{Q}\), the red curve, which differs from the curve by \(S(x)\).

Factor the bottom completely. Take out a common factor first, as in \(x^3-4x=x(x-2)(x+2)\). Each distinct linear factor then has one term. With three factors, both sides of the cleared equation have degree at most 2. Two such polynomials that agree at three inputs are equal. Their difference has three zeros, while a nonzero polynomial of degree at most 2 has at most two. Substituting each zero again leaves one term. A bottom with no real zeros, such as \(x^2+4\), has no linear factors, and the completed square of topic 6.10 applies instead.

Integrating the partial fractions

Topic 6.8 integrates a sum term by term and keeps constant factors in front. By topic 6.10, \(\ln|x-a|\) is an antiderivative of \(\frac{1}{x-a}\), so \(A\ln|x-a|+B\ln|x-b|\) is an antiderivative of the split fraction. Keep the absolute values. For \(x<a\), \(x-a\) is negative and \(\ln(x-a)\) has no value, but \(\ln|x-a|\) has the derivative \(\frac{1}{x-a}\) on both sides of \(a\).

A factor \(mx+k\), with \(m\ne0\), changes two steps. Its zero \(-\frac{k}{m}\) is the value to substitute. Its term \(\frac{A}{mx+k}\) has the antiderivative \(\frac{A}{m}\ln|mx+k|\), because the substitution \(u=mx+k\) has \(du=m\,dx\) (topic 6.9).

On each interval that contains no zero of the bottom, every antiderivative is the sum of the logarithms plus a constant \(C\). The Fundamental Theorem of Calculus, Part 2 (topic 6.7), needs the fraction to be continuous on the interval of integration. That interval must therefore contain no zero of the bottom. The theorem then gives the integral as the change in the antiderivative between the bounds.

Example 1

Prepare the rational expression

Write \(\dfrac{x^3+2x^2-x-1}{x^2+x-6}\) as a polynomial plus a proper fraction with a factored denominator.

Solution

The top has degree 3 and the bottom has degree 2, so the fraction is not proper, and division comes first. Each step subtracts a multiple of the bottom:

\[\begin{aligned}&x^3+2x^2-x-1\\&=x\left(x^2+x-6\right)+x^2+5x-1\\&=(x+1)\left(x^2+x-6\right)+4x+5\end{aligned}\]

The quotient is \(x+1\), and the remainder \(4x+5\) has a lower degree than the bottom. The numbers 3 and \(-2\) have product \(-6\) and sum 1, so the bottom is \((x-2)(x+3)\). For \(x\ne2\) and \(x\ne-3\), divide both sides by it:

\[\begin{aligned}&\frac{x^3+2x^2-x-1}{x^2+x-6}\\&=x+1+\frac{4x+5}{(x-2)(x+3)}\end{aligned}\]

Example 2

Write the partial-fraction form

Write the form of the partial-fraction decomposition of \(\dfrac{3x^2+8x+20}{x^3-x^2-20x}\), with unknown constants.

Solution

The top has degree 2 and the bottom has degree 3, so the fraction is proper. Every term of the bottom contains \(x\), so take it out first. The numbers \(-5\) and 4 have product \(-20\) and sum \(-1\), so the quadratic that is left factors:

\[x^3-x^2-20x=x(x-5)(x+4)\]

The factor \(x\) is linear too, with the zero 0. The zeros 0, 5 and \(-4\) are distinct, so each factor has one term with a constant on top. The third constant is called \(D\), because \(C\) names the constant of integration:

\[\begin{aligned}&\frac{3x^2+8x+20}{x(x-5)(x+4)}\\&=\frac{A}{x}+\frac{B}{x-5}+\frac{D}{x+4}\end{aligned}\]

Example 3

Determine the coefficients

Find the constants \(A\) and \(B\) for which \[\frac{x+11}{(x-4)(x+1)}=\frac{A}{x-4}+\frac{B}{x+1}.\]

Solution

The fraction is proper. The zeros 4 and \(-1\) of its bottom are distinct. Multiply both sides by \((x-4)(x+1)\):

\[x+11=A(x+1)+B(x-4)\]

This equation holds at every \(x\), including 4 and \(-1\). At \(x=4\), the term with \(B\) is 0, and at \(x=-1\), the term with \(A\) is 0:

\[\begin{aligned}15&=5A, & A&=3\\10&=-5B, & B&=-2\end{aligned}\]

As a check, match coefficients. On the right, the coefficient of \(x\) is \(A+B=1\), and the constant term is \(A-4B=11\), as on the left. Therefore

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

Example 4

Integrate the decomposed expression

Evaluate \(\displaystyle\int_0^2\frac{9x+1}{(2x+1)(x-3)}\,dx\), given that the integrand equals \(\dfrac{1}{2x+1}+\dfrac{4}{x-3}\).

Solution

The bottom is 0 at \(x=-\frac12\) and \(x=3\), and neither lies in \([0,2]\), so the integrand is continuous there. The term \(\frac{1}{2x+1}\) has the antiderivative \(\frac12\ln|2x+1|\), because the inner function \(2x+1\) has the derivative 2. The term \(\frac{4}{x-3}\) has the antiderivative \(4\ln|x-3|\).

On \([0,2]\), \(x-3\) is negative, so \(|x-3|=3-x\), which is 3 at \(x=0\) and 1 at \(x=2\). By the Fundamental Theorem of Calculus, Part 2,

\[\begin{aligned}&\int_0^2\frac{9x+1}{(2x+1)(x-3)}\,dx\\&=\Big[\tfrac12\ln|2x+1|+4\ln|x-3|\Big]_0^2\\&=\tfrac12\ln 5+4\ln 1-\tfrac12\ln 1-4\ln 3\\&=\tfrac12\ln 5-4\ln 3\end{aligned}\]

Each example is one of the four skills of topic 6.12 in Which & Why: AP Calculus.