函数f(x)=在(-∞,+∞)上单调,则a的取值范围是( )
(A)(-∞,-]∪(1,]
(B)[-,-1)∪[,+∞)
(C)(1,]
(D)[,+∞)
A解析:由题意知,或解得1<a≤或a≤-.