
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
Useful cheat sheet on matrix derivatives with Matrix/vector manipulation rules and some Common vector derivatives
Typology: Cheat Sheet
1 / 1
This page cannot be seen from the preview
Don't miss anything!
You should be comfortable with these rules. They will come in handy when you want to simplify an expression before differentiating. All bold capitals are matrices, bold lowercase are vectors.
Rule Comments (AB)T^ = BT^ AT^ order is reversed, everything is transposed (aT^ Bc)T^ = cT^ BT^ a as above aT^ b = bT^ a (the result is a scalar, and the transpose of a scalar is itself) (A + B)C = AC + BC multiplication is distributive (a + b)T^ C = aT^ C + bT^ C as above, with vectors AB 6 = BA multiplication is not commutative
You should know these by heart. They are presented alongside similar-looking scalar derivatives to help memory. This doesn’t mean matrix derivatives always look just like scalar ones. In these examples, b is a constant scalar, and B is a constant matrix.
Scalar derivative Vector derivative f (x) → d dfx f (x) → d dfx
bx → b xT^ B → B bx → b xT^ b → b x^2 → 2 x xT^ x → 2 x bx^2 → 2 bx xT^ Bx → 2 Bx
For a more comprehensive reference, see https://www.math.uwaterloo.ca/~hwolkowi/matrixcookbook. pdf