问题
填空题
函数f(x)=2sinxcosx+sinx+cosx的最大值为______.
答案
令t=sinx+cosx=
sin(x+2
)∈[-π 4
,2
],则 t2=1+2sinxcosx,2
则y=t2+t-1=(t+
)2-1 2
∈[-5 4
,1+5 4
],2
即函数f(x)的最大值为 1+
,最小值为 -2
.5 4
故答案为 1+
.2
函数f(x)=2sinxcosx+sinx+cosx的最大值为______.
令t=sinx+cosx=
sin(x+2
)∈[-π 4
,2
],则 t2=1+2sinxcosx,2
则y=t2+t-1=(t+
)2-1 2
∈[-5 4
,1+5 4
],2
即函数f(x)的最大值为 1+
,最小值为 -2
.5 4
故答案为 1+
.2