TITLE: Proof of the tangent addition theorem for complex numbers
QUESTION [5 upvotes]: How can the tangent addition theorem for complex numbers
$$\tan(z+w) = \frac{\tan z + \tan w }{1 - \tan z \tan w}$$
be proved?
For real numbers, the wikipedia page says one can use Euler's formula
$$e^{ix} = \cos x + i\sin x.$$
But I dont see if and how this helps assuming complex numbers too.
So I'd be happy if somebody could give me a hint to get started.

REPLY [7 votes]: the proof is the same as for real numbers. You do need to convince yourself of the two addition formulas over $\mathbb C,$ namely
$$ \sin(z + w) = \sin z \; \cos w + \cos z \; \sin w, $$ with
$$ \cos(z+w) = \cos z \; \cos w - \sin z \; \sin w.  $$
These follow from identities such as
$$  \cos z = \frac{e^{iz} +e^{-iz} }{2}  $$ and
$$  \sin z = \frac{e^{iz} -e^{-iz} }{2i}.  $$
Then, same as for the reals, write out the fraction
$$ \tan(z+w) = \frac{\sin(z+w)}{\cos(z+w)}  $$
and divide numerator and denominator by $\cos z \; \cos w.$

REPLY [4 votes]: One way to do it would be to extend the identity from the real case by analyticity. Let
$$ f(z,w) = \tan(z+w) - \frac{\tan z+\tan w}{1-\tan z\tan w}$$
I'll take your word that this is identically zero on $\mathbb R\times\mathbb R$. Temporarily fix $z_0\in\mathbb R$ and consider the function $w\mapsto f(z_0,w)$. This is a meromorphic function of $w$, and since it is identically zero for $w\in \mathbb R$, it is actually zero for all $w$.
So $f$ is zero on $\mathbb R\times \mathbb C$. Now fix $w_0\in\mathbb C$ and consider $z\mapsto f(z,w_0)$ . . .