In my maths lesson today we were simplifying fractions by factorising. One question was something like this: $\frac{x-2}{3x-6}$, which I simplified as $\frac{x-2}{3x-6}=\frac{x-2}{3(x-2)}=\frac{1}{3}$. It got me wondering however, whether these expressions are really equal, specifically in the case $x=2$, where the former expression is undefined but the latter takes the value $\frac{1}{3}$.
Since the expressions only differ at a single point are they for all intents and purposes equal, or are they theoretically different? If I wanted to be entirely correct would I have to write $\frac{x-2}{3x-6}=\frac{1}{3}$ where $x \neq 2$?
My maths teacher explained that at $x=2$ the expression evaluates to $\frac{0}{3 \times0}$ and the zeros effectively cancel out. I wasn't altogether satisfied with this explanation because as far as I know $\frac{0}{0}$ is undefined.
Thanks in advance!
I think it may help to frame it as this:
One one hand, $\frac{x-2}{3x-6}$ is a function that is defined on $\mathbb{R}$ except at $x=2$, and at every point it is defined it is equal to $\frac{1}{3}$.
On the other hand, $\frac{1}{3}$ can be seen as a function that must take in ANY input and give you $\frac{1}{3}$ back. In particular, the domain restriction at $x=2$ prevents $\frac{x-2}{3x-6}$ to be the same thing as $\frac{1}{3}$.
Thus, It would not be correct to simplify $\frac{x-2}{3x-6}$ to $\frac{1}{3}$ unless we are working in a domain where $x \neq 2$.