Detailed Explanation
A function is continuous at a point \( x = a \) if \( \lim_{x \to a} f(x) = f(a) \). That is, the value the function approaches must equal the value the function actually takes. A function is differentiable at a point only if it is first continuous there, so if continuity fails, differentiability automatically fails too. Here the function is defined as \( x^2 + 3 \) everywhere except at \( x = 0 \), where it is forced to equal \( 1 \). For \( x \ne 0 \), the function is a polynomial, so it is smooth (continuous and differentiable) everywhere. The only doubtful point is \( x = 0 \), so we must test continuity there separately.
Formula Used
\( f \text{ is continuous at } x=a \iff \lim_{x \to a} f(x) = f(a) \)
Solution
- Step 1: Write out the given function clearly. \[ f(x) = \begin{cases} x^2 + 3 & x \ne 0 \\ 1 & x = 0 \end{cases} \] For all \( x \ne 0 \) the rule is the polynomial \( x^2 + 3 \).
- Step 2: Check behaviour away from zero. For every \( x \ne 0 \), \( f(x) = x^2 + 3 \) is a polynomial. Polynomials are continuous and differentiable for all real numbers. So on \( \mathbb{R} - \{0\} \) the function is both continuous and differentiable. The only point still to examine is \( x = 0 \).
- Step 3: Find the limit as \( x \to 0 \). Since \( x \to 0 \) means \( x \ne 0 \), we use the rule \( x^2 + 3 \). \[ \lim_{x \to 0} f(x) = \lim_{x \to 0} (x^2 + 3) = 0 + 3 = 3 \]
- Step 4: Find the actual value at \( x = 0 \). From the definition, \[ f(0) = 1 \] Now compare the limit with the value: \[ \lim_{x \to 0} f(x) = 3 \ne 1 = f(0) \] Since the limit does not equal the function value, \( f \) is discontinuous at \( x = 0 \).
- Step 5: Conclude about differentiability. Because \( f \) is not continuous at \( x = 0 \), it cannot be differentiable there either. But at every other point \( f \) equals a polynomial, so it is continuous and differentiable for all \( x \ne 0 \). This matches option (C).
Final Answer
The function is continuous and differentiable for all \( x \in \mathbb{R} - \{0\} \), and it is discontinuous only at \( x = 0 \). Hence the correct choice is (C).
Common Mistake
A common mistake is to assume the function is continuous everywhere just because \( x^2 + 3 \) is smooth, forgetting that at \( x = 0 \) the value is redefined as \( 1 \). Always compare \( \lim_{x \to 0} f(x) = 3 \) with \( f(0) = 1 \); since they differ, continuity fails at that single point.