I have a function
$$f(x)=\frac{x^2-4}{x-2}$$
while solving this simply I get $f(1)=3,f(2)=\frac00,f(3)=5,\cdots$ the problem is when I solve this simply I get $$f(x)=x+2$$ and then I found except $f(2)$ all the values were same. Can someone help me where I did the mistake?