Differentiability implies continuity. But not vice-versa. A function is not differentiable where the slopes of tangent lines are not vertical or where the function is not continuous, because either multiple tangent lines exist or they do not correspond with each other.
Problem 1 and solution:
Problem 2 and solution: