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. …
Showing the 12 most recent of 35 on this concept.
- AP EAPCET 2025Set eng-2025-05-22-FN1 markMCQQ.∫9x2−12x+1(3x−2)tan(9x2−12x+1)dx= (A) 31sec29x2−12x+1+c (B) 31sec2x+c (C) 21logsec9x2−12x+1+c (D) 31logsec9x2−12x+1+c
›Reveal solutionSolution
A double substitution — first u=9x2−12x+1, then w=u — turns the integral into a plain ∫tanwdw, giving 31log∣sec9x2−12x+1∣+c.
Concept and Intuition
When (3x−2) (half the derivative of 9x2−12x+1) sits outside a function of 9x2−12x+1, a chained substitution — first for the quadratic, then for its square root — collapses the whole expression to a single-variable standard integral.
Step-by-Step Solution
- Let u=9x2−12x+1. Then du=(18x−12)dx=6(3x−2)dx, so (3x−2)dx=6du.
- Integral becomes ∫utanu⋅6du=61∫utanudu.
- Let w=u, so dw=2udu, i.e. udu=2dw.
- Integral becomes 61∫tanw⋅2dw=31∫tanwdw=31(−log∣cosw∣)+c=31log∣secw∣+c. …
- AP EAPCET 2023Set eng-2023-05-19-FN1 markMCQQ.∫(x−1)x+2dx= (A) 32log(x+2)−3(x+2)+3+c (B) 3−1log(x+2)+3(x+2)−3+c (C) 31log(x+2)−3(x+2)+3+c (D) 31log(x+2)+3(x+2)−3+c
›Reveal solutionSolution
The substitution t=x+2 turns the integral into the standard ∫t2−a2dt form.
Concept and Intuition
Whenever an integrand has linear and a polynomial in x, substituting t=linear expression often rationalizes everything.
Step-by-Step Solution
- Let t=x+2⇒x=t2−2, dx=2tdt.
- x−1=t2−2−1=t2−3.
- Integral becomes ∫(t2−3)⋅t2tdt=∫t2−32dt.
- Using ∫t2−a2dt=2a1logt+at−a+C with a=3: ∫t2−32dt=2⋅231logt+3t−3+C=31logt+3t−3+C.
- Substitute back t=x+2: 31logx+2+3x+2−3+c. …
- AP EAPCET 2025Set eng-2025-05-26-AN1 markMCQQ.∫1+x+x21dx= (A) 32log(2x−1−32x+1+3)+c (B) 31log(2x+1+32x+1−3)+c (C) 32tan−1(32x+1)+c (D) 52tan−1(52x+1)+c
›Reveal solutionSolution
Completing the square turns the quadratic denominator into a sum of squares, a standard ∫u2+a2dx form.
Concept and Intuition
Any ∫ax2+bx+cdx with no real roots in the denominator reduces, by completing the square, to the standard arctan integral ∫u2+a2du=a1tan−1au+c.
Step-by-Step Solution
- 1+x+x2=(x+21)2+1−41=(x+21)2+43.
- So the integral is ∫(x+21)2+(23)2dx.
- Using ∫u2+a2du=a1tan−1au+c with u=x+21, a=23: =3/21tan−1(3/2x+1/2)+c=32tan−1(32x+1)+c. …
- AP EAPCET 2023Set eng-2023-05-17-AN1 markMCQQ.∫(2ax+x2)3/2dx= (A) a21(2ax+x2x+a)+C (B) a21(2ax+x2x−a)+C (C) a2−1(2ax+x2x−a)+C (D) a2−1(2ax+x2x+a)+C
›Reveal solutionSolution
Completing the square converts the integral into the standard form ∫du/(u2−a2)3/2, which has a known closed form; back-substituting gives option (D).
Concept and Intuition
Many integrals of the form ∫dx/(quadratic)3/2 become standard once the quadratic is completed to a perfect-square-minus-constant form; the resulting substitution u=x+a reduces it to a memorized/derivable antiderivative.
Step-by-Step Solution
- 2ax+x2=x2+2ax+a2−a2=(x+a)2−a2. Let u=x+a, du=dx.
- The integral becomes ∫(u2−a2)3/2du.
- Standard result (verifiable by differentiation): ∫(u2−a2)3/2du=a2u2−a2−u+C. Check: dud[a2u2−a2−u]=(u2−a2)3/21 ✓. …
- AP EAPCET 2023Set eng-2023-05-16-AN1 markMCQQ.If ∫4x2+4x+53x+2dx=Alog(4x2+4x+5)+Btan−1(x+21)+C, then (A,B)= (A) (83,81) (B) (85,81) (C) (−83,81) (D) (−85,81)
›Reveal solutionSolution
Splitting the numerator to match the derivative of the denominator plus a constant gives A=3/8,B=1/8.
Concept and Intuition
For ∫ax2+bx+cpx+qdx, write px+q as a multiple of the denominator's derivative plus a constant remainder, splitting into a log term and an arctan term.
Step-by-Step Solution
- dxd(4x2+4x+5)=8x+4.
- Write 3x+2=83(8x+4)+k: 83(8x+4)=3x+1.5, so k=2−1.5=0.5.
- ∫4x2+4x+53x+2dx=83∫4x2+4x+58x+4dx+21∫4x2+4x+5dx.
- First integral: 83log(4x2+4x+5).
- Complete the square: 4x2+4x+5=4[(x+1/2)2+1]. …
- AP EAPCET 2024Set eng-2024-05-20-AN1 markMCQQ.∫2cosx+32−sinxdx= (A) 52Tan−1(31tan2x)−log2cosx+3+c (B) 54Tan−1(51tan2x)+log2cosx+3+c (C) 53Tan−1(51tan2x)+log2cosx−3+c (D) 51Tan−1(51tan3x)−log2cosx−3+c
›Reveal solutionSolution
Decompose the numerator into a multiple of the denominator's derivative plus a constant; the log part and arctan part combine to option (B).
Concept and Intuition
For integrals of the form ∫a+bcosxp+qsinxdx, write the numerator as λ⋅(derivative of denominator)+μ (a pure constant), so the integral splits into a straightforward logarithmic piece and a standard ∫a+bcosxdx piece (solved via the Weierstrass/half-angle substitution).
Step-by-Step Solution
- Let D(x)=2cosx+3, so D′(x)=−2sinx.
- Write 2−sinx=αD′(x)+λ=−2αsinx+λ. Matching sinx coefficients: −2α=−1⇒α=21. Matching constants: λ=2.
- So ∫2cosx+32−sinxdx=21∫D(x)D′(x)dx+2∫2cosx+3dx=21log∣2cosx+3∣+2I, where I=∫2cosx+3dx.
- Standard result (with a=3, b=2, a>b): I=a2−b22tan−1(a+ba−btan2x)=52tan−1(51tan2x) (since a2−b2=5 and (a−b)/(a+b)=1/5).
- So 2I=54tan−1(51tan2x). …
- AP EAPCET 2024Set eng-2024-05-22-FN1 markMCQQ.∫1+x+x22dx= (A) 34tan−1(32x−1)+c (B) 34tan−1(32x+1)+c (C) 32tan−1(32x−1)+c (D) 32tan−1(32x+1)+c
›Reveal solutionSolution
Complete the square in the denominator and apply the standard ∫x2+a2dx=a1tan−1(x/a) form. Answer: option (B).
Concept and Intuition
Any irreducible quadratic ax2+bx+c in a denominator under a simple rational integrand can be handled by completing the square to reduce it to the standard u2+a2 form, whose antiderivative is a scaled arctangent.
Step-by-Step Solution
- Complete the square: 1+x+x2=(x+21)2+43=(x+21)2+(23)2.
- So the integral is 2∫(x+21)2+(23)2dx.
- Using ∫u2+a2du=a1tan−1(u/a) with u=x+21, a=23:
2⋅3/21tan−1(3/2x+1/2)=34tan−1(32x+1)+c.
Common Mistakes …
- AP EAPCET 2025Set eng-2025-05-26-FN1 markMCQQ.If ∫x2+x+2x2−x+2dx=x−log(f(x))+72tan−1(g(x))+c, then f(−1)+7g(−1)= (A) 1 (B) 0 (C) −1 (D) 2
›Reveal solutionSolution
Splitting the numerator to isolate the derivative of the denominator identifies f(x)=x2+x+2 and g(x)=72x+1, giving f(−1)+7g(−1)=1.
Concept and Intuition
For a rational function whose numerator and denominator are both quadratics with the same leading coefficient, subtracting the denominator from the numerator strips off the constant term, leaving a simpler linear-over-quadratic integral that splits into a logarithm part (from the derivative of the denominator) and an arctan part (from completing the square).
Step-by-Step Solution
- Note x2+x+2−2x=x2−x+2, so x2+x+2x2−x+2=1−x2+x+22x.
- ∫1dx=x.
- For ∫x2+x+22xdx, write 2x=(2x+1)−1:
- ∫x2+x+22x+1dx=log(x2+x+2) (numerator is exactly the derivative of the denominator).
- ∫x2+x+2−1dx=−∫(x+21)2+47dx=−72tan−1(72x+1).
- So ∫x2+x+22xdx=log(x2+x+2)−72tan−1(72x+1). …
- AP EAPCET 2026Set eng-2026-05-18-AN1 markMCQQ.For x>0, if ∫x2+5x+71dx=32F(x)+k and F(−25)=0, then sin(F(x))= (A) 32x−5 (B) 2x2+5x+72x+5 (C) 2x+52x2+5x+7 (D) 32x2+5x+7
›Reveal solutionSolution
Complete the square to integrate the quadratic denominator as a standard arctangent form, identify F(x) from the boundary condition, then convert sin(arctanu) into an algebraic expression.
Concept and Intuition
Any integral of the form ∫x2+px+qdx reduces to the standard ∫u2+a2du=a1arctanau+C once the quadratic is written as a completed square. Here the given answer form 32F(x)+k tells us F must be exactly that arctangent (up to an additive constant fixed by the given boundary value), after which sin(arctanu)=u/1+u2 finishes the job.
Step-by-Step Solution
- Complete the square: x2+5x+7=(x+25)2+(7−425)=(x+25)2+43.
- Standard integral: ∫(x+5/2)2+(3/2)2dx=3/21arctan(3/2x+5/2)+C=32arctan(32x+5)+C.
- Matching the given form 32F(x)+k, take F(x)=arctan(32x+5)+c0. Since F(−5/2)=0: at x=−5/2, 32x+5=0, so arctan(0)+c0=c0=0. Thus F(x)=arctan(32x+5).
- Let u=32x+5, so F(x)=arctanu and sin(F(x))=1+u2u. …
- AP EAPCET 2021Set eng-2021-08-23-AN1 markMCQQ.∫sin2xsinx−cosxdx= (A) −log∣sinx−cosx+sin2x∣+c (B) −log∣sinx+cosx−sin2x∣+c (C) −log∣sinx+cosx+sin2x∣+c (D) −log∣sinx−cosx−sin2x∣+c
›Reveal solutionSolution
The key substitution is t=sinx+cosx, which turns sin2x into t2−1 and the numerator into −dt, reducing the integral to a standard ∫t2−1dt form.
Concept and Intuition
Expressions like sinx±cosx paired with sin2x are a classic signal to substitute t=sinx±cosx, because (sinx+cosx)2=1+sin2x and (sinx−cosx)2=1−sin2x — this converts everything to a single variable.
Step-by-Step Solution
- Let t=sinx+cosx. Then dt=(cosx−sinx)dx=−(sinx−cosx)dx.
- Also t2=sin2x+cos2x+2sinxcosx=1+sin2x, so sin2x=t2−1, i.e. sin2x=t2−1.
- Rewrite the integral:
∫sin2xsinx−cosxdx=∫t2−1−dt=−logt+t2−1+c.
- Substitute back t=sinx+cosx and t2−1=sin2x: …
- AP EAPCET 2026Set eng-2026-05-12-AN1 markMCQQ.If ∫x2+x+13x2+5x+4dx=Ax2+x+1+46xx2+x+1+Bsinh−132x+1+c, then A+2B= (A) 5 (B) 8 (C) 831 (D) 522
›Reveal solutionSolution
Splitting the numerator into a multiple of (x2+x+1) plus an exact-derivative term, then applying the standard ∫u2+a2du formula, gives A=11/4, B=9/8, so A+2B=5.
Concept and Intuition
For ∫quadraticquadraticdx, the standard technique writes the numerator as (a multiple of the inner quadratic) + (a multiple of its derivative) + (a constant), reducing the problem to two building blocks: ∫x2+bx+c2x+bdx=2x2+bx+c, and ∫x2+bx+cdx via completing the square into the sinh−1 form.
Step-by-Step Solution
- Write 3x2+5x+4=3(x2+x+1)+(2x+1) (check: 3x2+3x+3+2x+1=3x2+5x+4 ✓).
- ∫x2+x+12x+1dx=2x2+x+1, since 2x+1 is exactly the derivative of x2+x+1.
- For ∫x2+x+1dx, complete the square: x2+x+1=(x+21)2+43. With u=x+21, a2=43: ∫u2+a2du=2uu2+a2+2a2sinh−1au+C.
- This gives 2x+1/2x2+x+1+3/8sinh−132x+1+C=42x+1x2+x+1+83sinh−132x+1+C.
- Multiply by 3 (from step 1's coefficient): 3∫x2+x+1dx=43(2x+1)x2+x+1+89sinh−132x+1+C. …
- AP EAPCET 2025Set eng-2025-05-24-FN1 markMCQQ.∫2x+4x−2dx= (A) x−2−21Tan−1(2x−2)+c (B) x−2−2Tan−1(2x−2)+c (C) x−2+2Tan−1(2x−2)+c (D) x−2+21Tan−1(2x−2)+c
›Reveal solutionSolution
A rationalizing substitution x−2=t2 converts the integral into a simple ∫(1−t2+44)dt, giving x−2−2Tan−1(2x−2)+c.
Concept and Intuition
Whenever an integral has a single square root of a linear expression (here x−2), the substitution x−2=t2 (so t=x−2) removes the square root entirely and typically converts the integral into a rational function of t, which is then handled by the standard ∫t2+a2dt arctan formula.
Step-by-Step Solution
- Simplify the denominator first: 2x+4=2(x+2), so the integral is 21∫x+2x−2dx.
- Substitute x−2=t2⇒x=t2+2, dx=2tdt, and x+2=t2+4.
- The integral becomes
21∫t2+4t⋅2tdt=∫t2+4t2dt.
- Split the rational function: t2+4t2=1−t2+44.
- Integrate termwise: ∫(1−t2+44)dt=t−4⋅21Tan−1(2t)+c=t−2Tan−1(2t)+c.
- Substitute back t=x−2: …
🎓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.