cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Your Friends List is a way to easily have access to the community members that you interact with the most! X

Symbolic differentiation of complex vector-matrix expressions in Mathcad Prime.

dtn555888
4-Participant

Symbolic differentiation of complex vector-matrix expressions in Mathcad Prime.

How to differentiate complex vector matrix expressions (quadratic forms, parametrically dependent matrices)? In mathematics, this is done by creating rules; I don’t know anything about other software packages.

For example:

Q1=x^T*A*x, and dQ1/dx=???

Q2=x^T*B(x)*x, and dQ2/dx=???

 

x is a vector, and A and B are matrices.


I know how to differentiate this manually, but I need Mathcad to do it automatically.

3 REPLIES 3

Hi,

Numerical differentiation you simply use the differentiation operator.  It is that simple.

Capture.JPG

Cheers

Terry

I forgot to clarify: x is a vector, and A and B are matrices. Sorry

Maybe the built-in "Jacob" function could be of help

Werner_E_0-1650984694763.png

Mathcad/Prime isn't really good at vector functions and I found no way to avoid having to write the vector [x0 x1 x2] in the explicit way in the definition of f(x).

Top Tags