For a function f(x) = logx , the derivative is finite for x< 0 . How can slope exist when there is no curve for x< 0 for our function???
-
4Where did you get idea that you can differentiate $\log$ at points $x<0$? – José Carlos Santos Nov 28 '21 at 15:59
-
1How do you even define a slope at $(x,\log x)$ for $x<0$? – Didier Nov 28 '21 at 15:59
3 Answers
Perhaps you want to consider $f(x):=\ln|x|$. This $f$ is defined for all non-zero reals, is also continuous and differentiable there, with derivative $f’(x)=\frac1x$.
- 374,180
We are used to say that $\dfrac{d(\log)}{dx}(x) = \dfrac{1}{x}$. But we have to be careful with this, since it is only valid for $x>0$.
By definition of derivative of a function $f$, $$f'(x) = \lim_{h\to 0} \dfrac{f(x+h)-f(x)}{h}$$ Applying this to $\log$ for $x<0$, $$(\log)'(x) = \lim_{h\to 0} \dfrac{\log(x+h)-\log(x)}{h} $$ and, of course, $\log(x+h)$ and $\log(x)$ don't exist.
- 444
I am also learning mathematics, so my answer might not be correct; I hope someone can correct it if it is wrong. I think the answer is very simple. Functions such as f(x)=log(x) take a value x, in the domain and map it to a value, f(x), in the codomain. The derivative is a function that is based off of the domain for x and map it to f'(x) in a possibly different codomain. The domain of log x is (0, infinity). The derivative is 1/x sure, but it is not f'(x) unless the restriction of x is between (0, infinity) is applied. Otherwise it can no longer be considered the derivative for log x, but of a different function. The version of f'(x) with the entire (-infinity, 0) union (0,infinity) domain is the derivative of a piecewise function that should be quite obvious (include a reflection of log x via piecewise). Hope this makes sense and helps.
- 29
-
Welcome to MSE. For some basic information about writing mathematics at this site see, e.g., basic help on mathjax notation, mathjax tutorial and quick reference, main meta site math tutorial and equation editing how-to. – José Carlos Santos Nov 28 '21 at 16:28