Find the critical points of the function y=theta-2cos(theta) at theta=[-pi,pi]. Determine the s coordinates of the crititcal points that correspond to a local minimum and maximum. Find the intervals on which the function is increasing or decreasing.