Let a be a constant and a > 1,0 < x ≤ 2 π, then f (x) = cos ^ 2x Let a be a constant, and a > 1, 0 be less than or equal to x, 2 be less than or equal to, and find the maximum value of the function f (x) = cos square x + 2asinx-1

Let a be a constant and a > 1,0 < x ≤ 2 π, then f (x) = cos ^ 2x Let a be a constant, and a > 1, 0 be less than or equal to x, 2 be less than or equal to, and find the maximum value of the function f (x) = cos square x + 2asinx-1

f(x)=cos^2x+2asinx-1
=1-(sinx)^2+2asinx-1
=-(sinx)^2+2asinx
=-(sinx-a)^2+a^2
Let t = SiNx, for this quadratic function, when t = a, find the maximum
But a > 1, so take the maximum value when t = 1, substitute t = 1 into the function, and get the maximum value as - 1 + 2A
That is, when SiNx = 1, the maximum f (x) = 2a-1