Find the Total derivative of
i)$f(A,B)=A+B$ ,
ii)$g(A,B)=AB$
iii)$h(A,B)=A^2$
where $f,g:M(n,\mathbb{R}) \times M(n,\mathbb{R}) \to M(n,\mathbb{R})$ and $h:M(n,\mathbb{R}) \to M(n,\mathbb{R})$
Let $A=[a_{ij}]$ , $B=[b_{ij}]$, where $ 1 \le i \le n, 1\le j \le n$
If I regard the $f$ to be a function in the $2n^2$ variables, then I believe $$Df= \begin{bmatrix} 1 & 0 & 0 & \cdots &0 &1 & \cdots &0\\ \vdots & \vdots & & \vdots &\vdots & \vdots & & \vdots \\ 0 & 0 & 0 & \cdots &1 &0 & \cdots &1\\ \end{bmatrix}$$ where $Df$ is a $n^2 \times 2n^2$ matrix, the second $1$ appears in the $n+1$th place and so on.
Similarly $$DG= \begin{bmatrix} B^t & 0_{n\times n} & 0_{n \times n} & \cdots &0_{n \times n} &a_{11}I_{n\times n} & \cdots &a_{1n}I_{n\times n}\\ 0_{n \times n} & B^{t}_{n\times n} & 0_{n \times n} & \cdots &0_{n \times n} &a_{21}I_{n\times n} & \cdots &a_{2n}I_{n\times n}\\ \vdots & \vdots & & \vdots &\vdots & \vdots & & \vdots \\ 0_{n\times n}& 0_{n\times n} & 0_{n \times n} & \cdots &B^{t}_{n \times n} &a_{n1}I_{n\times n} & \cdots &a_{nn}I_{n\times n}\\ \end{bmatrix}$$ where $Dg$ is a $n^2 \times 2n^2$ matrix, and $$DH=\begin{bmatrix} A^t+a_{11}I_{n \times n} &{ a_{12}}I_{n\times n} & {a_{13}}I_{n \times n} & \cdots &{a_{1n}}I_{n \times n}\\ a_{21}I_{n \times n} &A^t+{ a_{22}}I_{n\times n} & {a_{23}}I_{n \times n} & \cdots &{a_{2n}}I_{n \times n} \\ \vdots & \vdots & \vdots &\cdots &\vdots\\ a_{n1}I_{n \times n} &{ a_{n2}}I_{n\times n} & {a_{n3}}I_{n \times n} & \cdots &A^t+{a_{nn}}I_{n \times n}\\ \end{bmatrix}$$.
I think these are the derivative matrices. Thanks for the help!!