If $\tan^{-1}(x + 1) + \tan^{-1} x + \tan^{-1}(x - 1) = \tan^{-1} 3$, then for $x < 0$ the value of $500x^4 + 270x^2 + 997 = \dots$
Show Hint
When an inverse trig equation evaluates to a polynomial containing only even powers of $x$ (like $x^4$ and $x^2$), it is a massive hint that $x^2$ is an integer (most commonly 1). Testing $x = \pm 1$ early can save immense calculation time.