Q.Integrate the following function: x2+4x+6
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.
∫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:
∫u2−4du=41logu+2u−2+C=41logx−1x−5+C.
After completing the square, the leftover constant decides the route: positive ⇒ inverse tangent; negative ⇒ difference of squares ⇒ logarithm via partial fractions. (If the leading coefficient is not 1, factor it out first.)
If the numerator is not constant, e.g. ∫x2+4x+5xdx, first split it to match the derivative of the denominator, then complete the square on what remains.
Completing the square before integrating a quadratic denominator is a named technique in the NCERT Class 12 Integrals chapter, used to route a problem toward either the inverse tangent formula or a logarithmic partial-fraction result. Students searching 'integration by completing the square examples class 12' or 'integral of 1 by x square plus bx plus c' will find this add-and-subtract-(b/2)² method is exactly the standard CBSE board approach.
Idea: complete the square, then apply the standard ∫u2+a2du formula.
x2+4x+6=(x+2)2+2,u=x+2,a2=2.
Standard result:
∫u2+a2du=2uu2+a2+2a2logu+u2+a2+C.
Here 2a2=22=1, so substituting back u=x+2:
∫x2+4x+6dx=2x+2x2+4x+6+logx+2+x2+4x+6+C.
2x+2x2+4x+6+logx+2+x2+4x+6+C
Complete the square to (x+2)2+2 and use the u2+a2 formula with a2=2, giving log coefficient 1: 2x+2x2+4x+6+logx+2+x2+4x+6+C.
Step 1 — Complete the square
Half of the middle coefficient 4 is 2, and (x+2)2=x2+4x+4, so
x2+4x+6=(x+2)2+2.
The integral becomes ∫(x+2)2+2dx, of the form u2+a2 with u=x+2 and a=2 (so a2=2).
Step 2 — The standard formula
∫u2+a2du=2uu2+a2+2a2logu+u2+a2+C.
With a2=2, the log coefficient is 2a2=22=1 — not 21. So
∫u2+2du=2uu2+2+logu+u2+2+C.
Step 3 — Substitute back
Replace u=x+2 and note (x+2)2+2=x2+4x+6:
∫x2+4x+6dx=2x+2x2+4x+6+logx+2+x2+4x+6+C.
The absolute value matters: the radical is always positive (discriminant 16−24<0), but x+2 can be negative, so the log argument needs ∣⋅∣.
2x+2x2+4x+6+logx+2+x2+4x+6+C
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.
Step 3: Apply the correct standard formula.
∫t2−a2dt=2tt2−a2−2a2logt+t2−a2+C,
∫t2+a2dt=2tt2+a2+2a2logt+t2+a2+C,
∫a2−t2dt=2ta2−t2+2a2sin−1at+C.
Step 4: Back-substitute t=x+p and simplify; keep C. The whole skill is matching the completed square to the right one of these three templates.
Common Mistakes
Mistake 1: Completing the square wrongly: x2+4x+6=(x+2)2+6.
Why it's wrong: (x+2)2=x2+4x+4, so you must subtract the 4: x2+4x+6=(x+2)2+2. Correct approach: add and subtract (b/2)2.
Mistake 2: Using the a2−t2 (arcsin) formula for a + quadratic.
Why it's wrong: (x+2)2+2 is a t2+a2 form, giving a log, not sin−1. Correct approach: match the sign — a plus constant means the logarithmic template.
Mistake 3: Taking 2a2 as 2a (here a2=2).
Why it's wrong: the coefficient is 2a2=1, not 22. Correct approach: use a2, the constant itself, in the formula.
- GUJCET 2024Set 131 markMCQQ.∫4x−x21dx= __________ +C (A) 41logx−4x (B) sin−1(2x−2) (C) log(x−2)+4x−x2 (D) 21tan−1(2x−2)
›Reveal solutionSolution
Complete the square: 4x−x2=4−(x−2)2, then use ∫a2−u2dx=sin−1au.
Concept. Reduce to a standard a2−u2 form by completing the square.
4x−x2=−(x2−4x)=−[(x−2)2−4]=4−(x−2)2.
∫4−(x−2)2dx=sin−1(2x−2)+C.
✓Final answerOption (B) sin−1(2x−2)
ANSWER: (B)
- GUJCET 2025Set 031 markMCQQ.∫4x−9x2dx= _____ +C (A) 31sin−1(29x−2) (B) 91sin−1(23x−2) (C) 91sin−1(32x−3) (D) 21sin−1(29x−3)
›Reveal solutionSolution
Complete the square under the root: 4x−9x2=9[(92)2−(x−92)2].
∫4x−9x2dx=∫3(92)2−(x−92)2dx=31sin−192x−92+C=31sin−1(29x−2)+C.
✓Final answer(A) 31sin−1(29x−2)
ANSWER: (A)
- GUJCET 2026Set x1 markMCQQ.∫9x−4x2dx= ______ +C (A) 91sin−1(89x−8) (B) 31sin−1(89x−8) (C) 21sin−1(98x−9) (D) 21sin−1(99x−8)
›Reveal solutionSolution
Complete the square under the root and use ∫a2−u2du=sin−1au; result 21sin−198x−9.
Complete the square:
9x−4x2=−4(x2−49x)=−4[(x−89)2−6481]=1681−4(x−89)2
So
9x−4x2=2(89)2−(x−89)2
Thus
∫9x−4x2dx=21∫(9/8)2−(x−9/8)2dx=21sin−1(9/8x−9/8)+C=21sin−1(98x−9)+C
✓Final answerOption (C) 21sin−1(98x−9)
ANSWER: (C)
- GSEB Higher Secondary Certificate (HSC) Examination 2026Set ANNUAL1 markMCQQ.∫5x2−2x1dx= ____ +C.(a) 51log(5x−1)+25x2+10x(b) log(5x−1)+25x2+10x(c) 51log(5x−1)+25x2−10x(d) log(5x−1)+25x2−10x
›Reveal solutionSolution
Complete the square inside the square root and reduce to the standard form ∫dx/x2−a2.
5x2−2x=5[(x−51)2−251], so
∫5x2−2xdx=51∫(x−1/5)2−(1/5)2dx=51ln(x−51)+(x−1/5)2−1/25+C
Multiplying inside by 5 (absorbing the constant into C): =51log(5x−1)+25x2−10x+C.
✓Final answerThe correct option is (c) 51log∣(5x−1)+25x2−10x∣.
- GSEB Higher Secondary Certificate (HSC) Examination 2024Set ANNUAL1 markMCQQ.∫x2+2x+5dx= ______ +C.(a) tan−1(2x+1)(b) 21tan−1(2x+1)(c) tan−1(x+1)(d) 21tan−1(x+1)
›Reveal solutionSolution
Complete the square in the denominator to get the standard x2+a21 form.
x2+2x+5=(x+1)2+4.
∫(x+1)2+22dx=21tan−1(2x+1)+C.
✓Final answerThe correct option is (b) 21tan−1(2x+1).
- GSEB Higher Secondary Certificate (HSC) Examination 2022Set ANNUAL1 markMCQQ.∫(x−1)(x−2)1dx= ___ +C.(a) log(x−23)−x2−3x+2(b) logx+x2−3x+2(c) log(x−23)+x2−3x+2(d) log(x+23)+x2−3x+2
›Reveal solutionSolution
Complete the square under the root and use ∫t2−a2dx=log∣t+t2−a2∣.
(x−1)(x−2)=x2−3x+2=(x−23)2−41.
With t=x−23:
∫t2−(1/2)2dx=logt+t2−41=log(x−23)+x2−3x+2.
✓Final answer(c) log(x−23)+x2−3x+2+C.
- GSEB Higher Secondary Certificate (HSC) Examination 2022Set ANNUAL1 markMCQQ.∫x2+4x+1dx= ___ +C.(a) 2x+2x2+4x+1+23logx+2+x2+4x+1(b) 2x+2x2+4x+1−23logx+2+x2+4x+1(c) 2x+2x2+4x+1−9logx+2+x2+4x+1(d) 2x+2x2+4x+1+9logx+2+x2+4x+1
›Reveal solutionSolution
Complete the square and use ∫t2−a2dt=2tt2−a2−2a2log∣t+t2−a2∣.
x2+4x+1=(x+2)2−3, so t=x+2, a2=3.
∫t2−3dt=2tt2−3−23log∣t+t2−3∣.
Substituting back:
=2x+2x2+4x+1−23logx+2+x2+4x+1.
✓Final answer(b) 2x+2x2+4x+1−23logx+2+x2+4x+1+C.
- GSEB Higher Secondary Certificate (HSC) Examination 2020Set ANNUAL1 markMCQQ.∫2x−x2dx= ___ + C.(a) sin−1(x−1)(b) 21sin−1(x−1)(c) 2sin−1(x−1)(d) log(x−1)+2x−x2
›Reveal solutionSolution
Complete the square under the root to get the standard form ∫a2−u2dx=sin−1au+C.
2x−x2=−(x2−2x)=−(x2−2x+1−1)=1−(x−1)2.
∫2x−x2dx=∫1−(x−1)2dx=sin−1(x−1)+C.
✓Final answer(a) sin−1(x−1)+C.
- GSEB Higher Secondary Certificate (HSC) Examination 2019Set ANNUAL1 markMCQQ.∫16−x2dx= ______ +C.(a) 2x16−x2+8sin−14x(b) 2x16−x2+4sin−14x(c) 2x16−x2+8logx+16−x2(d) 2x16−x2+4logx+16−x2
›Reveal solutionSolution
Apply the standard formula ∫a2−x2dx=2xa2−x2+2a2sin−1ax+C.
Here a=4, so 2a2=8. Substituting: ∫16−x2dx=2x16−x2+8sin−14x+C.
✓Final answer(a) 2x16−x2+8sin−14x+C.
🎓Unlock everything free for 14 days
- ✓Full step-by-step solutions
- ✓Concept-first explanations
- ✓Methods, shortcuts & mistakes
- ✓PYQ mapping + timed mock tests
Full access for 14 days. No credit card required.