The problem:
$$g(x) = \frac{x^3-8}{x-2}$$
Explain why $g$ is not defined at $x=2$.
My solution:
$$g(x) = \frac{x^3-8}{x-2} = \frac{(x-2)(x^2+2x+4)}{x-2}$$
The two $(x-2)$ get canceled $\implies x^2 + 2x + 4$.
--> This should be undefined at $x=2$, not really.
But if we don't change the function it is of course not defined at $x = 2$, because it would give us a $0$ (zero) at the denominator. That gives us infinity.
Please help, not if sure if I am on the right track. Thank you very much