Limits and Continuity
☰ Contents
The gradient of a straight line is rise over run between two points. A curve has a different gradient at every point, so that formula cannot give the gradient at one point. A limit answers that question: it asks what a calculation approaches as its input approaches a value, without calculating at that value.
What problem is calculus actually solving?
Calculus measures change that does not happen at a steady rate, where rise over run stops working. A straight line has one gradient everywhere, but a curve such as steepens as you move along it, so no single number describes it. Calculus asks for the gradient at one point, the steepness of the tangent there. A chord gives an estimate: from (1, 1) to (3, 9) on , the gradient is 8 ÷ 2 = 4. Moving the second point closer improves the estimate, and the value it approaches is the gradient at x = 1. That value is a limit, which is why limits come first. Area is the second question: a region with a curved edge has no area formula, and integration answers it with the same idea of ever closer approximations. Check the chord: the rise is 9 − 1 = 8 and the run is 3 − 1 = 2.
Drawing the tangent by eye gives only a rough value.
With the second point at (2, 4) the chord gradient is 3, and with it is , closing in on 2. See The Gradient of a Curve and Limits.
What is a limit?
A limit is the value a function approaches as its input approaches a point. Saying that f(x) has limit L as means f(x) can be made as close to L as you like by taking x close enough to c. For f(x) = 2x + 1, as x approaches 3 the outputs approach 7: at x = 3 itself, 2 × 3 + 1 = 7. The value at c is ignored, so f need not be defined there. The function gives at x = 1, but everywhere else it equals x + 1, so its limit there is 2. A limit can also fail to exist, when the function jumps or grows without bound near c. Check with inputs on both sides: a little either side of x = 1, x + 1 is just above or below 2, and 1 + 1 = 2 is what both sides approach.
the chord’s gradient exceeds f ′(2) by exactly h
Drag the upper point along the curve
is undefined at x = 2, and its limit there is 4. Factor the numerator as (x + 2)(x − 2) and cancel the common factor. Away from x = 2 the function is x + 2, which is near 4 when x is near 2.
Does a limit have to agree from both sides?
Yes: a limit exists only when the function approaches the same value from both sides. The left-hand limit, , uses inputs below c only, and the right-hand limit, , uses inputs above c only. Take f(x) = x + 1 for x < 2 and f(x) = x + 2 for . From the left the outputs approach 2 + 1 = 3, and from the right they approach 2 + 2 = 4, so the limit at 2 does not exist, even though f(2) = 4. Both sides are required because the definition asks f(x) to be close to one number for every x near c, and here the two sides stay near different numbers. The steps change at the end of a domain: has no inputs below 0, so only the right-hand limit is used there. Check the gap from the two values: 4 − 3 = 1, the height of the jump.
L⁻ = 1 but L⁺ = 4: the probes land 3 apart however close they come, so lim f(x) as x → 2 does not exist, even though each one-sided limit does
Bring both probes to x = 2, then close the jump
Every step function behaves this way at each of its steps. See One Sided Limits.
Now you
The left limit is 0 and the right limit is 0. Does the limit exist?
The left limit is 3 and the right limit is 3. Does the limit exist?
How do you actually calculate a limit?
Substitute first: if putting x = c into the expression gives a number, that number is the limit. For as x approaches 2, substitution gives 4 + 6 = 10, so the limit is 10. See The Limit Laws. The limit laws allow this: the limit of a sum is the sum of the limits, and the same holds for products, and for quotients whose denominator does not tend to 0. The steps change when substitution gives , which says the expression must be rewritten, not that the limit is missing. For at x = 4, factor the top as (x + 4)(x − 4), cancel, and substitute into x + 4 to get 8. A nonzero number over 0, such as , signals that the function grows without bound. Check with an input close to c: at an input just above 2, gives just over 10.
near 0, sin 2x ≈ 2x and x ≈ x: the ratio is 1.987 in this window and is heading for f′(0)/g′(0) = 2
Zoom past ×50 and read the ratio of the two lines
The same holds for /, the other indeterminate form.
- Substitute. A number means you are done.
- If you get , rewrite the expression: factor and cancel, rationalize a surd, or combine the fractions.
- Substitute again into the new expression.
as : factor the numerator to get , cancel the (x − 3), then substitute x = 3 into x + 3. The limit is 6. See Indeterminate Forms.
Now you
What is the limit of as ?
What is the limit of as ?
What happens to a function far out?
A limit at infinity is the value a function approaches as x grows without bound. For a fraction of two polynomials, only the highest powers matter when x is large, so divide every term by the highest power of x in the denominator. For , dividing by x gives . As x grows, and shrink to 0, leaving , so the limit is 2 and y = 2 is a horizontal asymptote. The lower terms fade because they grow more slowly: at x = 1,000, the 4x term is 4,000 and the 1 adds only one part in 4,000. When the numerator has the higher degree, there is no finite limit, and when the denominator does, the limit is 0. Check with a large input: at x = 1,000 the fraction is 4,001 ÷ 1,997, just above 2, since 2 × 1,997 = 3,994.
at x = 16 the terms 5x − 3 still make 13.2% of the numerator and f = 2.341: zoom out and the lower powers lose their share, so f → 2x²/x² = 2
Zoom out until the lower terms are under 0.5% of the numerator at the edge
as . Divide the numerator and the denominator by to get . As x grows, and both approach 0, leaving 3. The line y = 3 is a horizontal asymptote.
In short, compare the degrees. See Limits at Infinity.
Now you
What is the limit of as ?
What is the limit of as ?
How do you find a limit you cannot compute directly?
When a limit cannot be computed directly, trap the function between two simpler ones whose limits are known. If near c, and g and h both approach L, then f must approach L too: this is the squeeze theorem. See The Squeeze Theorem. Take as x approaches 0. Substitution fails, and swings between −1 and 1 forever, but that gives . Both outer functions approach 0, so f(x) approaches 0 as well. The theorem holds because f has nowhere else to go: every value lies between two numbers that close in on L together. The bound needs care. It must hold for all x near c, and both sides must approach the same limit, since bounds with different limits prove nothing. Check with a number: at , the bounds are , since , and f lies between them.
δ = 0.6: −x² ≤ f(x) ≤ x², so inside the clamp f is within 0.72 of 0; closing the clamp closes the gap, and a function held between two things that meet must meet them too
Close the clamp to δ = 0.1 and read the gap
The most important use is the limit of sin x over x as x approaches 0. Substituting x = 0 gives . Near 0 the ratio is trapped between cos x and 1, and both approach 1, so the limit is exactly 1 when x is in radians. See The Limit of sin x over x.
For small x in radians, , and . These are the small-angle approximations. See Small-Angle Approximations.
Now you
For small x, ?
The approximations hold only when x is measured in which unit?
What does continuity mean?
A function f is continuous at x = c when three conditions hold: f(c) is defined, the limit as x approaches c exists, and the two are equal. Informally, the graph can be drawn through that point without lifting the pencil. See Continuity at a Point. Test at x = 2: f(2) is 4 − 1 = 3, and the limit from either side is also 3. All three are needed because a value and a limit can both exist and still differ, as when one point is lifted off a curve. A piecewise function needs the test at each join. If g(x) = 2x for x < 1 and g(x) = x + k for , continuity at 1 requires 2 × 1 = 1 + k, so k = 1. Check the join: the left gives 2 × 1 = 2 and the right gives 1 + 1 = 2.
some x with |x − 2| < δ has |f(x) − 2| ≥ ε, so this δ does not answer this ε — shrink δ
Shrink ε to 0.2, then find a δ that keeps the curve inside the band
A discontinuity is one of three types. A removable discontinuity is one missing or misplaced point: the limit exists, but the value does not equal it. At a jump discontinuity the left and right limits differ. At an infinite discontinuity the curve runs off along a vertical asymptote, so there is no limit. See Types of Discontinuity.
The intermediate value theorem says that a function continuous on an interval takes every value between its values at the two ends. So a continuous function that is negative at one end and positive at the other must equal zero somewhere between: only a jump could cross the axis without touching it, and continuity rules out the jump.
This is the guarantee behind every numerical root-finder, including the iteration methods in the applications of differentiation: a sign change between two points traps a root between them. See The Intermediate Value Theorem.
What can you do once you have a derivative?
A derivative gives the gradient of a curve at every point, so it measures steepness and rates of change. It comes from first principles: write the chord gradient , simplify, and let h approach 0. For , the chord gradient is 2x + h, so the derivative is 2x. See From First Principles. The gradient at x = 3 is then 2 × 3 = 6, and the tangent there passes through (3, 9) with gradient 6, so its equation is y = 6x − 9. The derivative also finds turning points, where it is zero, and rates such as speed. It works because the limit removes the chord's error term, h, leaving the exact gradient. A zero derivative can mark a maximum, a minimum or a point of inflection, so test the gradient on each side. Check the tangent at x = 3: 6 × 3 − 9 = 9, the height of the curve.
A = 20x − x² and A′ = 20 − 2x = 4: the area is still 4 m² per meter of extra width away from its peak
Slide x to the width that gives the biggest area
The same working on gives , and the pattern is the rule for powers: multiply by the power, then take one off the power. So differentiates to . See Differentiating Powers.
The normal is perpendicular to the tangent, and perpendicular gradients multiply to −1, so the gradient of the normal is −1 / m. See Tangents and Normals.
To find a stationary point, set the derivative equal to zero and solve. See Stationary Points.
Now you
Differentiate
Differentiate
What is integration, and why is it the reverse?
Integration is the reverse of differentiation: to integrate a function, find a function whose derivative it is. Differentiating gives , so integrating gives . See Integration. The constant c appears because differentiation removes constant terms, so and have the same derivative. For powers, add one to the power and divide by the new power: integrates to . Integration also measures area, and the reverse is why: as the right edge of the region under a curve moves, the area grows at a rate equal to the curve's height there. So a definite integral is the antiderivative at the upper end minus its value at the lower end, with no c. The area under from 0 to 2 is . The power rule fails for , whose integral is ln |x| + c. Check by differentiating: gives , which is .
n = 5, so the error is 0.853
Increase n until the Riemann sum converges on the exact area
Slice the region under a curve into thin rectangles and add their areas; the total improves as the rectangles get thinner. See Area Under a Curve.
The sum approaches 1. The sum grows past every bound, although its terms also shrink to 0. Shrinking terms are not enough for a sum to converge. See Two Infinite Sums, Opposite Fates.
The mistakes worth naming
- Reading as "no limit". Substitution failed. Rewrite the expression and substitute again.
- Confusing the limit with the value. A function can have a limit at a point where it has no value.
- Checking one side only. The left and right limits must agree, and a jump is invisible from one side.
- Using small-angle approximations in degrees. holds only in radians.
- Assuming shrinking terms give a finite sum. The harmonic series diverges.
The functions and graphs this guide assumes are in functions and rational functions, the differentiation rules that replace first principles are in the rules of differentiation, and convergence is covered in sequences and series.
Your turn
Three to try — tap what you get.
lim as x→2 of (x² − 4)/(x − 2)
lim as x→∞ of 1/x
A function continuous at a point has
Questions and answers
- What is a limit in calculus?
- A limit is the value a function approaches as its input approaches some point, whether or not the function is actually defined there. The distinction is the whole idea: a function can have a hole at x = 2 and still have a perfectly good limit at x = 2, because a limit describes the journey toward a point and ignores what happens at the point itself.
- What does it mean when a limit gives ?
- It means the substitution failed, not that the limit does not exist. is called an indeterminate form because different functions of that shape approach different values, so the expression by itself decides nothing. The fix is to change the form of the function first, usually by factoring and canceling, then substitute again into the simplified version.
- What is the limit of sin x over x as x approaches 0?
- It is exactly 1, provided x is measured in radians. Substituting gives , so the result is proved by squeezing sin x over x between two functions that both approach 1. It matters because it is the limit that makes the derivative of sin x come out as cos x, and it is the reason calculus insists on radians rather than degrees.
- What does it mean for a function to be continuous?
- A function is continuous at a point when three things all hold: the function is defined there, the limit exists there, and the two are equal. Informally it means the graph can be drawn through that point without lifting the pen. Each of the three conditions can fail on its own, which is why there is more than one kind of discontinuity.
- What is a one-sided limit?
- It is the value a function approaches from one direction only — from the left, or from the right. They matter because a two-sided limit exists only when both one-sided limits exist and agree. A step function has perfectly good one-sided limits at the jump and no limit at all there, because the two sides disagree about where the function is heading.
- What does the intermediate value theorem say?
- If a function is continuous on an interval, it takes every value between its endpoint values somewhere inside that interval. So if a continuous function is negative at one end and positive at the other, it must be zero somewhere between. That is why sign-change tests locate roots, and it is a guarantee that fails immediately if the function is allowed to jump.