Example 2 continuity and differentiability