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

Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X

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

dtn555888
10-Marble

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

Werner_E
25-Diamond I
(To:dtn555888)

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).

Announcements

Top Tags