What are the conditions for $\arctan x+\arctan y+\arctan z=\arctan\frac{x+y+z-xyz}{1-xy-yz-zx}$ to be true

trigonometry

This is the formula:

$$\arctan x+\arctan y+\arctan z=\arctan\frac{x+y+z-xyz}{1-xy-yz-zx}$$

Should the condition be $|xy+yz+zx|<1$?

Related: Why does the equation with $2 \arctan(x)$ and other Inverse Trigonometric functions have weird conditions?

Best Answer

It is sufficient that the sum of the three arctangents is between $\pm\pi/2.$

For $x,y,z\in\mathbb R,$ the value of $$\frac{x+y+z-xyz}{1-xy-xz-yz}\in\mathbb R\cup\{\infty\}$$ is always equal to $$\tan(\arctan x + \arctan y + \arctan z)\in\mathbb R\cup\{\infty\}, $$ since $$\tan(\arctan x) = x \text{ for every } x\in\mathbb R$$ and for all $a,b,c\in\mathbb R,$ $$ \tan(a+b+c) = \frac{\tan a+\tan b+\tan c-\tan a\tan b\tan c}{1 - \tan a\tan b - \tan a \tan c - \tan b\tan c} \in\mathbb R\cup\{\infty\}. $$ (This $\text{“}\infty\text{”}$ is neither $+\infty$ nor $-\infty,$ but is approached by going in either the positive or the negative direction, so $\mathbb R\cup\{\infty\}$ is topologically a circle.)

However, in some cases $\arctan (\tan a) \ne a,$ namely in those cases in which $a\notin(-\pi/2,+\pi/2).$