Q.
Consider the function $y=\frac{x^2+x+1}{\left(x^2+1\right)}$, where $x=\tan \theta$ and $\theta \in R-(2 n+1) \frac{\pi}{2} ; n \in I$.
Also $L$ is the least value of the function and $G$ is the greatest value of the function for all permissible values of $x$.
The value of $(L + G)$ is equal to
Sequences and Series
Solution: