What is the domain and range of (cosx)^2-1?