Let $f(x)$ is a piecewise function. when $x\ne 3$, $f(x)=x^2$, and when $x=3$, $f(x)=5$. I know that if a function is not continuous, then the function is not differentiable, so $f(x)$ should not be differentiable. But geometrically I think it should be differentiable, because the limit of the slopes of all those tangent lines that via $(3,5)$ is exist.
Could someone tell me where am I wrong?