Question: Derivative of Matrix

Hello,

I was wondering what the easiest way to calculate the derivative of a matrix is?

So far I am trying:

> with(LinearAlgebra);
with(VectorCalculus);
> A := Matrix(2, 2, {(1, 1) = 1, (1, 2) = x^2, (2, 1) = 4*x^7, (2, 2) = x^3});
                           Matrix(%id = 163320844)
> B := D(A);
 

But I get: Error, (in VectorCalculus:-D) invalid input: D expects its 1st argument, f, to be of type {set, array, algebraic, equation, list, procedure}, but received Matrix(2, 2, {(1, 1) = 1, (1, 2) = x^2, (2, 1) = 4*x^7, (2, 2) = x^3})

 

Also, if I unprotected and unassigned the command D , and then reassigned it as a variable, how do I used the D operator??

Please Wait...