I have to find range of this function $$ f(x) = \frac{x}{x^2+x+1} + \frac{x^2}{x^4+x^2+1} $$
I did it by using derivation as follows: $D_f(x)=\mathbb{R}$ so it suffices to check $\lim_{x \to \pm\infty } f(x)$ and $\max/\min$ points.
So I find $$ f'(x) = \frac{x(x+2)}{(x^2+x+1)^2} - \frac{2x(x^4-1)}{(x^4+x^2+1)^2} $$ so $$ f'(x) = -\frac{x^6+2x^4-2x^2-1}{(x^2-x+1)^2 (x^2+x+1)^2} = 0 \quad\implies\quad x = \pm1 $$ Finally, $$ \begin{align} \lim_{x \to -\infty} f(x) &= 0 \\ \lim_{x \to \infty} f(x) &= 0 \\ f(1) &= \frac23 \\ f(-1) &= -\frac{2}{3} \end{align} $$ so $$ R_f = \biggl[ -\frac{2}{3}, +\frac{2}{3} \biggr] $$ Now my question is:
Is there another way to find range, like substitution or ...
Thanks for any hint.
Remark: I tried $x = \tan a$ (years ago) to obtain the range of
$$
y = \frac x{x^2+1}
\quad\implies\quad
y = \frac 12 \sin (2a)
$$
but it seems this substitution doesn't work here.
Noticing that if $x\ne \pm 1$,$$ \begin{aligned} f(x) & =\frac{x}{x^2+x+1}+\frac{x^2}{x^4+x^2+1} \\ & =\frac{x(x-1)}{x^3-1}+\frac{x^2\left(x^2-1\right)}{x^6-1} \\ & =\frac{x^5-x}{x^6-1} \\ & =\frac{x\left(x^4-1\right)}{x^6-1} \end{aligned} $$ therefore for any $x\ne \pm 1,f(-x)=-f(x)$ and $f(-1)=-\frac 23=-f(1)$ , $f(-(-1))=\frac 23 =-f(-1)$. Hence $f$ is an odd function.
Now let $g(x)=\dfrac{x}{x^2+x+1}$, then $$ f(x) =\frac{x}{x^2+x+1}+\frac{x^2}{x^4+x^2+1} =g(x)+g\left(x^2\right) $$ We are going to investigate the range of $g(x)$ by letting $$ \begin{aligned} & \qquad \quad y=\frac{x}{x^2+x+1}, \quad \forall x \in \mathbb{R} \\ & \Rightarrow \quad y x^2+(y-1) x+y=0 \quad \forall x \in \mathbb{R} \\ & \Rightarrow \quad \Delta \geqslant 0 \Rightarrow(y-1)^2-4 y^2 \geqslant 0 \\ & \Rightarrow \quad 3 y^2+2 y-1 \leqslant 0 \\ & \Rightarrow \quad(3 y-1)(y+1) \leqslant 0 \\ & \Rightarrow \quad-1 \leq y \leq \frac{1}{3} \end{aligned} $$ $$g_{max}=\frac 13 \textrm{ at }x=1 \textrm{ and } g_{min}=-1 \textrm{ at }x=-1 $$ As $f(x)$ is odd, therefore we only need to study the extrema of $f(x)$ for $x\ge 0.$ For $x\ge 0$, both $g(x)$ and $g(x^2)$ attains their minimum at $x=0$ and maximum values $\frac 13$ at respectively $x=1$ and $x^2=1$. For $x>0$, we can conclude that $f_{max}= \frac 13+ \frac 13= \frac 23$ at $x=1$. As $f(x)$ is odd, therefore the minimum value of $f(x)$ is $-\frac 23.$ Hence the range of $f(x)$ is $[-\frac 23, \frac 23].$