BetaFree coursewareRewritten from MIT OpenCourseWareCC BY-NC-SA 4.0
Open CosmologyPhysics & cosmology, from high school to a graduate year

Limits and continuity

A derivative is a rate of change: average over an interval, instantaneous in the limit. Limits come in easy and hard kinds, and from the left or the right. A function is continuous where its limit equals its value; everywhere else it has a jump, removable, infinite or worse discontinuity. Two trigonometric limits and the theorem "differentiable implies continuous" prepare the rules of differentiation.

You need this first

On this page · 9 sections
  1. The derivative as a rate of change
  2. Easy limits, and why derivatives are never easy
  3. Left-hand and right-hand limits
  4. Continuity
  5. A zoo of discontinuities
  6. The derivative's graph need not look like the function's
  7. Two trigonometric limits
  8. Differentiable implies continuous
  9. Summary

Lecture 1 met the derivative as a slope. Lecture 2 of MIT's 18.01 finishes the picture with a second meaning, a rate of change, and then gets "back down to some rigorous details", as Professor Jerison puts it: the limits and continuity on which every differentiation formula rests.

The derivative as a rate of change#

On the graph of y=f(x)y = f(x), a step Δx\Delta x comes with a change Δy\Delta y. Their ratio is the average rate of change over that step; its limit is the instantaneous rate of change:

Average and instantaneous rate
ΔyΔx  →  dydxas Δx→0\frac{\Delta y}{\Delta x} \;\to\; \frac{dy}{dx} \quad \text{as } \Delta x \to 0
In words

capital delta y over the quantity capital delta x, goes to d y over d x as capital delta x goes to 0

Source: 18.01 Lecture 2 notes, p. 1

Examples from the lecture:

  1. Charge and current. If qq is electric charge, dq/dtdq/dt is the current.
  2. Distance and speed. If ss is distance, ds/dtds/dt is the speed. Jerison illustrates it with MIT's Halloween pumpkin drop. The building is about 300 feet high; he uses 80 m "because that makes the numbers come out simply", with the height h=80−5t2h = 80 - 5t^2. The pumpkin lands at t=4t = 4 s; its average velocity is (0−80)/(4−0)=−20(0 - 80)/(4 - 0) = -20 m/s, but its velocity on impact is h′(4)=−40h'(4) = -40 m/s, twice as fast and about 90 miles an hour. (Asked where the formula comes from, he points to the physics course, 8.01: differentiating twice gives the acceleration of gravity, 10 m/s² in this rounded model; he says "10 meters per second", a slip for metres per second squared.)
  3. Temperature gradient. If TT is temperature and xx position, dT/dxdT/dx is the temperature gradient; differences in temperature drive the winds, so weather forecasting cares about it.
  4. Sensitivity of measurements. In a simplified "flat Earth" model of GPS (on 18.01's first problem set), your distance LL along the ground is worked out from the measured distance hh to a satellite. Every measurement has an error Δh\Delta h; the resulting error in position is estimated by ΔL≈(dL/dh) Δh\Delta L \approx (dL/dh)\,\Delta h. The derivative tells you how sensitive the answer is to the error, which matters when GPS helps land aeroplanes.

Variables need not be time: the same idea measures how anything responds to anything.

Easy limits, and why derivatives are never easy#

Some limits are easy: you just put in the limiting value. Jerison's example is lim⁡x→4(x+3)/(x2+1)=7/17\lim_{x\to4}(x + 3)/(x^2 + 1) = 7/17; the notes use another,

An easy limit
lim⁡x→3x2+xx+1=32+33+1=124=3\lim_{x \to 3} \frac{x^2 + x}{x + 1} = \frac{3^2 + 3}{3 + 1} = \frac{12}{4} = 3
In words

the limit as x goes to 3 of the quantity x squared plus x, all over the quantity x plus 1, equals the quantity 3 squared plus 3, all over the quantity 3 plus 1, equals 12 over 4 equals 3

Source: 18.01 Lecture 2 notes, p. 3

The limit in a derivative is never easy. In lim⁡x→x0(f(x)−f(x0))/(x−x0)\lim_{x\to x_0} \bigl(f(x) - f(x_0)\bigr)/(x - x_0), putting in x=x0x = x_0 always gives 0/00/0, so some cancellation is always needed. Note what a limit x→x0x \to x_0 means: xx comes as close as you like to x0x_0, but the value x=x0x = x_0 itself is never used.

Left-hand and right-hand limits#

It helps to approach a point from one side only:

One-sided limits
lim⁡x→x0+f(x)    (x>x0, right-hand),lim⁡x→x0−f(x)    (x<x0, left-hand)\lim_{x \to x_0^+} f(x) \;\;(x > x_0,\ \text{right-hand}), \qquad \lim_{x \to x_0^-} f(x) \;\;(x < x_0,\ \text{left-hand})
In words

the limit as x goes to x nought plus of f(x) (x greater than x nought, right-hand ), the limit as x goes to x nought minus of f(x) (x less than x nought, left-hand )

Source: 18.01 Lecture 2 notes, p. 4

On the number line, x→x0+x \to x_0^+ comes from the right (the plus side), x→x0−x \to x_0^- from the left. (Jerison, writing them on opposite sides of the board, warns that he may mix up "left" and "right", and once does so aloud before correcting himself; the definitions above are the right ones.)

His example is a function given by two formulas, f(x)=x+1f(x) = x + 1 for x>0x > 0 and f(x)=−x+2f(x) = -x + 2 for x<0x < 0. Coming from the right uses the first formula: lim⁡x→0+f(x)=1\lim_{x\to0^+} f(x) = 1. Coming from the left uses the second: lim⁡x→0−f(x)=2\lim_{x\to0^-} f(x) = 2. Neither limit needs f(0)f(0), which has not even been defined. If we now decide f(0)=1f(0) = 1, drawn as a filled dot on the right-hand branch and an open circle on the left, then the value agrees with the right-hand limit but not the left.

Continuity#

A function ff is continuous at x0x_0 when

Continuity at a point
lim⁡x→x0f(x)=f(x0)\lim_{x \to x_0} f(x) = f(x_0)
In words

the limit as x goes to x nought of f(x) equals f( x nought )

Source: 18.01 Lecture 2 notes, p. 3

This packs in three conditions: the limit exists (the left and right limits exist and are equal), f(x0)f(x_0) is defined, and the two are equal. The left side is computed without ever using the point x0x_0; the right side uses only that point. Continuous functions are exactly those whose limits are easy: you may just put in the value.

A zoo of discontinuities#

Where a function is not continuous, it can fail in several ways.

Jump discontinuity. The left and right limits both exist but are different, as in the example above (1 and 2). Jerison mentions that such questions are not just technical: in Robert Merton's Nobel-prize work on pricing in finance, whether prices are continuous from the left (the past) or the right (the future) mattered.

Removable discontinuity. The left and right limits are equal, but f(x0)f(x_0) is undefined or has some other value: a single hole in the graph. Redefining f(x0)f(x_0) as the limit "removes" it. Two important examples, explained below, are sin⁡x/x\sin x/x and (1−cos⁡x)/x(1 - \cos x)/x, which are undefined at x=0x = 0 but have limits there.

Infinite discontinuity. For y=1/xy = 1/x, the right-hand limit at 0 is +∞+\infty and the left-hand limit is −∞-\infty:

An infinite discontinuity
lim⁡x→0+1x=+∞,lim⁡x→0−1x=−∞\lim_{x \to 0^+} \frac{1}{x} = +\infty, \qquad \lim_{x \to 0^-} \frac{1}{x} = -\infty
In words

the limit as x goes to 0 from the right of 1 over x equals plus infinity, the limit as x goes to 0 from the left of 1 over x equals minus infinity

Source: 18.01 Lecture 2 notes, p. 5

Jerison insists these one-sided limits are worth stating, since they go in definite directions: an infinite fortune and an infinite debt are not the same. Writing lim⁡x→01/x=∞\lim_{x\to0} 1/x = \infty is simply wrong.

Other ("ugly") discontinuities. sin⁡(1/x)\sin(1/x) oscillates infinitely often as x→0x \to 0, approaching no value at all, not even ±∞\pm\infty: its limit does not exist.

Worked example

Which kind of discontinuity?

Classify the behaviour at the given point. (a) f(x)=x2f(x) = x^2 for x<1x < 1, f(x)=3−xf(x) = 3 - x for x≥1x \ge 1, at x=1x = 1. (b) g(x)=(x2−4)/(x−2)g(x) = (x^2 - 4)/(x - 2) at x=2x = 2.

(a) One-sided limits

From the left, x2→1x^2 \to 1; from the right, 3−x→23 - x \to 2. Both exist but differ: a jump. Since f(1)=3−1=2f(1) = 3 - 1 = 2, ff is continuous from the right at 1, not from the left.

(b) Cancel first

g(2)g(2) is 0/00/0, undefined. For x≠2x \ne 2, (x2−4)/(x−2)=x+2(x^2 - 4)/(x - 2) = x + 2, so lim⁡x→2g(x)=4\lim_{x\to2} g(x) = 4 from both sides: a removable discontinuity. Setting g(2)=4g(2) = 4 makes gg continuous.

The derivative's graph need not look like the function's#

Below the graph of 1/x1/x, draw the graph of its derivative, −1/x2-1/x^2. They look nothing alike: 1/x1/x shoots up to +∞+\infty just to the right of 0 and down to −∞-\infty just to the left, while −1/x2-1/x^2 is negative everywhere and goes to −∞-\infty from both sides. The derivative records the slope, not the height: on both branches the hyperbola slopes downwards, steeper and steeper near 0. As the notes add, 1/x1/x is an odd function and its derivative is even; the derivative of an odd function is always even, and vice versa.

The notes give a second picture of the same point ("Pumpkin Drop, Part II", p. 8): a pumpkin thrown up and over the building, with height y=400−16t2y = 400 - 16t^2 (in feet) for −5≤t≤5-5 \le t \le 5. The graph of yy is an arch; the graph of its derivative, y′=−32ty' = -32t, is a falling straight line, positive while the pumpkin rises, zero at the top, negative on the way down.

Two trigonometric limits#

With θ\theta measured in radians (not degrees!), the notes prove two limits that the next lecture needs:

Two trigonometric limits
lim⁡θ→0sin⁡θθ=1,lim⁡θ→01−cos⁡θθ=0\lim_{\theta \to 0} \frac{\sin\theta}{\theta} = 1, \qquad \lim_{\theta \to 0} \frac{1 - \cos\theta}{\theta} = 0
In words

the limit as theta goes to 0 of sine theta over theta equals 1, the limit as theta goes to 0 of the quantity 1 minus cos theta, all over theta equals 0

Source: 18.01 Lecture 2 notes, p. 9

The geometric reason. On a circle of radius 1, an angle θ\theta cuts off an arc of length θ\theta; the vertical distance from the end of the arc to the horizontal axis is sin⁡θ\sin\theta. As θ\theta shrinks, the arc straightens out and becomes indistinguishable from that vertical segment, so sin⁡θ/θ→1\sin\theta/\theta \to 1. The horizontal gap between the end of the arc and the circle's rightmost point is 1−cos⁡θ1 - \cos\theta, and as θ→0\theta \to 0 it becomes much smaller than the arc θ\theta, so (1−cos⁡θ)/θ→0(1 - \cos\theta)/\theta \to 0. In the lecture Jerison states both limits and leaves the proofs for later; the notes give them at the end of Lecture 2.

Both quotients computed from their formulas. Neither is defined at θ=0\theta = 0 (a removable discontinuity), but as θ→0\theta \to 0 from either side sin⁡θ/θ\sin\theta / \theta approaches 1 and (1−cos⁡θ)/θ(1 - \cos\theta) / \theta approaches 0.
Worked example

The limits in numbers, and why radians

Evaluate sin⁡θ/θ\sin\theta/\theta and (1−cos⁡θ)/θ(1 - \cos\theta)/\theta for θ=0.1\theta = 0.1 and 0.010.01, and sin⁡θ/θ\sin\theta/\theta if θ were measured in degrees, with θ = 1°.

θ=0.1\theta = 0.1

sin⁡0.1/0.1=0.99833\sin 0.1/0.1 = 0.99833 and (1−cos⁡0.1)/0.1=0.04996(1 - \cos 0.1)/0.1 = 0.04996.

θ=0.01\theta = 0.01

sin⁡0.01/0.01=0.99998\sin 0.01/0.01 = 0.99998 and (1−cos⁡0.01)/0.01=0.00500(1 - \cos 0.01)/0.01 = 0.00500: closer still to 1 and 0. In fact (1−cos⁡θ)/θ≈θ/2(1 - \cos\theta)/\theta \approx \theta/2 for small θ.

Degrees

sin⁡(1°)=0.017452\sin(1°) = 0.017452, so sin⁡θ/θ\sin\theta/\theta with θ = 1 (degree) gives 0.017452, which is ≈π/180=0.017453\approx \pi/180 = 0.017453, not 1. The limit is 1 only when θ is in radians.

Differentiable implies continuous#

One more tool for the rules of differentiation, with a one-line proof.

Theorem. If ff is differentiable at x0x_0, then ff is continuous at x0x_0.

Proof. Continuity means lim⁡x→x0(f(x)−f(x0))=0\lim_{x\to x_0}\bigl(f(x) - f(x_0)\bigr) = 0. Multiply and divide by x−x0x - x_0:

Differentiable implies continuous
lim⁡x→x0(f(x)−f(x0))=lim⁡x→x0f(x)−f(x0)x−x0 (x−x0)=f′(x0)⋅0=0\lim_{x \to x_0} \bigl(f(x) - f(x_0)\bigr) = \lim_{x \to x_0} \frac{f(x) - f(x_0)}{x - x_0}\,(x - x_0) = f'(x_0)\cdot 0 = 0
In words

the limit as x goes to x nought of the quantity f(x) minus f( x nought ), equals the limit as x goes to x nought of the quantity f(x) minus f( x nought ), all over the quantity x minus x nought, times the quantity x minus x nought, equals f prime ( x nought ) times 0 equals 0

Source: 18.01 Lecture 2 notes, p. 11

The first factor tends to f′(x0)f'(x_0), which exists by assumption; the second tends to 0. Multiplying and dividing by x−x0x - x_0 looks like dividing by zero, but it is not: a limit as x→x0x \to x_0 never uses x=x0x = x_0 itself, so x−x0≠0x - x_0 \ne 0 throughout.

The converse is false: ∣x∣|x| is continuous at 0 but has a corner there, with no tangent slope. (This example is not in the lecture; it is added here.)

Summary#

  • A derivative is a rate of change: Δy/Δx\Delta y/\Delta x is the average rate, dy/dxdy/dx the instantaneous rate (current, speed, temperature gradient, the sensitivity of a measurement).
  • Easy limits are found by putting in the value; derivative limits never are (0/00/0). A limit as x→x0x \to x_0 never uses x=x0x = x_0.
  • One-sided limits: x→x0+x \to x_0^+ from the right, x→x0−x \to x_0^- from the left.
  • ff is continuous at x0x_0 when lim⁡x→x0f(x)=f(x0)\lim_{x\to x_0} f(x) = f(x_0). Discontinuities: jump, removable, infinite (1/x1/x at 0: +∞+\infty from the right, −∞-\infty from the left), and others such as sin⁡(1/x)\sin(1/x).
  • The graph of f′f' can look nothing like the graph of ff.
  • With θ in radians, sin⁡θ/θ→1\sin\theta/\theta \to 1 and (1−cos⁡θ)/θ→0(1 - \cos\theta)/\theta \to 0.
  • Differentiable implies continuous, but not the other way round (∣x∣|x| at 0).

Symbols on this page

Show the 30 symbols used here
Δ\Delta capital delta.
A change or difference in a quantity, e.g. Δx = x₂ − x₁. Say it: “capital delta”.
θ\theta theta.
An angle. Say it: “theta” (sounds like “thay-ta or thee-ta”).
π\pi pi.
The ratio of a circle's circumference to its diameter, π ≈ 3.14159. Say it: “pi”.
∞\infty infinity.
Infinity: larger than any number. Say it: “infinity”.
≈\approx approximately equal.
Is approximately equal to. Say it: “is approximately”.
≤\le less than or equal.
Is less than or equal to. Say it: “is less than or equal to”.
≥\ge greater than or equal.
Is greater than or equal to. Say it: “is greater than or equal to”.
≠\neq not equal.
Is not equal to. Say it: “is not equal to”.
→\to arrow.
Goes to (tends to), or becomes. Say it: “goes to”.
±\pm plus or minus.
Plus or minus: both signs, or an uncertainty (67.3 ± 1.2). Say it: “plus or minus”.
⋅\cdot dot.
Times (multiplication). Between two vectors: the dot product. Say it: “times”.
lim⁡\lim limit.
Limit: the value approached as the variable written below approaches its target. Say it: “the limit”.
sin⁡\sin sine.
Sine of an angle. Say it: “sine”.
cos⁡\cos cosine.
Cosine of an angle. Say it: “cos”.
aa a.
The scale factor a(t): how much the universe has expanded (a = 1 today). Say it: “a”.
TT T.
Temperature, in kelvin. Unit: K (often given as an energy, kT, in eV). Say it: “capital T”.
xx x.
The independent variable of a function; in the temperature-gradient example, position. Say it: “x”.
yy y.
The dependent variable, y = f(x); in Pumpkin Drop Part II, the height y = 400 − 16t² in feet. Say it: “y”.
tt t.
Time. Unit: s. Say it: “t”.
dd d.
As in dx or dy/dx: marks an infinitesimally small change of the quantity after it; d/dx means the derivative with respect to x. Say it: “d”.
ff f.
A function; f(x) is its value at x. Say it: “f”.
gg g.
A second example function, g(x) = (x² − 4)/(x − 2). Say it: “g”.
qq q.
Electric charge; dq/dt is the current. Unit: C. Say it: “q”.
ss s.
Distance travelled; ds/dt is the speed. Unit: m. Say it: “s”.
hh h.
Height of the pumpkin above the ground, h = 80 − 5t²; in the GPS example, the measured distance to a satellite. Unit: m. Say it: “h”.
LL L.
Your distance along the ground in the flat-Earth GPS model, worked out from the measured distance h. Unit: m. Say it: “L”.
f′f' f prime.
The derivative of f; f′(x₀) is the slope of the tangent line at x₀. Say it: “f prime”.
y′y' y prime.
The derivative of the pumpkin's height y with respect to time, y′ = −32t (in feet per second). Unit: m/s (here ft/s). Say it: “y prime”.
h′h' h prime.
The derivative of h with respect to time: the pumpkin's velocity, h′(4) = −40 m/s. Unit: m/s. Say it: “h prime”.
x0x_{0} x nought.
The point at which a limit, continuity or the derivative is examined. Say it: “x nought”.

Tap or click a symbol in a formula to see the same explanation. All symbols: symbols and notation.

Words on this page

Show the 34 words used here

New here

jump discontinuity.
A point where a graph jumps: the function has a limit from the left and a limit from the right, but they differ.
removable discontinuity.
A hole in a graph: the limit exists, but the function is undefined there or has a different value, so redefining one point repairs it.
infinite discontinuity.
A point where a function shoots off to plus or minus infinity, as 1/x does at x = 0.
proof.
A chain of reasoning showing beyond doubt that a statement follows from definitions and results already known.
theorem.
A statement that has been proved true, step by step, from definitions and earlier results.

Also used

derivative.
The rate at which a function changes as its input changes: the slope of its graph at a point. Explained in Position and velocity in one dimension.
rate of change.
How fast one quantity changes compared with another, often time: the change in the first divided by the change in the second. Explained in Rates of change and area under a graph.
continuous.
Without breaks, gaps or jumps: a continuous graph can be drawn without lifting the pen; a continuous quantity can take every value in a range. Explained in The rocket equation.
differentiation.
Finding a derivative: working out how fast a function changes. Explained in The derivative: slope of the tangent line and rate of change.
graph.
The picture of a function: the curve y = f(x) for one variable, or the surface z = f(x, y) for two. Explained in Graphs, straight lines and slope.
limit.
The value a quantity gets closer and closer to, as near as we like, as its input approaches some value, without having to reach it. Explained in Rates of change and area under a graph.
average velocity.
The total change in position divided by the time it took, whatever happened in between. Explained in Rates of change and area under a graph.
velocity.
How fast and in which direction something moves: the change in position in each unit of time. Explained in Speed and velocity.
acceleration.
How fast velocity changes: the change in velocity in each unit of time. Explained in Rates of change and area under a graph.
gradient.
The vector of a function's partial derivatives; it points the way the function increases fastest, and its length is that fastest rate. Explained in Graphs, straight lines and slope.
discontinuity.
A point where a function is not continuous: its graph jumps, has a hole or shoots off to infinity there. Explained in Curve sketching with the first and second derivative.
hyperbola.
An open curve with two separate branches: the set of points whose distances from two fixed points differ by the same amount. Explained in Quadratics and power laws.
odd function.
A function that changes sign when x does, f(−x) = −f(x), such as x³ or sin x. Explained in Fourier series: even and odd functions, convergence and other periods.
p..
Page, in a reference to a source; pp. means pages, as in pp. 3–5.
radian.
The natural unit of angle: the angle whose arc on a circle is as long as the radius. A full turn is 2π radians. Explained in Angles, radians and trigonometry.
indistinguishable.
So alike that no measurement or observation can tell them apart.
differentiable.
Having a derivative: at that point the graph has a single, definite, non-vertical tangent line, with no corner or break. Explained in The mean value theorem and inequalities.
tangent.
A straight line that touches a curve at a point and runs in the same direction as the curve there. Explained in Angles, radians and trigonometry.
Big Bang.
The hot, dense early state from which the whole observable universe has been expanding for about 13.8 billion years. Explained in The Big Bang.
scale factor.
The number a(t) that tells how much distances in the universe have stretched: when it doubles, every distance between galaxies doubles. Explained in Towards the universe: an expanding gas cools.
density.
How much of something (mass, charge, energy, particles or probability) there is in each unit of volume, area, length or other variable. Explained in Density and pressure.
singularity.
A point where a quantity becomes infinite or undefined, so the usual equations stop working there. Explained in Black holes.

Academic

rigorous.
Careful and exact in every step, so that nothing is assumed without proof.
model.
A simplified description of a real system, usually in equations, that keeps what matters and leaves out the rest.
problem set.
A weekly sheet of exercises that students work through and hand in, to practise what the lectures taught.
error.
The difference between a measured or computed value and the true one; often how large that difference may be.
vice versa.
The other way round: the same is true with the two things swapped.
by assumption.
True because it was taken as given at the start of the argument, not because it was shown.
converse.
The statement made by swapping the 'if' and 'then' parts of another statement.

Tap or click a word, here or in the text, for its meaning in this lesson. All words: the glossary. How many words are marked in the text: Reading options (the “Aa” button).

Where this leads

In cosmology

33 more cosmology pages that build on this

Pages that build on this

Practise

Check your understanding

  1. What is lim⁡x→1x2+2xx+4\displaystyle\lim_{x \to 1} \frac{x^2 + 2x}{x + 4}?
  2. f(x)=x2f(x) = x^2 for x<1x < 1 and f(x)=3−xf(x) = 3 - x for x≥1x \ge 1. What kind of discontinuity does ff have at x=1x = 1?
  3. Which statement about 1/x1/x near x=0x = 0 is correct?
  4. What is lim⁡θ→0sin⁡θθ\displaystyle\lim_{\theta \to 0} \frac{\sin\theta}{\theta}, with θ in radians?
0 of 4 answered

Flashcards

1 / 5