I want to compute the derivative of a scalar with respect to a matrix where the scalar is linked with the matrix through a vector. For instance let the scalar be $l = (x-c)^T (x-c)$ where $x,c$ are vectors $\in \mathbb{R}^p $ And $x = Az$ where A is a $pxq$ matrix.
Now if I want to calculate $\frac{d l}{d A}$ then I can write $\frac{d l}{d A} =\frac{d l}{d x} \frac{d x}{d A}$
$\frac{d l}{d x}$ is easy to compute but I need help for $\frac{d x}{d A}$