x belongs to [-pai/6,5pai/6],
so
2x-pai/6 belongs to [-pai/2,3pai/2]
draw the picture of this function
according to the picture,we can get that
f(x) belongs to [-1,1],
so
the maximum of the function is 1
the minimun of the function is -1
so
your answer is right