The antiderivative of 1/x is ln(x), not ln |x(blog.danielh.cc) |
The antiderivative of 1/x is ln(x), not ln |x(blog.danielh.cc) |
ln|x| + pi*i + C or ln|x| - pi*i + C or is x < 0 (Protip: Choose C=-+pi*i)
In reals ln|x| is fine.
In complex, it's a mess https://en.wikipedia.org/wiki/Complex_logarithm