Concept understanding — Integration By Completing Square
Integration by Completing the Square
You can integrate x2+11 or x2−a21 on sight. But a quadratic denominator such as x2+4x+5 fits neither standard form directly. The fix is to rewrite the quadratic as a perfect square plus (or minus) a constant, turning it into a form you already know.
The move
For x2+bx+c, add and subtract (2b)2:
x2+bx+c=(x+2b)2+(c−4b2).
After substituting u=x+2b the integral collapses to ∫u2+k2du or ∫u2−k2du.
Case A — leads to inverse tangent
∫x2+4x+5dx.
Complete the square: x2+4x+5=(x+2)2+1. With u=x+2,
∫u2+1du=tan−1u+C=tan−1(x+2)+C.
Tip
∫u2+a2du=a1tan−1au+C is the workhorse when the constant left over is positive.
Case B — leads to a logarithm
∫x2−6x+5dx.
Here x2−6x+5=(x−3)2−4. With u=x−3 the denominator u2−4 factors, so use partial fractions:
The integral ∫x2+3xdx is solved by completing the square inside the radical, then using a trigonometric substitution (secant) to simplify the expression. The final result is 21(x+23)x2+3x−89logx+23+x2+3x+C.
The key to integrating expressions like x2+3x is to recognize that the quadratic under the square root can be rewritten as a perfect square plus a constant. This is the technique of completing the square. Once we have something like (x+a)2+b or (x+a)2−b, we can use a trigonometric substitution to eliminate the square root.
Why does this work? The identity sec2θ−1=tan2θ is perfect for handling expressions of the form u2−a2, because substituting u=asecθ turns the square root into atanθ, which is a simple trigonometric function. Similarly, sin2 and cos2 handle sums. Here, after completing the square, we get a difference of squares, so secant substitution is the right tool.
Let’s work through it step by step.
Complete the square.
The expression inside the square root is x2+3x. To complete the square, take half of the coefficient of x (which is 23), square it (49), and add and subtract it:
x2+3x=(x2+3x+49)−49=(x+23)2−49.
So the integral becomes:
∫(x+23)2−(23)2dx.
Make a substitution to simplify.
Let u=x+23, so du=dx. Then the integral is:
∫u2−(23)2du.
This is now in the standard form ∫u2−a2du with a=23.
Apply trigonometric substitution.
For u2−a2, we use u=asecθ, so du=asecθtanθdθ. Here a=23, so:
u=23secθ,du=23secθtanθdθ.
Then u2−a2=49sec2θ−49=23sec2θ−1=23tanθ (assuming tanθ≥0 for the principal branch; we’ll handle absolute values later).
The integral becomes:
∫(23tanθ)⋅(23secθtanθ)dθ=49∫secθtan2θdθ.
Simplify the trigonometric integral.
Use the identity tan2θ=sec2θ−1:
49∫secθ(sec2θ−1)dθ=49∫(sec3θ−secθ)dθ.
Now we need to integrate sec3θ and secθ. The integral of secθ is standard: ∫secθdθ=log∣secθ+tanθ∣+C.
For sec3θ, we use integration by parts or a known reduction formula. Let’s do it quickly:
∫sec3θdθ=21secθtanθ+21log∣secθ+tanθ∣+C.
(This can be derived by writing ∫sec3θdθ=∫secθ⋅sec2θdθ and integrating by parts with u=secθ, dv=sec2θdθ.)
Back-substitute to u and then to x.
We have u=23secθ, so secθ=32u. Also, tanθ=sec2θ−1=94u2−1=32u2−49=32u2−a2.
But note: u2−a2 is exactly the original square root we had! So tanθ=32u2−49. …
Method: Complete the square, then use a standard formula
To integrate quadratic, rewrite the quadratic as (x+p)2±a2 or a2−(x+p)2 by completing the square, substitute t=x+p, and quote the matching standard integral.
Steps
Step 1: Complete the square on the quadratic under the root, so it becomes (x+p)2+k for some constant k.
Step 2: Substitute t=x+p (so dt=dx); the integral becomes ∫t2±a2dt or ∫a2−t2dt.
Same / Similar Concept — real previous-year questions on the same or a closely similar concept, not this exact question.
JEE Main 2026Set 2026-01-23-s24 marksMCQ
Q.Let I(x) = ∫ 3 dx / [(4x+6)√(4x²+8x+3)] and I(0) = √3/4 + 20.
I(1/2) = a√2/b + c, where a, b, c ∈ N, gcd(a,b) = 1, then a + b + c is equal to
(A) 31
(B) 28
(C) 29
(D) 30
›Reveal solutionSolution
The antiderivative is (3/4)sqrt((2x+1)/(2x+3))+C; matching I(0) pins C=20 exactly, giving I(1/2)=3sqrt(2)/8+20, so a+b+c=31.
Integrands of the form (linear)/[(linear)*sqrt(quadratic)] with the quadratic factoring into two linear pieces are often the derivative of a square-root-of-a-ratio function -- guessing that form and verifying by differentiation beats a messy substitution.
Factor: 4x^2+8x+3=(2x+1)(2x+3), and 4x+6=2(2x+3).
Try g(x)=sqrt((2x+1)/(2x+3)). Using logarithmic/direct differentiation: g'(x) = 2/[(2x+3)^(3/2)(2x+1)^(1/2)].
The given integrand is 3/[(4x+6)sqrt((2x+1)(2x+3))] = (3/2)/[(2x+3)^(3/2)(2x+1)^(1/2)]
Comparing, this equals (3/4)*g'(x) exactly (since (3/4)*2=3/2). So I(x) = (3/4)*sqrt((2x+1)/(2x+3)) + C.
At x=0: I(0) = (3/4)*sqrt(1/3) + C = (3/4)(1/sqrt(3))+C = sqrt(3)/4 + C. Given I(0)=sqrt(3)/4+20, this gives C=20 exactly. …
Q.Let I(x) = \int \sqrt{(x+7)/x}, dx and I(9) = 12 + 7 \log_e 7. If I(1) = α + 7 \log_e(1+2\sqrt{2}), then α^4 is equal to ______.
›Reveal solutionSolution
Integrate (x+7)/x by splitting the numerator, fix the constant using I(9), then evaluate I(1) and recognise the resulting log argument as a perfect square.
xx+7=x2+7xx+7; writing x+7=(x+3.5)+3.5 splits the integral into ∫x2+7xx+3.5dx+3.5∫x2+7xdx.
First part integrates to x2+7x; second part integrates to 27lnx+27+x2+7x. So I(x)=x(x+7)+27ln(x+27+x(x+7))+C.
At x=9: 9⋅16=12; log argument =9+3.5+12=24.5=49/2. Given I(9)=12+7ln7: 27ln(49/2)+C=7ln7⇒C=27ln2 (since 27ln(49/2)=7ln7−27ln2). …
Q.The integral ∫ [(2x−1)cos√((2x−1)²+5)] / √(4x²−4x+6) dx is equal to (where c is a constant of integration):
(A) (1/2) sin√((2x−1)²+5) + c
(B) (1/2) cos√((2x+1)²+5) + c
(C) (1/2) cos√((2x−1)²+5) + c
(D) (1/2) sin√((2x+1)²+5) + c
›Reveal solutionSolution
Substituting u=(2x−1)2+5 then w=u reduces the integral to 21∫coswdw, giving 21sin(2x−1)2+5+c.
Note that 4x2−4x+6=(2x−1)2+5 (expand: (2x−1)2=4x2−4x+1, plus 5 gives 4x2−4x+6 — confirmed).
Let u=(2x−1)2+5, so 4x2−4x+6=u, and dxdu=2(2x−1)×2=4(2x−1)⇒(2x−1)dx=4du.
The integral becomes ∫ucosu⋅4du=41∫ucosudu. …
Q.If the integral of dx/(x²+x+1)² = a tan⁻¹((2x+1)/√3) + b(2x+1)/(x²+x+1) + C, x > 0 where C is the constant of integration, then the value of 9(√3 a + b) is equal to ________.
›Reveal solutionSolution
Applying the standard reduction formula for ∫du/(u2+k2)2 identifies a,b directly, giving 9(3a+b)=15.
Complete the square: x2+x+1=(x+21)2+43; let u=x+21, k2=43.
Standard formula: ∫(u2+k2)2du=2k21[u2+k2u+k1tan−1ku]+C.
With k2=3/4,k=3/2: this becomes 32[u2+3/4u+32tan−132u]=x2+x+12u/3+334tan−132x+1. …
Q.If ∫ sinx/(sin³x + cos³x) dx = α log_e|1+tanx| + β log_e|1−tanx+tan²x| + γ tan⁻¹[(2tanx−1)/√3] + C, when C is constant of integration, then the value of 18(α + β + γ²) is _________.
›Reveal solutionSolution
Reducing the integral via t=tanx and partial fractions pins down α,β,γ, giving 18(α+β+γ2)=3.
sin3x+cos3x=(sinx+cosx)(1−sinxcosx). Dividing numerator and denominator by cos3x: sin3x+cos3xsinx=tan3x+1tanxsec2x.
Substituting t=tanx, dt=sec2xdx: integral becomes ∫t3+1tdt=∫(t+1)(t2−t+1)tdt.
Bounding the integrand between its max and min values over [1,2] (or evaluating numerically) shows I≈0.343, so I2≈0.118 lies strictly between 1/9 and 1/8.
The standard approach is to bound the cubic g(x)=2x3−9x2+12x+4 on [1,2], finding its minimum and maximum there (it is a smooth, positive function on this interval), which bounds 1/g(x) between two constants, and hence bounds I=∫121/g(x)dx between (interval length)×(those constants) -- i.e. between two values whose squares bracket 1/9 and 1/8. …