4. For what value of k is the following function continuous at x = 2 ?
f(x)= {2x+1 if x less than 2
k if x=2
3x-1 if x is greater than 2
We have,
Now,
We know that f(x) is continuous at x = a if
Thus, the value of k is 5.