The number of real solutions of $\tan^{-1}x + \tan^{-1}(2x) = \frac{\pi}{4}$ is
Show Hint
When solving equations involving inverse trigonometric functions, always check the validity of the solutions obtained. Extraneous roots can be introduced by the formulas used, so substitute the final answers back into the original equation or check against the domain/range constraints of the functions.