Calculus · Functions and limits · Lesson 3
One-sided limits and jumps
Walk toward a point from the left, then from the right. If you arrive at the same height both ways, the limit exists. If not, you’ve found a jump.
A function with a step in it
Real rules often switch at a threshold: a tax band, a postage price, a thermostat. Here is a made-up one with a switch at $x = 2$:
$$f(x) = \begin{cases} x + 1 & x < 2 \\ x^2 & x \ge 2 \end{cases}$$
Drag the slider to shrink the distance $d$ from 2. One dot walks in from the left, the other from the right.
From the left, the values head to 3. From the right, they head to 4. They never agree.
What height does $f$ approach as $x$ comes toward 2 from the left?
The notation
A small sign on the $a$ says which side you come from:
$$\lim_{x\to 2^-} f(x) = 3 \qquad \lim_{x\to 2^+} f(x) = 4$$
$2^-$ means “from below 2” (the left); $2^+$ means “from above 2” (the right). To compute each, use only the piece of the rule that applies on that side.
Here $f(2) = 2^2 = 4$, the right-hand limit is 4, and the left-hand limit is 3. What is $\displaystyle\lim_{x\to 2} f(x)$?
Value at the point vs. limit
Three separate questions, three separate answers for our $f$:
- Left limit (walk in from below): 3
- Right limit (walk in from above): 4
- Value $f(2)$ (stand on the point): 4, the filled dot
It’s tempting to read $f(2)$ and call that the limit. Lesson 1 showed a limit can exist where $f(a)$ doesn’t; here is the reverse: $f(a)$ exists but the limit doesn’t.
A jump made of algebra: $\dfrac{|x|}{x}$
Absolute value is secretly a two-piece function: $|x| = x$ when $x \ge 0$, and $|x| = -x$ when $x < 0$ (making a negative number positive). Tap through:
$\displaystyle\lim_{x\to 3^-}\frac{|x-3|}{x-3}$
Closing the gap
Often you get to choose a constant so the pieces meet. Slide $k$ until the left piece lands where the right piece starts.
$$g(x) = \begin{cases} kx + 1 & x < 1 \\ x^2 + 3 & x \ge 1 \end{cases}$$
Which $k$ makes $\displaystyle\lim_{x\to1} g(x)$ exist? (Set the two one-sided limits equal and solve.)
Left limit: $k(1) + 1 = k + 1$. Right limit: $1^2 + 3 = 4$.
Set equal: $k + 1 = 4$. Subtract 1 from both sides: $k = 3$.
One-sided blow-ups
Sides matter for blow-ups too. Near 0, $\frac1x$ is huge and positive just to the right ($\frac{1}{0.001} = 1000$) and huge and negative just to the left ($\frac{1}{-0.001} = -1000$). We write $\lim_{x\to0^+}\frac1x = +\infty$ and $\lim_{x\to0^-}\frac1x = -\infty$. “$= \infty$” is shorthand for “grows without bound”, not a number. Lesson 4 is all about these.
Check
$\lfloor x \rfloor$ (“floor of $x$”) rounds down to a whole number: $\lfloor 2.7 \rfloor = 2$, $\lfloor 3 \rfloor = 3$. What is $\displaystyle\lim_{x\to 3^-}\lfloor x \rfloor$?
$h(x) = \dfrac{x^2-4}{x-2}$ for $x < 2$, and $h(x) = 3x - 2$ for $x > 2$. Find $\displaystyle\lim_{x\to2} h(x)$.
Left: $\frac{x^2-4}{x-2} = \frac{(x-2)(x+2)}{x-2} = x + 2 \to 4$ (lesson 2’s factoring move).
Right: $3(2) - 2 = 6 - 2 = 4$.
Both sides give 4, so the limit is 4, even though $h(2)$ isn’t defined at all.
$\displaystyle\lim_{x\to 0^-}\frac{1}{x}$ is…
In one or two sentences: why can’t $\lim_{x\to a} f(x)$ exist if the left and right limits are different?