What is the value of the integral \[\int\limits_{\dfrac{1}{e}}^e {\left| {\log x} \right|dx} \]?
A. \[1 - \dfrac{1}{e}\]
B. \[2\left( {1 - \dfrac{1}{e}} \right)\]
C. \[{e^{ - 1}} - 1\]
D. None of these
Answer
301.5k+ views
Hint: Here, a definite integral is given. First, check the behaviour of the function present in the given integral \[\left| {\log x} \right|\] in the interval and find the point where the function changes it’s direction. Then, apply the definite integration rule \[\int\limits_a^b {f\left( x \right)} dx = \int\limits_a^c {f\left( x \right)} dx + \int\limits_c^b {f\left( x \right)} dx\] and solve the integrals to get the required answer.
Formula Used: \[\int\limits_a^b {f\left( x \right)} dx = \int\limits_a^c {f\left( x \right)} dx + \int\limits_c^b {f\left( x \right)} dx\], where \[c \in \left( {a,b} \right)\]
\[\int {\log xdx = x\log x - x} \]
Complete step by step solution: The given definite integral is \[\int\limits_{\dfrac{1}{e}}^e {\left| {\log x} \right|dx} \].
We know that, the log function is undefined for the negative number and it is a decreasing function in the interval \[\left[ {0,1} \right]\]. Also, \[\log \left( 1 \right) = 0\].
Means, the given function \[\log x\] changes the direction at 1.
So, apply the definite integration rule \[\int\limits_a^b {f\left( x \right)} dx = \int\limits_a^c {f\left( x \right)} dx + \int\limits_c^b {f\left( x \right)} dx\] and split the interval into two parts.
We get,
\[\int\limits_{\dfrac{1}{e}}^e {\left| {\log x} \right|dx} = \int\limits_{\dfrac{1}{e}}^1 { - \log xdx} + \int\limits_1^e {\log xdx} \]
\[ \Rightarrow \int\limits_{\dfrac{1}{e}}^e {\left| {\log x} \right|dx} = - \int\limits_{\dfrac{1}{e}}^1 {\log xdx} + \int\limits_1^e {\log xdx} \]
\[ \Rightarrow \int\limits_{\dfrac{1}{e}}^e {\left| {\log x} \right|dx} = - \left[ {x\log x - x} \right]_{\dfrac{1}{e}}^1 + \left[ {x\log x - x} \right]_1^e\]
\[ \Rightarrow \int\limits_{\dfrac{1}{e}}^e {\left| {\log x} \right|dx} = - \left[ {\log \left( 1 \right) - 1 - \left( {\dfrac{1}{e}\log \left( {\dfrac{1}{e}} \right) - \dfrac{1}{e}} \right)} \right] + \left[ {e\log e - e - \left( {\log \left( 1 \right) - 1} \right)} \right]\]
\[ \Rightarrow \int\limits_{\dfrac{1}{e}}^e {\left| {\log x} \right|dx} = - \left[ {0 - 1 - \left( {\dfrac{1}{e}\left( { - 1} \right) - \dfrac{1}{e}} \right)} \right] + \left[ {e - e - \left( {0 - 1} \right)} \right]\]
\[ \Rightarrow \int\limits_{\dfrac{1}{e}}^e {\left| {\log x} \right|dx} = - \left[ { - 1 - \left( { - \dfrac{1}{e} - \dfrac{1}{e}} \right)} \right] + 1\]
\[ \Rightarrow \int\limits_{\dfrac{1}{e}}^e {\left| {\log x} \right|dx} = 1 - \dfrac{2}{e} + 1\]
\[ \Rightarrow \int\limits_{\dfrac{1}{e}}^e {\left| {\log x} \right|dx} = 2 - \dfrac{2}{e}\]
\[ \Rightarrow \int\limits_{\dfrac{1}{e}}^e {\left| {\log x} \right|dx} = 2\left( {1 - \dfrac{1}{e}} \right)\]
Option ‘B’ is correct
Note: Students often get confused about the behaviour of log function and consider it as an increasing function from the point 0. Because of that, they directly calculate \[\int\limits_{\dfrac{1}{e}}^e {\left| {\log x} \right|dx} \] as \[\int\limits_{\dfrac{1}{e}}^e {\log xdx} \] without changing the limits.
Formula Used: \[\int\limits_a^b {f\left( x \right)} dx = \int\limits_a^c {f\left( x \right)} dx + \int\limits_c^b {f\left( x \right)} dx\], where \[c \in \left( {a,b} \right)\]
\[\int {\log xdx = x\log x - x} \]
Complete step by step solution: The given definite integral is \[\int\limits_{\dfrac{1}{e}}^e {\left| {\log x} \right|dx} \].
We know that, the log function is undefined for the negative number and it is a decreasing function in the interval \[\left[ {0,1} \right]\]. Also, \[\log \left( 1 \right) = 0\].
Means, the given function \[\log x\] changes the direction at 1.
So, apply the definite integration rule \[\int\limits_a^b {f\left( x \right)} dx = \int\limits_a^c {f\left( x \right)} dx + \int\limits_c^b {f\left( x \right)} dx\] and split the interval into two parts.
We get,
\[\int\limits_{\dfrac{1}{e}}^e {\left| {\log x} \right|dx} = \int\limits_{\dfrac{1}{e}}^1 { - \log xdx} + \int\limits_1^e {\log xdx} \]
\[ \Rightarrow \int\limits_{\dfrac{1}{e}}^e {\left| {\log x} \right|dx} = - \int\limits_{\dfrac{1}{e}}^1 {\log xdx} + \int\limits_1^e {\log xdx} \]
\[ \Rightarrow \int\limits_{\dfrac{1}{e}}^e {\left| {\log x} \right|dx} = - \left[ {x\log x - x} \right]_{\dfrac{1}{e}}^1 + \left[ {x\log x - x} \right]_1^e\]
\[ \Rightarrow \int\limits_{\dfrac{1}{e}}^e {\left| {\log x} \right|dx} = - \left[ {\log \left( 1 \right) - 1 - \left( {\dfrac{1}{e}\log \left( {\dfrac{1}{e}} \right) - \dfrac{1}{e}} \right)} \right] + \left[ {e\log e - e - \left( {\log \left( 1 \right) - 1} \right)} \right]\]
\[ \Rightarrow \int\limits_{\dfrac{1}{e}}^e {\left| {\log x} \right|dx} = - \left[ {0 - 1 - \left( {\dfrac{1}{e}\left( { - 1} \right) - \dfrac{1}{e}} \right)} \right] + \left[ {e - e - \left( {0 - 1} \right)} \right]\]
\[ \Rightarrow \int\limits_{\dfrac{1}{e}}^e {\left| {\log x} \right|dx} = - \left[ { - 1 - \left( { - \dfrac{1}{e} - \dfrac{1}{e}} \right)} \right] + 1\]
\[ \Rightarrow \int\limits_{\dfrac{1}{e}}^e {\left| {\log x} \right|dx} = 1 - \dfrac{2}{e} + 1\]
\[ \Rightarrow \int\limits_{\dfrac{1}{e}}^e {\left| {\log x} \right|dx} = 2 - \dfrac{2}{e}\]
\[ \Rightarrow \int\limits_{\dfrac{1}{e}}^e {\left| {\log x} \right|dx} = 2\left( {1 - \dfrac{1}{e}} \right)\]
Option ‘B’ is correct
Note: Students often get confused about the behaviour of log function and consider it as an increasing function from the point 0. Because of that, they directly calculate \[\int\limits_{\dfrac{1}{e}}^e {\left| {\log x} \right|dx} \] as \[\int\limits_{\dfrac{1}{e}}^e {\log xdx} \] without changing the limits.
Recently Updated Pages
Page Not Found - NCERT Solutions, CBSE, JEE, NEET 2026-27

Carbohydrates Class 12 Important Questions JEE Advanced Chemistry [PDF]

Crack JEE Advanced 2026 with Vedantu's Live Classes

JEE Advanced 2027 Revision Notes for Amino Acids and Peptides - Free PDF Download

JEE Advanced 2027 Revision Notes for Chemical Equilibrium - Free PDF Download

Solutions Class 12 Notes JEE Advanced Chemistry [PDF]

Trending doubts
JEE Advanced Percentile vs Marks 2026: JEE Main Cutoff, AIR & IIT Admission Guide

JEE Advanced Weightage Chapter Wise 2026 for Physics, Chemistry, and Mathematics

IIT CSE Cutoff 2026: Opening and Closing Ranks for B.Tech. Computer Science Admissions at All IITs

IIT Fees Structure for BTech Courses 2026: Complete Details

Top IIT Colleges in India 2026: List, Rankings, Fees, Placements & Admission

JEE Advanced Previous Year Question Papers with Solutions PDF (2012–2026)

Other Pages
JEE Main 2026: Exam Dates, Session 2 Updates, City Slip, Admit Card & Latest News

NCERT Solutions For Class 11 Maths Chapter 6 Permutations And Combinations - 2026-27 Free PDF Download (Login Required)

Understanding the Electric Field of a Uniformly Charged Ring

Electron Gain Enthalpy and Electron Affinity Explained

Derivation of Equation of Trajectory Explained for Students

Understanding Atomic Structure for Beginners

