This is a problem from my introductory calculus homework.
\begin{equation} f(x) = \begin{cases} x^2\sin\frac{1}{x}, & x \neq 0,\\ 0, & x = 0. \end{cases} \end{equation}
Does $f'(0)$ exist?
If I approach the problem algebraically, I obtain the answer \begin{equation}f'(x)=\lim_{x \rightarrow 0}x\sin\frac{1}{x}\end{equation} This should be equal to 0 from the Squeeze Theorem. So, $f'(0)=0$.
However, something about this answer worries me. At class, the professor said to informally think of the tangent line at a point as the line that the curve begins to "look like" if we zoom around the point (or so I remember, I might be misquoting here). At the time this made a whole lot of sense to me. However, if I look at the problem from this angle, my geometric intuition goes beep, since I imagine the curve will never begin to look like a line :) So I wanted to know your thoughts on this one. Thank you in advance.