Q.Integrate the following function: 1+2x+3x25x−2
🔒You're viewing a preview — the full solution, concept, methods & PYQ mapping are locked.
🔒 Start your 14-day free trial to unlock the full solution →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. …
The key idea is Integration by Completing the Square, combined with splitting the numerator to match the derivative of the denominator.
First, differentiate the denominator:
dxd(1+2x+3x2)=2+6x.
Rewrite the numerator as a multiple of this derivative plus a constant:
5x−2=65(6x+2)−311.
Check: 65(6x+2)=5x+35, then subtract 311 gives 5x−2.
Now the integral splits:
∫1+2x+3x25x−2dx=65∫1+2x+3x26x+2dx−311∫1+2x+3x2dx.
The first part is 65log∣1+2x+3x2∣.
For the second, complete the square: 1+2x+3x2=3(x2+32x+31)=3[(x+31)2+92]=3(x+31)2+32. …
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].
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.
Write:
5x−2=A(2x+32)+B
Compare coefficients of x: 5=2A⟹A=25.
Compare constant terms: −2=A⋅32+B=25⋅32+B=35+B⟹B=−2−35=−311.
So
5x−2=25(2x+32)−311
- Substitute back into the integral
I=31∫(x+31)2+9225(2x+32)−311dx
Split into two integrals:
I=31⋅25∫(x+31)2+922x+32dx−31⋅311∫(x+31)2+921dx
Simplify the constants:
I=65∫(x+31)2+922x+32dx−911∫(x+31)2+921dx
-
First integral: log form
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,
px+q=λD′(x)+μ.
Step 2: First piece — log of the denominator.
λ∫D(x)D′(x)dx=λlog∣D(x)∣. …
Common Mistakes
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. …
- COMEDK 2021Set 2021-B1 markMCQQ.∫x2+2x+3x+2dx= (A) x2+2x+3+logx+x2+2x+3+c (B) x2+2x+3+221log(x+1)x2+2x+3+c (C) x2+2x+3+log(x+1)+x2+2x+3+c (D) x2+2x+3+21tan−1(2x+1)+c
›Reveal solutionSolution
The integral is x2+2x+3+log∣(x+1)+x2+2x+3∣+c.
Write x+2=21(2x+2)+1. Then
∫x2+2x+3x+2dx=21∫x2+2x+32x+2dx+∫x2+2x+3dx.
The first integral is x2+2x+3. For the second, x2+2x+3=(x+1)2+2, so it equals log(x+1)+x2+2x+3. Adding: …
- COMEDK 2024Set 2024-M1 markMCQQ.
[!FORMULA] ∫x2−4x+2dx=
(A) 21(x−2)x2−4x+2+log(x−2)+x2−4x+2+C (B) (x−2)x2−4x+2+21log(x−2)+x2−4x+2+C (C) 21(x−2)x2−4x+2−sin−12x−2+C (D) 21(x−2)x2−4x+2−log(x−2)+x2−4x+2+C›Reveal solutionSolution
Completing the square gives ∫(x−2)2−2dx; the standard formula yields 21(x−2)x2−4x+2−log∣(x−2)+x2−4x+2∣+C — option (D).
Solution
- Complete the square: x2−4x+2=(x−2)2−2, so
I=∫(x−2)2−2dx
- Put u=x−2, du=dx, with a2=2:
I=∫u2−2du
- Apply the standard result
∫u2−a2du=2uu2−a2−2a2logu+u2−a2+C
With a2=2 the coefficient 2a2=1:
I=2uu2−2−logu+u2−2+C
- Back-substitute u=x−2 and (x−2)2−2=x2−4x+2: …
- COMEDK 2022Set 20221 markMCQQ.∫xax−x21dx is (A) a−3xa−x+C (B) −a2a−xx+C (C) a−2xa−x+C (D) None of these
›Reveal solutionSolution
Therefore the integral is -(2/a) sqrt((a - x)/x) + C.
Concept: Standard integral - verify by differentiating the candidates.
Claim: d/dx [ -(2/a) * sqrt((a - x)/x) ] = 1 / (x sqrt(ax - x^2))
Let u = (a - x)/x = a/x - 1, so du/dx = -a/x^2.
d/dx [ sqrt(u) ] = (1/(2 sqrt u)) * (-a/x^2)
d/dx [ -(2/a) sqrt(u) ] = -(2/a) * ( -a / (2 x^2 sqrt u) ) = 1 / (x^2 sqrt u)
Now x^2 sqrt u = x^2 * sqrt((a-x)/x) = x^2 * sqrt(a-x)/sqrt(x) = x^(3/2) sqrt(a - x) = x * sqrt(x(a-x)) = x sqrt(ax - x^2). …
- COMEDK 2025Set 2025-M1 markMCQQ.∫9+8x−x21dx=φ(x)+c then φ(x)= (A) 51sin−1(5x−4) (B) sin−1(5x−4) (C) 101log4+x4−x (D) log4+x4−x
›Reveal solutionSolution
The integral simplifies by completing the square in the denominator to the form ∫a2−(x−h)2dx, which yields an arcsine. The result is sin−1(5x−4), so the correct option is (B).
We are asked to find φ(x) such that ∫9+8x−x21dx=φ(x)+c.
Concept & Intuition
The integrand has a square root of a quadratic that is not a perfect square. The standard technique is to rewrite the quadratic inside the square root by completing the square, so that it resembles a2−(x−h)2 or (x−h)2+a2. Here, the negative x2 term suggests a downward-opening parabola, so completing the square will give a difference-of-squares form. That form matches the derivative of sin−1 or cos−1, because dxdsin−1(ax−h)=a2−(x−h)21.
Step-by-step solution
- Complete the square inside the radical. Start with 9+8x−x2. Factor out a negative from the x-terms:
9+8x−x2=9−(x2−8x).
Complete the square for x2−8x: half of −8 is −4, square gives 16, so
x2−8x=(x−4)2−16.
Substitute back:
9−[(x−4)2−16]=9−(x−4)2+16=25−(x−4)2.
So the integral becomes
∫25−(x−4)2dx.
- Recognize the standard form. The expression 25−(x−4)2 matches a2−u2 with a=5 and u=x−4. The known antiderivative is
∫a2−u2du=sin−1(au)+C.
- Apply the formula. Here du=dx, so
- COMEDK 2026Set 2026-M1 markMCQQ.
[!FORMULA] ∫2ax−x2dx=
(A) 2x−a2ax−x2+2a2cos−1(ax−a)+C (B) 2a22ax−x2+2x−asin−1(ax−a)+C (C) 2x−a2ax−x2+2a2sin−1(ax−a)+C (D) 2a22ax−x2+2x−acos−1(ax−a)+C›Reveal solutionSolution
The integral ∫2ax−x2dx is solved by completing the square to get a2−(x−a)2, then using a trigonometric substitution x−a=asinθ; the result is 2x−a2ax−x2+2a2sin−1(ax−a)+C, which matches option (C).
Concept and Intuition
The expression under the square root, 2ax−x2, is a quadratic in x that is not a perfect square. The standard trick for integrating quadratic is to complete the square so it becomes something like a2−(x−h)2 or (x−h)2+k2. Once we have the form a2−u2, the substitution u=asinθ (or u=acosθ) turns the integral into a simple trigonometric one. The final answer will involve an inverse sine (or cosine) and a term like 2ua2−u2.
Step-by-step solution
- Complete the square
2ax−x2=−(x2−2ax)=−[(x−a)2−a2]=a2−(x−a)2.
So the integral becomes
∫a2−(x−a)2dx.
- Choose a substitution Let u=x−a, so du=dx. Then
∫a2−u2du.
This is a classic form. The natural substitution is u=asinθ, with −2π≤θ≤2π (so that cosθ≥0). Then du=acosθdθ, and
a2−u2=a2−a2sin2θ=a1−sin2θ=a∣cosθ∣=acosθ.
- Transform the integral
∫a2−u2du=∫(acosθ)(acosθdθ)=a2∫cos2θdθ.
- Integrate cos2θ Use the identity cos2θ=21+cos2θ:
a2∫21+cos2θdθ=2a2(θ+2sin2θ)+C=2a2θ+4a2sin2θ+C.
- Back-substitute in terms of u Since sin2θ=2sinθcosθ, we have
4a2sin2θ=2a2sinθcosθ.
Now sinθ=au and cosθ=aa2−u2 (positive because of our range). So
2a2sinθcosθ=2a2⋅au⋅aa2−u2=2ua2−u2.
Also θ=sin−1(au).
- Return to x Recall u=x−a, so
- COMEDK 2025Set 2025-A1 markMCQQ.∫x4x2−9dx= (A) 32logx+3x−3+c (B) 34tan−1(34x2−9)+c (C) 32logx−3x+3+c (D) 31tan−1(34x2−9)+c
›Reveal solutionSolution
The integral ∫x4x2−9dx is a standard form solved by the substitution x=23secθ, leading to the result 31tan−1(34x2−9)+c, which corresponds to option (D).
Concept & Intuition
When we see 4x2−9, it resembles a2x2−b2, which suggests a secant substitution. The idea: let x=23secθ so that 4x2−9=9sec2θ−9=9tan2θ, and the square root simplifies to 3∣tanθ∣. This turns the integral into a simple trigonometric form. The key is recognizing that the denominator x4x2−9 becomes 23secθ⋅3tanθ, and dx=23secθtanθdθ, so the whole thing collapses nicely.
Step-by-step solution
- Set up the substitution Let x=23secθ, where θ∈[0,π/2)∪(π/2,π] (we take the principal branch where tanθ≥0 for x≥3/2). Then
dx=23secθtanθdθ.
- Simplify the square root
4x2−9=4(49sec2θ)−9=9sec2θ−9=9(sec2θ−1)=9tan2θ.
Hence 4x2−9=3∣tanθ∣. For x≥3/2, θ∈[0,π/2), so tanθ≥0 and we can drop the absolute value: 4x2−9=3tanθ.
- Rewrite the integral
∫x4x2−9dx=∫23secθ⋅3tanθ23secθtanθdθ=∫23secθ⋅3tanθ23secθtanθdθ=∫3dθ.
- Integrate
∫3dθ=31θ+c.
- Back-substitute Since x=23secθ, we have secθ=32x, so θ=sec−1(32x). But we can express this in terms of tan−1: …
- COMEDK 2024Set 2024-E1 markMCQQ.
[!FORMULA] The value of ∫2x−x2dx is
(A) sin−1(x−1)+C (B) sin−1(2x−1)+C (C) sin−1(x+1)+C (D) −2x−x2+C›Reveal solutionSolution
The integral simplifies by completing the square inside the square root, leading to a standard arcsine form. The correct result is sin−1(x−1)+C, which corresponds to option (A).
Concept & Intuition
When you see a quadratic inside a square root in an integral, your first instinct should be: complete the square. The expression 2x−x2 is a quadratic that opens downward. Rewriting it as 1−(x−1)2 reveals the classic form a2−u21, whose antiderivative is sin−1(u/a). The shift x−1 is the key.
Step-by-step solution
- Complete the square Start with 2x−x2. Factor out a negative:
2x−x2=−(x2−2x)=−(x2−2x+1−1)=−[(x−1)2−1]=1−(x−1)2.
So the integral becomes
∫1−(x−1)2dx.
- Recognize the standard form The integrand is now 1−u21 with u=x−1. The derivative of sin−1u is 1−u21, so
∫1−u2du=sin−1u+C.
- Substitute back Since u=x−1, we get
∫2x−x2dx=sin−1(x−1)+C.
- Match with options …
- KCET 2019Set A-11 markMCQQ.∫(x−1)(x+2)(x−3)2x−1dx=Alog∣x−1∣+Blog∣x+2∣+Clog∣x−3∣+K ಆದಾಗ A, B, C ಗಳು ಅನುಕ್ರಮವಾಗಿ (A) 6−1,31,2−1 (B) 61,31,51 (C) 61,3−1,31 (D) 6−1,3−1,21
›Reveal solutionSolution
Partial fractions give A=−61, B=−31, C=21 — option (D).
Write
(x−1)(x+2)(x−3)2x−1=x−1A+x+2B+x−3C,
so that 2x−1=A(x+2)(x−3)+B(x−1)(x−3)+C(x−1)(x+2).
Using the cover-up method (substitute each root):
- x=1:2(1)−1=A(3)(−2) ⇒ 1=−6A ⇒ A=−61.
- x=−2:2(−2)−1=B(−3)(−5) ⇒ −5=15B ⇒ B=−31. …
- COMEDK 2023Set 2023-E1 markMCQQ.
[!FORMULA] ∫cosecx−1dx=
(A) logsinx+sin2x+sinx+c (B) logsinx+1+2sin2x+sinx+c (C) logsinx+21+sin2x+sinx+c (D) logsinx+21+sin2x+21+sinx+c›Reveal solutionSolution
Rationalising, cscx−1=sin2x+sinxcosx; with s=sinx the integral becomes ∫s2+sds=logsinx+21+sin2x+sinx+c.
Write cscx−1=sinx1−sinx and multiply inside the root by 1+sinx1+sinx:
sinx1−sinx=sinx(1+sinx)1−sin2x=sin2x+sinxcosx.
Let s=sinx, ds=cosxdx: …
- KCET 2021Set A-11 markMCQQ.∫1+x8x3sin(tan−1(x4))dx is equal to (A) 4−cos(tan−1(x4))+C (B) 4cos(tan−1(x4))+C (C) 3−cos(tan−1(x3))+C (D) 4sin(tan−1(x4))+C
›Reveal solutionSolution
The integral simplifies by substituting u=tan−1(x4), which turns the integrand into a standard sine form. The final result is 4−cos(tan−1(x4))+C, matching option (A).
The key insight here is that the integrand contains a composition of functions that suggests a substitution. Notice the argument of sine is tan−1(x4), and the denominator has 1+x8. The derivative of tan−1(x4) is 1+x84x3, which appears almost exactly in the numerator — we have x3 and 1+x8, just missing the factor of 4. This is a classic setup for a substitution that turns the integral into something like ∫sinudu.
Let’s work through it step by step.
- Choose the substitution. Let u=tan−1(x4). Then differentiate:
dxdu=1+(x4)21⋅4x3=1+x84x3.
Rearranging gives:
du=1+x84x3dx.
- Rewrite the integral in terms of u. The original integral is:
I=∫1+x8x3sin(tan−1(x4))dx.
We have du=1+x84x3dx, so 1+x8x3dx=4du.
Also, sin(tan−1(x4))=sinu.
Therefore:
I=∫sinu⋅4du=41∫sinudu.
- Integrate. The integral of sinu is −cosu, so:
I=41(−cosu)+C=−4cosu+C.
- Substitute back. Since u=tan−1(x4), we get: I=−4cos(tan−1(x4))+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.