Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have seen some of the related posts, which ask about doing matrix calculation on tensors unknown dimensions. One of the posts mentioned that version 9 has some capability, but it was concerned about simple matrix algebra, but not calculus.

I would specifically like to know if with the addition of Tensor package in version 9, if the following is possible:

$a, \lambda \in R^n$, and $C\in R^{n\times n}$ Here $n$ is unknown/symbolic variable.

I am trying to find derivative of expressions which involve matrix-vector products such as (to give a simple example) $f(a,\lambda)=\dfrac{\lambda^T Ca}{\sqrt{a^T C a}}$

I would like to know if using Mathematica we can find expressions of $\dfrac{\partial f}{\partial a}$ etc.


share|improve this question
version 9? That's almost 2 years old now... did you mean 10? – R. M. Jul 28 '14 at 17:45
I mention version 9 since it seems to me thats when the Tensor package was added. I don't know if 10 adds anything more to this functionality. – nonlinearism Jul 28 '14 at 17:48
AFAIK these things are not possible, not out of the box. See also… – Teake Nutma Jul 28 '14 at 19:45
Thats disappointing, if true. – nonlinearism Jul 28 '14 at 21:15
A similar question was asked at… regarding purely symbolic computations of vector derivatives of matrix/vector expressions of unspecified rank. AFAIK it's not straightforward to do, unfortunately. – DumpsterDoofus Jul 28 '14 at 23:53

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.