Determine if the following functions are continuous and, if they are not, tell the types of discontinuity that they have:
a) $$\displaystyle f(x)=\frac{x^2-1}{x+1}$$
b) $$\displaystyle f(x)= \left\{ \begin{array}{rcl} \frac{1+x}{1-x} & \mbox{ if } & x\neq 1 \\ 0 & \mbox{ if } & x=1\end{array} \right.$$
c) $$\displaystyle f(x)= \left\{ \begin{array}{rcl} x+1 & \mbox{ if } & x\leq 3 \\ x-1 & \mbox{ if } & x>3\end{array} \right.$$
Development:
a) The domain of the function is $$Dom(f)=\mathbb{R}-{-1}$$ so we must study the continuity of the function in this interval.
The function presents problems exactly at the point $$-1$$, since it is divided by zero, for what we might think that it might not be continuous.
But let's remember that the definition of continuous function is done on points of the domain, so we cannot apply the concept of continuity or discontinuity at this point.
In the rest of points there are no problems and we always have: $$(a\neq -1)$$
$$$\displaystyle \begin{array} {l} \lim_{x \to a^-}f(x)=\lim_{x \to a} \dfrac{x^2-1}{x+1}=\dfrac{a^2-1}{a+1} \\ \lim_{x \to a^+}f(x)=\lim_{x \to a}\dfrac{x^2-1}{x+1}=\frac{a^2-1}{a+1} \\ f(a)=\frac{a^2-1}{a+1} \end{array}$$$ since the function is continuous.
b) We must study continuity at point $$x=1$$, since at others it is continuous: $$$\displaystyle \begin{array} {l} \lim_{x \to 1^-}f(x)=\lim_{x \to 1^-} \dfrac{1+x}{1-x}=\dfrac{1+1^-}{1-1^-}=\dfrac{2^-}{0^+}=+\infty \\ \lim_{x \to 1^+}f(x)=\lim_{x \to 1^+} \dfrac{1+x}{1-x}=\dfrac{1+1^+}{1-1^+}=\dfrac{2^+}{0^-}=-\infty \\ f(1)=0 \end{array}$$$ Note that we have an essential discontinuity, thus the function is not continuous.
c) The two components of the function are continuous. We only need to check the point $$x=3$$: $$$\displaystyle \begin{array} {l} \lim_{x \to 3^-}f(x)=\lim_{x \to 3} x+1=4 \\ \lim_{x \to 3^+}f(x)=\lim_{x \to 3} x-1=2 \\ f(3)=4 \end{array}$$$ and since the side limits do not coincide and they are finite we have an inevitable discontinuity.
Solution:
a) Continuous function
b) Function is not continuous. With essential discontinuity at $$x=1$$.
c) Function is not continuous. With inevitable discontinuity at $$x=3$$.