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 16 on this concept.
- 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}
- 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)
- JEE Main 2025Set 2025-01-29-s14 marksMCQQ.The integral 80 ∫(0 to π/4) ( (sinθ+cosθ) / (9+16 sin2θ) ) dθ is equal to : (A) 3 log 4 (B) 4 log 3 (C) 6 log(4/3) (D) 2 log 3
›Reveal solutionSolution
The combination (sinθ+cosθ)dθ is exactly du for u=sinθ−cosθ, and sin2θ=1−u2, converting the whole integral into a standard ∫du/(a2−b2u2) form.
- Let u=sinθ−cosθ; du=(cosθ+sinθ)dθ, and u2=1−sin2θ⇒sin2θ=1−u2.
- 9+16sin2θ=9+16(1−u2)=25−16u2.
- Limits: θ=0⇒u=−1; θ=π/4⇒u=0.
- Integral becomes ∫−1025−16u2du=∫−10(5−4u)(5+4u)du=401ln5−4u5+4u−10.
- At u=0: ln(1)=0. At u=−1: ln91=−ln9.
- Value of integral: 401(0−(−ln9))=40ln9.
- Multiplying by 80: 80⋅40ln9=2ln9=2⋅2ln3=4ln3.
✓Final answer(B) 4 log 3
- JEE Main 2024Set 2024-04-09-s24 marksMCQQ.The value of the integral ∫−12loge(x+x2+1)dx is: (A) 5−2+loge(1+29+45) (B) 2−5+loge(1+29+45) (C) 5−2+loge(1+27+45) (D) 2−5+loge(1+27+45)
›Reveal solutionSolution
Use integration by parts with u=loge(x+x2+1), dv=dx; the antiderivative is xloge(x+x2+1)−x2+1, then substitute the limits.
-
Let I=∫loge(x+x2+1)dx. With u=loge(x+x2+1), dv=dx: du=x2+1dx, v=x.
-
I=xloge(x+x2+1)−∫x2+1xdx=xloge(x+x2+1)−x2+1.
-
Evaluate at x=2: 2loge(2+5)−5.
-
Evaluate at x=−1: −loge(−1+2)−2=loge(2+1)−2 (since −loge(2−1)=loge(2+1)).
-
Difference: [2loge(2+5)−5]−[loge(2+1)−2]=2−5+2loge(2+5)−loge(1+2).
-
Since 2loge(2+5)=loge(2+5)2=loge(9+45), we get I=2−5+loge1+29+45.
✓Final answerThe correct option is (B).
-
- JEE Main 2023Set 2023-01-25-s14 marksMCQQ.Let f(x) = \int \frac{2x}{(x^2+1)(x^2+3)} dx. If f(3) = \frac{1}{2}(\log_e 5 - \log_e 6), then f(4) is equal to (A) \frac{1}{2}(\log_e 17 - \log_e 19) (B) \log_e 17 - \log_e 18 (C) \frac{1}{2}(\log_e 19 - \log_e 17) (D) \log_e 19 - \log_e 20
›Reveal solutionSolution
The substitution t=x^2 reduces the integral to a simple partial-fraction form that integrates to a log expression.
- Let t=x^2, dt=2x,dx: f(x)=\int\frac{dt}{(t+1)(t+3)} = \frac12\ln\frac{t+1}{t+3}+C = \frac12\ln\frac{x^2+1}{x^2+3}+C.
- f(3)=\frac12\ln\frac{10}{12}+C=\frac12(\ln10-\ln12)+C=\frac12(\ln5-\ln6)+C(sinceln10−ln12=ln5−ln6). Given f(3)=\frac12(\ln5-\ln6)$, so C=0.
- f(4)=\frac12\ln\frac{17}{19}=\frac12(\ln17-\ln19).
✓Final answer(A)
- JEE Main 2023Set 2023-01-25-s24 marksMCQQ.The integral 16 \int_{1}^{2} \frac{dx}{x^3 (x^2+2)^2} is equal to (A) 11/6 + \log_e 4 (B) 11/12 + \log_e 4 (C) 11/12 - \log_e 4 (D) 11/6 - \log_e 4
›Reveal solutionSolution
Substitute t=x^2 to turn the odd-powered x^3(x^2+2)^2 denominator into t^2(t+2)^2, then use partial fractions.
- Let t=x^2, dt=2x,dx. Write dx/(x^3(x^2+2)^2) = x,dx/(x^4(x^2+2)^2) = (dt/2)/(t^2(t+2)^2).
- Partial fractions: 1/(t^2(t+2)^2) = -(1/4)/t + (1/4)/t^2 + (1/4)/(t+2) + (1/4)/(t+2)^2.
- Integrating: (1/2)\int dt/(t^2(t+2)^2) = (1/8)\log_e\frac{t+2}{t} - (1/8)(1/t+1/(t+2)) + C.
- Limits: x=1 gives t=1, x=2 gives t=4. Evaluate F(4)-F(1) where F(t) is this antiderivative.
- F(4)=(1/8)\log_e(3/2)-(1/8)(5/12), F(1)=(1/8)\log_e3-(1/8)(4/3).
- F(4)-F(1) = (1/8)\log_e(1/2) + (1/8)(11/12) = -(1/8)\log_e2+11/96.
- Multiplying by 16: 16[-(1/8)\log_e2+11/96] = -2\log_e2+11/6 = 11/6-\log_e4.
✓Final answer(D)
- JEE Main 2023Set 2023-01-25-s24 marksQ.If \int_{1/3}^{3} |\log_e x| , dx = (m/n) \log_e(n^2/e), where m and n are coprime natural numbers, then m^2 + n^2 - 5 is equal to _____.
›Reveal solutionSolution
Split the integral where |log_e x| changes definition, integrate using x*log_e(x) - x, then match the result's form to (m/n)log_e(n^2/e) to identify m and n.
- For x in [1/3,1], log_e x <= 0 so |log_e x| = -log_e x; for x in [1,3], |log_e x| = log_e x.
- Integral of -log_e x dx = x - x*log_e x. Evaluating from 1/3 to 1: (1-0) - (1/3 - (1/3)log_e(1/3)) = 2/3 - (1/3)log_e3.
- Integral of log_e x dx from 1 to 3 = [x*log_e x - x] from 1 to 3 = (3log_e3-3) - (0-1) = 3log_e3-2.
- Total integral = (2/3 - (1/3)log_e3) + (3log_e3-2) = (8/3)log_e3 - 4/3.
- Write log_e(n^2/e) = 2log_e n - 1. Trying n=3: (m/3)(2log_e3-1) = (2m/3)log_e3 - m/3. Matching (8/3)log_e3-4/3 gives 2m=8, so m=4, and -m/3=-4/3 is consistent.
- So m=4, n=3 (coprime). m^2+n^2-5 = 16+9-5 = 20.
✓Final answer\boxed{20}
- JEE Main 2023Set 2023-01-30-s24 marksQ.If \int \sqrt{\sec 2x - 1},dx = \alpha \log_e\left|\cos 2x + \beta\sqrt{\cos 2x\left(1 + \cos^{1/\beta} x\right)}\right| + \text{constant}, then \beta - \alpha is equal to _____.
›Reveal solutionSolution
Use sec2x−1=2sin2x/cos2x and substitute u=cosx to reduce the integral to the standard form ∫du/2u2−1, then match constants against the given closed form.
- sec2x−1=cos2x1−cos2x=cos2x2sin2x, so the integrand is 2cos2xsinx.
- Substitute u=cosx, du=−sinxdx, and cos2x=2u2−1: integral becomes −2∫2u2−1du.
- Using the standard result ∫2u2−1du=21ln2u+2u2−1+C, the antiderivative becomes −ln2cosx+cos2x+C.
- Rewriting 2cosx=1+cos2x and matching this against the stated template form (with the leading coefficient α and the inner constant β) fixes the two constants consistently.
- Comparing coefficients in this matched form gives β−α=1.
✓Final answer\boxed{1}
- JEE Main 2023Set 2023-01-31-s14 marksMCQQ.The value of \int_{\pi/3}^{\pi/2} \frac{(2+3\sin x)}{\sin x(1+\cos x)}, dx is equal to (A) 7/2 - \sqrt{3} - \log_e\sqrt{3} (B) -2 + 3\sqrt{3} + \log_e\sqrt{3} (C) 10/3 - \sqrt{3} + \log_e\sqrt{3} (D) 10/3 - \sqrt{3} - \log_e\sqrt{3}
›Reveal solutionSolution
Break the fraction into a piece integrable via the half-angle substitution t=tan(x/2) and a piece integrable using 1+cosx=2cos2(x/2).
- sinx(1+cosx)2+3sinx=1+cosx3+sinx(1+cosx)2.
- Term 2: 1+cosx3=2cos2(x/2)3=23sec2(x/2); integral =3tan(x/2). From π/3 to π/2: 3[tan(π/4)−tan(π/6)]=3[1−31]=3−3.
- Term 1: with t=tan(x/2), sinx=1+t22t, 1+cosx=1+t22, dx=1+t22dt, so sinx(1+cosx)2dx=(t1+t)dt.
- ∫(t1+t)dt=lnt+2t2; limits t=tan(π/6)=1/3 to t=tan(π/4)=1: [0+21]−[−ln3+61]=31+ln3.
- Total integral =(31+loge3)+(3−3)=310−3+loge3.
✓Final answer(C)
- JEE Main 2023Set 2023-02-01-s14 marksMCQQ.\lim_{n\to\infty}\left(\frac{1}{1+n}+\frac{1}{2+n}+\frac{1}{3+n}+\cdots+\frac{1}{2n}\right) is equal to :- (A) 0 (B) \log_e 2 (C) \log_e\left(\frac{3}{2}\right) (D) \log_e\left(\frac{2}{3}\right)
›Reveal solutionSolution
Rewrite the n-term sum as (1/n) times a function of k/n so it becomes a Riemann sum for a definite integral.
- The sum has n terms: Σ_{k=1}^{n} 1/(n+k).
- Factor out n: Σ 1/(n+k) = (1/n)Σ 1/(1+k/n).
- As n→∞, this Riemann sum converges to ∫0^1 dx/(1+x).
- ∫0^1 dx/(1+x) = [ln(1+x)]0^1 = ln2.
✓Final answer(B)
- JEE Main 2023Set 2023-04-06-s14 marksMCQQ.Let I(x) = \int \dfrac{x^2(x\sec^2x+\tan x)}{(x\tan x+1)^2},dx. If I(0) = 0, then I\left(\dfrac{\pi}{4}\right) is equal to : (A) \log_e\dfrac{(\pi+4)^2}{16}+\dfrac{\pi^2}{4(\pi+4)} (B) \log_e\dfrac{(\pi+4)^2}{32}-\dfrac{\pi^2}{4(\pi+4)} (C) \log_e\dfrac{(\pi+4)^2}{16}-\dfrac{\pi^2}{4(\pi+4)} (D) \log_e\dfrac{(\pi+4)^2}{32}+\dfrac{\pi^2}{4(\pi+4)}
›Reveal solutionSolution
The numerator is exactly x2 times the derivative of xtanx, so integrating by parts against d[−1/(xtanx+1)] collapses the integral into an elementary log term.
- Note dxd(xtanx)=tanx+xsec2x, so the numerator is x2d(xtanx).
- Let u=x2, dv=(xtanx+1)2d(xtanx)=d[xtanx+1−1], so v=xtanx+1−1.
- Integration by parts: I=xtanx+1−x2+2∫xtanx+1xdx.
- Writing xtanx+1x=xsinx+cosxxcosx and noting dxd(xsinx+cosx)=xcosx, this integral is ln∣xsinx+cosx∣.
- So I(x)=xtanx+1−x2+2ln∣xsinx+cosx∣+C; using I(0)=0 gives C=0.
- At x=π/4: xtanx+1=4π+1=4π+4, so xtanx+1−x2=(π+4)/4−π2/16=4(π+4)−π2; and xsinx+cosx=82(π+4), so 2ln82(π+4)=ln32(π+4)2.
- So I(π/4)=ln32(π+4)2−4(π+4)π2.
✓Final answer(B)
🎓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.