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

Community Tip - Help us improve the PTC Community by taking this short Community Survey! X

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
21-Topaz I
(To:dtn555888)

Hi,

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

Cheers

Terry

4-Participant
(To:terryhendicott)

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

24-Ruby V
(To:dtn555888)

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

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