In Churchill's "Complex Variables and Applications", when proving the following statement:
$f'(z) = 0 \space\space \forall z \in \mathbb{D}\subset \mathbb{C} \implies f(z) = constant \space\space \forall z \in \mathbb{D}$
First we write $f = u + iv$. Since $f'(z)$ exists in all points on the domain and it equals $0$, then $u'_{x} + i v'_{x} = 0$ and, because it fulfills the Cauchy-Riemann equations, $v'_{y} - i u'_{y} = 0$.
So $u'_{x} = u'_{y} = v'_{x} = v'_{y} = 0$.
Then he goes on proving that for every path between any two points in $\mathbb{D}$, the directional derivatives of $u$ and $v$ are $0$ and thus $u(x,y) = a$, $\space\space$ $v(x,y) = b$ and $f(z) = a + ib = constant$ for all $z \in \mathbb{D}$.
I don't understand why this last step is necessary. If the derivatives of $u$ and $v$ are already known to be $0$, doesn't that already imply that $u$ and $v$ must be constant, and so is $f$?
I apologize if this is too basic, but I'm very rusty on my multivariable real calculus.
I agree with you. If $u_x$ and $u_y$ are both the null function, then $u$ is constant. The same argument applies to $v$. Therefore, $f$ is constant.