The indefinite integral of 1/x is ln|x|+c ... x!=0.
Here's to show how this works for negative values of x, keeping in mind that the indefinite integral is the antiderivative in general.
When x is negative, |x| = -x.
d/dx(ln|x|+c) = (1/(-x))*(-1)+0 = 1/x
Here's to show how this works for negative values of x, keeping in mind that the indefinite integral is the antiderivative in general.
When x is negative, |x| = -x.
d/dx(ln|x|+c) = (1/(-x))*(-1)+0 = 1/x