已知函数f(x)=cos^2(x)-asinx(a∈R,x∈R).是否存在实数a,使得函数f(x)的最大值是3.