Background
I was recently thinking about matrices and had an idea about a new definition of derivatives which reduces to the old one under certain circumstances. The idea is illustrated by an example:
Let A be a $2 \times 2$ matrix and the function $Z$ be defined by: $$ Z(A) = A^2 $$ $$\implies Z(A+\hat \epsilon)= (A+\hat \epsilon)^2 $$ Where $\epsilon$ is is a $2 \times 2$ matrix such that $\epsilon^2 = 0$
$$ \hat \epsilon= \begin{bmatrix} 0 & 0 \\ h & 0 \\ \end{bmatrix}$$
Now we compute $Z(A+\hat \epsilon)- Z(A) = (A+\hat \epsilon)^2 -A^2 = A \epsilon + \epsilon A$
We now give an explicit definition of $A$:
$$ A= \begin{bmatrix} a & b \\ c & d \\ \end{bmatrix}$$
Hence, $$ A \epsilon = \begin{bmatrix} b h & 0 \\ dh & 0 \\ \end{bmatrix}$$
Similarly,
$$ \epsilon A
= \begin{bmatrix}
0 & 0 \\
ah & bh \\
\end{bmatrix}$$
Adding the above we get:
$$\lim_{h \to 0}\frac{Z(A+\hat \epsilon(h))- Z(A)}{h} = \begin{bmatrix} b & 0 \\ a+d & b \\ \end{bmatrix}$$
Similarly we could have taken $\epsilon^T $ for the derivative: $$ \lim_{h \to 0}\frac{Z(A+\hat \epsilon^T(h))- Z(A)}{h} = \begin{bmatrix} c & a+d \\ 0 & c \\ \end{bmatrix}$$
Or any combination ...
Questions
Does taking derivatives of matrices like this already exist? If so what is their applications? What is the inverse of this"matrix derivative"? Is there a possible limit of a sum interpretation of the inverse of a matrix derivative?