So you factored and you got .
So that's what you have on the bottom of your fraction.
Now you can't have 0 on the bottom of a fraction, it's naughty.
So any value of x which makes the bottom zero is not allowed.
So whatever values of x that make are not in the domain of the function.
Hence the result given.