I've searched online and found almost nothing. What in the mathematical definition of a derivative makes it so that the derivative of the following is undefined at 0.
\begin{equation*} f(x) =\begin{cases} 3x & \text{if } x < 0 \\ 3x+2 & \text{if } x \ge 0 \end{cases} \end{equation*}
Here's my intuitive argument for why your book says what it does:
I personally consider the derivative as the best linear approximation of a function at some given point. For this function, at $x=0$ there isn't any good sort of linear approximation so we cannot have such a derivative.
As for a more proofy argument consider the limit $$ f'(x) = \lim_{h \to 0} \frac{f(x+h)-f(x)}{h} $$ which I'm sure you recognize as the derivative. Now note that we must have this limit exist no matter how we approach it, i.e. if $h \in \mathbb{R}^-$ or $h \in \mathbb{R}^+$ or some combination of those two statements. Let's first consider when $h$ is negative and try to evaluate what $f'(0)$ is: $$ f'(0) = \lim_{h \to 0^-} \frac{f(h) - f(0)}{h} = \lim_{h \to 0^-} \frac{3h - 2}{h} = + \infty $$ so you can see that this does not exist.