Solution:
Key idea: A function is continuous at x=a when LHL, RHL and f(a) are equal. It is differentiable at x=a when the left-hand derivative Lf′(a) and the right-hand derivative Rf′(a) exist and are equal, where, with h>0 and h→0,
Lf′(a)Rf′(a)=h→0lim−hf(a−h)−f(a)=h→0limhf(a+h)−f(a)
Step 1 — Find the value at x = 2.
At x=2 the rule 2x−3 applies, because it holds for x≥2.
f(2)=2(2)−3=1
Step 2 — Check continuity at x = 2.
We put x=2−h in x−1 and x=2+h in 2x−3.
LHL=h→0lim[(2−h)−1]=1
RHL=h→0lim[2(2+h)−3]=1
Both limits equal f(2), so f is continuous at x=2; continuity alone does not settle differentiability.
Step 3 — Find the left-hand derivative.
Just left of 2 the rule is x−1, so f(2−h)=1−h.
Lf′(2)=h→0lim−h(1−h)−1=h→0lim−h−h=1
Step 4 — Find the right-hand derivative.
Just right of 2 the rule is 2x−3, so f(2+h)=1+2h.
Rf′(2)=h→0limh(1+2h)−1=h→0limh2h=2
Step 5 — Compare the two derivatives.
The left-hand derivative 1 is not equal to the right-hand derivative 2, so f′(2) does not exist.
Therefore, f is not differentiable at x=2, although it is continuous there.