This is a question from Stein and Shakarchi's book 'Complex Analysis', chapter 1, exercise 8, page 27.
We have two differentiable functions $f:U \to V$ and $g:V \to \mathbb{C}$ where $U$ and $V$ are two open subsets of $\mathbb{C}$. Let $h=g \circ f$ and define the differential operators
$$ \frac{\partial}{\partial z} =\frac{1}{2}\left(\frac{\partial}{\partial x} +\frac{1}{i}\frac{\partial}{\partial y} \right) $$ and $$ \frac{\partial}{\partial \bar{z}} =\frac{1}{2}\left(\frac{\partial}{\partial x} -\frac{1}{i}\frac{\partial}{\partial y}\right) $$ as in page 12.
The first part asks us to show that
$$ \frac{\partial h}{\partial z} =\left(\frac{\partial g}{\partial z} \circ f\right) \, \frac{\partial f}{\partial z} +\left(\frac{\partial g}{\partial {\bar{z}}} \circ f \right) \, \frac{\partial \bar{f}}{\partial{z}} $$.
I am wondering if there is a mistake in the question because $$\frac{\partial g}{\partial {\bar{z}}}=0$$ by the Cauchy-Riemann equations as g is differentiable, and so the second product is zero. But I do obtain the first product using the usual chain rule for two real variables.
This question has been asked before on SE: The complex version of the chain rule but I do not understand the answer given there, which introduces the variable $w=f(z,\bar{z})$ and then assumes that $w$ and $\bar{w}$ are independent.
I'd appreciate your help!