f(x)=2cos²x-2acosx-2a+1
=2[cosx-(a/2)]²-(a²/2)-2a+1
则:
{ -4a+3 (a>2)
g(a)={ -(a²/2)-2a+1 (-2≤a≤2)
{ 3 (a