Ask Me Help Desk

Ask Me Help Desk (https://www.askmehelpdesk.com/forum.php)
-   Mathematics (https://www.askmehelpdesk.com/forumdisplay.php?f=199)
-   -   How to calculate integral with Absolute value of this function (https://www.askmehelpdesk.com/showthread.php?t=562255)

  • Mar 14, 2011, 03:54 PM
    susus
    how to calculate integral with Absolute value of this function
    what is the integral of |lnx| , between (1/e) to e

    I know the integral of lnx = xlnx -x

    so what I did was [{(elne-e - (1ln1-1)]} + {(1ln1 -1 ) - 1/e(ln1/e)} ) ].. sadly I got a wrong answer..

    so how can I calculate it? Thanls
  • Mar 14, 2011, 08:42 PM
    jcaron2
    You're very close, but you missed a minus sign.

    You did the right thing by breaking it up into two separate intervals, 1/e to 1 and 1 to e. The reason for choosing 1 as the breaking point is that it's the value where the function ln(x) goes from positive to negative. Everything to the right of that point should be evaluated as usual (as if the absolute value sign wasn't even there). However, everything to the left of 1 (between 1/e and 1) would be negative if not for the absolute value sign. But since the absolute value sign causes it to become positive, it's the same as integrating -ln(x) over that interval. Hence, if you replace your + sign with a - sign where you add the two sub-intervals together, you should get the right answer.

    Here it is written with math:



    Notice the minus sign between the two!
  • Mar 15, 2011, 07:11 AM
    susus
    Comment on jcaron2's post
    Thanks dear :)

  • All times are GMT -7. The time now is 06:10 PM.