Plug the hole: which value makes $g$ continuous at $x=5$?
The function $g(x) = \dfrac{x^2-25}{x-5}$ is defined everywhere except $x=5$ (you can't divide by zero). So at $x=5$, the function has a "hole" — a missing point. The question: if we get to pick any value for $g(5)$ that we want, what value fills the hole smoothly so the function is continuous?
The trick is that the algebra almost works out. $x^2-25$ and $x-5$ share a factor, and once we cancel, the answer is obvious. But the cancellation is illegal at $x=5$ (we'd be dividing by zero), so we need a careful two-step dance: simplify for $x \neq 5$, then ask what the simplified function approaches as $x \to 5$.
Q4 introduced the 3-condition test for continuity. Q5 looked at one-sided limits (jumps). Q8 introduces the third kind of discontinuity — the removable discontinuity (a hole), so called because you can "remove" it by filling in one single value.
The three flavors of discontinuity, in plain language:
A function $g$ is continuous at $x = a$ if and only if all three hold:
At $x=5$ right now, condition 1 fails — $g(5)$ is undefined (denominator is 0). The question is asking: if we define $g(5)$ to be the value that makes condition 3 hold, what value do we need?
$g(x) = \dfrac{x^2 - 25}{x - 5}$ for $x \neq 5$
The numerator is a difference of squares: $x^2 - 25 = x^2 - 5^2 = (x-5)(x+5)$.
So for $x \neq 5$: $\;g(x) = \dfrac{(x-5)(x+5)}{x-5} = x + 5$
Important: the cancellation is only valid when $x \neq 5$. At $x=5$ we still have $\frac{0}{0}$ — an indeterminate form, not a real number. But the cancellation tells us what the function is near 5.
For $x \neq 5$, $g(x) = x + 5$. The limit as $x \to 5$ is straightforward:
$$\lim_{x \to 5} g(x) = \lim_{x \to 5} (x + 5) = 5 + 5 = 10$$
Even though $g(5)$ is undefined, the function is heading toward $10$ from both sides. So if we define $g(5) = 10$, the function becomes continuous — the hole gets filled.
The continuity test says: the value we plug in must equal the limit. The limit, after we simplify the algebra, is $x+5$, evaluated at $5$, which is $10$. That's the unique value that makes $g$ continuous. Any other value (say, 7, or 100) would leave a "filled hole" that's still discontinuous — the curve would have a single out-of-place point.
$\boxed{g(5) = 10}$ is the answer. It's the value the rest of the function was "trying" to be at $x=5$.
$g(x) = \dfrac{x^2-25}{x-5}$ looks like the line $y = x + 5$ — but with a hole punched at the point $(5, 10)$. The line is the "filled-in" version; the original function is the line minus that one point.
Sketch (in your head or on paper):
Draw the line $y = x + 5$ from $(0, 5)$ through $(1,6), (2,7), (3,8), (4,9), \ldots, (10, 15)$.
Now punch a small open circle at the point $(5, 10)$.
That's the whole graph — a straight line, with one point missing. The function is "trying" to be 10 there, but undefined.
If a graph were provided with the question, it would be embedded here. Since this one is text-only, the sketch above is your reference.
df.fillna(limit_value) — but the *right* value to fill with is usually the limit of the surrounding data, not zero. Q8 is the same problem in miniature: identify the limit (10), then plug it in. Same logic, single-variable form.
Mini-question. $h(x) = \dfrac{x^2 - 9}{x - 3}$ for $x \neq 3$. What value of $h(3)$ makes $h$ continuous everywhere?
$x^2 - 9 = (x-3)(x+3)$, so $h(x) = x+3$ for $x \neq 3$. Limit as $x \to 3$ is $3+3 = 6$. So $h(3) = 6$.
The pattern: factor, cancel, evaluate the simplified form at the bad point. Works for any rational function where the numerator has the denominator's factor.
______ to make $f$ continuous. What changes from Q8?
factor → cancel → evaluate simplified form at the hole → done.fillna(limit) for missing data.© Data Science Tutor · datascience.aidalee.com