I calculate the derivative of a matrix by hand,then use the D instruction of MMA to verify the manual calculation results, but the results are not consistent. Why is this?
I see. Where can I find the calculation method for MatrixLog? And I want to try using Log to replicate the solution of MatrixLog because my formula contains non square matrice.
The documentation on MatrixLog has some hints on the algorithm. As for the logarithm of a nonsquare matrix, it makes no sense at all. Your original problem was the derivative of a MatrixPower. What is the meaning of MatrixPower[A,2], for example? It is the matrix multiplication A.A. How can you calculate A.A if A is not square?
Log[A] is simply the entry-wise Log of the entries.
I want to transform the formula into the relationship between t and dt (i.e. the left side is the variable t, and the right side is the formula containing all variables dt), so I have manually derived the following:
Yes, then I shouldn’t have made any derivation errors. But the next step is to use the MatrixLog instruction on both sides of the equation, and there will be a problem.
I think so, because I need to use the relationship between t and dt in the future. I have an idea, if MatrixLog cannot handle vectors, can I find the relationship between the MatrixLog and the Log in MMA, and then use Log instead of MatrixLog in the formula to handle vectors. But at present, I have not found a document that specifically introduces the calculation process of the MatrixLog command.