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
293.1k+ 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
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]

JEE Advanced 2022 Maths Question Paper 2 with Solutions

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

JEE Advanced 2026 Notification Out with Exam Date, Registration (Extended), Syllabus and More

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

JEE Advanced 2027 Notes

Electrochemistry JEE Advanced 2027 Notes - Free PDF Download (Sign-in Required)

JEE Advanced 2027 Matrices and Determinants Notes - Free PDF Download (Sign-in Required)

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

Understanding the Electric Field of a Uniformly Charged Ring

Understanding Atomic Structure for Beginners

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

Electron Gain Enthalpy and Electron Affinity Explained

Derivation of Equation of Trajectory Explained for Students

