(1)当a
(2)求f(x)=(a
解
2cos2x-sin2x===.
(2)∵a
∵-≤x≤0,∴≤2x+≤.7分∴-1≤sin(2x+)≤.
∴≤f(x)≤.11分∴函数f(x)的值域为[,].