Search

Continuity and discontinuities

When the value at a point agrees with what the nearby values approach.

The idea

In Limits, we separated the value a function approaches from the value it has. Continuity asks them to agree. At a continuous point, nearby inputs give outputs near the actual value there.

A limit alone is not enough. The value at the point must meet the approaching values.

Compare the two approached heights and the value at the point Drag the left branch, right branch, and function value independently. Continuity requires all three heights to agree. 2 \(x\)\(y\)
Left: 3.0\(f(2)=\) 1.0Right: 4.0
Not continuous

Drag either curve up or down, and move the point at \(x=2\). They turn green when all three heights agree.

Why direct substitution works

Continuity is the reason we can evaluate a limit by substitution. If \(f\) is continuous at \(a\), then

\[\lim_{x\to a}f(x)=f(a).\]

So, for a polynomial, we can substitute the approaching input. For a rational function, we can do this wherever its denominator is nonzero. Substitution is justified by continuity; it is not a rule that applies to every function.

Rules

Building continuous functions

Polynomials are continuous everywhere. Rational functions are continuous wherever their denominator is nonzero. The square-root function is continuous on its domain, with a right-hand limit at its endpoint. Sine and cosine are continuous everywhere.

Sums, differences, and products of continuous functions are continuous. Quotients are continuous where the denominator is nonzero. A composition \(f(g(x))\) is continuous at \(a\) when \(g\) is continuous at \(a\) and \(f\) is continuous at \(g(a)\), using inputs within the relevant domains.

These rules follow from the limit laws; continuity of sine and cosine follows from the trigonometric limits and angle-addition identities. For a piecewise definition, the rules apply within each piece; the joins still need checking.

Checking continuity

When continuity is not already known, find the function value and the limit separately, then compare them. For a piecewise function, check the two sides at each joining point.

Example 1

A value that already fits

For \(p(x)=x^3-2x+1\) at \(x=-1\),

\[p(-1)=2,\qquad \lim_{x\to-1}p(x)=2.\]

Because polynomials are continuous, substitution gives the limit directly: \(\lim_{x\to-1}p(x)=p(-1)=2\). We do not need a separate limit calculation.

Example 2

Filling a hole

Choose \(k\) so that

\[h(x)=\begin{cases}\dfrac{x^2+x-6}{x-2},&x\ne2,\\k,&x=2\end{cases}\]

is continuous at \(2\). For nearby inputs,

\[\frac{x^2+x-6}{x-2}=x+3,\qquad x\ne2.\]

Taking the limit,

\[\lim_{x\to2}h(x)=\lim_{x\to2}(x+3)=5.\]

Since \(h(2)=k\), continuity requires \(k=5\).

Example 3

A jump cannot be repaired at one point

For

\[g(x)=\begin{cases}x^2,&x<1,\\x+2,&x\ge1,\end{cases}\]

we have \(g(1)=3\), but

\[\lim_{x\to1^-}g(x)=1,\qquad \lim_{x\to1^+}g(x)=3.\]

The limit does not exist, so \(g\) is not continuous at \(1\). Changing \(g(1)\) cannot make the two approached heights agree.

When continuity fails

Discontinuities have different causes. These names describe what happens near an interior point \(a\).

Only a removable discontinuity can be repaired by changing a single function value. Compare the scenarios below.

A line has an open circle at input 2 and height 4, with no filled value at that input.
Removable discontinuity. The nearby values approach \(4\), but \(f(2)\) is undefined. Define \(f(2)=4\) to extend the function continuously.
A line has an open circle at 2,4 and an isolated filled value at 2,1.
Removable discontinuity. The limit is \(4\), but \(f(2)=1\). The value exists and the limit exists; their equality fails.
The left branch approaches 1 and the right branch approaches 3.
Jump discontinuity. The two approached heights disagree. No assignment to the value at the joining point can restore continuity.
One over x squared rises without bound near zero.
Infinite discontinuity. For \(f(x)=1/x^2\), there is no finite limit at \(0\). Assigning a finite value there cannot give a continuous extension.
Sine of one over x keeps oscillating near zero from both sides.
Oscillatory discontinuity. For \(f(x)=\sin(1/x)\), nearby outputs never settle as \(x\to0\). A new value at \(0\) cannot fix that behavior.
Choose a scenario

Quiz

Calculus for Engineers and Scientists

Find a post, puzzle, or idea.