math concept
7 topics use this
Math concept
Matrix Calculus
Core equation
$$\nabla_\mathbf{x}(\mathbf{x}^\top A\mathbf{x}) = (A + A^\top)\mathbf{x}$$
Matrix calculus extends differential calculus to vector and matrix arguments. It is indispensable for deriving gradient descent updates, computing Fisher information, and deriving closed-form solutions in statistics and machine learning.
Key identities
For vectors $\mathbf{x} \in \mathbb{R}^n$ and compatible matrices:
\[\nabla_\mathbf{x}(\mathbf{a}^\top \mathbf{x}) = \mathbf{a}\] \[\nabla_\mathbf{x}(\mathbf{x}^\top A\mathbf{x}) = (A + A^\top)\mathbf{x} = 2A\mathbf{x} \text{ if } A = A^\top\] \[\frac{\partial}{\partial A}\log\det A = A^{-\top}\] \[\frac{\partial}{\partial A}\text{tr}(BA) = B^\top\]The chain rule
For $f: \mathbb{R}^m \to \mathbb{R}$ and $g: \mathbb{R}^n \to \mathbb{R}^m$, the Jacobian of $f \circ g$ is:
\[J_{f \circ g}(\mathbf{x}) = J_f(g(\mathbf{x}))\, J_g(\mathbf{x})\]This is the foundation of backpropagation in neural networks.
Fields that use this concept
Finance & economics
Econometrics
Engineering & CS
Machine learning
Backpropagation
Efficient computation of gradients in neural networks via the chain rule of calculus.
Gradient Descent
Iterative optimisation by following the steepest downhill direction. The engine of modern ML.
Neural Networks
Universal function approximators trained by backpropagation, forming the foundation of modern deep learning.
Principal Component Analysis
Linear dimensionality reduction by projecting data onto directions of maximum variance via eigendecomposition of the covariance matrix.
Earth sciences
Meteorology
Life sciences
Quant genetics