← Back to all lessons
Class 12Calculus11:28Published 10 Sept 2024

Integration Reduced to Special Forms (Part 1)

Class 12 integration: how to handle integrals with a quadratic in the denominator or under a square root by completing the square and reducing them to standard forms.

This lesson covers integrals of the type one over a quadratic and one over the square root of a quadratic. The method is to complete the square so the quadratic becomes a standard expression, then apply the matching standard integral for inverse tangent, inverse sine, or a logarithm. Five worked examples show the full working, including how to make the leading coefficient one and how to handle a negative coefficient of x squared.

What you'll learn

  • How to complete the square on a quadratic and reduce it to a standard form before integrating
  • When completing the square leads to an inverse tangent, an inverse sine, or a logarithm answer
  • How to make the coefficient of x squared equal to one, and how to handle a negative coefficient

Lesson chapters

0:01The two special types and the completing-the-square method
1:27Example 1: one over x squared plus 6x plus 13
3:03Example 2: leading coefficient nine
5:13Example 3: square root with a negative x squared term
6:49Example 4: square root of eight plus three x minus x squared
8:21Example 5: square root form giving a logarithm

Lesson notes

This lesson handles two special types of integral: dxax2+bx+c\displaystyle\int \frac{dx}{ax^2 + bx + c} and dxax2+bx+c\displaystyle\int \frac{dx}{\sqrt{ax^2 + bx + c}}. In both we complete the square on the quadratic to reach a standard form, then integrate.

The method: completing the square

Given ax2+bx+cax^2 + bx + c:

  1. If the coefficient of x2x^2 is not 11, take it outside so the bracket starts with x2x^2.
  2. Add and subtract the square of half the coefficient of xx, that is (b2)2\left(\tfrac{b}{2}\right)^2.
  3. Group the first three terms as a perfect square (x±k)2(x \pm k)^2, leaving a constant behind.

This turns the quadratic into one of the standard forms below, which we then integrate directly.

Example 1: dxx2+6x+13\displaystyle\int \frac{dx}{x^2 + 6x + 13}

The coefficient of x2x^2 is already 11. Half of 66 is 33, and 32=93^2 = 9, so add and subtract 99:

x2+6x+13=(x2+6x+9)9+13=(x+3)2+4=(x+3)2+22.x^2 + 6x + 13 = (x^2 + 6x + 9) - 9 + 13 = (x + 3)^2 + 4 = (x + 3)^2 + 2^2.

This is the standard form dxx2+a2=1atan1xa\displaystyle\int \frac{dx}{x^2 + a^2} = \frac{1}{a}\tan^{-1}\frac{x}{a} with a=2a = 2 and the variable x+3x + 3:

dx(x+3)2+22=12tan1x+32+C.\int \frac{dx}{(x + 3)^2 + 2^2} = \frac{1}{2}\tan^{-1}\frac{x + 3}{2} + C.

Example 2: dx9x2+6x+5\displaystyle\int \frac{dx}{9x^2 + 6x + 5}

The coefficient of x2x^2 is 99, so take 99 outside:

dx9x2+6x+5=19dxx2+23x+59.\int \frac{dx}{9x^2 + 6x + 5} = \frac{1}{9}\int \frac{dx}{x^2 + \tfrac{2}{3}x + \tfrac{5}{9}}.

Half of 23\tfrac{2}{3} is 13\tfrac{1}{3}, and (13)2=19\left(\tfrac{1}{3}\right)^2 = \tfrac{1}{9}. Add and subtract it:

x2+23x+59=(x+13)219+59=(x+13)2+49=(x+13)2+(23)2.x^2 + \tfrac{2}{3}x + \tfrac{5}{9} = \left(x + \tfrac{1}{3}\right)^2 - \tfrac{1}{9} + \tfrac{5}{9} = \left(x + \tfrac{1}{3}\right)^2 + \tfrac{4}{9} = \left(x + \tfrac{1}{3}\right)^2 + \left(\tfrac{2}{3}\right)^2.

Applying dxx2+a2=1atan1xa\displaystyle\int \frac{dx}{x^2 + a^2} = \frac{1}{a}\tan^{-1}\frac{x}{a} with a=23a = \tfrac{2}{3}:

19123tan1x+1323=1932tan13x+12=16tan13x+12+C.\frac{1}{9} \cdot \frac{1}{\tfrac{2}{3}} \tan^{-1}\frac{x + \tfrac{1}{3}}{\tfrac{2}{3}} = \frac{1}{9} \cdot \frac{3}{2}\tan^{-1}\frac{3x + 1}{2} = \frac{1}{6}\tan^{-1}\frac{3x + 1}{2} + C.

Example 3: dx76xx2\displaystyle\int \frac{dx}{\sqrt{7 - 6x - x^2}}

Here the coefficient of x2x^2 inside the root is negative, so take 1-1 outside:

76xx2=(x2+6x7).7 - 6x - x^2 = -\left(x^2 + 6x - 7\right).

Complete the square on x2+6x7x^2 + 6x - 7 using 32=93^2 = 9:

x2+6x7=(x+3)297=(x+3)216.x^2 + 6x - 7 = (x + 3)^2 - 9 - 7 = (x + 3)^2 - 16.

So

76xx2=[(x+3)216]=16(x+3)2=42(x+3)2.7 - 6x - x^2 = -\left[(x + 3)^2 - 16\right] = 16 - (x + 3)^2 = 4^2 - (x + 3)^2.

This is the standard form dxa2x2=sin1xa\displaystyle\int \frac{dx}{\sqrt{a^2 - x^2}} = \sin^{-1}\frac{x}{a} with a=4a = 4:

dx42(x+3)2=sin1x+34+C.\int \frac{dx}{\sqrt{4^2 - (x + 3)^2}} = \sin^{-1}\frac{x + 3}{4} + C.

Example 4: dx8+3xx2\displaystyle\int \frac{dx}{\sqrt{8 + 3x - x^2}}

Again take 1-1 outside:

8+3xx2=(x23x8).8 + 3x - x^2 = -\left(x^2 - 3x - 8\right).

Half of 33 is 32\tfrac{3}{2}, and (32)2=94\left(\tfrac{3}{2}\right)^2 = \tfrac{9}{4}:

x23x8=(x32)2948=(x32)2414,x^2 - 3x - 8 = \left(x - \tfrac{3}{2}\right)^2 - \tfrac{9}{4} - 8 = \left(x - \tfrac{3}{2}\right)^2 - \tfrac{41}{4},

since 948=9324=414-\tfrac{9}{4} - 8 = \dfrac{-9 - 32}{4} = -\tfrac{41}{4}. Therefore

8+3xx2=414(x32)2=(412)2(x32)2.8 + 3x - x^2 = \tfrac{41}{4} - \left(x - \tfrac{3}{2}\right)^2 = \left(\tfrac{\sqrt{41}}{2}\right)^2 - \left(x - \tfrac{3}{2}\right)^2.

Using dxa2x2=sin1xa\displaystyle\int \frac{dx}{\sqrt{a^2 - x^2}} = \sin^{-1}\frac{x}{a} with a=412a = \tfrac{\sqrt{41}}{2}:

sin1x32412=sin12x341+C.\sin^{-1}\frac{x - \tfrac{3}{2}}{\tfrac{\sqrt{41}}{2}} = \sin^{-1}\frac{2x - 3}{\sqrt{41}} + C.

Example 5: dx5x22x\displaystyle\int \frac{dx}{\sqrt{5x^2 - 2x}}

The coefficient of x2x^2 is 55, so take it outside the root as 5\sqrt{5}:

dx5x22x=15dxx225x.\int \frac{dx}{\sqrt{5x^2 - 2x}} = \frac{1}{\sqrt{5}}\int \frac{dx}{\sqrt{x^2 - \tfrac{2}{5}x}}.

Half of 25\tfrac{2}{5} is 15\tfrac{1}{5}, and (15)2=125\left(\tfrac{1}{5}\right)^2 = \tfrac{1}{25}:

x225x=(x15)2125=(x15)2(15)2.x^2 - \tfrac{2}{5}x = \left(x - \tfrac{1}{5}\right)^2 - \tfrac{1}{25} = \left(x - \tfrac{1}{5}\right)^2 - \left(\tfrac{1}{5}\right)^2.

This is the standard form dxx2a2=logx+x2a2\displaystyle\int \frac{dx}{\sqrt{x^2 - a^2}} = \log\left|x + \sqrt{x^2 - a^2}\right| with variable x15x - \tfrac{1}{5} and a=15a = \tfrac{1}{5}:

15log(x15)+x225x+C.\frac{1}{\sqrt{5}}\log\left|\left(x - \tfrac{1}{5}\right) + \sqrt{x^2 - \tfrac{2}{5}x}\right| + C.

Note that the square root term keeps the reduced expression x225x\sqrt{x^2 - \tfrac{2}{5}x}, because the factor 5\sqrt{5} was already taken outside.

Key takeaways

  • Complete the square first: ax2+bx+cax^2 + bx + c becomes (x±k)2±m(x \pm k)^2 \pm m, and a negative x2x^2 term becomes a2(x±k)2a^2 - (x \pm k)^2 after taking 1-1 outside.
  • A quadratic denominator gives an inverse tangent; a square root of the form a2x2a^2 - x^2 gives an inverse sine; a square root of the form x2a2x^2 - a^2 gives a logarithm.
  • When the coefficient of x2x^2 is not 11, take it outside first, and remember it stays as \sqrt{\cdot} outside the root in the square-root cases.