A real function f is said to be continuous at x = c, where c is any point in the domain of f if :

where h is a very small ‘+ve’ no.
i.e. left hand limit as x → c (LHL) = right hand limit as x → c (RHL) = value of function at x = c.
This is very precise,
We can summarise it as,
A function is continuous at x = c if :

Here we have,
\(f(x) = \begin{cases}\frac{\sqrt{1+px}-\sqrt{1-px}}{x}&, \quad \text{if}\,-1≤x <{0} \\\frac{2x+1}{x-2}&,\quad\text{if}\,0≤x≤1\end{cases} \)
Function is defined for all real numbers and we need to find the value of k so that it is continuous everywhere in its domain.
(domain = set of numbers for which f is defined)
To find the value of constants always try to check continuity at the values of x for which f(x) is changing its expression.
As most of the time discontinuities are here only, if we make the function continuous here, it will automatically become continuous everywhere
From equation 1,
it is clear that f(x) is changing its expression at x = 0
Given,
f(x) is continuous everywhere
