Why is the integral of 1 over x equal to natural log of absolute value of x not just natural log of x
I know that:
But when I first learned it, they wrote . Then later they added the absolute value. Why?
If , then so it doesnt matter. But if can be negative, isnt even defined (in the reals).
But consider the definite integral:
Using gives , which is correct!
But if we used , wed get which is undefined.
So the question is: why does ? The derivative of only works for , so how do we handle the negative case?
1 answers698 views
Login to comment
1 Answer
The safest way to avoid a wrong derivative is to first identify the outer operation.
If the expression is a composition, use the chain rule:
$$\frac{d}{dx}f(g(x))=f'(g(x))g'(x).$$
If it is a product, use
$$\frac{d}{dx}(uv)=u'v+uv'.$$
A useful check is units of change: after differentiating, each term should describe a rate of change with respect to the same variable. In multivariable questions, that is exactly why $\partial f/\partial x$ and $df/dx$ are not interchangeable. The partial derivative holds the other variables fixed; the total derivative also counts how those variables move with $x$.