• Practice
  • About 22 min
  • 5 practice questions

Integrating rational and irrational algebraic functions

Use the standard integrals of 1/(x² ± a²), 1/(a² − x²), 1/√(a² − x²), 1/√(x² ± a²) and √(a² − x²), √(x² ± a²), complete the square, and integrate (px + q) over a quadratic or its square root.

If something looks wrong, please tell us.

By the end of this lesson you can

  • State the nine standard integrals involving a² ± x² and x² − a², and derive some of them.
  • Complete the square in ax² + bx + c to reduce an integral to a standard form.
  • Integrate (px + q)/(ax² + bx + c) and (px + q)/√(ax² + bx + c) by writing px + q = A × (derivative of the quadratic) + B.
  • Integrate √(quadratic) after completing the square.

The last section of the chapter deals with fractions and roots built from quadratics. Everything comes down to a small table of standard results, plus two algebraic moves: completing the square, and splitting a linear numerator into a multiple of the denominator's derivative plus a constant.

The standard integrals

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

Where they come from. The first two follow from partial fractions: 1/(a² − x²) = (1/2a)[1/(a + x) + 1/(a − x)], whose integral is (1/2a)[log |a + x| − log |a − x|]. The others use a trigonometric substitution: x = a tan θ for a² + x², x = a sin θ for a² − x², and x = a sec θ for x² − a². For example, with x = a tan θ, dx = a sec²θ dθ and a² + x² = a² sec²θ, so ∫ dx/(a² + x²) = ∫ (1/a) dθ = θ/a + c = (1/a) tan⁻¹(x/a) + c. The three square-root results are proved by integration by parts (or by the sine substitution for √(a² − x²)).

Which substitution for which expression

  • a² − x²
    • x = a sin θ
    • a² − x² = a² cos²θ
    • leads to sin⁻¹(x/a)
  • a² + x²
    • x = a tan θ
    • a² + x² = a² sec²θ
    • leads to tan⁻¹(x/a) or log
  • x² − a²
    • x = a sec θ
    • x² − a² = a² tan²θ
    • leads to log

Worked example 1: making the coefficient of x² one

Find ∫ dx/(9x² + 4). Take out 9: (1/9) ∫ dx/(x² + 4/9) = (1/9) × [1/(2/3)] tan⁻¹[x/(2/3)] + c = (1/9)(3/2) tan⁻¹(3x/2) + c = (1/6) tan⁻¹(3x/2) + c. Check: the derivative is (1/6)(3/2)/(1 + 9x²/4) = (1/4) × 4/(4 + 9x²) = 1/(9x² + 4). Also ∫ dx/√(16 − x²) = sin⁻¹(x/4) + c directly.

Completing the square

To bring ax² + bx + c to a standard form: (1) make the coefficient of x² one by taking out a; (2) add and subtract the square of half the coefficient of x. The result is a(x + k)² ± m², and then x + k plays the role of x in the table (with dx unchanged, since d(x + k) = dx).

Worked example 2: three quadratics

  • ∫ dx/(x² + 6x + 13): x² + 6x + 13 = (x + 3)² + 4 = (x + 3)² + 2². So the integral is (1/2) tan⁻¹[(x + 3)/2] + c.
  • ∫ dx/(x² − 2x − 8): x² − 2x − 8 = (x − 1)² − 9 = (x − 1)² − 3². So the integral is (1/6) log |(x − 1 − 3)/(x − 1 + 3)| + c = (1/6) log |(x − 4)/(x + 2)| + c. Partial fractions give the same: 1/[(x − 4)(x + 2)] = (1/6)[1/(x − 4) − 1/(x + 2)].
  • ∫ dx/√(x² − 4x + 3): x² − 4x + 3 = (x − 2)² − 1. So the integral is log |x − 2 + √(x² − 4x + 3)| + c.

A linear numerator: (px + q) over a quadratic or its root

For ∫ (px + q)/(ax² + bx + c) dx or ∫ (px + q)/√(ax² + bx + c) dx, write px + q = A × d/dx(ax² + bx + c) + B = A(2ax + b) + B, and find A and B by comparing coefficients. The A part is of the form f′/f (giving A log |quadratic|) or f′/√f (giving 2A√quadratic, from the fⁿf′ result with n = −1/2); the B part is a standard form after completing the square.

Worked example 3: over a quadratic

Find ∫ (2x + 5)/(x² + 2x + 5) dx. Write 2x + 5 = A(2x + 2) + B. Comparing x terms, 2A = 2 so A = 1; comparing constants, 2A + B = 5 so B = 3. Then the integral is ∫ (2x + 2)/(x² + 2x + 5) dx + 3 ∫ dx/[(x + 1)² + 2²] = log (x² + 2x + 5) + (3/2) tan⁻¹[(x + 1)/2] + c. No modulus is needed since x² + 2x + 5 = (x + 1)² + 4 > 0.

Worked example 4: over a square root

Find ∫ (x + 3)/√(x² + 2x + 2) dx. Write x + 3 = A(2x + 2) + B: 2A = 1 gives A = 1/2, and 2A + B = 3 gives B = 2. The first part is (1/2) ∫ (2x + 2)/√(x² + 2x + 2) dx = (1/2) × 2√(x² + 2x + 2) = √(x² + 2x + 2). The second is 2 ∫ dx/√[(x + 1)² + 1] = 2 log |x + 1 + √(x² + 2x + 2)|. So the answer is √(x² + 2x + 2) + 2 log |x + 1 + √(x² + 2x + 2)| + c.

Worked example 5: square roots of quadratics

(i) ∫ √(9 − x²) dx, with a = 3: (x/2)√(9 − x²) + (9/2) sin⁻¹(x/3) + c. (ii) ∫ √(x² + 4x + 8) dx: complete the square, x² + 4x + 8 = (x + 2)² + 2², and use the √(x² + a²) result with x + 2 in place of x and a = 2: [(x + 2)/2]√(x² + 4x + 8) + 2 log |x + 2 + √(x² + 4x + 8)| + c.

Strategy for quadratic denominators and roots

  1. Linear numerator? Split px + q = A(derivative of quadratic) + B.
  2. Integrate the A part A log |Q| over a quadratic, or 2A√Q over a root.
  3. Complete the square Write the quadratic as (x + k)² ± m² or m² − (x + k)².
  4. Use the standard table With x + k in place of x.

Key takeaways: memorise the nine standard results and the substitution behind each family; complete the square to reach them; for a linear numerator, split off a multiple of the derivative of the quadratic. Watch the factor 1/(2a) in the log forms and the factor 1/a in the tan⁻¹ form.

Check your understanding

  1. 1. What is ∫ dx/(x² + 25)?

    1. tan⁻¹(x/5) + c
    2. (1/5) tan⁻¹(x/5) + c
    3. 5 tan⁻¹(5x) + c
    4. (1/10) log |(x − 5)/(x + 5)| + c
    Show answer

    Answer: B. ∫ dx/(x² + a²) = (1/a) tan⁻¹(x/a) + c with a = 5, giving (1/5) tan⁻¹(x/5) + c. The log form belongs to x² − a².

  2. 2. What is ∫ dx/√(4 − x²)?

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

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

  3. 3. What is ∫ dx/(x² − 1)?

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

    Answer: C. ∫ dx/(x² − a²) = (1/2a) log |(x − a)/(x + a)| + c with a = 1. Check by partial fractions: 1/(x² − 1) = (1/2)[1/(x − 1) − 1/(x + 1)].

  4. 4. What is ∫ dx/(x² + 4x + 5)?

    1. log (x² + 4x + 5) + c
    2. (1/2) tan⁻¹[(x + 2)/2] + c
    3. tan⁻¹(x + 4) + c
    4. tan⁻¹(x + 2) + c
    Show answer

    Answer: D. x² + 4x + 5 = (x + 2)² + 1, so with a = 1 the integral is tan⁻¹(x + 2) + c. The log option would need the numerator 2x + 4.

  5. 5. What is ∫ √(1 − x²) dx?

    1. (x/2)√(1 − x²) + (1/2) sin⁻¹x + c
    2. (1/2) sin⁻¹x + c
    3. −(1/3)(1 − x²)^(3/2) + c
    4. (x/2)√(1 − x²) − (1/2) sin⁻¹x + c
    Show answer

    Answer: A. ∫ √(a² − x²) dx = (x/2)√(a² − x²) + (a²/2) sin⁻¹(x/a) + c with a = 1. The option −(1/3)(1 − x²)^(3/2) would be the integral of x√(1 − x²), not of √(1 − x²).

Privacy · Terms · Refunds · Delivery