| Each linear piece | |
|---|---|
| Each quadratic piece | |
| Its coefficient, for a simple root a |
Lesson
The theory — Partial Fractions
A partial-fraction decomposition writes a rational function P(x)/Q(x), with P of lower degree than Q, as a sum of simple fractions, one group for each factor of Q over the reals: A/(x − a)k for every power of a linear factor up to its multiplicity, and (Bx + C)/(x² + px + q)k for every power of a quadratic factor with no real root. When P's degree is not lower, divide first. Each fraction integrates to a rational function, a logarithm or an arctangent.
What each symbol means
P/Q- the integrand, numerator over denominator; the real roots of Q are the poles of f
C- a constant of integration, free to differ on each interval between poles
Where the formula comes from
- A simple factor: cover it up. Multiply the identity by x − a and put x = a. Every other fraction vanishes, and A is P(a) divided by what is left of the denominator at a.
- A repeated factor needs one fraction per power. For (x − a)², write A/(x − a) + B/(x − a)². The cover-up gives B; compare the coefficients of one power of x, or put in any other value of x, to find A.
- A quadratic with no real root. Split its numerator into a multiple of the quadratic’s derivative and a constant. The first part integrates to a logarithm; the second, once the square is completed, to an arctangent.
- Breaks when
- The decomposition needs the roots of Q, and above degree four they may have no formula in radicals; the coefficients are still exact numbers, but they can be out of reach of radicals too: on the x⁵ − x − 1 preset the first is exactly 1/(5r⁴ − 1), r the real root, and like r it has no radical formula. The page works with numerical approximations to them. The rational part of the answer never needs the roots: Charles Hermite showed it can be found by polynomial arithmetic alone, and Hardy's §4 gives his method.
Problems solved in full
-
Two linear factors: the cover-up rule 3 steps
Find ∫(x + 7)/((x − 1)(x + 3)) dx.
-
One fraction for each linear factor:
-
Cover up each factor in turn and put in its root:
-
Each fraction integrates to a logarithm:
Answer
2 ln|x − 1| − ln|x + 3| + C. Two lines of arithmetic, no simultaneous equations. The cover-up works because multiplying by x − 1 and putting x = 1 sends every other fraction to zero.
-
-
A repeated factor 3 steps
Find ∫dx/(x²(x + 1)).
Show solution
-
x² is a repeated factor, so it needs two fractions, one for x and one for x²:
-
Cover-up gives B and C; the coefficient of x² gives A:
-
Integrate each piece. B/x² is a power, not a logarithm:
Answer
ln|(x + 1)/x| − 1/x + C. Writing only B/x² and C/(x + 1) is the slip: two fractions cannot add up to this one, and the comparison of coefficients would have no solution.
-
-
A quadratic with no real root 2 steps
Find ∫(3x + 1)/(x² + 1) dx.
Show solution
-
x² + 1 does not factor, so split the numerator into a multiple of its derivative 2x and a constant:
-
The first part is f′/f, the second the arctangent:
Answer
(3/2) ln(x² + 1) + arctan x + C. No bars on the logarithm, because x² + 1 is never negative.
-
-
A linear factor times a quadratic 3 steps
Find ∫dx/(x(x² + 1)).
Show solution
-
The quadratic piece gets a linear numerator, Bx + C:
-
Cover-up gives A; matching the rest gives B and C:
-
A logarithm, and a logarithm of the quadratic:
Answer
ln|x| − ½ ln(x² + 1) + C. A constant over x² + 1 would not be enough: the numerator over a quadratic is always allowed to be linear.
-
-
An improper fraction: divide first 3 steps
Find ∫(x³ + x)/(x − 1) dx.
Show solution
-
The top has the higher degree, so divide first:
-
A polynomial plus a proper fraction:
-
Integrate term by term:
Answer
x³/3 + x²/2 + 2x + 2 ln|x − 1| + C. Partial fractions start only once the top’s degree is below the bottom’s.
-
-
Completing the square 2 steps
Find ∫dx/(x² + 4x + 13).
Show solution
-
The discriminant is 16 − 52 < 0, so there is no real root. Complete the square:
-
This is the arctangent form with h = −2 and k = 3:
Answer
(1/3) arctan((x + 2)/3) + C. Forgetting the 1/3 in front is the usual slip: arctan((x + 2)/3) differentiates to 3/(x² + 4x + 13), three times the integrand.
-
-
A definite integral between the poles 2 steps
Evaluate ∫01 dx/(x² − 4).
Show solution
-
x² − 4 = (x − 2)(x + 2), and the cover-up gives ±1/4:
-
Both poles, at ±2, lie outside [0, 1], so the formula may be used between the limits:
Answer
−(ln 3)/4 ≈ −0.2747. Negative, because 1/(x² − 4) is below zero on [0, 1]. Over an interval with a pole inside, the same subtraction would give a number for an integral that does not exist, which is the warning in the insight block on the constants of integration.
-
-
∫ dx/(x⁴ + 1): no real roots, two real quadratics 5 steps
Find ∫₀^∞ dx/(x⁴ + 1). The denominator has no real root, so there is no pole and no linear factor, and none of the page's problems looks like it. Press An arctangent for the building block.
Show solution
-
x⁴ + 1 has no real root, but it is a difference of two squares once 2x² is added and taken away, so it splits into two real quadratics:
-
Neither quadratic has a real root (both discriminants are 2 − 4 = −2), so each gets a linear top. Comparing coefficients gives:
-
Each quadratic piece splits into a multiple of the bottom's derivative, which gives a logarithm, and a constant over a completed square, which gives an arctangent:
-
So the antiderivative, valid on the whole line, is:
-
At x = 0 the logarithm is ln 1 = 0 and the arctangents cancel. As x grows the logarithm tends to ln 1 = 0 again and each arctangent to π/2:
Answer
π/(2√2) ≈ 1.1107. The page's explorer stops at x² + c; a quartic with no real roots needs the same two moves, a logarithm and an arctangent, carried out twice, with √2 in every coefficient.
-
Learning path
Techniques of integration
References (3)
- The integral of a rational function as a rational part plus Σ A log(x − a), with the coefficient over a simple root a given by P(a)/Q′(a) (§1, pp. 12–13), and the page's third claim in his words: “The roots of Q(x) = 0 are not in general explicit algebraical functions of the coefficients, and cannot as a rule be determined in any explicit form. The method of partial fractions is therefore subject to serious limitations” (§3, p. 15). §4 credits Hermite with finding the rational part without the roots: G. H. Hardy, The Integration of Functions of a Single Variable, 2nd ed., Cambridge Tracts in Mathematics and Mathematical Physics no. 2, Cambridge University Press (1916), Chapter IV, §§1–4.
- The arctangent as a logarithm: Example 2.1 (p. 4) checks by differentiation that 2i tan⁻¹(x), plus a constant, is a logarithm of the non-vanishing function (x − i)/(x + i), and why that matters: allowing only real exponentials and logarithms, 1/(1 + x²) would not be elementarily integrable at all (p. 7): B. Conrad, “Impossibility theorems for elementary integration”, Clay Mathematics Institute Academy Colloquium lecture notes (2005), §2, Example 2.1, and §3, p. 7.
- Why x⁵ − x − 1 has Galois group S₅: Dedekind's theorem turns a factorisation mod p into distinct irreducibles of degrees d₁, …, dₘ into a permutation of cycle type (d₁, …, dₘ) in the Galois group, and Theorem 2.1 says “a transitive subgroup of Sₙ that contains a transposition and a p-cycle for some prime p > n/2 is Sₙ”. The page supplies the factorisations (irreducible mod 5; (x² + x + 1)(x³ + x² + 1) mod 2) and its check verifies them: K. Conrad, “Recognizing Galois groups Sₙ and Aₙ”, expository note, University of Connecticut, §1 and Theorem 2.1.