One-sided limits
A one-sided limit looks at one side of a point only. Approaching from the left uses inputs just below ; approaching from the right uses inputs just above it. In lesson 2.1.1 the two sides always agreed, but sometimes they do not.
Take , which is undefined at 0. The absolute value is when and when (lesson 0.3.3).
So for every positive , , and for every negative , . The table shows the same:
| 0.001 | 0.01 | 0.1 | ||||
|---|---|---|---|---|---|---|
| 1 | 1 | 1 |
From the left the outputs stay at ; from the right they stay at 1. Each side has a limit, but the two differ.
Rule: One-sided limits
The small minus sign means approaches from below , the plus sign from above. The ordinary limit exists only when both one-sided limits exist and are equal.
For at 0, the left limit is and the right limit is 1. They differ, so does not exist.
In the explorer, shrink the gap and watch the two points. However close they come to 0, one output stays at and the other at 1. Then switch to the hole from lesson 2.1.1 to see two sides that agree.
Explore
Pick a gap and watch the two points close in on x = 0 from the left and the right. Turn on zoom to follow them in.
- From the left
- f(−0.5) = −1
- From the right
- f(0.5) = 1
- Verdict
- The left side stays at −1 and the right side at 1. They never agree, so there is no limit.
Try it
sp.limit takes a fourth argument for the side: "-" for the left, "+" for the right.
It confirms and 1. Without the fourth argument, SymPy checks only the right side, so always give the side when the two may differ.
A jump in a piecewise function
A piecewise function (lesson 1.1.2) can jump where its pieces meet. Take
Just left of 2, only the first piece is used, so the left limit is . Just right of 2, only the second piece is used, so the right limit is . The input 2 itself belongs to the second piece, so .
The two pieces meet at different heights. The left limit is 4, the right limit is 1, and the filled dot shows that .
Try it
The cell tabulates from both sides of 2. From the left the outputs climb towards 4 (3.61, 3.9601, 3.996001); from the right they fall towards 1 (1.1, 1.01, 1.001).
round(…, 6) hides rounding errors in the last digits.
Blow-ups, side by side
A blow-up can go a different way on each side. For near 0, inputs 0.1, 0.01 and 0.001 give 10, 100 and 1000. Inputs , and give , and .
So and : it grows without bound to the right and falls without bound to the left. For both sides give . Either way no number is approached, so neither function has a limit at 0.
At the edge of a domain
Some functions exist on one side of a point only. needs (lesson 1.1.1), so at 0 there is no left side to look at. The right limit is all there is: .
needs , and near 0 it falls without bound. It gives at 0.1, at 0.001 and at , so .
Try it
SymPy gives each one-sided limit of this section: from both sides, from both sides, then and from the right.
oo is SymPy's , and sp.log is .
Continuity
A function is continuous at when its graph has no break there: you can draw through without lifting your pen. In terms of limits, the value at is exactly where the graph is heading.
Rule: Continuity at a
Three things must hold: exists, the limit at exists, and the two are equal. At the edge of a domain, use the one-sided limit from inside.
A function is continuous on an interval when it is continuous at every point of it. Polynomials, , and are continuous everywhere. is continuous for and for .
Sums, products and ratios of continuous functions are continuous too, except where a bottom is 0. That is why substitution worked in lesson 2.1.1. For example, is continuous at every input except 5.
Three ways to break
A hole, a jump and a blow-up. Only the hole has a limit at the break; the other two have none.
- A hole: the limit exists, but is missing or different. at 1 has limit 2 and no value. Defining fills the hole, which is why a hole is also called a removable break.
- A jump: both one-sided limits exist but differ, as with at 0, or the piecewise above at 2. No choice of can fix it.
- A blow-up: the outputs run off to or on at least one side, as with at 0.
Joining the pieces
You can choose a piecewise function's numbers so the pieces meet. Take for and for . The left limit at 1 is , and the right limit and the value are both .
They are equal when , so makes continuous. With , the inputs 0.999, 1 and 1.001 give 2.999, 3 and 3.003, with no jump.
Try it
The cell checks the join with , then shows the jump that would leave: 0.999 on the left against 3.003 on the right.
Why bisection needs continuity
Bisection (lesson 1.3.2) keeps the half of an interval where the sign of changes. It relies on one fact: a function that is continuous on and changes sign must cross 0 in between. A graph without breaks cannot get from below the axis to above it without crossing.
Without continuity the fact fails. For on , and have opposite signs, yet is never 0. Bisection still runs: it closes in on 0, the blow-up, where is huge.
Try it
The bisection of lesson 1.3.2, run on over . After 22 steps it reports about 0.00000012, where is 8,388,608: a break, not a root.
Check that is continuous on the bracket before trusting the answer.
Continuous does not mean smooth. is continuous at 0, since both one-sided limits and the value are 0, but it has a corner there. Lesson 2.2.1 uses one-sided limits to find slopes, and lesson 2.2.2 shows why the corner has none.
Common mistakes
- Check both sides. A limit from one side says nothing about the other. The limit exists only when the two agree.
- The value is a separate question. For the piecewise , matches the right limit, yet the limit at 2 does not exist. Find the piece that holds itself, as in lesson 1.1.2.
- means "from below ", not "negative". uses inputs like 1.99, which are positive.
- A limit can exist where the function is not continuous. A hole has a limit but no value, or the wrong value.
- from both sides is still no limit. grows without bound on both sides of 0, and is not a number.
- A sign change proves a root only for a continuous function. changes sign across 0 without ever being 0.
One-sided limits and continuity
0 of 12 correct
- 1.
- 2.
- 3.
- 4.
- 5.
- 6.
- 7.
- 8.
- 9.
- 10.
- 11.
- 12.
How to type answers
- Powers with
^:x^7,2^(1/3),a^-2. - Multiply with
*or by writing side by side:3x^2,2(x+1). ln(x)is the natural log,log(x, 2)is log base 2,eis Euler's number,sqrt(x)is a square root.sin(x),cos(x)andtan(x)take radians; writepifor π andsin(x)^2for sin²x.- Your first answer to each question is saved: it counts towards your score and brings the question back for review.
- Exact answers like
ln(20)/ln(3)are best. Decimals need about 4 significant figures.
Summary card
- approaches from the left and from the right. The limit exists only when both exist and agree.
- A limit fails at a jump (the sides differ) or a blow-up (the outputs run off to ). At the edge of a domain, only one side exists.
- Continuous at means . Breaks are holes, jumps or blow-ups; only a hole can be filled.
- Join the pieces of a piecewise function by making the one-sided limits equal.
- A continuous function that changes sign has a root in between; without continuity, a sign change proves nothing.