Tutorials › Calculus I › Removable Holes and Derivative Existence

The Derivative from First Principles · Tutorial 367 of 1495

Removable Holes and Derivative Existence

Learn how to extend a rational function across a removable hole and determine the derivative of that extension directly from its difference quotient.

Intermediate 10 min read

What You'll Learn

  • Identify a removable hole in a rational function.
  • Define the unique continuous extension at the hole.
  • Use the difference quotient to calculate the extension’s derivative there.
  • Explain why a finite limit guarantees differentiability for rational functions.
  • Distinguish a canceled expression from the original function’s domain.

Introduction

A rational formula can fail to define a function at a particular input because its denominator is zero there. Sometimes the failure is only a hole: nearby values approach a finite number, and assigning that number at the missing input produces a continuous extension.

Continuity alone does not guarantee differentiability in general. For rational functions, however, the structure of the numerator and denominator provides more information. When the limit at a hole is finite, cancellation reduces the local formula to a function whose difference quotient has a finite limit.

Removable Holes and Continuous Extensions

Let \(P\) and \(Q\) be polynomials, with \(Q\) not the zero polynomial, and consider \(f(x)=P(x)/Q(x)\) wherever \(Q(x)\ne 0\). Suppose \(Q(a)=0\). The formula does not define \(f(a)\), so we ask what happens as \(x\) approaches \(a\) through inputs where \(f\) is defined.

Definition: If \(\lim_{x\to a} f(x)=L\) exists and is finite, the hole at \(a\) is removable. The continuous extension at \(a\) is the function \(F\) that agrees with \(f\) for \(x\ne a\) near \(a\) and has \(F(a)=L\).

The value \(L\) is the only value that makes this extension continuous at \(a\). The original rational function remains undefined at \(a\); it is the extended function \(F\) that has a value there.

To test differentiability at \(a\), use the definition of the derivative. For the extension, it is

$$ F'(a)=\lim_{h\to 0}\frac{F(a+h)-F(a)}{h}, $$

provided this limit exists as a finite number. The value \(h=0\) is excluded from the quotient, and \(h\) must be small enough that \(F(a+h)\) is defined.

Worked Example: Extending a Simple Rational Function

Worked Example: Finding the Derivative at a Hole

For \(x\ne 2\), let \(f(x)=(x^2-4)/(x-2)\). Find the continuous extension at \(x=2\), then calculate its derivative there from the difference quotient.

Factor the numerator and cancel the common factor for \(x\ne 2\):

$$ f(x)=\frac{(x-2)(x+2)}{x-2}=x+2,\qquad x\ne 2. $$

Thus \(\lim_{x\to 2}f(x)=2+2=4\). Define \(F(2)=4\), and let \(F(x)=f(x)\) for \(x\ne2\). For nonzero \(h\),

$$ \frac{F(2+h)-F(2)}{h} = \frac{(2+h+2)-4}{h} = \frac{h}{h} = 1. $$

The quotient is \(1\) for every sufficiently small nonzero \(h\), so its limit is \(1\), and \(F'(2)=1\).

Check: The extension is \(F(x)=x+2\) on both sides of \(2\), with \(F(2)=4\). Its difference quotient at \(2\) is indeed \(1\), as calculated directly.

Why Finite Limits Give Derivatives

The example reflects a general fact about rational functions. If the rational expression has a finite limit at a denominator zero, its numerator must contain at least as many factors of \(x-a\) as its denominator. After cancellation, the extension is either a rational function with nonzero denominator at \(a\), or a product with a positive power of \(x-a\). Both forms have a finite difference-quotient limit there.

Theorem: Let \(P\) and \(Q\) be real polynomials with \(Q\) not identically zero, and suppose \(Q(a)=0\). If \(P(x)/Q(x)\), where defined near \(a\), has a finite limit \(L\) as \(x\to a\), then defining \(F(a)=L\) and \(F(x)=P(x)/Q(x)\) for nearby \(x\ne a\) gives a function differentiable at \(a\).

Here is a proof, including the case where the numerator is the zero polynomial. Since a nonzero polynomial has only finitely many roots, we can choose a neighborhood of \(a\) in which \(Q\) has no zero other than \(a\). This makes the rational expression defined throughout the punctured neighborhood.

1
Handle the zero numerator.
If \(P\) is identically zero, then \(f(x)=0\) at every defined input near \(a\). Its finite limit is \(0\), and the extension is identically zero throughout the neighborhood. Its difference quotient is \(0/h=0\) for \(h\ne0\), so its derivative at \(a\) is \(0\).
2
Factor when the numerator is nonzero.
Suppose \(P\) is not identically zero. Because \(P(a)=0\) is necessary for a finite limit when \(Q(a)=0\), write \(P(x)=(x-a)^m p(x)\) and \(Q(x)=(x-a)^n q(x)\), where \(m,n\) are positive integers and \(p(a)\ne0\), \(q(a)\ne0\). The factors \(p\) and \(q\) are polynomials.
3
Use finiteness to compare the powers.
For \(x\ne a\), the quotient is \((x-a)^{m-n}p(x)/q(x)\). Since \(p(x)/q(x)\) tends to the nonzero number \(p(a)/q(a)\), a negative power of \(x-a\) would make the absolute value of the quotient unbounded. The finite-limit assumption therefore requires \(m\ge n\).
4
Evaluate the extension’s difference quotient.
Let \(k=m-n\ge0\) and \(r(x)=p(x)/q(x)\). The denominator \(q(a)\) is nonzero, so \(r\) is differentiable near \(a\). For \(x\ne a\), \(f(x)=(x-a)^k r(x)\). If \(k=0\), the extension has \(F(a)=r(a)\), and its difference quotient is \([r(a+h)-r(a)]/h\), which tends to \(r'(a)\). If \(k\ge1\), the extension has \(F(a)=0\), and its difference quotient is \(h^{k-1}r(a+h)\). This tends to \(r(a)\) if \(k=1\), and to \(0\) if \(k>1\). Every case has a finite limit, proving differentiability at \(a\).

For clarity, the quotient \(r=p/q\) in the case \(k=0\) has a derivative there because \(q(a)\ne0\). Its first-principles quotient can be written as

$$ \frac{r(a+h)-r(a)}{h} = \frac{q(a)\dfrac{p(a+h)-p(a)}{h} -p(a)\dfrac{q(a+h)-q(a)}{h}} {q(a+h)q(a)}. $$

As \(h\to0\), the polynomial difference quotients tend to \(p'(a)\) and \(q'(a)\), and the denominator tends to \(q(a)^2\ne0\). Thus the limit is \(\bigl(q(a)p'(a)-p(a)q'(a)\bigr)/q(a)^2\), a finite number.

Worked Example: A Higher-Order Cancellation

Worked Example: A Hole with Zero Derivative

For \(x\ne1\), let \(f(x)=(x-1)^2(x+3)/(x-1)\). Find its continuous extension and its derivative at \(1\).

Cancel one factor for \(x\ne1\):

$$ f(x)=(x-1)(x+3). $$

As \(x\to1\), this expression tends to \(0\). Set \(F(1)=0\). With \(h\ne0\),

$$ \frac{F(1+h)-F(1)}{h} = \frac{h\bigl((1+h)+3\bigr)-0}{h} = \frac{h(h+4)}{h} = h+4. $$

Taking the limit as \(h\to0\) gives \(F'(1)=4\).

Check: The extension is \(F(x)=(x-1)(x+3)\), including at \(x=1\). Substitution gives \(F(1)=0\), and its difference quotient at \(1\) is \(h+4\), which tends to \(4\).

Worked Example: Cancellation Leaves a Rational Extension

Worked Example: A Nonlinear Continuous Extension

For \(x\ne1\), let \(f(x)=(x-1)(x^2+1)/\bigl((x-1)(x+2)\bigr)\). Find the extension’s value and derivative at \(1\).

After cancellation, valid for \(x\ne1\), the expression is \((x^2+1)/(x+2)\). Since its denominator is \(3\) at \(x=1\), the limit exists and equals \(2/3\). Define \(F(1)=2/3\). For nonzero \(h\) near zero,

$$ \begin{aligned} \frac{F(1+h)-F(1)}{h} &= \frac{1}{h}\left(\frac{(1+h)^2+1}{3+h}-\frac{2}{3}\right)\\ &= \frac{1}{h}\left(\frac{3(2+2h+h^2)-2(3+h)}{3(3+h)}\right)\\ &= \frac{1}{h}\left(\frac{4h+3h^2}{3(3+h)}\right)\\ &= \frac{4+3h}{9+3h}. \end{aligned} $$

As \(h\to0\), this tends to \(4/9\), so \(F'(1)=4/9\).

Check: The extension value is the canceled expression evaluated at \(1\), namely \((1^2+1)/(1+2)=2/3\). The displayed difference quotient simplifies exactly to \((4+3h)/(9+3h)\), whose limit is \(4/9\).

What the Result Does—and Does Not—Say

The finite-limit condition matters. For example, \(f(x)=(x-2)/(x-2)^2=1/(x-2)\) for \(x\ne2\). Its values do not approach a finite number as \(x\to2\), so there is no continuous extension at \(2\) and no derivative there for an extension of this kind.

Nor does the result say that every continuous function is differentiable. It applies to rational functions at a hole, where polynomial factors control the behavior. A finite limit lets us cancel enough powers of \(x-a\) to get a difference quotient with a finite limit. Other kinds of functions can be continuous at a point and still fail to have a derivative there.

If a value other than the limit is assigned at the hole, the resulting function is discontinuous there and therefore cannot be differentiable there. Thus, for a removable hole, the continuous extension is not just convenient: its value is required for differentiability.

A Common Mistake: Treating Cancellation as a New Value

In the first example, it is tempting to cancel \(x-2\) and conclude that the original function has value \(4\) at \(x=2\). That is incorrect. The original formula still has denominator zero at \(2\), so it is undefined there. Cancellation establishes an equal formula only for \(x\ne2\). To create a function defined at \(2\), one must explicitly define the extension by \(F(2)=4\).

The distinction matters when forming the derivative quotient. The quotient must use the extension’s actual value \(F(2)\), not an assumed value of the original function. Once \(F(2)=4\) is stated, the calculation is valid:

$$ \frac{F(2+h)-F(2)}{h} = \frac{(4+h)-4}{h} = 1,\qquad h\ne0. $$

Check Your Understanding

Use cancellation and the difference quotient at the missing input where appropriate.

  1. For \(x\ne3\), let \(f(x)=(x^2-9)/(x-3)\). What value must the continuous extension assign at \(3\), and what is its derivative there?
  2. For \(x\ne0\), let \(f(x)=x^3/x\). Find the extension’s value and derivative at \(0\).
  3. Why does a finite limit rule out the numerator having fewer factors of \(x-a\) than the denominator?
  4. What is the error in saying that canceling a denominator factor automatically defines the original function at the hole?
  5. For \(x\ne1\), let \(f(x)=(x-1)/(x-1)^2\). Does it have a finite continuous extension at \(1\)? Explain briefly.

Test yourself: Calculus I final exam practice

Ready to check what you know? Work a full-length practice final, then open the complete worked solutions.

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers the full Calculus AB & BC curriculum (the core of Calculus I and II): full review, every practice question, and step-by-step solutions to each one.

QR code to download the Calc Pass app

Get the Calc Pass App

Scan to download and practice on the go, with instant scoring.

Calc Pass Volume 1: 1,114 Practice Questions book cover

Vol. 1: 1,114 Questions

The complete practice question bank, organized by AB & BC topic.

View on Amazon
Calc Pass Volume 2: Solutions Manual book cover

Vol. 2: Solutions Manual

Fully worked solutions to every question in Volume 1.

View on Amazon