Recall that if g {\displaystyle g} is not continuous at x = a {\displaystyle x=a} , then it is not differentiable at the same point.
Therefore, to be differentiable at x = 4 {\displaystyle x=4} , g {\displaystyle g} must be continuous at the point first.