Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Matrix derivatives cheat sheet, Cheat Sheet of Mathematics

Useful cheat sheet on matrix derivatives with Matrix/vector manipulation rules and some Common vector derivatives

Typology: Cheat Sheet

2019/2020

Uploaded on 10/09/2020

ekaram
ekaram 🇺🇸

4.6

(30)

264 documents

1 / 1

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Matrix derivatives cheat sheet
Kirsty McNaught
October 2017
1 Matrix/vector manipulation
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=BTATorder is reversed, everything is transposed
(aTBc)T=cTBTaas above
aTb=bTa(the result is a scalar, and the transpose of a scalar is itself)
(A+B)C=AC +BC multiplication is distributive
(a+b)TC=aTC+bTCas above, with vectors
AB 6=BA multiplication is not commutative
2 Common vector derivatives
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, bis
a constant scalar, and Bis a constant matrix.
Scalar derivative Vector derivative
f(x)df
dxf(x)df
dx
bx bxTBB
bx bxTbb
x22xxTx2x
bx22bx xTBx 2Bx
For a more comprehensive reference, see https://www.math.uwaterloo.ca/~hwolkowi/matrixcookbook.
pdf
1

Partial preview of the text

Download Matrix derivatives cheat sheet and more Cheat Sheet Mathematics in PDF only on Docsity!

Matrix derivatives cheat sheet

Kirsty McNaught

October 2017

1 Matrix/vector manipulation

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

2 Common vector derivatives

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