The domain is found by finding restrictions for the x-value. In other words, what the x-value cannot be.
For example, in y=1/x the domain is all real numbers except for zero. Or (-?,0)u(0,?). This is based on the fact that x cannot be zero since it is in the denominator.