Answer
The domain of the function is $(-\infty, 0) \cup (0, \infty)$.
The range of the function is $(-\infty, 0) \cup (0, \infty)$.
Work Step by Step
The denominator is not allowed to be positive since dividing $0$ to any number gives an undefined expression.
This means the value of $x$ cannot be zero.
Thus, the domain is any real number except zero.
In interval notation, the domain is $(-\infty, 0) \cup (0, \infty)$.
The range is the set that contains all the possible values of $f(x)$ (or $y$).
Note that the value of $\dfrac{1}{x}$ will never be equal to zero since when any non-zero number is divided to $1$, the quotient is always a non-zero number.
Thus, the range is any real number except zero.
In interval notation, the range is $(-\infty, 0) \cup (0, \infty)$.