BetaFree coursewareRewritten from MIT OpenCourseWareCC BY-NC-SA 4.0
Open CosmologyPhysics & cosmology, from high school to a graduate year

Partial fractions

A rational function P(x)/Q(x) can be split into simple pieces that are easy to integrate. Factor the denominator, set up one term for each factor (one per power for a repeated factor, a linear numerator over a quadratic factor), and find the coefficients, quickly by the cover-up method where it works. If the numerator's degree is not lower than the denominator's, first divide the polynomials.

You need this first

Full reading path (19 pages)
  1. The derivative: slope of the tangent line and rate of change (18.01)
  2. Limits and continuity (18.01)
  3. Derivatives of sine and cosine, and the product and quotient rules (18.01)
  4. The chain rule and higher derivatives (18.01)
  5. Implicit differentiation and the derivatives of inverse functions (18.01)
  6. Exponentials and logarithms: the number e and its derivatives (18.01)
  7. Linear and quadratic approximations (18.01)
  8. Curve sketching with the first and second derivative (18.01)
  9. Sketching strategy and maximum–minimum problems (18.01)
  10. More max–min, and related rates (18.01)
  11. A ring on a string, and Newton's method (18.01)
  12. The mean value theorem and inequalities (18.01)
  13. Differentials and antiderivatives (18.01)
  14. Definite integrals and Riemann sums (18.01)
  15. The first fundamental theorem of calculus (18.01)
  16. The second fundamental theorem of calculus (18.01)
  17. The logarithm from an integral, and areas between curves (18.01)
  18. Trigonometric integrals and substitution (18.01)
  19. Inverse substitution and completing the square (18.01)
On this page · 6 sections
  1. The disguise
  2. Factor, set up, cover up
  3. Repeated factors
  4. Quadratic factors
  5. When the numerator is too big
  6. Summary

This lecture is about integrating rational functions, ratios P(x)/Q(x)P(x)/Q(x) of two polynomials (transcript, p. 1). The method, partial fractions, splits P/QP/Q into easier pieces; most of the work is algebra (p. 1).

The disguise#

Some rational functions are easy: ∫(1x−1+3x+2)dx=ln⁡∣x−1∣+3ln⁡∣x+2∣+c\int\left(\frac{1}{x - 1} + \frac{3}{x + 2}\right)dx = \ln|x - 1| + 3\ln|x + 2| + c (transcript, p. 1; notes, p. 1). But add the fractions over a common denominator, and the same function is disguised (pp. 1–2):

The same function, disguised
1x−1+3x+2=(x+2)+3(x−1)(x−1)(x+2)=4x−1x2+x−2\frac{1}{x - 1} + \frac{3}{x + 2} = \frac{(x + 2) + 3(x - 1)}{(x - 1)(x + 2)} = \frac{4x - 1}{x^2 + x - 2}
In words

1 over the quantity x minus 1, plus 3 over the quantity x plus 2, equals the quantity the quantity x plus 2, all plus 3 the quantity x minus 1, all over the quantity the quantity x minus 1, the quantity x plus 2, equals the quantity 4 x minus 1, all over the quantity x squared plus x minus 2

Faced with the right-hand side, it is not clear what to do. The job is to undo the disguise (transcript, p. 2).

Factor, set up, cover up#

The method has three steps (transcript, pp. 2–4):

  1. Factor the denominator: x2+x−2=(x−1)(x+2)x^2 + x - 2 = (x - 1)(x + 2). This can be the hard part; here it is given (p. 2).
  2. Set up the form of the answer, with unknown coefficients: 4x−1(x−1)(x+2)=Ax−1+Bx+2\frac{4x - 1}{(x - 1)(x + 2)} = \frac{A}{x - 1} + \frac{B}{x + 2} (p. 2).
  3. Solve for the coefficients (p. 2).

The slow way clears all denominators, 4x−1=A(x+2)+B(x−1)4x - 1 = A(x + 2) + B(x - 1), and solves the simultaneous equations A+B=4A + B = 4, 2A−B=−12A - B = -1 (notes, p. 1). The quick way multiplies by just one factor. Multiplying by x−1x - 1 gives 4x−1x+2=A+Bx+2(x−1)\frac{4x - 1}{x + 2} = A + \frac{B}{x + 2}(x - 1), and at x=1x = 1 the BB term drops out (transcript, p. 2):

Cover-up for A
A=4⋅1−11+2=1A = \frac{4 \cdot 1 - 1}{1 + 2} = 1
In words

capital A equals the quantity 4 times 1 minus 1, all over the quantity 1 plus 2, equals 1

Source: 18.01 Lecture 29 transcript, pp. 2–3

Setting x=1x = 1 looks illegal, since the original equation has x−1x - 1 in a denominator. But the multiplied equation holds for every x≠1x \ne 1, so we may take the limit x→1x \to 1 (p. 3). In the same way, multiplying by x+2x + 2 and setting x=−2x = -2 gives B=−8−1−2−1=3B = \frac{-8 - 1}{-2 - 1} = 3 (p. 3; notes, p. 2), and the disguise is undone.

In practice this is the cover-up method: cover up the factor x−1x - 1 on the left, plug x=1x = 1 into what is left, and read off AA, with no writing in between (transcript, p. 4). It works when QQ has distinct linear factors and the degree of PP is less than the degree of QQ (pp. 4–5). With more factors, put in one term each: x2+3x+8(x−1)(x−2)(x+5)=Ax−1+Bx−2+Cx+5\frac{x^2 + 3x + 8}{(x - 1)(x - 2)(x + 5)} = \frac{A}{x - 1} + \frac{B}{x - 2} + \frac{C}{x + 5} (p. 5).

Repeated factors#

When a factor repeats, the set-up needs one term for each power (transcript, p. 5; notes, p. 2):

Set-up with a repeated factor
x2+2(x−1)2(x+2)=Ax−1+B(x−1)2+Cx+2\frac{x^2 + 2}{(x - 1)^2(x + 2)} = \frac{A}{x - 1} + \frac{B}{(x - 1)^2} + \frac{C}{x + 2}
In words

the quantity x squared plus 2, all over the quantity the quantity x minus 1, all squared the quantity x plus 2, equals capital A over the quantity x minus 1, plus B over the quantity x minus 1, all squared plus capital C over the quantity x plus 2

Source: 18.01 Lecture 29 transcript, pp. 5–6

It is like writing a number in base 2: 716=02+122+123+124\frac{7}{16} = \frac{0}{2} + \frac{1}{2^2} + \frac{1}{2^3} + \frac{1}{2^4} needs every power up to the highest (p. 5). Cover-up still gives CC (set x=−2x = -2: 4+29=23\frac{4 + 2}{9} = \frac{2}{3}) and BB (cover up the whole (x−1)2(x - 1)^2, set x=1x = 1: 1+21+2=1\frac{1 + 2}{1 + 2} = 1), but not AA: multiplying by just x−1x - 1 leaves B/(x−1)B/(x - 1), which blows up at x=1x = 1 (p. 6). For AA, plug in an easy value not used yet, x=0x = 0: 22=−A+1+13\frac{2}{2} = -A + 1 + \frac{1}{3}, so A=13A = \frac{1}{3} (p. 7). The three unknowns really solve a 3-by-3 system in disguise, and the bigger the denominator, the more arithmetic (p. 7):

Repeated factor, solved
x2+2(x−1)2(x+2)=1/3x−1+1(x−1)2+2/3x+2\frac{x^2 + 2}{(x - 1)^2(x + 2)} = \frac{1/3}{x - 1} + \frac{1}{(x - 1)^2} + \frac{2/3}{x + 2}
In words

the quantity x squared plus 2, all over the quantity the quantity x minus 1, all squared the quantity x plus 2, equals the quantity one third, all over the quantity x minus 1, plus 1 over the quantity x minus 1, all squared plus the quantity two thirds, all over the quantity x plus 2

(The notes write the numerator as x2+1x^2 + 1 in one line where they mean x2+2x^2 + 2, p. 2.)

Quadratic factors#

A quadratic such as x2+1x^2 + 1 does not factor without complex numbers; with them, cover-up comes back, which is how Heaviside first used it (transcript, p. 8). Over a quadratic factor the numerator is one degree lower, Bx+CBx + C (p. 8). For x2(x−1)(x2+1)=Ax−1+Bx+Cx2+1\frac{x^2}{(x - 1)(x^2 + 1)} = \frac{A}{x - 1} + \frac{Bx + C}{x^2 + 1}, cover-up gives A=11+1=12A = \frac{1}{1 + 1} = \frac{1}{2} (p. 8). For BB and CC, clear the denominators, x2=A(x2+1)+(Bx+C)(x−1)x^2 = A(x^2 + 1) + (Bx + C)(x - 1), and compare coefficients: the x2x^2 terms give 1=12+B1 = \frac{1}{2} + B, the constant terms 0=12−C0 = \frac{1}{2} - C, so B=C=12B = C = \frac{1}{2} (p. 9). The highest and lowest powers are the easiest to compare; plugging in numbers such as x=0x = 0 works too (p. 9). Then each piece integrates (p. 11):

Integrating with a quadratic factor
∫x2 dx(x−1)(x2+1)=12ln⁡∣x−1∣+14ln⁡(x2+1)+12tan⁡−1x+c\int \frac{x^2\,dx}{(x - 1)(x^2 + 1)} = \frac{1}{2}\ln|x - 1| + \frac{1}{4}\ln(x^2 + 1) + \frac{1}{2}\tan^{-1}x + c
In words

the integral of x squared d x over the quantity the quantity x minus 1, the quantity x squared plus 1, equals one half log the absolute value of x minus 1 plus one quarter log of the quantity x squared plus 1, plus one half inverse tan x plus c

using (ln⁡u)′=u′/u(\ln u)' = u'/u for the middle term (p. 11). The notes do the similar 1(x2+1)(x−1)\frac{1}{(x^2 + 1)(x - 1)} (notes, pp. 2–3). A cubic such as x3+1x^3 + 1 is not fully factored: it is (x+1)(x2−x+1)(x + 1)(x^2 - x + 1), and every polynomial with real coefficients eventually splits into linear and quadratic factors (transcript, p. 10). (In the lecture the sign in x2−x+1x^2 - x + 1 is left uncertain, p. 10.)

When the numerator is too big#

If the degree of PP is at least the degree of QQ, like an improper fraction, the set-up gives a wrong answer (transcript, pp. 8, 11). Multiply the denominator back out and use long division (pp. 11–12):

Long division first
x3(x−1)(x+2)=x3x2+x−2=x−1+3x−2x2+x−2\frac{x^3}{(x - 1)(x + 2)} = \frac{x^3}{x^2 + x - 2} = x - 1 + \frac{3x - 2}{x^2 + x - 2}
In words

x cubed over the quantity the quantity x minus 1, the quantity x plus 2, equals x cubed over the quantity x squared plus x minus 2, equals x minus 1 plus the quantity 3 x minus 2, all over the quantity x squared plus x minus 2

The quotient x−1x - 1 is easy to integrate, and the remainder has a lower degree than the denominator, so cover-up now works (p. 12).

The notes add two cases that need no partial fractions at all: ∫dx(x−1)10=−19(x−1)−9+c\int\frac{dx}{(x - 1)^{10}} = -\frac{1}{9}(x - 1)^{-9} + c, and ∫dx(x2+1)10\int\frac{dx}{(x^2 + 1)^{10}}, which x=tan⁡ux = \tan u turns into ∫cos⁡18u du\int\cos^{18}u\,du, a trigonometric integral (notes, p. 3).

Worked example

Three rational functions

(a) Evaluate ∫23x+5(x−1)(x+3) dx\int_2^3\frac{x + 5}{(x - 1)(x + 3)}\,dx. (b) Split 1x2(x+1)\frac{1}{x^2(x + 1)}. (c) Split x2+1x2−1\frac{x^2 + 1}{x^2 - 1}.

(a) Distinct linear factors

Cover-up: A=1+51+3=32A = \frac{1 + 5}{1 + 3} = \frac{3}{2} and B=−3+5−3−1=−12B = \frac{-3 + 5}{-3 - 1} = -\frac{1}{2}. So the integral is [32ln⁡∣x−1∣−12ln⁡∣x+3∣]23=32ln⁡2−12ln⁡65≈1.040−0.091=0.949\Big[\frac{3}{2}\ln|x - 1| - \frac{1}{2}\ln|x + 3|\Big]_2^3 = \frac{3}{2}\ln 2 - \frac{1}{2}\ln\frac{6}{5} \approx 1.040 - 0.091 = 0.949.

(b) A repeated factor

Set up Ax+Bx2+Cx+1\frac{A}{x} + \frac{B}{x^2} + \frac{C}{x + 1}. Cover up x2x^2 and set x=0x = 0: B=1B = 1. Cover up x+1x + 1 and set x=−1x = -1: C=1C = 1. At x=1x = 1: 12=A+1+12\frac{1}{2} = A + 1 + \frac{1}{2}, so A=−1A = -1. Check at x=2x = 2: −12+14+13=112=14⋅3-\frac{1}{2} + \frac{1}{4} + \frac{1}{3} = \frac{1}{12} = \frac{1}{4 \cdot 3}.

(c) Divide first

The degrees are equal, so divide: x2+1x2−1=1+2x2−1\frac{x^2 + 1}{x^2 - 1} = 1 + \frac{2}{x^2 - 1}. Then cover-up on 2(x−1)(x+1)\frac{2}{(x - 1)(x + 1)} gives 1x−1−1x+1\frac{1}{x - 1} - \frac{1}{x + 1}, so the function is 1+1x−1−1x+11 + \frac{1}{x - 1} - \frac{1}{x + 1}.

Summary#

  • Partial fractions split a rational function P/QP/Q into simple pieces: logarithms from linear factors, negative powers from repeated factors, logarithms and inverse tangents from quadratic factors, plus a polynomial from any long division.
  • Steps: factor QQ; set up one term per linear factor, one per power of a repeated factor, Bx+Cquadratic\frac{Bx + C}{\text{quadratic}} per quadratic factor; solve for the coefficients.
  • Cover-up: cover the factor x−ax - a, set x=ax = a in the rest. It finds the coefficients of distinct linear factors and of the highest power of a repeated one.
  • If the degree of PP is not less than that of QQ, do long division first.

Symbols on this page

Show the 25 symbols used here
Ω\Omega capital omega.
The density parameter Ω = ρ/ρ_c. Subscripts pick one ingredient: Ω_m matter, Ω_vac (or Ω_Λ) vacuum energy, Ω_r radiation, Ω_k curvature. Say it: “capital omega”.
≈\approx approximately equal.
Is approximately equal to. Say it: “is approximately”.
≠\neq not equal.
Is not equal to. Say it: “is not equal to”.
→\to arrow.
Goes to (tends to), or becomes. Say it: “goes to”.
⋅\cdot dot.
Times (multiplication). Between two vectors: the dot product. Say it: “times”.
∫\int integral.
Integral: the sum of infinitely many small pieces, such as the area under a curve. Say it: “the integral of”.
cos⁡\cos cosine.
Cosine of an angle. Say it: “cos”.
tan⁡\tan tangent.
Tangent of an angle, sin/cos. Say it: “tan”.
tanh⁡\tanh hyperbolic tangent.
Hyperbolic tangent, sinh/cosh. Say it: “tanh” (sounds like “tanch”).
ln⁡\ln natural logarithm.
Natural logarithm (base e ≈ 2.718). Say it: “log”.
aa a.
The root of a linear factor x − a. Say it: “a”.
cc c.
The constant of integration. Say it: “c”.
Ωm\Omega_{m} matter density parameter.
The matter density as a fraction of the critical density, ρ_m/ρ_c; ',0' means today (about 0.3). Say it: “capital omega m”.
Ωvac\Omega_{\text{vac}} vacuum density parameter.
The vacuum-energy density as a fraction of the critical density; ',0' means today (about 0.7). Say it: “capital omega vac”.
xx x.
The variable of the rational function (and of integration). Say it: “x”.
yy y.
In the cosmology note, the argument of the inverse hyperbolic tangent (|y| < 1). Say it: “y”.
dd d.
As in dx and dy′: a differential. Say it: “d”.
PP P.
The numerator polynomial of a rational function P(x)/Q(x). Say it: “P”.
QQ Q.
The denominator polynomial of a rational function P(x)/Q(x). Say it: “Q”.
AA A.
An unknown coefficient in the partial-fraction set-up (over x − 1, or over x in the worked example). Say it: “capital A”.
BB B.
An unknown coefficient in the set-up (over a second factor, a square, or the x term over a quadratic factor). Say it: “B”.
CC C.
An unknown coefficient in the set-up (over a third factor, or the constant term over a quadratic factor). Say it: “capital C”.
y′y' y prime.
In the cosmology note, the variable of integration. Say it: “y prime”.
uu u.
A new variable (x = tan u in the notes' example; any function in (ln u)′ = u′/u). Say it: “u”.
u′u' u prime.
The derivative of u. Say it: “u prime”.

Tap or click a symbol in a formula to see the same explanation. All symbols: symbols and notation.

Words on this page

Show the 22 words used here

New here

rational function.
A fraction whose top and bottom are both polynomials, such as (x + 1)/(x² − 4).
partial fractions.
Splitting a fraction of polynomials into a sum of simpler fractions, each easy to integrate.
cover-up method.
A quick way to find a coefficient in partial fractions: cover one factor of the denominator and put in the x that makes it zero.
long division.
Dividing one polynomial by another step by step, like long division of numbers, leaving a polynomial plus a simpler fraction.

Also used

integration.
Finding an integral: adding up very many small pieces, or finding an antiderivative. Explained in Differentials and antiderivatives.
p..
Page, in a reference to a source; pp. means pages, as in pp. 3–5.
limit.
The value a quantity gets closer and closer to, as near as we like, as its input approaches some value, without having to reach it. Explained in Rates of change and area under a graph.
linear.
Of a relation or equation: using only first powers of the unknowns, so doubling the cause doubles the effect and effects simply add. Explained in Solving and rearranging formulas.
integral.
A sum of very many very small pieces, such as the area under a graph; it undoes taking a derivative. Explained in Rates of change and area under a graph.
flat universe.
A universe with exactly the critical density, whose space has no curvature and which expands forever, ever more slowly. Explained in Open, closed and flat universes.
vacuum energy.
Energy that empty space itself carries, the same everywhere and unchanged as the universe expands. Explained in Dark energy and the accelerating universe.
inverse.
The thing that undoes another: a matrix times its inverse gives the identity matrix, as a function followed by its inverse gives back the start. Explained in Planes through three points, and matrices.
hyperbolic functions.
Cousins of sine and cosine built from exponentials: sinh x = (eˣ − e⁻ˣ)/2, cosh x = (eˣ + e⁻ˣ)/2, and their ratios.
logarithm.
The power to which a fixed base must be raised to give a number: log₁₀ 1000 = 3 because 10³ = 1000. Explained in Exponentials and logarithms.
inverse tangent.
The function that undoes the tangent: arctan x is the angle, between −90 and 90 degrees, whose tangent is x.

Academic

transcript.
A written record of exactly what was said in a recorded lecture, word for word.
in disguise.
Looking different on the surface but really the same as something already known.
drops out.
Disappears from an equation, usually because it cancels or appears on both sides.
in practice.
In reality, as things are actually done or measured, rather than in theory.
read off.
To take a value directly from a graph, table or formula, without further calculation.
blow up.
In maths, to grow without limit; to become infinite.
plug in.
To put numbers or expressions into a formula in place of its symbols.

Tap or click a word, here or in the text, for its meaning in this lesson. All words: the glossary. How many words are marked in the text: Reading options (the “Aa” button).

Where this leads

In cosmology

Pages that build on this

Practise

Check your understanding

  1. By the cover-up method, the coefficient AA in x+5(x−1)(x+3)=Ax−1+Bx+3\frac{x + 5}{(x - 1)(x + 3)} = \frac{A}{x - 1} + \frac{B}{x + 3} is…
  2. What is the right set-up for 1x2(x+1)\frac{1}{x^2(x + 1)}?
  3. For x3x2+x−2\frac{x^3}{x^2 + x - 2}, the first step is…
  4. For a quadratic factor that does not factor, such as x2+1x^2 + 1, the set-up term is…
0 of 4 answered

Flashcards

1 / 3