The correct option is A (−∞,35]∪(1,∞)
Let y=x2+x+1x2+x−1
⇒y(x2+x−1)=x2+x+1
⇒yx2+yx−y−x2−x−1=0
⇒(y−1)x2+(y−1)x−(y+1)=0
This is a quadratic equation in x. Now y≠1
Also, for the value of x to be real,
(y−1)2−4(y−1)(−(y+1))≥0
⇒y2−2y+1+4(y2−1)≥0
⇒5y2−2y−3≥0
⇒5y2−5y+3y−3≥0
⇒5y(y−1)+3(y−1)≥0
⇒(5y+3)(y−1)≥0
⇒y≤35 or y≥1
Since the value of y cannot be 1, y≤35 or y > 1.
The range of the function is (−∞,35]∪(1,∞)