Question: How do I find the maximize and minimize of this funciton?

I want to find the maximize and minimize of the function
f:=x->(cos(x)+sqrt(3)*sin(x))/(cos(x)+sin(x)+2);
I tried 
minimize(f(x), x, location = 'true');
and
maximize(f(x), x, location = 'true');
But I didn't get the results.  How do I find the maximize and minimize of above funciton?

Please Wait...