Let $f(z)=u(x,y)+iv(x,y)$ be an analytic function $f: D \to E$ and $\exists z_0 \in D : f(z_0)=c$ where $z,z_0 \in \mathbb{C}$ and $x,y \in \mathbb{R}$. Then
$$ f(z)=2u\left(\frac{z+\bar{z_0}}{2},\frac{z-\bar{z_0}}{2i}\right)-\bar{c} \tag1$$ $$ f(z)=2iv\left(\frac{z+\bar{z_0}}{2},\frac{z-\bar{z_0}}{2i}\right)+\bar{c} \tag2$$
There is also a question which mentions an equivalent result from Ahlfors' book. But how do I prove either of those identities?