Evaluate ∫dx/(x² + 4x + 13) using completing the square

medium CBSE JEE-MAIN JEE Main 2021 3 min read

Question

Evaluate:

dxx2+4x+13\int \frac{dx}{x^2 + 4x + 13}

(JEE Main 2021, similar pattern)


Solution — Step by Step

x2+4x+13=(x2+4x+4)+9=(x+2)2+32x^2 + 4x + 13 = (x^2 + 4x + 4) + 9 = (x + 2)^2 + 3^2

The denominator is now in the standard form u2+a2u^2 + a^2.

Let u=x+2u = x + 2, so du=dxdu = dx.

dx(x+2)2+9=duu2+32\int \frac{dx}{(x+2)^2 + 9} = \int \frac{du}{u^2 + 3^2}
duu2+a2=1atan1(ua)+C\int \frac{du}{u^2 + a^2} = \frac{1}{a}\tan^{-1}\left(\frac{u}{a}\right) + C =13tan1(u3)+C= \frac{1}{3}\tan^{-1}\left(\frac{u}{3}\right) + C

Substitute back u=x+2u = x + 2:

dxx2+4x+13=13tan1(x+23)+C\boxed{\int \frac{dx}{x^2 + 4x + 13} = \frac{1}{3}\tan^{-1}\left(\frac{x+2}{3}\right) + C}

Why This Works

The trick is recognising that any quadratic ax2+bx+cax^2 + bx + c (with a>0a > 0 and discriminant <0< 0) can be written as (x+p)2+q2(x + p)^2 + q^2 by completing the square. Once in this form, we match it to the standard duu2+a2\int \frac{du}{u^2 + a^2} result, which comes from the derivative of tan1\tan^{-1}.

The condition “discriminant <0< 0” is important — it means the quadratic has no real roots, so the denominator never becomes zero. Here, Δ=1652=36<0\Delta = 16 - 52 = -36 < 0, confirming the integral is well-defined for all real xx.


Alternative Method — Direct application without substitution

You can skip the explicit substitution and write:

dx(x+2)2+32=13tan1(x+23)+C\int \frac{dx}{(x+2)^2 + 3^2} = \frac{1}{3}\tan^{-1}\left(\frac{x+2}{3}\right) + C

directly, treating x+2x + 2 as the variable. This saves a line of work but requires you to be comfortable with the formula.

Completing the square is the gateway step for all integrals of the form dxax2+bx+c\int \frac{dx}{ax^2 + bx + c}. Depending on the sign of the discriminant, you’ll end up with either tan1\tan^{-1} (discriminant < 0) or log\log (discriminant > 0). Master this one technique and you can handle an entire family of integrals.


Common Mistake

A frequent error: writing (x+2)2+9(x+2)^2 + 9 but then using a=9a = 9 instead of a=3a = 3 in the formula. Remember, the form is u2+a2u^2 + a^2, not u2+au^2 + a. Here a2=9a^2 = 9, so a=3a = 3. Using a=9a = 9 gives 19tan1(x+29)\frac{1}{9}\tan^{-1}\left(\frac{x+2}{9}\right) — wrong by a factor of 3 in both the coefficient and the argument.

Want to master this topic?

Read the complete guide with more examples and exam tips.

Go to full topic guide →

Try These Next