this is very simple. all you really need to look at is the q(x) or your denominator. then you need to factor. it will look like this:
(x+_) (x-_)
Then all you need to do is make thoes two numbers equal 0 and then right your domian like this:
{x|x not equal to _,_}
then that is your domian.