Course Abstract: “Matrix Calculus”
The course “Matrix Calculus” is a fundamental theoretical university course on differentiating functions of vectors and matrices and using these derivatives to analyze mathematical models. It builds on linear algebra and multivariable calculus to provide a common language for optimization, statistics, engineering, and computational science.
Students first review matrix operations, linear transformations, norms, eigenvalues, and decompositions. They then develop differential notation and distinguish gradients, Jacobians, Hessians, and derivatives of matrix-valued functions by their dimensions and the mappings they represent.
The course derives differentiation rules for products, inverses, traces, determinants, quadratic forms, and matrix factorizations. Chain rules and vectorization clarify how to compose derivatives and compare alternative notation conventions without losing track of dimensions.
Higher-order derivatives and Taylor expansions connect local matrix analysis to sensitivity, curvature, and optimality conditions. Students examine constrained and unconstrained optimization and the role of positive definiteness in identifying and computing minima.
Applications include least squares, linear models, covariance matrices, likelihood functions, and parameter estimation. Numerical linear algebra is introduced where it helps interpret conditioning and the stability of calculations involving large matrices.
Throughout the course, students justify formulas using differentials and verify results through structural and dimensional checks. They learn to select a consistent derivative convention, derive results independently, and interpret matrix gradients in theoretical and applied settings.
Course Objective
The objective of the course is to establish a rigorous understanding of differential operations on vectors and matrices; develop the ability to derive and verify matrix derivatives; and prepare students to analyze optimization, sensitivity, and statistical models expressed in matrix form.
Main Sections of the Course
Block 1. Linear Algebra Review
• Vectors
• Matrices
• Linear maps
• Transpose
• Inverse
• Rank
Block 2. Matrix Structure
• Symmetry
• Positive definiteness
• Eigenvalues
• Singular values
• Norms
• Conditioning
Block 3. Multivariable Differentiation
• Directional derivatives
• Differentials
• Gradients
• Jacobians
• Hessians
• Taylor expansion
Block 4. Derivative Conventions
• Numerator layout
• Denominator layout
• Shapes
• Scalar functions
• Vector functions
• Notation consistency
Block 5. Differential Rules
• Linearity
• Products
• Compositions
• Chain rule
• Transposition
• Implicit dependence
Block 6. Vectorization and Kronecker Products
• Column stacking
• Vec identities
• Kronecker products
• Permutation matrices
• Jacobians
• Applications
Block 7. Linear and Bilinear Forms
• Inner products
• Linear forms
• Bilinear forms
• Quadratic forms
• Symmetry
• Derivative identities
Block 8. Trace Calculus
• Trace identities
• Cyclic permutations
• Linear traces
• Quadratic traces
• Matrix gradients
• Verification
Block 9. Determinants and Inverses
• Determinant derivative
• Log determinant
• Inverse derivative
• Singularity
• Applications
• Assumptions
Block 10. Matrix-Valued Functions
• Matrix mappings
• Directional changes
• Tensor viewpoints
• Product rules
• Compositions
• Shape checks
Block 11. Second-Order Matrix Calculus
• Hessian structure
• Second differentials
• Curvature
• Positive semidefiniteness
• Taylor models
• Optimality
Block 12. Constrained Differentiation
• Equality constraints
• Lagrange multipliers
• Stationarity
• Feasible directions
• Matrix constraints
• Interpretation
Block 13. Least-Squares Models
• Residuals
• Normal equations
• Weighted least squares
• Gradient derivation
• Rank conditions
• Conditioning
Block 14. Statistical Matrix Methods
• Covariance matrices
• Matrix normal forms
• Likelihood gradients
• Fisher information
• Estimation
• Sensitivity
Block 15. Eigenvalue Sensitivity
• Eigenvalue derivatives
• Eigenvector changes
• Spectral gaps
• Perturbations
• Stability
• Applications
Block 16. Matrix Decompositions
• QR factorization
• Singular value decomposition
• Cholesky factors
• Derivative issues
• Rank changes
• Use cases
Block 17. Numerical Evaluation
• Finite differences
• Automatic differentiation
• Scaling
• Rounding error
• Gradient checks
• Reliability
Block 18. Optimization with Matrices
• Gradient methods
• Newton methods
• Convexity
• Step size
• Constraints
• Convergence assumptions
Block 19. Complex Matrix Derivatives
• Complex variables
• Conjugation
• Wirtinger notation
• Real-valued objectives
• Hermitian structure
• Conventions
Block 20. Integrated Derivation and Analysis
• Model formulation
• Derivative strategy
• Dimensional checks
• Assumptions
• Numerical validation
• Interpretation
Intended Learning Outcomes (Competencies)
Knowledge: Students will understand differential and derivative conventions for matrix functions, trace and determinant identities, higher-order derivatives, sensitivity, and links to optimization and statistical estimation.
Skills: Students will be able to compute gradients, Jacobians, and Hessians; apply product and chain rules; derive least-squares and likelihood expressions; and check formulas for dimensional consistency.
Competencies: Students will select appropriate notation, justify derivations from first principles, assess assumptions and numerical sensitivity, and communicate matrix-based analyses clearly.
English Literature — APA Style
Abadir, K. M., & Magnus, J. R. (2005). Matrix algebra. Cambridge University Press.
Boyd, S., & Vandenberghe, L. (2004). Convex optimization. Cambridge University Press.
Golub, G. H., & Van Loan, C. F. (2013). Matrix computations (4th ed.). Johns Hopkins University Press.
Harville, D. A. (1997). Matrix algebra from a statistician’s perspective. Springer.
Higham, N. J. (2008). Functions of matrices: Theory and computation. Society for Industrial and Applied Mathematics.
Hjørungnes, A. (2011). Complex-valued matrix derivatives: With applications in signal processing and communications. Cambridge University Press.
Horn, R. A., & Johnson, C. R. (2013). Matrix analysis (2nd ed.). Cambridge University Press.
Magnus, J. R., & Neudecker, H. (2019). Matrix differential calculus with applications in statistics and econometrics (3rd ed.). Wiley.
Nocedal, J., & Wright, S. J. (2006). Numerical optimization (2nd ed.). Springer.
Seber, G. A. F. (2008). A matrix handbook for statisticians. Wiley.
Keywords: matrix calculus, matrix derivatives, differentials, Jacobian, Hessian, trace, determinant, optimization, sensitivity analysis, linear algebra.
|
Link |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Additional literature
1. Křepela, M. (2026). Matematická analýza 1 [Vysokoškolský studijní text]. České vysoké učení technické v Praze, Fakulta elektrotechnická. (math.fel.cvut.cz)
Additional literature
2. Křepela, M. (2026). Matematická analýza 1 [Vysokoškolský studijní text]. České vysoké učení technické v Praze, Fakulta elektrotechnická. (math.fel.cvut.cz)