Say, I have $n$-dimensional multivariate Gaussian, $G(x:\mu, \Sigma)$.
($\mu$ is $n$ dimension vector and $\Sigma$ is $n\times n$ matrix.)
Say there is a goal $n$-dimensional vector $a$.
I need to bring and modify multivariate Gaussian close to vector $a$ as much as possible, by updating parameter $\mu$ and $\Sigma$ in $n$-dimensional space.
In other word, I need to minimize $Cost$ function defined as below.
$Cost=E_{x \sim G(x:\mu, \Sigma)}[abs(X-a)]$
Or maybe I should define $Cost$ as squared below.
$Cost=E_{x \sim G(x:\mu, \Sigma)}[(X-a)^2]$
Either way, I need to calculate the derivative of $Cost$ function, which is derivative of expectation w.r.t. $\mu$ and $\Sigma$ as below
$\frac{\partial Cost}{\partial \mu}=?$
$\frac{\partial Cost}{\partial \Sigma}=?$
How can we calculate that?
Thank you.