Q.Find ∫logxdx
Concept understanding — Natural Logarithm Integration
Natural Logarithm Integration: From Intuition to Formula
You already know that integration is the reverse of differentiation. So the first question is: what function, when differentiated, gives x1?
You know dxd(xn)=nxn−1. Trying to find a function whose derivative is x−1, the power rule would give 0x0, which is undefined. That's the clue — x1 doesn't fit the power rule pattern.
The function that fills this gap is the natural logarithm, logx. Its derivative is exactly x1 (for x>0), so integration reverses this:
∫x1dx=log∣x∣+C
The absolute value ∣x∣ is crucial — it extends the formula to negative x, because logx is only defined for positive numbers, but x1 is defined for all x=0.
Why the absolute value?
For x>0, differentiating log∣x∣ gives x1. For x<0, log∣x∣=log(−x), and its derivative is −x1⋅(−1)=x1. Same result, so log∣x∣ works for both sides.
The generalised form
The real power comes when the numerator is the derivative of the denominator:
∫f(x)f′(x)dx=log∣f(x)∣+C
This is the logarithmic integration pattern.
Example to see it in action
Find ∫x2+12xdx. Here f(x)=x2+1, so f′(x)=2x — the numerator matches. Therefore:
∫x2+12xdx=log∣x2+1∣+C=log(x2+1)+C
(dropping the absolute value since x2+1 is always positive).
What if the numerator doesn't match exactly?
For ∫x2+1xdx, the derivative of the denominator is 2x but you only have x. Adjust by factoring:
∫x2+1xdx=21∫x2+12xdx=21log∣x2+1∣+C
When the numerator is a constant multiple of the derivative of the denominator, factor out that constant: ∫f(x)k⋅f′(x)dx=klog∣f(x)∣+C.
Common mistake to avoid
Do not apply this pattern when the numerator is unrelated to the derivative of the denominator. For example, ∫x2+11dx is not log∣x2+1∣ — it gives tan−1x+C, a completely different result.
The rule only works when the numerator is exactly (or a constant multiple of) the derivative of the denominator. If not, use another method (partial fractions, trigonometric substitution, etc.).
Final formula to remember:
∫f(x)f′(x)dx=log∣f(x)∣+C
And the simplest case: ∫x1dx=log∣x∣+C.
The ∫f'(x)/f(x) dx = log|f(x)| + C pattern is one of the most tested standard results in the NCERT Class 12 Integrals chapter, appearing constantly in CBSE board and JEE Main 'evaluate the integral' questions. Students searching 'integration of 1/x formula' or 'logarithmic integration examples class 12' will find this numerator-matches-derivative-of-denominator rule is exactly the shortcut those exam papers expect students to spot instantly.
The key idea is to treat logx as 1⋅logx and apply integration by parts (the reverse of the product rule).
Let u=logx and dv=dx. Then du=x1dx and v=x.
Using the formula ∫udv=uv−∫vdu:
∫logxdx=xlogx−∫x⋅x1dx=xlogx−∫1dx
=xlogx−x+C
The integral is xlogx−x+C.
The integral of logx is solved using integration by parts, treating logx as 1⋅logx. The result is xlogx−x+C.
The key insight here is that logx doesn't have an obvious antiderivative from the power rule or standard formulas. But we can rewrite it as a product: logx=1⋅logx. This lets us use integration by parts, which is the reverse of the product rule for derivatives.
Integration by parts says: ∫udv=uv−∫vdu. The trick is choosing u and dv so that the new integral ∫vdu is simpler than the original. For logx, we set u=logx because its derivative is x1, a simple rational function. Then dv=1dx, so v=x.
Let's work through it step by step.
-
Set up integration by parts.
We have ∫logxdx=∫(1)(logx)dx.
Choose:
u=logx
dv=1dx
-
Find du and v.
Differentiate u: du=x1dx
Integrate dv: v=∫1dx=x
-
Apply the integration by parts formula.
∫udv=uv−∫vdu
Substitute:
∫logxdx=(logx)(x)−∫x⋅x1dx
-
Simplify the new integral.
x⋅x1=1, so we get:
∫logxdx=xlogx−∫1dx
-
Integrate the remaining term.
∫1dx=x+C (don't forget the constant of integration)
Therefore:
∫logxdx=xlogx−x+C
A common mistake is to forget the constant of integration C or to misapply the formula by swapping u and dv. If you set u=1 and dv=logxdx, you'd need to know the integral of logx already — which is exactly what we're trying to find! Always choose u as the function that simplifies when differentiated.
This result is a classic and worth memorizing: ∫logxdx=xlogx−x+C. It also works for lnx (natural log) — same formula. For logax, use the change of base: logax=lnalnx, then integrate.
The integral is xlogx−x+C.
Method: Integration by Parts on a Lone Logarithm (the "1⋅" Trick)
Use this when the integrand is a single function with no obvious antiderivative, like logx: pair it with the invisible factor 1 and integrate by parts.
Steps
Step 1: Write the integrand as a product with 1.
logx=1⋅logx, so take u=logx and dv=1dx. This lets by-parts apply even though there is only one visible function.
Step 2: Compute du and v.
du=x1dx and v=x. Then
∫logxdx=xlogx−∫x⋅x1dx.
Step 3: Simplify the remaining integral.
The leftover ∫1dx=x, giving ∫logxdx=xlogx−x+C.
Common Mistakes
Mistake 1: Guessing ∫logxdx=x1 or 2(logx)2.
Why it's wrong: neither differentiates back to logx; the integral genuinely needs by-parts. Correct approach: use the 1⋅logx trick.
Mistake 2: Choosing dv=logxdx.
Why it's wrong: that requires already knowing ∫logxdx — circular. Correct approach: let u=logx, dv=dx.
Mistake 3: Not simplifying x⋅x1.
Why it's wrong: leaving ∫x⋅x1dx unsimplified stalls the solution. Correct approach: cancel to ∫1dx=x.
Showing the 12 most recent of 33 on this concept.
- KEAM 2026Set eng-2026-04174 marksMCQQ.∫(cot2x+csc2x)dx= (A) 2loge∣sinx∣+C (B) 21loge∣sinx∣+C (C) loge∣cosx∣+C (D) 2loge∣cosx∣+C (E) loge∣sinx∣+C
›Reveal solutionSolution
The integrand collapses to cotx.
cot2x+csc2x=sin2xcos2x+1=2sinxcosx2cos2x=sinxcosx=cotx.
Therefore
∫(cot2x+csc2x)dx=∫cotxdx=loge∣sinx∣+C.
✓Final answerThe correct option is (E).
- KEAM 2026Set eng-2026-04204 marksMCQQ.∫(1+x2)tan−1(1−x1+x)1dx is equal to (A) logtan−1(1+x1−x)+C (B) logtan−1(1−x1+x)+C (C) 21logtan−1(1−x1+x)+C (D) 41logtan−1(1−x1+x)+C (E) 41logtan−1(1−x1+x2)+C
›Reveal solutionSolution
The substitution u=tan−11−x1+x has derivative 1+x21, matching the rest of the integrand.
Let u=tan−1(1−x1+x)=4π+tan−1x. Then dxdu=1+x21.
∫(1+x2)udx=∫udu=log∣u∣+C=logtan−1(1−x1+x)+C.
✓Final answerThe correct option is (B).
- KEAM 2026Set eng-2026-04224 marksMCQQ.∫1+tan2xtanx+cotxdx is equal to (A) log∣sinx∣+C (B) 2log∣sinx∣+C (C) log∣cosx∣+C (D) log∣tanx∣+C (E) 2log∣tanx∣+C
›Reveal solutionSolution
Use 1+tan2x=sec2x and simplify; the integrand reduces to cotx.
1+tan2xtanx+cotx=sec2xtanx+cotx.
Now tanx+cotx=cosxsinx+sinxcosx=sinxcosx1.
Multiplying by cos2x (dividing by sec2x): sinxcosxcos2x=sinxcosx=cotx.
Thus ∫cotxdx=log∣sinx∣+C.
✓Final answerThe correct option is (A).
- JEE Main 2026Set 2026-04-02-s24 marksMCQQ.Let f(x) = ∫ (16x + 24)/(x^2 + 2x - 15) dx. If f(4) = 14 log_e(3) and f(7) = log_e(2^α · 3^β), α, β ∈ N, then α + β is equal to: (A) 31 (B) 37 (C) 39 (D) 41
›Reveal solutionSolution
Partial fractions turn the integral into two logarithms; the given value f(4)=14ln3 fixes the constant of integration, and evaluating f(7) expresses it as ln(232⋅37), giving α+β=39.
The denominator factors nicely, which is the whole key to the integral.
- x2+2x−15=(x+5)(x−3), so write (x+5)(x−3)16x+24=x+5A+x−3B.
- 16x+24=A(x−3)+B(x+5). At x=3: 72=8B⇒B=9. At x=−5: −56=−8A⇒A=7.
- So f(x)=∫(x+57+x−39)dx=7ln∣x+5∣+9ln∣x−3∣+C.
- At x=4: f(4)=7ln9+9ln1+C=14ln3+C (since ln9=2ln3). Given f(4)=14ln3, so C=0.
- At x=7: f(7)=7ln12+9ln4=7(ln4+ln3)+9ln4=16ln4+7ln3.
- Write 16ln4=16⋅2ln2=32ln2, so f(7)=32ln2+7ln3=ln(232⋅37).
- Matching with ln(2α⋅3β): α=32, β=7, so α+β=39.
✓Final answerThe correct option is (C).
- JEE Main 2026Set 2026-04-08-s24 marksQ.If ∫(from π/6 to π/4) ( cot(x-π/3)cot(x+π/3) + 1 ) dx = α log_e(√3-1), then 9α² is equal to ___________.
›Reveal solutionSolution
Simplify the cotangent product using a product-to-sum identity, reduce to a rational function of cos2x, integrate via the Weierstrass substitution, then massage the log into the form αln(3−1) to extract α and compute 9α2=12.
The trick is recognizing cotAcotB+1 collapses to a cosine-difference-over-product form, and that sin(x+π/3)sin(x−π/3)=sin2x−sin2(π/3).
- cotAcotB+1=sinAsinBcosAcosB+sinAsinB=sinAsinBcos(A−B), with A=x−π/3, B=x+π/3, so A−B=−2π/3, cos(A−B)=−21.
- sin(x−π/3)sin(x+π/3)=sin2x−sin2(π/3)=sin2x−43=4−1−2cos2x.
- So the integrand =(−1−2cos2x)/4−1/2=1+2cos2x2.
- I=∫π/6π/41+2cos2x2dx. Let u=2x: I=∫π/3π/21+2cosudu.
- Weierstrass substitution t=tan(u/2): 1+2cosu=1+t23−t2, du=1+t22dt, so the integral becomes ∫3−t22dt=31ln3−t3+t.
- Limits: at u=π/2, t=1; at u=π/3, t=1/3.
I=31[ln3−13+1−ln3−1/33+1/3]=31[ln(2+3)−ln2]=31ln22+3.
- Since (3+1)2=4+23=2(2+3), we get 22+3=4(3+1)2, and using (3+1)(3−1)=2⇒3+1=3−12:
ln22+3=2ln(3+1)−ln4=2[ln2−ln(3−1)]−2ln2=−2ln(3−1).
- So I=−32ln(3−1)=αln(3−1)⇒α=−32.
- 9α2=9⋅34=12.
∫a+bcosxdx, Weierstrass sub t=tan(x/2): cosx=1+t21−t2, dx=1+t22dt.
✓Final answer\boxed{12}
- KEAM 2025Set eng-2025-04234 marksMCQQ.∫x2+x+12x2+4x+3dx= (A) 2loge∣x2+x+1∣+C (B) 2xloge∣x2+x+1∣+C (C) 21loge∣x2+x+1∣+C (D) 2x+loge∣x2+x+1∣+C (E) x+2loge∣x2+x+1∣+C
›Reveal solutionSolution
Splitting the fraction gives integral of 2 + (2x+1)/(x^2+x+1) = 2x + log|x^2+x+1| + C.
Concept and Intuition
When the numerator degree equals the denominator degree, split off a constant multiple of the denominator, leaving a term whose numerator is the derivative of the denominator.
Step-by-Step Solution
- Write 2x^2 + 4x + 3 = 2(x^2 + x + 1) + (2x + 1).
- So the integrand = 2 + (2x+1)/(x^2+x+1).
- Note 2x+1 is exactly d/dx(x^2+x+1).
- Integrate: 2x + log|x^2 + x + 1| + C.
Common Mistakes
- Pulling a spurious factor of 2 or x in front of the log term.
✓Final answerThe correct option is (D) — 2x + log|x^2+x+1| + C.
ANSWER: D
- KEAM 2025Set eng-2025-04254 marksMCQQ.∫x(1+x4)1dx is equal to (A) 51loge1+x4x+C (B) 51loge1+x4+C (C) 41loge1+x4+C (D) 41loge1+x4x+C (E) 41loge1+x4x4+C
›Reveal solutionSolution
Write x(1+x4)1=x1−1+x4x3, integrate each term, and combine logs.
Note that
x1−1+x4x3=x(1+x4)(1+x4)−x4=x(1+x4)1.
Integrating,
∫xdx−∫1+x4x3dx=loge∣x∣−41loge∣1+x4∣+C.
Combining,
=41(4loge∣x∣−loge∣1+x4∣)+C=41loge1+x4x4+C.
✓Final answerThe correct option is (E).
- KEAM 2025Set eng-2025-04254 marksMCQQ.∫5−x2xdx= (A) 2−1loge5−x21+C (B) 21loge5−x2+C (C) −2loge5−x2+C (D) 2−1loge5−x2+C (E) 2loge5−x21+C
›Reveal solutionSolution
Substitute u=5−x2, du=−2xdx.
Let u=5−x2, so du=−2xdx and xdx=−21du. Then
∫5−x2xdx=−21∫udu=−21loge∣u∣+C=−21loge∣5−x2∣+C.
✓Final answerThe correct option is (D).
- KEAM 2025Set eng-2025-04264 marksMCQQ.∫(9ex−4e−x)(9ex+4e−x)dx= (A) 9ex−4e−x+C (B) log∣9ex+4e−x∣+C (C) 4ex−9e−x+C (D) log∣4ex−9e−x∣+C (E) log∣9ex−4e−x∣+C
›Reveal solutionSolution
dxd(9ex−4e−x)=9ex+4e−x — the numerator — so ∫f′/f=log∣f∣.
Let f(x)=9ex−4e−x. Then f′(x)=9ex+4e−x, which is exactly the numerator. Hence
∫9ex−4e−x9ex+4e−xdx=∫f(x)f′(x)dx=log∣9ex−4e−x∣+C.
✓Final answerThe correct option is (E).
- KEAM 2025Set eng-2025-04274 marksMCQQ.∫(1+x)log(1+x)dx= (A) 21log(1+x)+C (B) 21[log(1+x)]2+C (C) [log(1+x)]2+C (D) log(1+x)+C (E) xlog(1+x)+C
›Reveal solutionSolution
Substituting u=log(1+x) turns the integral into ∫udu=21[log(1+x)]2+C.
Let u=log(1+x). Then
du=1+x1dx.
The integral becomes
∫1+xlog(1+x)dx=∫udu=2u2+C=21[log(1+x)]2+C.
✓Final answerThe correct option is (B).
- KEAM 2025Set eng-2025-04274 marksMCQQ.∫35x(1+x)1dx= (A) log(910) (B) log(5) (C) log(2) (D) log(911) (E) log(913)
›Reveal solutionSolution
Partial fractions give [log1+xx]35=log910.
Decompose:
x(1+x)1=x1−1+x1.
Integrate:
∫35(x1−1+x1)dx=[logx−log(1+x)]35=[log1+xx]35.
Evaluate:
log65−log43=log(65⋅34)=log1820=log910.
✓Final answerThe correct option is (A).
- JEE Main 2025Set 2025-01-28-s24 marksMCQQ.If f(x)=∫x1/4(1+x1/4)1dx, f(0)=−6, then f(1) is equal to : (A) 4(loge2−2) (B) loge22+2 (C) 2−loge2 (D) 4(loge2+2)
›Reveal solutionSolution
A u=x1/4 substitution converts the irrational integrand into the rational function 4u2/(1+u), which splits cleanly by division.
- Let u=x1/4, so x=u4 and dx=4u3du.
- f(x)=∫u(1+u)4u3du=4∫1+uu2du.
- Divide: 1+uu2=(u−1)+1+u1.
- So f(x)=4[2u2−u+ln(1+u)]+C=2u2−4u+4ln(1+u)+C, i.e. f(x)=2x1/2−4x1/4+4ln(1+x1/4)+C.
- At x=0: u=0, so f(0)=0−0+4ln1+C=C=−6.
- At x=1: u=1, so f(1)=2(1)−4(1)+4ln2+C=2−4+4ln2−6=4ln2−8.
- f(1)=4(ln2−2).
[!ANSWER]
(A)
🎓Unlock everything free for 10 days
- ✓Full step-by-step solutions
- ✓Concept-first explanations
- ✓Methods, shortcuts & mistakes
- ✓PYQ mapping + timed mock tests
Full access for 10 days. No credit card required.