Tutorials › Real Analysis › Continuity of Rational Functions

Continuity · Tutorial 339 of 1000

Continuity of Rational Functions

See how polynomial continuity and a nonvanishing denominator combine to give continuity of rational functions on their domains.

Intermediate 12 min read

What You'll Learn

  • Define a rational function together with its natural domain
  • Prove that a continuous denominator stays bounded away from zero near a point where it is nonzero
  • Establish the quotient rule for continuity
  • Explain why the natural domain of a rational function is open
  • Apply the results to explicit rational functions and restricted domains
  • Distinguish continuity on a rational function’s domain from a continuous extension

Division Requires a Nonzero Denominator

The previous tutorial established continuity of polynomial functions and showed how sums and products preserve continuity. A quotient introduces one additional condition: division is defined only when the denominator is nonzero. The key local fact is that if a continuous denominator is nonzero at a point, it stays nonzero for all sufficiently nearby inputs.

Definition: Let \(p\) and \(q\) be polynomials, with \(q\) not the zero polynomial. The rational function determined by \(p\) and \(q\) is the function \(r:D_q\to\mathbb{R}\) given by \(r(x)=p(x)/q(x)\), where \(D_q=\{x\in\mathbb{R}:q(x)\ne0\}\). The set \(D_q\) is the natural domain of this expression.

The domain is part of the function’s specification. For instance, the expression \((x^2-9)/(x-3)\) is defined only when \(x\ne3\), even though its numerator can be factored and a simpler formula is available away from \(3\). A cancellation may give an equal formula on the original domain, but it does not by itself put an excluded input back into that domain.

A Nonzero Denominator Stays Away from Zero Nearby

Continuity gives more than the fact that the denominator remains nonzero. It gives a positive lower bound for its absolute value near the point. That bound is what makes division estimates possible.

Theorem: Let \(g:E\to\mathbb{R}\) be continuous at \(a\in E\), and suppose \(g(a)\ne0\). There is a \(\delta_0>0\) such that \[ |g(x)|>\frac{|g(a)|}{2} \] whenever \(x\in E\) and \(|x-a|<\delta_0\).

Proof. Set \(c=|g(a)|\), so \(c>0\). By continuity of \(g\) at \(a\), there is a \(\delta_0>0\) such that \(|g(x)-g(a)|<c/2\) whenever \(x\in E\) and \(|x-a|<\delta_0\). The reverse triangle inequality gives \[ |g(x)|\geq |g(a)|-|g(x)-g(a)|>c-\frac{c}{2}=\frac{c}{2}. \] This proves the claim. In particular, \(g(x)\ne0\) for all such \(x\). \(\square\)

The Quotient Theorem

The local lower bound controls the denominator in a quotient difference. Continuity of the numerator and denominator then controls the two changing quantities in its numerator.

Theorem: Let \(f,g:E\to\mathbb{R}\), and let \(a\in E\). If \(f\) and \(g\) are continuous at \(a\) and \(g(a)\ne0\), then \(f/g\) is continuous at \(a\), where the quotient is considered on the domain \(\{x\in E:g(x)\ne0\}\).

Proof. Write \(c=|g(a)|>0\). By the preceding theorem, choose \(\delta_0>0\) such that \(|g(x)|>c/2\) whenever \(x\in E\) and \(|x-a|<\delta_0\). Fix \(\varepsilon>0\). Continuity of \(f\) gives \(\delta_f>0\) such that \[ |x-a|<\delta_f\quad\Longrightarrow\quad |f(x)-f(a)|<\frac{\varepsilon c}{4} \] for \(x\in E\). If \(f(a)\ne0\), continuity of \(g\) also gives \(\delta_g>0\) such that \[ |x-a|<\delta_g\quad\Longrightarrow\quad |g(x)-g(a)|<\frac{\varepsilon c^2}{4|f(a)|}. \] If \(f(a)=0\), no additional condition involving \(\delta_g\) is needed. Choose \(\delta\) to be the minimum of \(\delta_0\), \(\delta_f\), and \(\delta_g\) when \(f(a)\ne0\); when \(f(a)=0\), choose \(\delta=\min\{\delta_0,\delta_f\}\). For \(x\in E\) with \(|x-a|<\delta\), the denominator \(g(x)\) is nonzero. The identity \[ \frac{f(x)}{g(x)}-\frac{f(a)}{g(a)} = \frac{g(a)(f(x)-f(a))-f(a)(g(x)-g(a))}{g(x)g(a)} \] and the triangle inequality imply \[ \left|\frac{f(x)}{g(x)}-\frac{f(a)}{g(a)}\right| \leq \frac{|f(x)-f(a)|}{|g(x)|} + \frac{|f(a)|\,|g(x)-g(a)|}{|g(x)|c}. \] The first term is less than \((\varepsilon c/4)/(c/2)=\varepsilon/2\). If \(f(a)\ne0\), the second term is less than \[ \frac{|f(a)|}{(c/2)c}\,\frac{\varepsilon c^2}{4|f(a)|} =\frac{\varepsilon}{2}. \] If \(f(a)=0\), the second term is zero. Thus in either case the quotient difference is less than \(\varepsilon\). This proves continuity at \(a\). \(\square\)

Continuity of Rational Functions on Their Domains

The quotient theorem applies directly to polynomials: the numerator and denominator are continuous everywhere, and the theorem applies at each point where the denominator is nonzero. The natural domain also has a useful geometric property.

Theorem: The natural domain \(D_q=\{x\in\mathbb{R}:q(x)\ne0\}\) of a rational function is open. The rational function \(r(x)=p(x)/q(x)\) is continuous at every point of \(D_q\).

Proof. Fix \(a\in D_q\), so \(q(a)\ne0\). Polynomials are continuous at every real number by the result of the previous tutorial. Apply the nonzero-denominator theorem to \(q\) at \(a\). It provides \(\delta_0>0\) such that \(q(x)\ne0\) whenever \(|x-a|<\delta_0\). Hence \((a-\delta_0,a+\delta_0)\subseteq D_q\). Since this holds for every \(a\in D_q\), the set \(D_q\) is open. At any \(a\in D_q\), both \(p\) and \(q\) are continuous at \(a\), and \(q(a)\ne0\). The quotient theorem therefore shows that \(p/q\) is continuous at \(a\). If \(D_q\) is empty, the openness assertion holds and there are no points at which to check continuity. \(\square\)

This theorem is a domain-specific continuity statement: it does not claim that a rational function is defined at zeros of its denominator. If one restricts a rational function to any subset \(E\subseteq D_q\), it remains continuous at every point of \(E\), since the continuity estimates on \(D_q\) also work when inputs are restricted to \(E\).

Worked Estimates and Domain Checks

Worked Example: An Explicit Delta for a Quotient

Let \(r(x)=(x^2+1)/(x+2)\), and check continuity at \(a=1\) with \(\varepsilon=0.04\). The denominator is nonzero at \(1\), and \[ r(1)=\frac{1^2+1}{1+2}=\frac{2}{3}. \] Subtracting this value gives \[ \begin{aligned} r(x)-r(1) &=\frac{x^2+1}{x+2}-\frac{2}{3}\\ &=\frac{3x^2+3-2x-4}{3(x+2)}\\ &=\frac{3x^2-2x-1}{3(x+2)} =\frac{(x-1)(3x+1)}{3(x+2)}. \end{aligned} \] If \(|x-1|<1/2\), then \(1/2<x<3/2\). Thus \(|3x+1|<11/2\) and \(3(x+2)>3(5/2)=15/2\), so \[ \left|\frac{3x+1}{3(x+2)}\right|<\frac{11}{15}<1. \] It follows that \(|r(x)-r(1)|\leq|x-1|\). Choose \(\delta=\min\{1/2,0.04\}=0.04\). Whenever \(|x-1|<\delta\), the denominator is nonzero and \[ |r(x)-r(1)|\leq|x-1|<0.04. \] For example, at \(x=1.02\), the factored difference has absolute value \[ \frac{0.02(4.06)}{3(3.02)} =\frac{0.0812}{9.06}<0.04. \] The interval estimate, rather than this single test input, proves the epsilon-delta implication.

Worked Example: A Rational Function with Two Excluded Inputs

Consider \(s(x)=(x+3)/(x^2-4)\). The denominator factors as \[ x^2-4=(x-2)(x+2), \] so its natural domain is \(D=\mathbb{R}\setminus\{-2,2\}\). At \(a=0\), the denominator is \(-4\), and \[ s(0)=\frac{3}{-4}=-\frac{3}{4}. \] The quotient theorem applies because the numerator and denominator are polynomials and the denominator is nonzero at \(0\). Therefore \(s\) is continuous at \(0\). The domain is open by the rational-function theorem; for example, the interval \((-1,1)\) is contained in \(D\). The exclusions are essential. At \(x=2\) and \(x=-2\), the displayed expression has denominator zero, so \(s\) has no value there. Continuity is asserted at points of \(D\), not at these excluded inputs.

Worked Example: Cancellation Does Not Change the Original Domain

Let \(t(x)=(x^2-9)/(x-3)\), with its natural domain \(D=\mathbb{R}\setminus\{3\}\). For \(x\in D\), factor the numerator and cancel the nonzero factor \(x-3\): \[ t(x)=\frac{(x-3)(x+3)}{x-3}=x+3. \] Thus \(t(4)=7\), and, for \(x\in D\), \[ |t(x)-t(4)|=|(x+3)-7|=|x-4|. \] Given any \(\varepsilon>0\), choosing \(\delta=\varepsilon\) proves continuity at \(4\): if \(x\in D\) and \(|x-4|<\delta\), then \(|t(x)-t(4)|<\varepsilon\). The simplified rule \(x+3\) also has a value at \(3\), namely \(6\), but the original quotient does not. Defining \(t(3)=6\) would create an extension of \(t\), a different function with a larger domain. The cancellation identity proves equality only for \(x\ne3\); it does not establish that the original function is defined at \(3\).

How to Use the Quotient Rule Carefully

To apply the continuity theorem, check the point before manipulating the quotient. First verify that the point belongs to the function’s domain, which means the denominator is nonzero there. Then use polynomial continuity for the numerator and denominator and apply the quotient theorem. This order prevents a common mistake: treating a simplified expression as though it had automatically changed the original domain.

The local lower bound in the proof explains why the hypothesis \(g(a)\ne0\) matters. Near such a point, the denominator cannot become arbitrarily small, so changes in the numerator and denominator can be controlled together. At a zero of the denominator, that argument is unavailable, and the quotient may be undefined or may fail to have a continuous extension. The theorem makes no claim at such a point.

Check Your Understanding

Use the quotient theorem and the domain arguments in this tutorial to answer the following questions.

  1. Why does continuity of \(g\) and the condition \(g(a)\ne0\) imply that \(g(x)\) stays nonzero for all sufficiently nearby \(x\)?
  2. State the condition on the denominator needed to conclude that \(f/g\) is continuous at \(a\).
  3. Find the natural domain of \(u(x)=(2x-1)/(x^2-1)\).
  4. For \(v(x)=(x^2-16)/(x-4)\), explain why canceling \(x-4\) does not put \(4\) in the original function’s domain.
  5. Why is the natural domain of a rational function open?