Unit 1 · Topic 1.12

Continuity on a domain

Builds on continuity at one input, the limit laws and one-sided limits. 13 minutes.

  1. Example 1Find where an expression is defined
  2. Example 2Combine domain restrictions
  3. Example 3State intervals of continuity
  4. Example 4Check continuity at a domain endpoint

Topics 1.10 and 1.11 test continuity at one input at a time, and this topic finds all the inputs at which a function is continuous. The first step is the domain, the set of inputs at which the function has a value. For a function given by one formula, its graph breaks only where the formula has no value. At each end of the domain, a one-sided limit decides.

Where a formula has a value

The graph of h of x equals the square root of (x + 3), divided by (x − 1) squared, for x from −4 to 6, with the inputs numbered. The curve starts at a filled dot at (−3, 0), rises slowly and then without bound beside a faint dashed vertical line at x = 1, and on the right of the line comes down from the top toward the axis. Nothing is drawn to the left of −3. Under the graph are three teal bars. The top bar covers the inputs from −3 on, the middle bar covers every input except 1, where it has an open ring, and the bottom bar, the domain of h, covers the inputs from −3 on except 1. An orange point sits on the curve at the input x, with a faint dashed line from it down through the bars. Where h has no value, the point disappears and a red ring marks the input on the axis.

Figure 1Each teal bar under the graph of \(h\) marks a set of inputs. The set includes the input at a filled dot but not the input at an open ring. A faint dashed line runs from the orange point at the input \(x\) down through the bars. A red ring on the axis marks an input at which \(h\) has no value.

Three operations restrict the inputs of the formulas in this unit. A quotient has no value where its denominator is 0, because division by 0 has no meaning, so a denominator \(u\) needs \(u\ne 0\). The expression under a square root is its radicand. A square root of a negative number is not real, so \(\sqrt{u}\) needs \(u\ge 0\), and the same holds for every even root. A cube root has a value at every input. A logarithm needs a positive input, \(u>0\), because \(\ln u\) is the power of \(e\) that gives \(u\), and every power of \(e\) is positive.

A formula with several parts has a value only where every part has one. Its domain, which some books call the natural domain, is the intersection of the sets of inputs that the parts allow. In a composition \(f\big(g(x)\big)\), the input \(x\) must be in the domain of \(g\), and the output \(g(x)\) must be in the domain of \(f\).

In Figure 1, the function \(h(x)=\frac{\sqrt{x+3}}{(x-1)^2}\) has two restrictions. The root needs \(x+3\ge 0\), so \(x\ge -3\), which the top bar marks. The denominator is 0 only at \(x=1\), so the middle bar has an open ring there. The bottom bar holds the inputs on both bars, \(x\ge -3\) with \(x\ne 1\), which form the domain of \(h\).

Move \(x\) with the slider under Figure 1. Left of \(-3\) and at 1, \(h\) has no value, so a red ring marks \(x\). The dashed line then misses the bottom bar and the bar of the restriction that fails. Near 1, the point is above the figure, and the readout under the figure gives \(h(x)\).

A formula is continuous inside its domain

An input \(c\) is inside the domain when all the inputs close enough to \(c\), on both sides, are in the domain. The building blocks of this unit, polynomials, roots, \(e^x\), \(\ln x\), \(\sin x\) and \(\cos x\), are continuous at every input inside their domains. Topic 1.5 showed this for polynomials and the square root, and topic 1.7 for sine and cosine. The others are accepted without proof.

The limit laws of topic 1.5 extend continuity to sums, differences, products and quotients. If \(f\) and \(g\) are continuous at \(c\), the sum law and their continuity give

\[\begin{aligned}&\lim_{x\to c}\big(f(x)+g(x)\big)\\&=\lim_{x\to c}f(x)+\lim_{x\to c}g(x)\\&=f(c)+g(c)\end{aligned}\]

so \(f+g\) is continuous at \(c\). In the same way, \(f-g\) and \(fg\) are continuous at \(c\). The quotient \(\frac{f}{g}\) is continuous at \(c\) if \(g(c)\ne 0\), because the quotient law needs a denominator whose limit is not 0. If \(g\) is continuous at \(c\) and \(f\) is continuous at \(g(c)\), the composition law of topic 1.5 applies. It gives \(\lim_{x\to c}f\big(g(x)\big)=f\big(g(c)\big)\), so \(f\big(g(x)\big)\) is continuous at \(c\).

A function built from the building blocks by arithmetic and composition is therefore continuous at every input inside its domain. An even root may receive 0 at such an input, as in \(\sqrt{x^2}\) at 0. The composition law does not apply there, but the root still approaches 0, as shown below for \(h\) at \(-3\). A function given in pieces also needs a test at each input where its formula changes, as in topic 1.11.

In Figure 1, the curve has no break for \(-3<x<1\) or for \(x>1\). At \(x=1\), the quotient law does not apply, because the denominator approaches 0. The numerator approaches 2 and the denominator stays positive, so the curve rises without bound on both sides of the dashed line \(x=1\).

Intervals and their ends

An interval is the set of inputs between two ends. A square bracket includes an end and a round bracket leaves it out, so \([-3,1)\) holds the inputs with \(-3\le x<1\). Infinity is not a number, so it takes a round bracket, as in \((1,\infty)\). The symbol \(\cup\) joins separate intervals.

An input of the domain with inputs of the domain on one side only, such as \(-3\) for \(h\), is an end of the domain. The limit there does not exist (topic 1.7), so continuity is tested from the side with values. A function \(f\) is continuous from the right at \(a\) if \(\lim_{x\to a^+}f(x)=f(a)\), and continuous from the left at \(b\) if \(\lim_{x\to b^-}f(x)=f(b)\). Some books say right-continuous and left-continuous.

A function is continuous on an interval if it is continuous at every input inside the interval. At a left end that the interval includes, it must be continuous from the right, and at such a right end, from the left. The intervals of continuity of a function are the largest intervals on which it is continuous.

In Figure 1, as \(x\) approaches \(-3\) from the right, \(x+3\) approaches 0 through positive values. The root then approaches 0, because it is less than a given distance \(d>0\) once \(x+3<d^2\). The denominator approaches 16, so by the quotient law \(h(x)\) approaches \(\frac{0}{16}=0\), the value \(h(-3)\) that the filled dot marks. The function \(h\) is therefore continuous from the right at \(-3\). Every other input of its domain lies inside it, so \(h\) is continuous there, and its intervals of continuity are \([-3,1)\) and \((1,\infty)\).

A rising curve with no numbers, the graph of a function f that is defined only on the inputs from a to b. A filled dot marks each end of the curve, at the values f(a) and f(b). Two orange points on the curve move toward the ends from inside. A teal bar on the axis from a to b marks the interval on which f is continuous, with a filled dot at each end. When the button moves f(b) down, the end of the curve becomes an open ring, a red segment joins it to the lowered dot, and the teal bar ends in an open ring at b.

Figure 2The dots at the ends of the graph of \(f\) mark \(f(a)\) and \(f(b)\). The orange points move along the curve toward the ends, and the teal bar marks where \(f\) is continuous. A red segment shows a gap between a value and the end of the curve.

An end can fail the test when the value there is given separately from the formula. In Figure 2, \(f\) is defined only on \([a,b]\), and its graph has no break between \(a\) and \(b\). Move the slider under Figure 2 toward 0. The orange points approach the ends from inside, and their heights approach \(f(a)\) and \(f(b)\), so \(f\) is continuous on \([a,b]\).

Use the button under Figure 2 to move \(f(b)\) off the curve. The dot drops below the open ring at the end of the curve, and a red segment shows the gap. The curve still approaches the ring, so the limit from the left at \(b\) is not \(f(b)\), and \(b\) fails the test. The teal bar now ends in an open ring, and \(f\) is continuous on \([a,b)\).

Example 1

Find where an expression is defined

Find the domains of \(p(x)=\dfrac{1}{x^2-9}\), \(q(x)=\sqrt{x^2-9}\) and \(r(x)=\ln\left(x^2-9\right)\).

Solution

The three functions apply different operations to the same expression, \(x^2-9=(x-3)(x+3)\), which is 0 at \(x=-3\) and at \(x=3\). For \(-3<x<3\), the two factors have opposite signs, so \(x^2-9\) is negative. For \(x<-3\) or \(x>3\), they have the same sign, so it is positive.

The denominator of \(p\) cannot be 0, the radicand of \(q\) cannot be negative, and the input of the logarithm in \(r\) must be positive:

\[\begin{aligned}p&:\ (-\infty,-3)\cup(-3,3)\cup(3,\infty)\\q&:\ (-\infty,-3]\cup[3,\infty)\\r&:\ (-\infty,-3)\cup(3,\infty)\end{aligned}\]

At the zeros \(-3\) and 3 of \(x^2-9\), \(q\) has the value \(\sqrt0=0\), but \(\ln 0\) has no value.

Example 2

Combine domain restrictions

Find the domain of \(k(x)=\dfrac{\sqrt{4-x}}{\ln(x+2)}\).

Solution

Each part of \(k\) restricts \(x\). The root needs \(4-x\ge 0\), so \(x\le 4\). The logarithm needs \(x+2>0\), so \(x>-2\).

The denominator \(\ln(x+2)\) must not be 0. A logarithm is 0 only when its input is \(e^0=1\), and \(x+2=1\) at \(x=-1\), so the denominator removes \(-1\). The domain holds the inputs that pass all three restrictions:

\[\begin{aligned}&-2<x\le 4,\quad x\neq -1\\&(-2,-1)\cup(-1,4]\end{aligned}\]

The input 4 belongs to the domain, because \(k(4)=\frac{0}{\ln 6}=0\), but \(-2\) does not, because there the logarithm would receive 0.

Example 3

State intervals of continuity

Find the intervals on which \(s(x)=\dfrac{2}{\sqrt{x+1}}+\dfrac{1}{x-3}\) is continuous.

Solution

The root needs \(x+1\ge 0\), and it stands in a denominator, so it cannot be 0. Together these give \(x+1>0\), so \(x>-1\). The second denominator removes \(x=3\).

Both terms are built from the building blocks, so \(s\) is continuous at every input inside its domain. Every input of the domain, \(x>-1\) with \(x\ne 3\), is inside it, so the two pieces of the domain are the intervals of continuity:

\[(-1,3)\cup(3,\infty)\]

Every bracket is round, because \(s\) has no value at \(-1\) or at 3, and \(\infty\) is not a number.

Example 4

Check continuity at a domain endpoint

The function \(w\) is defined only on \([0,2]\), by \(w(x)=x^2+1\) for \(0\le x<2\) and \(w(2)=3\). On what interval is \(w\) continuous? Justify your answer.

Solution

For \(0<x<2\), \(w(x)=x^2+1\) is a polynomial, so \(w\) is continuous at every input inside \([0,2]\). Each end of the domain has values on one side only.

At the left end, use the limit from the right:

\[\lim_{x\to 0^+}\left(x^2+1\right)=1=w(0)\]

The limit equals the value, so \(w\) is continuous from the right at 0. At the right end, use the limit from the left, where the formula \(x^2+1\) still applies:

\[\lim_{x\to 2^-}\left(x^2+1\right)=5\neq 3=w(2)\]

The test fails at 2, so \(w\) is continuous on \([0,2)\) but not on \([0,2]\).

Each example is one of the four skills of topic 1.12 in Which & Why: AP Calculus.