GATE 2024 AE – Question 45
Consider the function
$f(x) = \begin{cases} x^2 & \text{for } x < 0 \\ x & \text{for } x \ge 0 \end{cases}$
where x is real. Which of the following statements is/are correct?
Practise this question in The GATE Grind →
Show answer and explanation
Correct answer: (A) The function is continuous for all x; (B) The derivative of the function is discontinuous at x = 0; (C) The derivative of the function is continuous at x = 1
Explanation
Both pieces tend to 0 at $x = 0$, so $f$ is continuous everywhere. The derivative is $2x \to 0$ from the left and 1 from the right at $x = 0$, so it is discontinuous there. Near $x = 1$ the derivative is the constant 1, which is continuous.