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:
We integrate 1+2x+3x25x−2 by first completing the square in the denominator, then splitting the numerator into a derivative-matching part and a constant part. The result is 65log∣1+2x+3x2∣−3211tan−1(23x+1)+C.
When you see a quadratic denominator like 1+2x+3x2, the first instinct is often to check if the numerator is a multiple of the derivative of the denominator. That would give a simple log. Here, the derivative of the denominator is 2+6x, and our numerator is 5x−2 — not a perfect match, but close. The trick is to complete the square in the denominator to turn it into something like a2+(x+b)2, which then invites an arctan substitution for the leftover constant part.
Let’s walk through it cleanly.
Complete the square in the denominator
We have 3x2+2x+1. Factor out the 3 from the quadratic terms:
3x2+2x+1=3(x2+32x)+1
Complete the square inside the bracket: x2+32x=(x+31)2−91.
So
3[(x+31)2−91]+1=3(x+31)2−31+1=3(x+31)2+32
Factor the constant to make it look like a2+u2:
=3[(x+31)2+92]
So the denominator becomes 3[(x+31)2+(32)2].
Tip
A quicker way: for ax2+bx+c, the completed form is a[(x+2ab)2+4a24ac−b2]. Here a=3, b=2, c=1 gives 4ac−b2=12−4=8, so the constant inside is 368=92. Same result, faster.
Rewrite the integral
I=∫3[(x+31)2+92]5x−2dx=31∫(x+31)2+925x−2dx
Split the numerator to match the derivative of the denominator
The derivative of (x+31)2+92 is 2(x+31)=2x+32. We want to express 5x−2 as A(2x+32)+B.
Notice that the numerator 2x+32 is exactly the derivative of the denominator (x+31)2+92. So
∫(x+31)2+922x+32dx=log(x+31)2+92+C1
But (x+31)2+92=31(1+2x+3x2), so the log is log31(1+2x+3x2)=log∣1+2x+3x2∣−log3. The constant −log3 gets absorbed into C, so we can simply write log∣1+2x+3x2∣. …
Method: quadraticlinear — split into a log part and an arctan part
For a linear numerator over a quadratic with no real roots, split the numerator into (a multiple of the derivative of the denominator) + (a constant); the first gives a logarithm, the second an arctangent.
Steps
Step 1: Split the numerator. With denominator D(x)=ax2+bx+c and D′(x)=2ax+b,
Mistake 1: Forgetting the leading coefficient when completing the square.
Why it's wrong: for 3x2+2x+1 you must first factor out the 3; ignoring it scales the arctan term wrongly. Correct approach: write D(x)=a[(x+h)2+k2] and keep the a1 outside.
Mistake 2: Using a log-of-difference form for the constant piece. …
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. …