Theorem (Jacobi’s Formula)
In matrix calculus, Jacobi’s formula expresses the derivative of the determinant of a matrix in terms of its adjugate and the derivative of .
Formally, if is a differentiable matrix-valued function, the derivative of its determinant is:
where:
- is the adjugate matrix (the transpose of the cofactor matrix) of , as discussed in Square Matrices.
- denotes the trace operator.
Invertible Case
If is invertible (so ), we can use the identity to write the formula in the more common form:
Matrix Derivative Form
In terms of matrix derivatives (often used in machine learning and optimization, see Stress-Strain Relation), Jacobi’s formula can be written as:
For invertible , this simplifies to:
where .
Lemma (Log-Determinant Identity)
For any invertible matrix , we have the identity:
Case 1: Diagonalizable Matrices
Assume is diagonalizable. Then there exists an invertible matrix and a diagonal matrix such that:
where contains the eigenvalues of . The determinant of is the product of its eigenvalues:
The matrix logarithm of a diagonalizable matrix is defined by applying the scalar logarithm to its eigenvalues:
Taking the trace of both sides and utilizing the cyclic property of the trace ():
The trace of a diagonal matrix is the sum of its diagonal entries:
The exponential of the trace:
Since both sides equal , the identity holds for all diagonalizable matrices:
Case 2: General Invertible Matrices (Continuity Argument)
If is invertible but not diagonalizable, we can use the property that diagonalizable matrices are dense in . There exists a sequence of diagonalizable matrices that converges to :
Since the functions , , and are continuous on the domain of invertible matrices, we can take the limit of the identity:
This completes the proof for any invertible matrix .
Proof (Jacobi’s Formula)
Below are three different proofs of Jacobi’s formula, each highlighting different mathematical techniques.
Proof 1: Via the Log-Determinant Identity
We differentiate the log-determinant identity:
Differentiating both sides with respect to using the chain rule:
To evaluate , we use the formula for the derivative of the matrix exponential. If , then:
Multiplying by :
Taking the trace and using the cyclic property of trace:
Since , we have . Substituting this back gives:
Proof 2: Via Differentiation at the Identity
We first establish the formula when at a given point . Let . Using the Leibniz formula for the determinant:
This is because in the expansion of , the only term that does not contain any is , and the terms linear in must come from the product of the diagonal elements , which yields . Therefore, the derivative of the determinant at the identity is:
For a general invertible matrix , we can factor out :
Proof 3: Via Cofactor Expansion
Recall the cofactor expansion of the determinant along any row :
where is the cofactor of entry . Since is the determinant of the submatrix obtained by deleting row and column , it does not depend on any entry in row . Thus:
By definition, the adjugate matrix is the transpose of the cofactor matrix, meaning . Therefore:
Using the multivariable chain rule, we compute the total derivative with respect to :
This proof is completely general and does not assume is invertible.
Application (Ordinary Differential Equations and Continuum Mechanics)
Theorem (Liouville’s Formula)
Jacobi’s formula is the key tool used to prove Liouville’s formula (or Abel’s identity) for linear systems of Ordinary Differential Equations. Consider a homogeneous linear system:
If is a fundamental matrix solution (so ), then the derivative of its determinant (called the Wronskian ) is given by:
Using the cyclic property of trace, . Therefore:
Integrating this scalar ODE yields Liouville’s formula:
Theorem (Mass Conservation Equation)
In Continuum Mechanics, Jacobi’s formula relates the change in volume of a deforming body to the divergence of its velocity field. If is the flow map and is the deformation gradient, the local volume ratio is . The rate of change of is:
Since is the spatial velocity gradient , we have:
This identity is central to deriving the continuity equation for mass conservation.