So I know derivative of ln(x) = 1/x, but the anti-derivative of 1/x = ln(|x|), why the absolute value? It is possible to have negative values for x in ln, so why isn't it just x?

Im sure you will find the following link interesting.

http://en.wikipedia.org/wiki/Integration_by_parts

"in the real numbers ln(x) is not defined for x<0"

He then went on to give a nice illustration of what the situation is if one considers complex numbers.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.

means that for x<0

F(x) = ln(-x)

F'(x) = (-1) / (-x) = 1/x

so the anti-derivative is shown to be valid

but also of course

d/dx(ln(x)) = 1/x

_________________________

in the real numbers ln(x) is not defined for x<0, but in complex numbers

-x = x e^(pi i)

since e^(pi i) = -1

so for example

ln(-5) = ln(5 e^(pi i)) = ln(5) + pi i

and in general

ln(-x) = ln(x) + pi i

therefore the difference between ln(-x) and ln(x) is a constant which can be absorbed into a constant of integration, and ultimately would not affect a definite integral

__________________________

integral ln(x) is found by considering ln(x) = 1 ln(x) , then using integration by parts to give

x ln(x) - x