Calculus · Continuity

Continuity

A function f is continuous at a when f(a) is defined, f(x) has a limit as x approaches a, and that limit is f(a). The gap between f(a) and where the nearby values end up shows how far f is from continuous, and which breaks a new value at a can close.

Continuity in this visualization

A function f is continuous at a when three things hold: f(a)f(a) is defined, f(x)f(x) has a limit as x approaches a, and that limit is f(a)f(a). In one line, lim⁡x→af(x)=f(a)\lim_{x \to a} f(x) = f(a). On the graph these are three things at a: where the curve heads from the left, where it heads from the right, and the point (a,f(a))(a, f(a)). Continuity means all three are there, at the same height. Here you change f at a alone and leave the rest of the curve as it is, which shows that continuity belongs to one point together with the values around it.

How far from continuous: the gap

The gap is how far the values near a end up from f(a)f(a): lim sup⁡x→a∣f(x)−f(a)∣\limsup_{x \to a} |f(x) - f(a)|. Where both sides have limits it is the larger of their distances from f(a)f(a); for a swing, the distance to its farther bound; for a side that runs off, ∞. So f is continuous at a exactly when f(a)f(a) is defined and the gap is 0. This is the ε–δ definition seen from the other end. Continuity asks that every band of half-width ε around f(a)f(a) hold all the values for x close enough to a. With a gap g, every band wider than g does and no narrower one does. Unlike a limit, the test includes x=ax = a itself, and that is why the value at a has to be the limit.

Four ways to break, and which can be mended

Removable: both sides head for the same L, but f(a)f(a) is missing or somewhere else. Set f(a)=Lf(a) = L and the gap closes; any other value leaves a gap equal to its distance from L. Jump: the sides head for different limits. No value closes it; the gap is at least half the jump, reached at the middle. If f(a)f(a) equals one side's limit, f is continuous from that side only: ⌊x⌋\lfloor x \rfloor at 1 is continuous from the right. Infinite: a side runs off to ±∞, as 1/x1/x does at 0. Oscillating: sin⁡(1/x)\sin(1/x) swings between −1 and 1 faster and faster near 0 and has no limit, so the gap is at least 1 whatever f(0)f(0) is. xsin⁡(1/x)x \sin(1/x) swings just as often, but between −∣x∣-|x| and ∣x∣|x|; it heads for 0, and with f(0)=0f(0) = 0 it is continuous.

Continuous everywhere

A function is continuous on an interval, or on its domain, when it is continuous at every point of it. Polynomials, ∣x∣|x|, sin⁡x\sin x and exe^x are continuous at every real number. 1/x1/x is continuous at every point of its domain: when it is called discontinuous at 0, that only means 0 is not in the domain and no value put there would make it continuous. ⌊x⌋\lfloor x \rfloor is continuous everywhere except at the integers.

Things to notice

  • A function with a derivative at a is continuous there, but not the other way round: ∣x∣|x| is continuous at 0 and has a corner there, no derivative.

Controls

  • Drag the point at a up or down; it catches where the sides head, a jump's middle and whole numbers. Press the dashed line to put a point there. Defined at a takes the point away or puts a new one where the sides head, and the field takes fractions such as 1/3.
  • Choose a function with its key. The zoom keys close in on the point 10, 100 or 1000 times.
  • With the keyboard, Tab to the point and use the up and down arrow keys; hold Shift for larger steps. Delete takes the point away and Enter puts a new one in.

Related