The function is:
We have a function defined in two pieces,
Because the definition changes only at the points where the condition holds, that is, at and , any question about continuity or differentiability can arise only at these two points; elsewhere each individual formula is a standard elementary function and is automatically continuous and differentiable.
Continuity at
The value of the function at comes from the first formula (since ):
The right-hand limit, with , uses the second formula. For we have , so
The two numbers and are unequal, hence the right-hand limit is not equal to the value of the function. Therefore is not continuous at .
Continuity at
Its value, now from the same first formula, is
For we have , so using the second formula the left-hand limit becomes
The right-hand limit (from the first formula) is the same number, , so both one-sided limits exist and equal the value of the function. Hence is continuous at .
Because the only discontinuity occurs at , we conclude that
Differentiability at
The derivative inside is obtained from the standard rule . Thus, for ,
Taking the right-hand derivative at , we substitute :
For the expression can be differentiated directly, giving
This is a constant, so the left-hand derivative at is
Since , the two one-sided derivatives disagree and is not differentiable at .
Differentiability at
Differentiability always implies continuity, but we have already shown that is not even continuous at . Therefore is certainly not differentiable at .
Conclusion
We have shown:
• Continuous everywhere except at .
• Differentiable everywhere except at and .
So the function is continuous on and differentiable on .
Hence, the correct answer is Option A.
Tagged Differentiability at a point. Machine-assigned, so read it as a strong shortlist rather than a verdict.