若f(x)=asin(x+π4)+3sin(x−π4)是偶函数,则a=_.

问题描述:

f(x)=asin(x+

π
4
)+3sin(x−
π
4
)是偶函数,则a=______.

f(x)=asin(x+

π
4
)+3sin(x−
π
4
)=a(
2
2
sinx+
2
2
cosx)+3(
2
2
sinx−
2
2
cosx)是偶函数,
取a=-3,可得f(x)=−3
2
cosx
为偶函数.
故答案为:-3.