As the name suggests, a piecewise continuous function is a function that is continuous on every point of the domain of the function – except at a finite number of points. Also, a piecewise continuous function is well defined at every point meaning that it does not go to infinity at any point in its domain. Intuitively speaking, this means that it is possible to draw the graph of the function without lifting the pen tip from the paper – except some finite number of times at the points of discontinuity. We now give three examples of piecewise continuous functions and their graphs below.

**Example 1:**

Consider the function defined on the whole of the real line as follows, f(x) = \begin{cases} 0 & x\leq 0 \\ 1 & x\geq 0 \end{cases} . The graph of the function looks like follows,

From the graph above it is evident that the function is continuous everywhere except at the point x=0. Thus the above function is an example of a function with a single point of discontinuity.

**Example 2:**

We now give an example of a piecewise continuous function with two points of discontinuities. Consider the real valued function defined as, g(x) = \begin{cases} x & x\leq -1 \\ x+1 & -1< x< 1 \\ -x+4 & 1\leq x \end{cases} .

The above function has two points of discontinuities. When drawing the graph of this function a person must lift their pen tip from the page twice – at the points x=-1 and x=+1.

**Example 3:**

We now finally give an example of a function with three points of discontinuity. Consider the following step function which remains constant except for jumps at the points x=-2, x=0 and x=2. The function is given as, h(x) = \begin{cases} 1 & x\leq -2 \\ 2 & -2< x < 0 \\ 3 & 0\leq x < 2 \\ 4 & 2 \leq x \end{cases}

**A function that is NOT Piecewise Continuous:**

Consider the function f(x) = tan(x) defined on the entire real line. This function is continuous except at the points where it blows up to infinity. The function is not well defined at the points where it blows up to infinity. Since it has infinitely many points of discontinuity and it blows up to infinity we see that the trigonometric function tan(x) defined on the real line is NOT a piecewise continuous function.