• Foundation
  • About 22 min
  • 5 practice questions

Integrals of particular functions and partial fractions

Use the six special integrals with a² ± x², complete the square in a quadratic, handle (px + q) over a quadratic, and split rational functions into partial fractions before integrating.

If something looks wrong, please tell us.

Many integrals in physics and in board papers contain a quadratic expression under a fraction or a square root. A small set of special formulas, together with the algebra of completing the square and of partial fractions, handles almost all of them. This lesson collects those formulas and shows how to reduce a new integral to one of them.

Six special integrals

Special integrals (a > 0)
IntegralResult
∫ dx/(x² − a²)(1/2a) log |(x − a)/(x + a)| + C
∫ dx/(a² − x²)(1/2a) log |(a + x)/(a − x)| + C
∫ dx/(x² + a²)(1/a) tan⁻¹(x/a) + C
∫ dx/√(x² − a²)log |x + √(x² − a²)| + C
∫ dx/√(a² − x²)sin⁻¹(x/a) + C
∫ dx/√(x² + a²)log |x + √(x² + a²)| + C

How the first one is proved. Split the fraction: 1/(x² − a²) = 1/[(x − a)(x + a)] = (1/2a)[1/(x − a) − 1/(x + a)]. (Check: the bracket equals [(x + a) − (x − a)]/(x² − a²) = 2a/(x² − a²).) Integrating, (1/2a)[log |x − a| − log |x + a|] + C = (1/2a) log |(x − a)/(x + a)| + C. The second is proved the same way.

The others use a trigonometric substitution. For ∫ dx/(x² + a²) put x = a tan θ, dx = a sec² θ dθ: the integral becomes ∫ a sec² θ dθ/(a² sec² θ) = θ/a + C = (1/a) tan⁻¹(x/a) + C. For ∫ dx/√(a² − x²) put x = a sin θ: ∫ a cos θ dθ/(a cos θ) = θ + C = sin⁻¹(x/a) + C. For ∫ dx/√(x² + a²) put x = a tan θ; the integral becomes ∫ sec θ dθ = log |sec θ + tan θ| = log |√(x² + a²)/a + x/a|, and the constant −log a is absorbed into C. The case √(x² − a²) uses x = a sec θ in the same way.

Completing the square

For ∫ dx/(ax² + bx + c) or ∫ dx/√(ax² + bx + c), take out a (or √a) and complete the square: ax² + bx + c = a[(x + b/2a)² + (c/a − b²/4a²)]. With t = x + b/2a (so dt = dx) the integral becomes one of the six forms, depending on the sign of the constant.

Worked example 1

Find ∫ dx/(x² + 4x + 13). Complete the square: x² + 4x + 13 = (x + 2)² + 9 = (x + 2)² + 3². With t = x + 2, ∫ dt/(t² + 3²) = (1/3) tan⁻¹(t/3) + C. Answer: (1/3) tan⁻¹((x + 2)/3) + C.

Worked example 2

Find ∫ dx/√(8 + 2x − x²). Rewrite: 8 + 2x − x² = 8 − (x² − 2x) = 8 − [(x − 1)² − 1] = 9 − (x − 1)². With t = x − 1, ∫ dt/√(3² − t²) = sin⁻¹(t/3) + C. Answer: sin⁻¹((x − 1)/3) + C.

A linear numerator over a quadratic

For ∫ (px + q)/(ax² + bx + c) dx, write the numerator as A × (derivative of the denominator) + B, that is px + q = A(2ax + b) + B, and find A and B by comparing coefficients. The first part is of the form f′/f (a logarithm); the second part is handled by completing the square. The same split works with √(ax² + bx + c) in the denominator, where the first part gives 2A√(ax² + bx + c).

Worked example 3

Find ∫ (x + 3)/(x² + 2x + 5) dx. Write x + 3 = A(2x + 2) + B. Coefficient of x: 1 = 2A, so A = 1/2. Constant: 3 = 2A + B = 1 + B, so B = 2. Then the integral = (1/2) ∫ (2x + 2)/(x² + 2x + 5) dx + 2 ∫ dx/[(x + 1)² + 2²] = (1/2) log (x² + 2x + 5) + 2 · (1/2) tan⁻¹((x + 1)/2) + C = (1/2) log (x² + 2x + 5) + tan⁻¹((x + 1)/2) + C. (The quadratic is always positive, so no modulus is needed.)

Integration by partial fractions

A rational function P(x)/Q(x) is proper if the degree of P is less than the degree of Q, otherwise improper. An improper one is first divided: P(x)/Q(x) = T(x) + P₁(x)/Q(x), where T is a polynomial and P₁/Q is proper. A proper rational function whose denominator factorises into linear and quadratic factors can be written as a sum of simpler fractions, its partial fractions, each of which we can integrate.

Forms of partial fractions (A, B, C are constants to be found)
Form of the rational functionPartial fractions
(px + q)/[(x − a)(x − b)], a ≠ bA/(x − a) + B/(x − b)
(px + q)/(x − a)²A/(x − a) + B/(x − a)²
(px² + qx + r)/[(x − a)(x − b)(x − c)]A/(x − a) + B/(x − b) + C/(x − c)
(px² + qx + r)/[(x − a)²(x − b)]A/(x − a) + B/(x − a)² + C/(x − b)
(px² + qx + r)/[(x − a)(x² + bx + c)], quadratic not factorisableA/(x − a) + (Bx + C)/(x² + bx + c)

Integrating a rational function

  1. Is it proper? If not, divide first
  2. Factorise the denominator
  3. Write the partial-fraction form from the table
  4. Find the constants (substitute roots or compare coefficients)
  5. Integrate each fraction

Worked example 4: distinct linear factors

Find ∫ dx/[(x − 1)(x + 2)]. Write 1/[(x − 1)(x + 2)] = A/(x − 1) + B/(x + 2), so 1 = A(x + 2) + B(x − 1) for all x. Put x = 1: 1 = 3A, A = 1/3. Put x = −2: 1 = −3B, B = −1/3. Hence the integral = (1/3) log |x − 1| − (1/3) log |x + 2| + C = (1/3) log |(x − 1)/(x + 2)| + C.

Worked example 5: a repeated factor

Find ∫ (x + 1)/[(x − 1)²(x + 3)] dx. Write (x + 1)/[(x − 1)²(x + 3)] = A/(x − 1) + B/(x − 1)² + C/(x + 3), so x + 1 = A(x − 1)(x + 3) + B(x + 3) + C(x − 1)². Put x = 1: 2 = 4B, B = 1/2. Put x = −3: −2 = 16C, C = −1/8. Compare the coefficients of x²: 0 = A + C, so A = 1/8. (Check with x = 0: −3A + 3B + C = −3/8 + 12/8 − 1/8 = 1 ✓.) Integrating, (1/8) log |x − 1| − 1/[2(x − 1)] − (1/8) log |x + 3| + C = (1/8) log |(x − 1)/(x + 3)| − 1/[2(x − 1)] + C. Note that ∫ dx/(x − 1)² = −1/(x − 1), not a logarithm.

Divide first if the fraction is improper; one partial fraction for each linear factor, one extra for each repeat, and (Bx + C) over each quadratic that will not factorise.

Key takeaways

  • Learn the six special integrals with x² ± a² and a² − x².
  • Complete the square to bring any quadratic into one of those forms.
  • For (px + q) over a quadratic, split the numerator as A × (derivative of the denominator) + B.
  • Partial fractions apply to proper rational functions; divide an improper one first.
  • Find constants quickly by substituting the roots of the denominator, then check with one more value.

Check your understanding

  1. 1. ∫ dx/(x² + 16) equals

    1. tan⁻¹(x/4) + C
    2. (1/4) tan⁻¹(x/4) + C
    3. (1/8) log |(x − 4)/(x + 4)| + C
    4. (1/16) tan⁻¹(x/16) + C
    Show answer

    Answer: B. Use ∫ dx/(x² + a²) = (1/a) tan⁻¹(x/a) + C with a = 4: (1/4) tan⁻¹(x/4) + C.

  2. 2. ∫ dx/√(9 − x²) equals

    1. sin⁻¹(x/3) + C
    2. (1/3) sin⁻¹(x/3) + C
    3. log |x + √(9 − x²)| + C
    4. (1/3) tan⁻¹(x/3) + C
    Show answer

    Answer: A. Use ∫ dx/√(a² − x²) = sin⁻¹(x/a) + C with a = 3. Unlike the tan⁻¹ form, there is no factor 1/a in front.

  3. 3. ∫ dx/(x² − 6x + 10) equals

    1. log |x² − 6x + 10| + C
    2. tan⁻¹(x + 3) + C
    3. (1/2) tan⁻¹((x − 3)/2) + C
    4. tan⁻¹(x − 3) + C
    Show answer

    Answer: D. x² − 6x + 10 = (x − 3)² + 1. With t = x − 3, ∫ dt/(t² + 1) = tan⁻¹ t + C = tan⁻¹(x − 3) + C.

  4. 4. If (3x + 5)/[(x + 1)(x + 2)] = A/(x + 1) + B/(x + 2), then

    1. A = 1, B = 2
    2. A = 3, B = 5
    3. A = 2, B = 1
    4. A = −2, B = 5
    Show answer

    Answer: C. 3x + 5 = A(x + 2) + B(x + 1). Put x = −1: 2 = A. Put x = −2: −1 = −B, so B = 1. Check: 2/(x + 1) + 1/(x + 2) = (2x + 4 + x + 1)/[(x + 1)(x + 2)] = (3x + 5)/[(x + 1)(x + 2)].

  5. 5. Assertion (A): ∫ dx/(x² − 4) = (1/4) log |(x + 2)/(x − 2)| + C. Reason (R): ∫ dx/(x² − a²) = (1/2a) log |(x − a)/(x + a)| + C.

    1. Both A and R are true, and R is the correct explanation of A
    2. Both A and R are true, but R is not the correct explanation of A
    3. A is true, but R is false
    4. A is false, but R is true
    Show answer

    Answer: D. R is the standard result. With a = 2 it gives (1/4) log |(x − 2)/(x + 2)| + C. A has the fraction upside down, which changes the sign of the answer, so A is false.

Sign in to keep track of the lessons you finish.

Next lesson → Integration by parts

Privacy · Terms · Refunds · Delivery