# Continuity

Continuity is a relatively simple concept, but problems that require proving it can be a little tricky. Essentially, a continuous function is one that you can draw all in one motion without picking up your pencil. This is one explanation of what it means for a function to be continuous that I like because it doesn’t take any mathematical definitions or proofs to understand. Any holes or gaps in a function’s graph would be a discontinuity and would mean that the function is not continuous.

## The limit definition of continuity

By definition, a function $$f(x)$$ is continuous at $$x=a$$ if $$\lim_{x \to a} f(x) = f(a).$$

Let’s think about what this equation is saying. The left side of this equation is something that we’ve already dealt with, limits. It’s asking us to find out what $$y$$ value we close in on as we travel along our function and close in on $$x=a$$. Keep in mind, $$x$$ is a variable here which represents the input of our function, $$f(x)$$, and $$a$$ is a constant. This means that $$a$$ represents some specific number, which could be any number.

The right side of the equation is simply asking us to plug that same $$a$$ value into $$f(x)$$ and take the $$y$$ value we get out.

In total, the above equation says that if we travel along a function and close in on a specific $$x$$ value, we should close in on the same $$y$$ value we would get if we simply plugged that $$x$$ value into the equation.

In other words, as we travel along a function toward a specific $$x$$ value, our $$y$$ value will also go toward the $$y$$ value of the function at that point. If that is the case, then the function is continuous at that specific point. If we can say that a function is continuous at every single possible value we could put in for $$a$$, then we can say that the function is continuous for all $$x$$. If this is true then we can draw our entire function in one motion without picking up our pencil!

Let’s do a couple examples.

## Example 1

Remember back in the first lesson about limits, Limits – Intro, I said I would go back to discussing the importance of our limit in the first example giving us the same value as when we plugged $$x=2$$ into the equation?  I would like to go into that further.

The function we were considering was $$f(x) = x^2$$ and we were finding

$$\lim_{x \to 2} x^2.$$

After looking at the graph of this function, shown in Figure 1.1, we saw that

$$\lim_{x \to 2} x^2 = 4.$$

I also pointed out that plugging in $$x=2$$ directly into the function also returns a $$y$$ value of $$4$$. In other words, we know $$f(2) = 4.$$ Therefore, we know

$$\lim_{x \to 2} x^2 = 4 = f(2)$$

$$\lim_{x \to 2} x^2 = f(2).$$

Notice this is exactly like the definition of what it means for a function to be continuous at a point. If you replace $$a$$ with $$2$$, replace $$f(x)$$ with $$x ^2$$, and replace $$f(a)$$ with $$4$$, we have just shown that $$y=x^2$$ is a function that is continuous at $$x=2.$$

## Example 2

The next example I want to discuss also goes back to a function we have already looked at. Referring back to Limits – Intro we will consider $$f(x)$$ shown in Figure 1.2.

The question we will answer here is whether this function is continuous at $$x=1$$ or not. What do you think?

There are a few different ways we can answer this question. The simplest would be to simply look at the graph of the function and think about whether we can draw that function at and around $$x=1$$ without picking up our pencil. As you can see, there is clearly a hole at $$x=1$$ where we would need to pick up our pencil, and add a single point at $$(1, \ 4)$$.

As a result, it is probably safe to say that this function is not continuous at $$x=1$$. However, we want to be able to show this using the actual definition of what it means for a function to be continuous.

Remember, for this function, which we are calling $$f(x)$$ in this case, we need to be able to show that $$\lim_{x \to 1} f(x) = f(1).$$

If we can show this equation to be true, then $$f(x)$$ is continuous at $$x=1$$, and if it’s not true then the function is not continuous at $$x=1$$. Luckily, back when I first used this function as an example in the Limits – Intro lesson, we found that $$\lim_{x \to 1} f(x) = 2.$$ Therefore, we just need to find out if $$f(1)$$ is also $$2$$ and we can prove that this function is continuous or not continuous.

Looking at the graph again, we see that this function has a hole at $$x=1$$ and includes the point $$(1, \ 4)$$. In other words, if we plug $$1$$ into $$f(x)$$ as our $$x$$ value, we get a $$y$$ value of $$4$$ out. This is the same as saying $$f(1) = 4$$.

Now, at this point we have figured out $$\lim_{x \to 1} f(x) = 2 \ and$$ $$f(1) = 4.$$

Therefore, $$\lim_{x \to 1} f(x) \neq f(1)$$ and we can say that $$f(x)$$ is not continuous at $$x=1$$.

## More Examples

Find the values of $$a$$ and $$b$$ that make $$f$$ continuous everywhere.

$$f(x) = \begin{cases} \frac{x^2-4}{x-2} & \mbox{if } x<2 \\ ax^2-bx+3 & \mbox{if } 2\leq x<3 \\ 2x-a+b & \mbox{if } x\geq 3 \end{cases}$$

I also have a calc 1 study guide that you can get now for FREE! Just enter your name and email below and I’ll send you a copy straight to your inbox!

There are also several other lessons and problems on my limits page.  It would be a good idea to get some practice with limits.  A lot of other more complex topics in calculus are based around limits so they are important to understand.  If you can’t find the topic you want to read about just let me know by emailing me at jakesmathlessons@gmail.com and I’ll do my best to answer your question!

## 3 thoughts on “Continuity”

1. Eva says:

How would I do a problem like this?
Find the numbers at which f is discontinuous:

f(x): x+1 if x is less than or equal to 1
1/x if 1<x<3
root of x-3 if x is greater than or equal to 3

Typically with a problem like that you want to consider this in two different parts. First figure out if each of those pieces of the piecewise function is continuous for the entire domain on which it’s defined. You want to make sure that you wouldn’t divide by 0, take an even root of a negative number, or take a logarithm of a non-positive number. Once you confirm that each of those pieces is continuous on their own little domain, you need to make sure the piecewise function is continuous at the x values where you go from one piece to the next. This would be done using the limit definition of continuity at a point and set up each one sided limit separately.

2. Eva says:

Thank you so much!!