若函数f(x)=根号【(a²-1)x²+(a-1)x+2/(a+1)】的定义域为R,求实数a的取值范