Suppose variable $x$ is a N*1 vector, $A$ is a M*N matrix and $b$ is a M*1 vector.
$$ f(x) = \|e^{Ax} - b \|_2^2 $$
Does its derivative should be like following? $$ \frac{\partial f}{\partial x} = 2*(e^{Ax} - b)*A^T*e^{Ax} $$
If it is, but the dimension of its derivative doesn't equal to the dimension of $x$. How to explain that? Thanks!