I want to study the derivability of this function
$$f(x)=x\left|{\log{x}}\right|$$
My textbook says the function is defined for $x>0$ (easy to understand for me, the argument of the logarithm must be positive) and it says: "it can certainly be derived for $x\neq 1$". I wonder how my textbook reached this conclusion without deriving the function first. I'm aware derivatives are defined like this:
$$\lim_{h\rightarrow0}{\frac{f(x_0+h)-f(x_0)}{h}}$$
Although I can't understand how we can reach conclusions about derivability just by looking at the function. Any hints?
For $x<1$ you have $f(x)=-x\log x$ and $f(x)=x \log (x)$ for $x>1$. Now use the product rule.
For $x=1$ the derivative of function does not exist, because $\lim_{x\rightarrow 1^{-}}f'(x)=-1$ and $\lim_{x\rightarrow 1^{+}}f'(x)=1.$