If I have the matrices:
$$W = \begin{bmatrix} w_{00} & w_{01} & w_{02} \\ w_{10} & w_{11} & w_{12} \\ w_{20} & w_{21} & w_{22}\\ w_{30} & w_{31} & w_{32} \end{bmatrix} \space \space \text{and}\space \space X = \begin{bmatrix} x_{00} & x_{01} & x_{02} & x_{03}\\ x_{10} & x_{11} & x_{12} & x_{13} \\ x_{20} & x_{21} & x_{22} & x_{23} \end{bmatrix} $$
How do I write out the derivative of $Z=XW$ with respect to the matrix $W$?
$Z$ I know is ($3 \times3$):
$\begin{bmatrix} z_{00} & z_{01} & z_{02} \\ z_{10} & z_{11} & z_{12} \\ z_{20} & z_{21} & z_{22} \end{bmatrix} $
Since $Z$ is ($3 \times 3$) is $\frac{\partial{Z}}{\partial{W}}$ a ($9 \times 12$) or ($12 \times 9$) matrix?
I assume that both $X$ and $W$ are both variables. Here are the simpler questions you should try: