I want to know where is my mistake in solving the problem
\begin{equation} \begin{array}{c} minimize \hspace{1cm} z^*z \\ s.t. \hspace{0.5cm} z = z^* + i \\ \end{array} \end{equation} by using Lagrangian multipliers. $z^*$ is the conjugate of $z$.
It is easy to check that the solution is $z = \frac{1}{2}i.$ However, when I use Lagrangian approach, I cannot find the good solution.
My thoughts:
Let $\mathcal{L} = z^*z + \lambda (z-z^*-i)$ be the Lagrangian function. Thus, we have
$$\frac{\partial \mathcal{L}}{\partial z} = 0 \implies z^*(1-\lambda) = 0,$$ and
$$\frac{\partial \mathcal{L}}{\partial z^*} = 0 \implies z(1+\lambda) = 0 .$$
For any value of $\lambda \in \mathbb{C}$ we have $z =z^* = 0.$
Any help for this problem? Thanks in advance!
This topic has probably long been forgotten, but in the interest of the potential future readers let me just point out the fact that the OP's approach did not fail at all. It seemed to fail for the trivial reason that the derivatives were calculated incorrectly. Using the OP's notation (and the convention of regarding $z$ and $z^*$ as independent variables), we indeed have $$\partial\mathcal{L}/\partial z = z^* + \lambda = 0,$$ $$\partial\mathcal{L}/\partial z^*= z - \lambda = 0.$$ Adding both equations together we find $z+z^* = 0$, and substituting this result back into $z-z^*-\mathrm{i} = 0$, we obtain $2z - \mathrm{i} = 0$, the desired answer.
Let me also note that the expression $\lambda(z - z^* - \mathrm{i})$ is real because it is equal to zero (which is a real number) in the whole domain of the complex plane that we are constrained to by the very definition of the problem.