Calculus3Limits and Continuity1 of 8
Limits and Continuity · 1

Introduction to Limits

1

What a limit means

A limit is the number yy gets closer to as xx gets closer to a chosen value. Let's start with f(x)=x+1\fn{f(x) = x + 1}, but leave out x=2x = \inp{2}, so there's no point on the graph there. We can't plug in 22, so what does yy approach as xx gets close to 2\inp{2}?

For f(x)=x+1\fn{f(x) = x + 1} with x≠2x \neq 2, find what yy approaches as xx approaches 2\inp{2}
xx
yy
11
2\htmlClass{lc-blue}{2}
33
44
11
22
33
44
55
y=x+1\htmlClass{lc-violet}{y = x + 1}
Text solution
Try inputs close to 2\inp{2}None of these inputs is 22, so each output is just x+1x + 1.
x\displaystyle x =1.9→y\displaystyle = \inp{1.9} \to y =2.9\displaystyle = \fn{2.9}
x\displaystyle x =1.99→y\displaystyle = \inp{1.99} \to y =2.99\displaystyle = \fn{2.99}
x\displaystyle x =2.1→y\displaystyle = \inp{2.1} \to y =3.1\displaystyle = \fn{3.1}
x\displaystyle x =2.01→y\displaystyle = \inp{2.01} \to y =3.01\displaystyle = \fn{3.01}
Read the limitFrom both sides, yy gets closer to 3\lm{3}, and we never used x=2x = \inp{2}. There's no point at x=2x = \inp{2}, so f(2)\val{f(2)} is undefined.
lim⁡x→2f(x)\displaystyle \lim_{\inp{x\to 2}} \fn{f(x)} =3\displaystyle = \lm{3}
Give f(2)\val{f(2)} a valueWith f(2)=5\val{f(2) = 5}, the inputs 1.99\inp{1.99} and 2.01\inp{2.01} still aren't 22, so their outputs are still 2.99\fn{2.99} and 3.01\fn{3.01}. The limit is still 3\lm{3}.

That height, 3\lm{3}, is the limit. We write lim⁡x→af(x)=L\lim_{\inp{x\to a}} \fn{f(x)} = \lm{L} to say that the limit of f(x)\fn{f(x)} as xx approaches a\inp{a} is L\lm{L}. The open circle at (2,3)(\inp{2}, \lm{3}) marks the height with no point on it.

lim⁡x→af(x)=L\displaystyle\lim_{\htmlClass{lc-blue}{x \to a}} \htmlClass{lc-violet}{f(x)} = \htmlClass{lc-pink}{L}
the inputsapproaching a\htmlClass{lc-blue}{\begin{aligned}\text{the inputs} \\[-0.35em] \text{approaching } a\end{aligned}}
the outputs\htmlClass{lc-violet}{\text{the outputs}}
the height they approach\htmlClass{lc-pink}{\text{the height they approach}}
lim⁡x→2f(x)=3\displaystyle\lim_{\htmlClass{lc-blue}{x \to 2}} \htmlClass{lc-violet}{f(x)} = \htmlClass{lc-pink}{3}
lim⁡x→2f(x)\displaystyle \lim_{\inp{x\to 2}} \fn{f(x)} =3\displaystyle = \lm{3}
f(2) is undefined\displaystyle \val{f(2)} \text{ is undefined}

The limit doesn't need f(2)\val{f(2)} to be 33. When we define f(2)=5\val{f(2) = 5}, a filled dot at (2,5)(\inp{2}, \val{5}) gives the value of the function, and the open circle at (2,3)(\inp{2}, \lm{3}) still shows the height yy approaches from both sides.

xx
yy
11
2\htmlClass{lc-blue}{2}
33
11
22
33
44
55
y=x+1\htmlClass{lc-violet}{y = x + 1}
(2,3)(\htmlClass{lc-blue}{2}, \htmlClass{lc-pink}{3})
(2,5)(\htmlClass{lc-blue}{2}, \htmlClass{lc-green}{5})
lim⁡x→2f(x)\displaystyle \lim_{\inp{x\to 2}} \fn{f(x)} =3\displaystyle = \lm{3}
f(2)=5\displaystyle \val{f(2) = 5}

What happens to the limit when we change the value of f(2)f(2)?

Change the value at 2
2

Approaching from each side

Earlier, the values of x+1\fn{x + 1} approached 3\lm{3} from both sides of 2\inp{2}. But a function can approach different heights from the left and from the right. Let's look at one with different pieces on each side of 1\inp{1}.

f(x)={x+1,x<13,x=15−x,x>1\displaystyle \fn{f(x)} = \begin{cases} \fn{x + 1}, & x < 1 \\ \val{3}, & x = 1 \\ \fn{5 - x}, & x > 1 \end{cases}
Find what yy approaches as xx approaches 1\inp{1} from the left and from the right for f(x)\fn{f(x)}, and see if lim⁡x→1f(x)\lim_{\inp{x\to 1}} \fn{f(x)} exists
xx
yy
1\htmlClass{lc-blue}{1}
22
33
44
11
22
33
44
55
y=x+1\htmlClass{lc-violet}{y = x + 1}
y=5−x\htmlClass{lc-violet}{y = 5 - x}
Text solution
From the leftFor x<1x < 1 we use x+1\fn{x + 1}: 0.9\inp{0.9} and 0.99\inp{0.99} give 1.9\fn{1.9} and 1.99\fn{1.99}.
lim⁡x→1−f(x)\displaystyle \lim_{\inp{x\to 1^-}} \fn{f(x)} =2\displaystyle = \lm{2}
From the rightFor x>1x > 1 we use 5−x\fn{5 - x}: 1.1\inp{1.1} and 1.01\inp{1.01} give 3.9\fn{3.9} and 3.99\fn{3.99}.
lim⁡x→1+f(x)\displaystyle \lim_{\inp{x\to 1^+}} \fn{f(x)} =4\displaystyle = \lm{4}
Compare the two sidesThere's no single height that yy approaches from both sides, and the filled dot at (1,3)(\inp{1}, \val{3}) can't change that.
2≠4,so lim⁡x→1f(x) does not exist\displaystyle \lm{2} \neq \lm{4}, \quad\text{so } \lim_{\inp{x\to 1}} \fn{f(x)} \text{ does not exist}

These are the left-hand limit and the right-hand limit. The little minus sign in x→1−\inp{x \to 1^-} means xx approaches 1\inp{1} from the left, and the little plus sign in x→1+\inp{x \to 1^+} means it approaches from the right.

x+1,x<1\displaystyle \fn{x + 1}, \quad x < 1
lim⁡x→1−f(x)\displaystyle \lim_{\inp{x\to 1^-}} \fn{f(x)} =2\displaystyle = \lm{2}
5−x,x>1\displaystyle \fn{5 - x}, \quad x > 1
lim⁡x→1+f(x)\displaystyle \lim_{\inp{x\to 1^+}} \fn{f(x)} =4\displaystyle = \lm{4}

For an overall limit lim⁡x→af(x)\lim_{\inp{x\to a}} \fn{f(x)} to exist, the function has to approach one single height from both sides.

If lim⁡x→a−f(x)\displaystyle \text{If } \lim_{\inp{x\to a^-}} \fn{f(x)} =L and lim⁡x→a+f(x)\displaystyle = \lm{L} \text{ and } \lim_{\inp{x\to a^+}} \fn{f(x)} =L,\displaystyle = \lm{L},
then lim⁡x→af(x)\displaystyle \text{then } \lim_{\inp{x\to a}} \fn{f(x)} =L\displaystyle = \lm{L}

Be careful about the difference between undefined and does not exist. We say f(a)\val{f(a)} is undefined when the function has no value at x=ax = \inp{a}, so there's no filled dot. We say a limit does not exist when there's no single height that yy approaches.

What do the outputs approach from each side of x=1x = 1?

The limit from both sides
3

Reading graphs and tables

Now let's read limits straight off a graph. At each of x=−1x = \inp{-1}, x=0x = \inp{0}, and x=1x = \inp{1}, we find the left-hand limit, the right-hand limit, and the value of the function separately.

Find f(a)\val{f(a)}, lim⁡x→a−f(x)\lim_{\inp{x\to a^-}} \fn{f(x)}, lim⁡x→a+f(x)\lim_{\inp{x\to a^+}} \fn{f(x)}, and lim⁡x→af(x)\lim_{\inp{x\to a}} \fn{f(x)} at x=−1x = \inp{-1}, 0\inp{0}, and 1\inp{1}
xx
yy
−1\htmlClass{lc-blue}{-1}
0\htmlClass{lc-blue}{0}
1\htmlClass{lc-blue}{1}
11
22
33
a\htmlClass{lc-blue}{a}
−1\htmlClass{lc-blue}{-1}
0\htmlClass{lc-blue}{0}
1\htmlClass{lc-blue}{1}
f(a)\htmlClass{lc-green}{f(a)}
lim⁡x→a−f(x)\displaystyle\lim_{\htmlClass{lc-blue}{x \to a^-}} \htmlClass{lc-violet}{f(x)}
lim⁡x→a+f(x)\displaystyle\lim_{\htmlClass{lc-blue}{x \to a^+}} \htmlClass{lc-violet}{f(x)}
lim⁡x→af(x)\displaystyle\lim_{\htmlClass{lc-blue}{x \to a}} \htmlClass{lc-violet}{f(x)}
Text solution
xx
yy
−1\htmlClass{lc-blue}{-1}
0\htmlClass{lc-blue}{0}
1\htmlClass{lc-blue}{1}
11
22
33
At x=−1x = \inp{-1}There's a corner, but yy approaches 1\lm{1} from both sides, so the limit is 1\lm{1}. The filled dot gives f(−1)=3\val{f(-1) = 3}, a different number.
At x=0x = \inp{0}The graph passes through (0,2)(\inp{0}, 2) with no breaks or holes, so the limit and the value are both 22.
At x=1x = \inp{1}The right-hand limit 2\lm{2} matches f(1)=2\val{f(1) = 2}, but the left-hand limit is 3\lm{3}. The two sides differ, so the limit does not exist, and we write DNE.
a\displaystyle a =−1\displaystyle = \inp{-1}
f(−1)=3\displaystyle \val{f(-1) = 3}
lim⁡x→−1−f(x)\displaystyle \lim_{\inp{x\to -1^-}} \fn{f(x)} =1\displaystyle = \lm{1}
lim⁡x→−1+f(x)\displaystyle \lim_{\inp{x\to -1^+}} \fn{f(x)} =1\displaystyle = \lm{1}
lim⁡x→−1f(x)\displaystyle \lim_{\inp{x\to -1}} \fn{f(x)} =1\displaystyle = \lm{1}
a\displaystyle a =0\displaystyle = \inp{0}
f(0)=2\displaystyle \val{f(0) = 2}
lim⁡x→0−f(x)\displaystyle \lim_{\inp{x\to 0^-}} \fn{f(x)} =2\displaystyle = \lm{2}
lim⁡x→0+f(x)\displaystyle \lim_{\inp{x\to 0^+}} \fn{f(x)} =2\displaystyle = \lm{2}
lim⁡x→0f(x)\displaystyle \lim_{\inp{x\to 0}} \fn{f(x)} =2\displaystyle = \lm{2}
a\displaystyle a =1\displaystyle = \inp{1}
f(1)=2\displaystyle \val{f(1) = 2}
lim⁡x→1−f(x)\displaystyle \lim_{\inp{x\to 1^-}} \fn{f(x)} =3\displaystyle = \lm{3}
lim⁡x→1+f(x)\displaystyle \lim_{\inp{x\to 1^+}} \fn{f(x)} =2\displaystyle = \lm{2}
lim⁡x→1f(x)    DNE\displaystyle \lim_{\inp{x\to 1}} \fn{f(x)} \;\; \text{DNE}

Estimating a limit from a table

Without a graph, we can still estimate a limit from a table of values. To check both sides of 2\inp{2}, we pick values of xx just below 2\inp{2} and just above it, each getting closer to 2\inp{2}.

From the left (x<2x \lt 2)
xf(x)1.93.611.993.96011.9993.996001\displaystyle \begin{array}{c|c} x & \fn{f(x)} \\ \hline \inp{1.9} & \fn{3.61} \\ \inp{1.99} & \fn{3.9601} \\ \inp{1.999} & \fn{3.996001} \end{array}
From the right (x>2x > 2)
xf(x)2.14.412.014.04012.0014.004001\displaystyle \begin{array}{c|c} x & \fn{f(x)} \\ \hline \inp{2.1} & \fn{4.41} \\ \inp{2.01} & \fn{4.0401} \\ \inp{2.001} & \fn{4.004001} \end{array}
Use the table to estimate lim⁡x→2x2\lim_{\inp{x\to 2}} \fn{x^2}
lim⁡x→2x2\displaystyle \lim_{\inp{x\to 2}} \fn{x^2} =  ?\displaystyle = \;?
Text solution
Read each sideFrom the left, 3.61\fn{3.61}, 3.9601\fn{3.9601}, 3.996001\fn{3.996001} approach 4\lm{4}. From the right, 4.41\fn{4.41}, 4.0401\fn{4.0401}, 4.004001\fn{4.004001} approach 4\lm{4} too.
lim⁡x→2x2≈4\displaystyle \lim_{\inp{x\to 2}} \fn{x^2} \approx \lm{4}
Why approximatelyThe table only shows six x-values, not what happens at every input near 2\inp{2}, so it gives an estimate.
4

When the formula changes

A piecewise function uses different formulas on different parts of the number line. To find a limit, we look at which formula applies to the x-values near our point. Here the formula changes at x=1x = \inp{1}, so we find the limit from each side with that side's formula.

Find lim⁡x→1f(x)\lim_{\inp{x\to 1}} \fn{f(x)} for f(x)={x+2,x<16,x=12x+1,x>1\fn{f(x)} = \begin{cases} \fn{x + 2}, & x < 1 \\ \val{6}, & x = 1 \\ \fn{2x + 1}, & x > 1 \end{cases}
lim⁡x→1f(x)\displaystyle \lim_{\inp{x\to 1}} \fn{f(x)} =  ?\displaystyle = \;?
f(x)={x+2,x<16,x=12x+1,x>1\displaystyle \fn{f(x)} = \begin{cases} \fn{x + 2}, & x \lt 1 \\ \val{6}, & x = 1 \\ \fn{2x + 1}, & x \gt 1 \end{cases}
Text solution
Pick the formula on each sideNumbers like 0.99\inp{0.99} are less than 11, so they use x+2\fn{x + 2}. Numbers like 1.01\inp{1.01} are greater than 11, so they use 2x+1\fn{2x + 1}. Each is a line with no breaks.
lim⁡x→1−(x+2)=1+2=3lim⁡x→1+(2x+1)=2(1)+1=3\displaystyle \begin{aligned} \lim_{\inp{x\to 1^-}} (\fn{x + 2}) &= 1 + 2 = \lm{3} \\[10pt] \lim_{\inp{x\to 1^+}} (\fn{2x + 1}) &= 2(1) + 1 = \lm{3} \end{aligned}
Both sides agreeThe value f(1)=6\val{f(1) = 6} only tells us what happens right at 1\inp{1}, and the limit doesn't depend on that point.
lim⁡x→1f(x)\displaystyle \lim_{\inp{x\to 1}} \fn{f(x)} =3\displaystyle = \lm{3}
f(1)=6\displaystyle \val{f(1) = 6}

A right-hand limit at a negative number

Now let's find a one-sided limit away from where the formula changes. The tricky part is deciding which piece to use.

Find lim⁡x→−2+g(x)\lim_{\inp{x\to -2^+}} \fn{g(x)} for g(x)={x2,x<05−x,x≥0\fn{g(x)} = \begin{cases} \fn{x^2}, & x < 0 \\ \fn{5 - x}, & x \ge 0 \end{cases}
lim⁡x→−2+g(x)\displaystyle \lim_{\inp{x\to -2^+}} \fn{g(x)} =  ?\displaystyle = \;?
g(x)={x2,x<05−x,x≥0\displaystyle \fn{g(x)} = \begin{cases} \fn{x^2}, & x \lt 0 \\ \fn{5 - x}, & x \ge 0 \end{cases}
Text solution
Which side of 00 are the inputs on?From the right of −2\inp{-2} means xx is slightly greater than −2\inp{-2}, like −1.9\inp{-1.9}. That's still negative, so we use x2\fn{x^2}.
−2<−1.9<0\displaystyle \inp{-2} < \inp{-1.9} < 0
Use x2\fn{x^2}
lim⁡x→−2+g(x)\displaystyle \lim_{\inp{x\to -2^+}} \fn{g(x)} =lim⁡x→−2+x2\displaystyle = \lim_{\inp{x\to -2^+}} \fn{x^2} =(−2)2\displaystyle = (-2)^2 =4\displaystyle = \lm{4}
The plus sign isn't about positive xxReading −2+\inp{-2^+} as positive and using 5−x\fn{5 - x} gives 77. But the formula doesn't switch to 5−x\fn{5 - x} until xx reaches 00.
5

When the graph ends

Some graphs stop at a point. Let's find what 5−x\fn{\sqrt{5 - x}} approaches as xx gets close to 5\inp{5}, where its graph comes to an end.

Find what 5−x\fn{\sqrt{5 - x}} approaches as xx approaches 5\inp{5}
lim⁡x→55−x\displaystyle \lim_{\inp{x\to 5}} \fn{\sqrt{5 - x}} =  ?\displaystyle = \;?
Text solution
Where the graph existsThe square root of a negative number has no real value, so 5−x5 - x can't be negative. The graph ends at (5,0)(\inp{5}, 0).
5−x\displaystyle 5 - x ≥0  →  x\displaystyle \ge 0 \;\to\; x ≤5\displaystyle \le 5
From the leftAs xx gets closer to 5\inp{5} from the left, yy approaches 0\lm{0}.
x\displaystyle x =4→1\displaystyle = \inp{4} \to \sqrt{1} =1\displaystyle = \fn{1}
x\displaystyle x =4.99→0.01\displaystyle = \inp{4.99} \to \sqrt{0.01} =0.1\displaystyle = \fn{0.1}
Nothing on the rightTo the right of 55, 5−x5 - x is negative, so there are no points to approach from. We write a left-hand limit.
lim⁡x→5−5−x\displaystyle \lim_{\inp{x\to 5^-}} \fn{\sqrt{5 - x}} =0\displaystyle = \lm{0}
6

Infinite limits and vertical asymptotes

Plugging 00 into 1x2\fn{\frac{1}{x^2}} gives 10\frac{1}{0}, which is undefined. So what happens to the values as xx gets close to 0\inp{0}? Let's compare it with −1x2\fn{-\frac{1}{x^2}} and 1x\fn{\frac{1}{x}}.

Find the limits of 1x2\fn{\frac{1}{x^2}}, −1x2\fn{-\frac{1}{x^2}}, and 1x\fn{\frac{1}{x}} as xx approaches 0\inp{0}
lim⁡x→01x2\displaystyle \lim_{\inp{x\to 0}} \fn{\frac{1}{x^2}} =  ?\displaystyle = \;?
lim⁡x→0(−1x2)\displaystyle \lim_{\inp{x\to 0}} \left(\fn{-\frac{1}{x^2}}\right) =  ?\displaystyle = \;?
lim⁡x→01x\displaystyle \lim_{\inp{x\to 0}} \fn{\frac{1}{x}} =  ?\displaystyle = \;?
Text solution
1x2\fn{\frac{1}{x^2}}: positive on both sidesWhether xx is positive or negative, x2x^2 is positive and shrinks as xx nears 0\inp{0}, so 1x2\fn{\frac{1}{x^2}} becomes greater than any number you can name.
x\displaystyle x =±0.1→100\displaystyle = \inp{\pm 0.1} \to \fn{100}
x\displaystyle x =±0.01→10,000\displaystyle = \inp{\pm 0.01} \to \fn{10{,}000}
lim⁡x→01x2\displaystyle \lim_{\inp{x\to 0}} \fn{\frac{1}{x^2}} =+∞\displaystyle = \lm{+\infty}
−1x2\fn{-\frac{1}{x^2}}: the same numbers, negativeThe values become less than any negative number.
lim⁡x→0(−1x2)\displaystyle \lim_{\inp{x\to 0}} \left(\fn{-\frac{1}{x^2}}\right) =−∞\displaystyle = \lm{-\infty}
1x\fn{\frac{1}{x}}: the sign depends on the sideTo the left of 0\inp{0}, xx is negative, and to the right it's positive. The two sides go to different infinities, so the two-sided limit does not exist.
lim⁡x→0−1x\displaystyle \lim_{\inp{x\to 0^-}} \fn{\frac{1}{x}} =−∞\displaystyle = \lm{-\infty}
lim⁡x→0+1x\displaystyle \lim_{\inp{x\to 0^+}} \fn{\frac{1}{x}} =+∞\displaystyle = \lm{+\infty}

Here are the three graphs side by side. Whenever a function goes to +∞+\infty or −∞-\infty as xx approaches a number from at least one side, the vertical line at that x-value is a vertical asymptote. So x=0\inp{x = 0} is a vertical asymptote for all three functions.

y=1x2\htmlClass{lc-violet}{y = \dfrac{1}{x^2}}
x=0\htmlClass{lc-blue}{x = 0}
y=−1x2\htmlClass{lc-violet}{y = -\dfrac{1}{x^2}}
x=0\htmlClass{lc-blue}{x = 0}
y=1x\htmlClass{lc-violet}{y = \dfrac{1}{x}}
x=0\htmlClass{lc-blue}{x = 0}

When both sides go to the same infinity, that infinity is the limit. When the two sides go to opposite infinities, the two-sided limit does not exist.

What do the outputs approach as you move along this graph?

Limits along a graph

Summary

What a limit means
lim⁡x→af(x)\displaystyle \lim_{\inp{x\to a}} \fn{f(x)} =L\displaystyle = \lm{L}

As xx gets closer to a\inp{a} from both sides, f(x)\fn{f(x)} approaches L\lm{L}. The limit depends only on the function's values for xx close to a\inp{a}, not on what happens at a\inp{a} itself.

Function value and limit
xx
yy
2\htmlClass{lc-blue}{2}
y=x+1\htmlClass{lc-violet}{y = x + 1}
(2,3)(\htmlClass{lc-blue}{2}, \htmlClass{lc-pink}{3})
(2,5)(\htmlClass{lc-blue}{2}, \htmlClass{lc-green}{5})
lim⁡x→2f(x)\displaystyle \lim_{\inp{x\to 2}} \fn{f(x)} =3\displaystyle = \lm{3}
f(2)=5\displaystyle \val{f(2) = 5}

The filled dot at (2,5)(\inp{2}, \val{5}) gives the function value f(2)=5\val{f(2) = 5}. The open circle shows the value yy approaches from both sides, which is the limit 3\lm{3}. Whether f(2)\val{f(2)} is 5\val{5}, another number, or undefined, the limit is unchanged.

One-sided limits and when a limit exists
lim⁡x→a−f(x)\displaystyle \lim_{\inp{x\to a^-}} \fn{f(x)} =lim⁡x→a+f(x)\displaystyle = \lim_{\inp{x\to a^+}} \fn{f(x)} =L  →  lim⁡x→af(x)\displaystyle = \lm{L} \;\to\; \lim_{\inp{x\to a}} \fn{f(x)} =L\displaystyle = \lm{L}
lim⁡x→a−f(x)≠lim⁡x→a+f(x)  →  lim⁡x→af(x) does not exist\displaystyle \lim_{\inp{x\to a^-}} \fn{f(x)} \neq \lim_{\inp{x\to a^+}} \fn{f(x)} \;\to\; \lim_{\inp{x\to a}} \fn{f(x)} \text{ does not exist}
lim⁡x→a−f(x)=lim⁡x→a+f(x)=L→  lim⁡x→af(x)=L\displaystyle \begin{aligned} &\lim_{\inp{x\to a^-}} \fn{f(x)} = \lim_{\inp{x\to a^+}} \fn{f(x)} = \lm{L} \\ &\to\; \lim_{\inp{x\to a}} \fn{f(x)} = \lm{L} \end{aligned}
lim⁡x→a−f(x)≠lim⁡x→a+f(x)→  lim⁡x→af(x) does not exist\displaystyle \begin{aligned} &\lim_{\inp{x\to a^-}} \fn{f(x)} \neq \lim_{\inp{x\to a^+}} \fn{f(x)} \\ &\to\; \lim_{\inp{x\to a}} \fn{f(x)} \text{ does not exist} \end{aligned}

The minus sign in x→a−\inp{x \to a^-} means xx approaches from the left, where x<ax < a. The plus sign in x→a+\inp{x \to a^+} means xx approaches from the right, where x>ax > a. If the two sides approach the same height, that height is the limit. If they approach different heights, the limit does not exist.

A function value is undefined when there is no point on the graph at that x-value. A limit does not exist when yy doesn't approach one single number from both sides.

Piecewise functions
g(x)={x2,x<05−x,x≥0\displaystyle \fn{g(x)} = \begin{cases} \fn{x^2}, & x < 0 \\ \fn{5 - x}, & x \ge 0 \end{cases}
−2<−1.9<0 ⁣:\displaystyle \inp{-2} < \inp{-1.9} < 0\colon
lim⁡x→−2+g(x)\displaystyle \lim_{\inp{x\to -2^+}} \fn{g(x)} =(−2)2\displaystyle = (-2)^2 =4\displaystyle = \lm{4}

To find a limit, use the formula for the inputs on the side you approach from. If the function has a separate line for x=ax = \inp{a}, like f(1)=6\val{f(1) = 6}, that line only gives the value at a\inp{a}. The limit still comes from the formulas on either side.

The plus sign in x→−2+\inp{x \to -2^+} means approaching from the right, not that xx is positive. A number just to the right of −2\inp{-2}, like −1.9\inp{-1.9}, is still negative, so it satisfies x<0x < 0 and we use x2\fn{x^2}.

Estimating a limit from a table

To estimate a limit from a table, read the outputs as xx approaches a\inp{a} from below, and then from above. If the outputs from both sides get closer to the same number, that number is the estimate.

Limits at an endpoint
5−x\displaystyle 5 - x ≥0  →  x\displaystyle \ge 0 \;\to\; x ≤5\displaystyle \le 5
lim⁡x→5−5−x\displaystyle \lim_{\inp{x\to 5^-}} \fn{\sqrt{5 - x}} =0\displaystyle = \lm{0}

When a graph ends at a point, take the one-sided limit from the side where the graph exists. For 5−x\fn{\sqrt{5 - x}}, the square root needs 5−x≥05 - x \ge 0, so x≤5x \le 5, and we can only approach 5\inp{5} from the left.

Infinite limits and vertical asymptotes
lim⁡x→01x2\displaystyle \lim_{\inp{x\to 0}} \fn{\frac{1}{x^2}} =+∞\displaystyle = \lm{+\infty}
lim⁡x→0(−1x2)\displaystyle \lim_{\inp{x\to 0}} \left(\fn{-\frac{1}{x^2}}\right) =−∞\displaystyle = \lm{-\infty}
lim⁡x→0−1x\displaystyle \lim_{\inp{x\to 0^-}} \fn{\frac{1}{x}} =−∞\displaystyle = \lm{-\infty}
lim⁡x→0+1x\displaystyle \lim_{\inp{x\to 0^+}} \fn{\frac{1}{x}} =+∞\displaystyle = \lm{+\infty}

If yy grows larger than any number you can name as xx approaches a\inp{a}, the limit is +∞\lm{+\infty}. If yy becomes more negative than any number, the limit is −∞\lm{-\infty}. For 1x\fn{\frac{1}{x}}, the two sides approach opposite infinities, so the limit does not exist.

If a function approaches +∞+\infty or −∞-\infty from at least one side of x=ax = \inp{a}, the line x=a\inp{x = a} is a vertical asymptote. So x=0\inp{x = 0} is a vertical asymptote for all three curves.

7

Practice

Enter each answer as a number, ∞\infty, −∞-\infty, or DNE.

1
The graph of gg is shown. Find (a) g(1)g(1), (b) lim⁡x→1−g(x)\displaystyle\lim_{x\to 1^-} g(x), (c) lim⁡x→1+g(x)\displaystyle\lim_{x\to 1^+} g(x), (d) lim⁡x→1g(x)\displaystyle\lim_{x\to 1} g(x), (e) lim⁡x→3g(x)\displaystyle\lim_{x\to 3} g(x) and (f) g(3)g(3).
xx
yy
−1-1
11
22
33
44
55
11
22
33
44
55
y=x+2\htmlClass{lc-violet}{y = x + 2}
y=5−x\htmlClass{lc-violet}{y = 5 - x}

Follow the branch for each side of x=1x = 1. What height does each branch approach as xx gets close to 11?

Follow y=5−xy = 5 - x toward x=3x = 3 from both sides, then look for the filled dot at x=3x = 3.

The value at 1Right at x=1x = \inp{1}, the filled dot is on the line y=x+2\fn{y = x + 2} at height 3\val{3}.
g(1)=3\displaystyle \val{g(1) = 3}
From each side of 1As xx approaches 1\inp{1} from the left along y=x+2\fn{y = x + 2}, yy approaches 3\lm{3}. From the right along y=5−x\fn{y = 5 - x}, yy approaches 4\lm{4}.
lim⁡x→1−g(x)\displaystyle \lim_{\inp{x\to 1^-}} \fn{g(x)} =3,lim⁡x→1+g(x)\displaystyle = \lm{3}, \qquad \lim_{\inp{x\to 1^+}} \fn{g(x)} =4\displaystyle = \lm{4}
The limit at 1The two one-sided limits are different, so the two-sided limit does not exist.
3≠4,lim⁡x→1g(x) does not exist\displaystyle \lm{3} \neq \lm{4}, \qquad \lim_{\inp{x\to 1}} \fn{g(x)} \text{ does not exist}
The limit and value at 3As xx approaches 3\inp{3} from both sides, yy approaches 2\lm{2}, and the filled dot gives g(3)=0\val{g(3) = 0}.
lim⁡x→3g(x)\displaystyle \lim_{\inp{x\to 3}} \fn{g(x)} =2,g(3)=0\displaystyle = \lm{2}, \qquad \val{g(3) = 0}
2
Use the table to estimate lim⁡x→−2f(x)\displaystyle\lim_{x\to -2} f(x).
x−2.1−2.01−2.001−1.999−1.99−1.9f(x)0.60.510.5010.4990.490.4\displaystyle \begin{array}{c|cccccc} x & -2.1 & -2.01 & -2.001 & -1.999 & -1.99 & -1.9 \\ \hline f(x) & 0.6 & 0.51 & 0.501 & 0.499 & 0.49 & 0.4 \end{array}
xf(x)−2.10.6−2.010.51−2.0010.501−1.9990.499−1.990.49−1.90.4\displaystyle \begin{array}{c|c} x & f(x) \\ \hline -2.1 & 0.6 \\ -2.01 & 0.51 \\ -2.001 & 0.501 \\ -1.999 & 0.499 \\ -1.99 & 0.49 \\ -1.9 & 0.4 \end{array}

Look at the inputs with x<−2x < -2, then the inputs with x>−2x > -2. What number do the outputs approach from both sides?

From the leftNumbers less than −2\inp{-2} are to the left on the number line, and their outputs get closer to 0.5\lm{0.5}.
x<−2:−2.1, −2.01, −2.001  →  0.6, 0.51, 0.501\displaystyle x < -2: \quad \inp{-2.1},\ \inp{-2.01},\ \inp{-2.001} \;\to\; \fn{0.6},\ \fn{0.51},\ \fn{0.501}
From the rightFor inputs greater than −2\inp{-2}, the outputs also get closer to 0.5\lm{0.5}.
x>−2:−1.9, −1.99, −1.999  →  0.4, 0.49, 0.499\displaystyle x > -2: \quad \inp{-1.9},\ \inp{-1.99},\ \inp{-1.999} \;\to\; \fn{0.4},\ \fn{0.49},\ \fn{0.499}
Both sides approach the same number, so we estimate that the limit is 0.5\lm{0.5}.
lim⁡x→−2f(x)≈0.5\displaystyle \lim_{\inp{x\to -2}} \fn{f(x)} \approx \lm{0.5}
3
Use the table to estimate lim⁡x→4f(x)\displaystyle\lim_{x\to 4} f(x).
x3.93.993.9994.0014.014.1f(x)1.91.991.9993.0013.013.1\displaystyle \begin{array}{c|cccccc} x & 3.9 & 3.99 & 3.999 & 4.001 & 4.01 & 4.1 \\ \hline f(x) & 1.9 & 1.99 & 1.999 & 3.001 & 3.01 & 3.1 \end{array}
xf(x)3.91.93.991.993.9991.9994.0013.0014.013.014.13.1\displaystyle \begin{array}{c|c} x & f(x) \\ \hline 3.9 & 1.9 \\ 3.99 & 1.99 \\ 3.999 & 1.999 \\ 4.001 & 3.001 \\ 4.01 & 3.01 \\ 4.1 & 3.1 \end{array}

Check each side on its own. What do the outputs approach for x<4x < 4, and what do they approach for x>4x > 4?

As xx gets closer to 4\inp{4} from the left, the outputs approach 2\lm{2}.
x<4:1.9, 1.99, 1.999  →  2\displaystyle x < 4: \quad \fn{1.9},\ \fn{1.99},\ \fn{1.999} \;\to\; \lm{2}
As xx gets closer to 4\inp{4} from the right, the outputs approach 3\lm{3}.
x>4:3.1, 3.01, 3.001  →  3\displaystyle x > 4: \quad \fn{3.1},\ \fn{3.01},\ \fn{3.001} \;\to\; \lm{3}
The two sides approach different numbers, so the limit does not exist.
2≠3,lim⁡x→4f(x) does not exist\displaystyle \lm{2} \neq \lm{3}, \qquad \lim_{\inp{x\to 4}} \fn{f(x)} \text{ does not exist}
4
Let k(x)={2x+1,x<1x+4,x≥1k(x) = \begin{cases} 2x + 1, & x < 1 \\ x + 4, & x \ge 1 \end{cases}. Find lim⁡x→1k(x)\displaystyle\lim_{x\to 1} k(x).

For an input like 0.990.99, which formula applies? What about for an input like 1.011.01?

Pick the formulasBecause the formula changes at x=1x = \inp{1}, we check the left side with 2x+1\fn{2x + 1} and the right side with x+4\fn{x + 4}.
x<1:  k(x)=2x+1,x>1:  k(x)=x+4\displaystyle x < 1: \; \fn{k(x) = 2x + 1}, \qquad x > 1: \; \fn{k(x) = x + 4}
One-sided limitsPlugging 11 into 2x+1\fn{2x + 1} gives 3\lm{3}, while plugging 11 into x+4\fn{x + 4} gives 5\lm{5}.
lim⁡x→1−(2x+1)\displaystyle \lim_{\inp{x\to 1^-}} (\fn{2x + 1}) =2(1)+1\displaystyle = 2(1) + 1 =3\displaystyle = \lm{3}
lim⁡x→1+(x+4)\displaystyle \lim_{\inp{x\to 1^+}} (\fn{x + 4}) =1+4\displaystyle = 1 + 4 =5\displaystyle = \lm{5}
Because 3\lm{3} and 5\lm{5} aren't equal, the limit does not exist.
3≠5,lim⁡x→1k(x) does not exist\displaystyle \lm{3} \neq \lm{5}, \qquad \lim_{\inp{x\to 1}} \fn{k(x)} \text{ does not exist}
5
Let g(x)={x2,x<05−x,x≥0g(x) = \begin{cases} x^2, & x < 0 \\ 5 - x, & x \ge 0 \end{cases}. Find lim⁡x→2−g(x)\displaystyle\lim_{x\to 2^-} g(x).

Think of a number just less than 22, like 1.91.9. Is it less than 00, or at least 00?

Which formulaInputs just less than 2\inp{2}, like 1.9\inp{1.9}, are still greater than 00, so we use 5−x\fn{5 - x}.
0<1.9<2  →  g(x)=5−x\displaystyle 0 < \inp{1.9} < \inp{2} \;\to\; \fn{g(x) = 5 - x}
As xx approaches 2\inp{2} from the left, 5−x\fn{5 - x} approaches 5−25 - 2.
lim⁡x→2−(5−x)\displaystyle \lim_{\inp{x\to 2^-}} (\fn{5 - x}) =5−2\displaystyle = 5 - 2 =3\displaystyle = \lm{3}
6
Find lim⁡x→−1+x+1\displaystyle\lim_{x\to -1^+} \sqrt{x + 1}.

Under the square root, x+1x + 1 must be zero or positive. What does that tell you about xx?

Where the square root is definedWe need x+1≥0x + 1 \ge 0. That means x≥−1x \ge -1, so we can only approach −1\inp{-1} from the right.
x+1\displaystyle x + 1 ≥0  →  x\displaystyle \ge 0 \;\to\; x ≥−1\displaystyle \ge -1
The limitAs xx approaches −1\inp{-1} from the right, x+1x + 1 approaches 00, so the square root approaches 0\lm{0}.
x\displaystyle x =0→1\displaystyle = \inp{0} \to \sqrt{1} =1,x\displaystyle = \fn{1}, \qquad x =−0.99→0.01\displaystyle = \inp{-0.99} \to \sqrt{0.01} =0.1\displaystyle = \fn{0.1}
lim⁡x→−1+x+1\displaystyle \lim_{\inp{x\to -1^+}} \fn{\sqrt{x + 1}} =0\displaystyle = \lm{0}
7
Find lim⁡x→−1(−1(x+1)2)\displaystyle\lim_{x\to -1} \left(-\frac{1}{(x + 1)^2}\right).

Near −1-1, is (x+1)2(x + 1)^2 positive or negative? Then what does the minus sign in front do?

If you got DNE Check the sign on both sides. If both sides approach −∞-\infty, the limit is −∞-\infty, not DNE.

The signOn both sides of −1\inp{-1}, (x+1)2(x + 1)^2 is positive, so the minus sign makes the fraction negative.
x≠−1:  (x+1)2>0,−1(x+1)2<0\displaystyle x \neq -1: \; (x + 1)^2 > 0, \qquad \fn{-\frac{1}{(x + 1)^2}} < 0
The sizeAs xx gets close to −1\inp{-1}, the denominator becomes a tiny positive number, so the fraction becomes a large negative number.
x\displaystyle x =−1.1, −0.9:  −10.01\displaystyle = \inp{-1.1},\ \inp{-0.9}: \; -\frac{1}{0.01} =−100\displaystyle = \fn{-100}
x\displaystyle x =−1.01, −0.99:  −10.0001\displaystyle = \inp{-1.01},\ \inp{-0.99}: \; -\frac{1}{0.0001} =−10,000\displaystyle = \fn{-10{,}000}
Both sides approach −∞\lm{-\infty}, so the limit is −∞\lm{-\infty}.
lim⁡x→−1(−1(x+1)2)\displaystyle \lim_{\inp{x\to -1}} \left(\fn{-\frac{1}{(x + 1)^2}}\right) =−∞\displaystyle = \lm{-\infty}