and the function is undefined if x=2
Now the question you need to ask yourself is What am I allowed to put in for x and y? in the first we are using the set of Real numbers.
As for the 2nd we are only using integers.
So if we only put integers in the 2nd what will come out....
Think on this and good luck.