I need help to plot the graph $$y = 2 \arctan x + \arctan \frac{2x}{x^2-1}.$$ I'm trying to simplify the expression by setting $$ \tan(y) = \tan\left(2 \arctan x + \arctan \frac{2x}{x^2-1}\right). $$ However, I'm always ending up with the RHS being equal to $0$ which gives me $y = 0$.
Plotting the graph shows me that it consists of three regions, one of which the y - value is $-\pi$, one where it's 0, and one where it's $\pi$. How can you from the given function determine these regions? Is there anything special you have to do before starting to simplify the expression. I assume it has to do something with the $x^2-1$ that in some way or another changes the sign of the expression for some given x's and thus, changing the overall value of the function of y.
Thanks for the help!