Documente Academic
Documente Profesional
Documente Cultură
Matrix Calculus
Notation
Derivatives of Linear, Quadratic and Cubic Products
Derivatives of Inverses, Trace and Determinant
Jacobians and Hessian matrices
Notation
z
z
z
z
z
z
z
z
An expression, y, can only differentiated with respect to a complex x if it satisfies the Cauchy-Riemann
equations: dy/dxR = j dy/dxI . Expressions involving the complex conjugate or Hermitian transpose do not
normally satisfy this requirement, so separate expressions for dy/dxR and dy/dxI are given in these cases.
In the expressions below matrices and vectors A, B, C do not depend on X.
z
z
z
dy/dxR (xHA) = A
{
z
dy/dxR (xH) = I
z
z
Derivatives of Inverses
z
z
Derivative of Trace
Note: matrix dimensions must result in an n*n argument for tr().
z
z
z
z
z
z
z
Derivative of Determinant
Note: matrix dimensions must result in an n*n argument for det(). Some of the expressions below involve
inverses: these forms apply only if the quantity being inverted is square and non-singular.
z
Jacobian
If y is a function of x, then dyT/dx is the Jacobian matrix of y with respect to x.
Its determinant, |dyT/dx|, is the Jacobian of y with respect to x and represents the ratio of the hypervolumes dy and dx. The Jacobian occurs when changing variables in an integration: Integral(f(y)dy)
=Integral(f(y(x)) |dyT/dx| dx).
Hessian matrix
If f is a function of x then the symmetric matrix d2f/dx2 = d/dxT(df/dx) is the Hessian matrix of f(x). A
value of x for which df/dx = 0 corresponds to a minimum, maximum or saddle point according to whether
the Hessian is positive definite, negative definite or indefinite.
z
z
d2/dx2 (aTx) = 0
d2/dx2 (Ax+b)TC(Dx+e) = ATCD + DTCTA
2
2 T
T
{ d /dx (x Cx) = C+C
d2/dx2 (xTx) = 2I
d2/dx2 (Ax+b)T (Dx+e) = ATD + DTA
2
2
T
T
d /dx (Ax+b) (Ax+b) = 2A A
[C: symmetric]: d2/dx2 (Ax+b)TC(Ax+b) = 2ATCA
The Matrix Reference Manual is written by Mike Brookes, Imperial College, London, UK. Please send any
comments or suggestions to mike.brookes@ic.ac.uk