Question: Matrix differentiation

Dear all, 

Would you let me know how to run a matrix differentiation?

restart;
with(LinearAlgebra):

with(VectorCalculus):

x:=<<x1>,<x2>>

W:=<<w11, w12>|<w21, w22>>
Cal:=Transpose(W.x).(W.x)

## Up to this point, there was no problem 

map(diff,Cal,x) ## Then, this operation caused an error

 

What I wanted to do is 

diff(VectorCalculus:-Norm(W.x)^2, x)

 

Thank you, 

In Kwon Park 


 

 

 

Please Wait...