Step 1: {Check the points of non-differentiability}
We know that for a function to be differentiable at a point, both the left-hand derivative (LHD) and right-hand derivative (RHD) must be equal at that point. At \( x = -\sqrt{5} \), the left-hand derivative is 0, but the right-hand derivative is \( 2x = -2\sqrt{5} \). Therefore, \( f(x) \) is not differentiable at \( x = -\sqrt{5} \). Similarly, at \( x = \sqrt{5} \), the left-hand derivative is \( 2x = 2\sqrt{5} \), and the right-hand derivative is 0, meaning \( f(x) \) is not differentiable at \( x = \sqrt{5} \). Thus, \( k = 2 \).
Step 2: {Calculate \( k - 2 \)}
Since \( k = 2 \), we find: \[ k - 2 = 2 - 2 = 0 \]