The domain of a function is the set of all values that the x-variable can take.
On the other hand, the range of the function is the set of all values that the function takes when it is evaluated at elements of the domain.
For the given expression:
The denominator is (x-1)^2. Since the denominator must be different from 0, then:
Then, the only restriction for the variable x is not to be equal to 1. Then, the domain of p(x) is the set of all real numbers except 1, which can be written using interval notation as:
Since the exponent of the denominator is 2, then the denominator is always positive. Since the coefficient of the term 1/(x-1)^2 is -1, then the whole expression must always be negative. Additionally, there is no way in which the expression can be equal to 0.
Then, the range of the function is the set of all negative numbers, which can be expressed using interval notation as:
Therefore, the answers are: