Matrix Calculus#
Revised
17 Jun 2023
. |
scalar |
vector |
matrix |
---|---|---|---|
scalar |
|||
vector |
|||
matrix |
scalar-by-scalar#
derivative of a scalar (function) wrt a scalar
[example]
scalar-by-vector#
derivative of a scalar (function) wrt a vector
An example from the vector calculus is the gradient vector.
vector-by-scalar#
derivative of a vector (function) wrt a scalar
An example in the vector calculus is the tangent vector.
vector-by-vector#
derivative of a vector (function) wrt a vector
taking the derivative of a linear transformation (not “taking the derivative of a matrix”)
Jacobian#
An example from the vector calculus is the Jacobian.
#
[example]
#
[example]
matrix-by-scalar#
derivative of a matrix (function) wrt a scalar
this is called the tangent matrix
scalar-by-matrix#
derivative of a scalar (function) wrt a matrix
this is called the gradient matrix
important examples of scalar functions of matrices include the trace of a matrix and the determinant
Resources#
[Y] ritvikmath. (09 Sep 2019). “Derivative of a Matrix : Data Science Basics”. YouTube.