问题
解答题
若f(x)=sinθcosx+(tanθ-2)sinx-sinθ是偶函数,θ为常数,且f(x)的最小值是0.
(1)求tanθ的值;
(2)求f(x)的最大值及此时x的集合.
答案
(1)∵函数f(x)是偶函数,
∴∀x∈R,都有f(-x)=f(x),化为(tanθ-2)sinx=0,解得tanθ=2.
(2)由
解得sin2θ+cos2θ=1
=2sinθ cosθ
或sinθ= 2 5 5 cosθ= 5 5 sinθ=- 2 5 5 cosθ=- 5 5
此时,f(x)=sinθ(cosx-1).
当sinθ=
时,f(x)=2 5 5
(cosx-1),最大值为0,不合题意,舍去;2 5 5
当sinθ=-
时,f(x)=-2 5 5
(cosx-1)最小值为0.2 5 5
当cosx=-1时,f(x)有最大值为
,自变量x的集合为{x|x=2kπ+π,k∈Z}.4 5 5