‹ Class 12 · Ch 7
Integrals · Principle 11 of 26

Complete the square, then use the table

Complete the square: t = x + b/(2a) leaves t² ± k².

Stuck? Ask Guru

NCERT: 7.4 Integrals of Some Particular Functions

Think

Not quite a standard form

We can do ∫ dt/(t² + 2²). But what about ∫ dx/(x² − 6x + 13)? The bottom has an x term, −6x, that the formulas do not have.

x² − 6x + 13 = (x − 3)² + ?

What this lesson covers

The idea

For ∫ dx/(ax² + bx + c) or ∫ dx/√(ax² + bx + c), complete the square, put x + b/2a = t, and reduce the integral to one of the standard forms with t² ± k².

Not quite a standard form

We can do ∫ dt/(t² + 2²). But what about ∫ dx/(x² − 6x + 13)? The bottom has an x term, −6x, that the formulas do not have.

x² − 6x + 13 = (x − 3)² + ?

  • 4
  • 13
  • −9

Find the shift

Choose t so that the bottom becomes t² plus or minus a number, with no t term left. These are the book's Example 9.

Complete the square

For ∫ dx/(ax² + bx + c) or ∫ dx/√(ax² + bx + c), complete the square, put t = x + b/(2a) (so dx = dt), and the integral becomes one of the standard forms in t² ± k².

The shift is always half the coefficient of x (after taking a outside). Squaring it and subtracting gives the constant: for x² − 6x + 13, (x − 3)² = x² − 6x + 9, so x² − 6x + 13 = (x − 3)² + 4.

Then the sign of the constant decides which formula: + k² gives tan⁻¹ (or log |⁠t + √(t² + k²)⁠| under a root), − k² gives the log formulas.

Notes

Complete the square in ax² + bx + c. Put t = x + b/(2a), so dx = dt. The integral becomes one of the standard forms with t² ± k².

Check yourself

x² + 4x + 8 = (x + h)² + 4. Find h.

Answer: 2

(x + 2)² = x² + 4x + 4, so x² + 4x + 8 = (x + 2)² + 4 and ∫ dx/(x² + 4x + 8) = (1/2) tan⁻¹((x + 2)/2) + C.

∫ dx/(x² + 2x + 2) = ?

∫ dx/√(x² − 4x + 13) = ?

  • tan⁻¹(x + 1) + C — correct. Yes! x² + 2x + 2 = (x + 1)² + 1, and ∫ dt/(t² + 1) = tan⁻¹ t.
  • (1/2) tan⁻¹((x + 1)/2) + C. The constant left is 1 = 1², so k = 1, not 2.
  • log |⁠x² + 2x + 2⁠| + C. The top is 1, not 2x + 2, so this is not a log.
  • tan⁻¹(x + 2) + C. The shift is half of 2, which is 1.
  • sin⁻¹((x − 2)/3) + C. sin⁻¹ needs 3² − t². Here it is t² + 3².
  • log |⁠x − 2 + √(x² − 4x + 13)⁠| + C — correct. Yes! x² − 4x + 13 = (x − 2)² + 3². With t = x − 2, ∫ dt/√(t² + 3²) = log |⁠t + √(t² + 9)⁠| + C.
  • (1/3) tan⁻¹((x − 2)/3) + C. That would be without the square root.
  • log |⁠x + 2 + √(x² − 4x + 13)⁠| + C. The shift is x − 2, not x + 2.