This is a rough draft, but concept is proven.
A SymPy extension for differentiating matrix expressions