The inequality is :$$\sin^2x+a\cos x+a^2>1+\cos x$$
I have simplified it to:$$\cos^2x+(1-a)\cos x-a^2<0$$
My approach was that since this is in the form of a parabola the minimum value for x must be $\frac{-b}{2a}$ form so after applying conditions I get : $\frac{a-1}{2}$ which should be equal to -1 since that is the minimum value of cos.
But I get answer -1 which is wrong, where have I flawed?