Suppose $\mathbf{a}_{N\times1}$ is a complex-valued vector.
$B_{K\times N}$ is a complex-valued matrix.
$C_{K\times K}$ is a real-valued diagonal matrix.
Here is a function $f: \mathbb{C}^N \to \mathbb{R}$, $f = \frac{\mathbf{a}^H B^H C B \mathbf{a}}{\mathbf{a}^H B^H B \mathbf{a}}$, and whose numerator and denominator both are real-valued scalars (this can be verified). Here the operator $H$ means conjugate transpose.
Now I want to take the derivative of function $f$, but I only have the formula for real vectors like $\frac{\partial (\mathbf{x}^T B \mathbf{x})}{\partial \mathbf{x}} = (B+B^T)\mathbf{x}$, which seems not applicable in this case. How can I do this? And further, if I let the derivative of this function $f$ equal to zero, can I get the max or min value of the function $f$?
Thank you!