Ethan S. answered 05/14/20
We can start here by looking at the restriction on our domain: what values can't x be? Well, the denominator of our rational function can't equal zero, so we can find our restrictions by solving the "equation" x2 − 4 ≠ 0:
x2 − 4 ≠ 0
x2 ≠ 4
x ≠ ±2
So r(-2) and r(2) are both undefined, but how can we tell that these discontinuities are "removeable?" For this, we'll need to factor and simplify our expression first. Let's focus on the denominator first:
x3 − 2x2 − 4x + 8
x2(x − 2) − 4(x − 2)
(x2 − 4)(x − 2)
Our rational function is now r(x) = , and we can cancel the x2 − 4 in the numerator and denominator to give us the function r(x) = x − 2.
For all values of x ≠ ±2, r(x) will look like x - 2; r(2) and r(-2) will show up on our graph as infinitesimal holes. We can "repair" these discontinuities by simply defining them to be the values 2 − 2 and -2 − 2; 0 and -4. Patching these conditions in, our piecewise function looks like