For any , there are 4 values of in this interval that yield . But this is not true for or , which is where the maximums and minimums occur. You need to find all the points in the interval where the value of cosine is or 1.