Given the function FX = cos ^ 2x + asinx. When a = 2, find the range of function FX

Given the function FX = cos ^ 2x + asinx. When a = 2, find the range of function FX

Let t = SiNx
Then f = (1-T ^ 2) + 2T = - T ^ 2 + 2T + 1 = - (t-1) ^ 2 + 2
Because | t|