Continuity at one point
A function \(f\) is continuous at an input \(c\) when its graph passes through the point \((c,f(c))\) without a break. In terms of limits, \(f\) is continuous at \(c\) if
This topic splits the definition into three conditions and checks them one at a time. It then applies them where two formulas meet, with or without an unknown constant.
Three conditions, in order
A smooth wavy curve with no numbers that rises through an input c, marked by a faint dashed vertical line. A filled dot on the curve above c marks the value f of c, and a dashed orange line marks the height L of the curve at c. Two orange points on the curve, one on each side of c, move toward c with a slider. Buttons remove the dot and leave an open ring, lift the dot above the ring with a red bar between them, or move the part of the curve to the right of c up, so that the two sides approach different heights. Readouts under the figure say which of the three conditions hold.
Each side of the equation must be a number, and the two numbers must agree. First, \(f(c)\) is defined, so the right side is a number. Second, the limit of \(f(x)\) as \(x\) approaches \(c\) exists, so the left side is a number too. Call it \(\cy{L}\). Third, \(\cy{L}=f(c)\). Some books call these three conditions the continuity test. The third condition compares the numbers from the first two, so it can be checked only after both exist. The limit in condition 2 uses values of \(f\) on both sides of \(c\). The definition therefore assumes that \(f\) is defined on an open interval around \(c\), except possibly at \(c\).
In Figure 1, the faint line marks \(c\), and the filled dot is the point \((c,f(c))\). Move the slider to bring the orange points toward \(c\) from both sides. Their heights approach the dashed orange line at the height \(\cy{L}\), and the curve reaches the dot, so all three conditions hold.
Each of the first three buttons makes one condition fail, as the readouts under the figure show. If you remove the dot, an open ring marks the hole, so condition 1 fails while the limit still exists. If you lift the dot, the limit is still \(\cy{L}\), because it depends only on values near \(c\), not at \(c\) (topic 1.2). Condition 3 fails, and the red bar shows the gap.
If you split the sides, the curve to the right of \(c\) moves up, and the orange points approach two different heights. The limit does not exist, so the dashed orange line disappears, and condition 2 fails although \(f(c)\) is defined. Condition 2 also fails when \(f(x)\) approaches \(\infty\) or \(-\infty\) from either side of \(c\), because neither is a number.
Continuity needs all three conditions, so one failure is enough to make \(f\) not continuous at \(c\). To explain why, name a condition that fails, with the numbers that show it.
Continuity at a join
A piecewise function uses different formulas on different intervals of inputs, and an input where the formula changes is a join. At a join \(c\), the limit exists when the two one-sided limits exist and are equal, and only then (topic 1.2). Continuity at \(c\) therefore means that three numbers are equal: the limit from the left, the limit from the right and \(f(c)\).
Each one-sided limit uses only the formula on its own side. For the limit from the left, \(x<c\), so \(f(x)\) is given by the left formula. If that formula is continuous at \(c\), its limit there is its value: substitute \(c\), even if the formula is stated only for \(x<c\). The right side works the same way. By the limit laws of topic 1.5, a polynomial is continuous at every input. The square root of a polynomial is continuous wherever the polynomial is positive.
The value \(f(c)\) comes from the formula that covers \(c\): the one for \(x\le c\), for \(x\ge c\) or for \(x=c\) alone. If no formula covers \(c\), then \(f(c)\) is not defined, and condition 1 fails even when the one-sided limits are equal.
An unknown constant
A formula may contain a constant \(k\) whose value is not given. The three numbers at the join then depend on \(k\), and continuity gives equations for \(k\). If \(f(c)\) comes from a formula that is continuous at \(c\), it equals the one-sided limit on that side for every \(k\). Only one equation is left: the two one-sided limits are equal. If \(f(c)\) is given for \(x=c\) alone, both limits must equal it. Solve for \(k\). Then check the three numbers with the solution.
In Figure 2, \(f(x)=kx+1\) for \(x<2\), and \(f(x)=10-x^2\) for \(x\ge 2\). The second formula is a polynomial that covers 2, so it gives both the value \(f(2)=10-2^2=6\) and the limit from the right. The limit from the left is the first formula at 2, \(\cy{2k+1}\).
A graph for x from 0 to 3, with the inputs 1, 2 and 3 and the heights 2 to 10 numbered. For x less than 2, the line y = kx + 1 runs from (0, 1) to an open orange ring above x = 2. A slider changes k, and the line turns about (0, 1), so the ring moves up and down a faint dashed line at x = 2. From x = 2 on, the parabola y = 10 − x squared falls from a filled dot at (2, 6) to (3, 1). A red bar joins the ring and the dot when they differ. At k = 5/2 the ring reaches the dot, and the graph turns sharply there.
Drag the slider for \(k\). The line turns about the point \((0,1)\), so the open orange ring at its end moves along the faint line \(x=2\). The red bar between the ring and the dot disappears only when \(2k+1=6\), at \(k=\frac52\).
At \(k=\frac52\), the line rises to \((2,6)\) and the parabola falls from it, so the graph turns sharply there, at a corner (topic 1.10). All three conditions hold at the corner, because they compare heights, not slopes. Whether the slopes match is a separate question, which Unit 2 studies.
With two joins and two unknown constants, solve the equations from both joins together.
Example 1
Check the three continuity conditions
Let \(h(x)=\dfrac{\sqrt{x+9}-3}{x}\) for \(x\neq 0\), and let \(h(0)=\frac16\). Is \(h\) continuous at \(x=0\)? Justify your answer.
Solution
The value \(h(0)=\frac16\) is given, so condition 1 holds. The formula defines \(h(x)\) for every \(x\ge -9\) except 0, so \(h\) is defined on an open interval around 0.
For the limit, \(x\neq 0\), so \(h(x)\) is given by the formula. Its numerator and denominator both approach 0, so multiply them by the conjugate \(\sqrt{x+9}+3\) (topic 1.6):
The factor \(x\) cancels because \(x\neq 0\). The square root approaches \(\sqrt9=3\) (topic 1.5), so the denominator approaches 6, not 0:
The limit exists and equals \(h(0)\), so conditions 2 and 3 hold. All three conditions hold, so \(h\) is continuous at 0.
Example 2
Check a piecewise join
Let \(g(x)=\sqrt{x+7}\) for \(-7\le x\le 2\), and let \(g(x)=x^2+1\) for \(x>2\). Is \(g\) continuous at \(x=2\)? Justify your answer.
Solution
The formula changes at \(x=2\), so compare three numbers there. The first formula covers \(-7\le x\le 2\), so it gives the value \(g(2)\) and the limit from the left. The square root of \(x+7\) is continuous at 2, because \(x+7\) is positive there (topic 1.5). The limit from the right uses the polynomial \(x^2+1\):
The one-sided limits differ, so the limit at 2 does not exist, and the graph jumps from height 3 to height 5. Condition 2 fails, so \(g\) is not continuous at 2, although \(g(2)\) is defined.
Example 3
Find a parameter that makes a join continuous
Let \(p(x)=kx+7\) for \(x\le 2\), and let \(p(x)=kx^2+1\) for \(x>2\), where \(k\) is a constant. Find the value of \(k\) for which \(p\) is continuous at \(x=2\).
Solution
For every \(k\), both formulas are polynomials, so each one-sided limit is the value of its formula at 2. The first formula covers \(x\le 2\), so it also gives \(p(2)\):
The value already equals the limit from the left, so the limit from the right must equal \(2k+7\):
With \(k=3\), the value and the limit from the left are \(3(2)+7=13\), and the limit from the right is \(3(2)^2+1=13\). The three numbers agree, so \(p\) is continuous at 2 when \(k=3\).
Example 4
Explain why continuity fails
Let \(q(x)=\begin{cases}2x-1, & x<3\\ 4, & x=3\\ 11-2x, & x>3\end{cases}\). Explain why \(q\) is not continuous at \(x=3\).
Solution
The formula for \(x=3\) alone gives \(q(3)=4\), so condition 1 holds. Each one-sided limit uses the formula on its own side, and the formulas \(2x-1\) and \(11-2x\) are polynomials:
The one-sided limits are equal, so the limit at 3 exists, and condition 2 holds. The graph has an open ring at \((3,5)\), the point that both pieces approach, and a filled dot at \((3,4)\), below it. Condition 3 fails, and this failure is the reason that \(q\) is not continuous at 3:
Each example is one of the four skills of topic 1.11 in Which & Why: AP Calculus.