How do you find the domain and range of f(x)=cosx+1?