Matrix Calculus (for Machine Learning and Beyond)

Paige Bright, Alan Edelman, Steven G. Johnson
1/7/2025
math.HOcs.LGmath.NA

No official code found. Best implementation: mitmath/matrixcalc (594 stars, last commit 2026-01-31).

Abstract

This course, intended for undergraduates familiar with elementary calculus and linear algebra, introduces the extension of differential calculus to functions on more general vector spaces, such as functions that take as input a matrix and return a matrix inverse or factorization, derivatives of ODE solutions, and even stochastic derivatives of random functions. It emphasizes practical computational applications, such as large-scale optimization and machine learning, where derivatives must be re-imagined in order to be propagated through complicated calculations. The class also discusses efficiency concerns leading to "adjoint" or "reverse-mode" differentiation (a.k.a. "backpropagation"), and gives a gentle introduction to modern automatic differentiation (AD) techniques.

View on arXivView PDF

Code Implementations(1)

mitmath/matrixcalcCommunity74%

MIT IAP short course: Matrix Calculus for Machine Learning and Beyond

59485TeX, HTMLJan 4, 20228 months ago

Similar Papers

Cite this paper

@article{bright2025matrix,
  title  = {Matrix Calculus (for Machine Learning and Beyond)},
  author = {Paige Bright and Alan Edelman and Steven G. Johnson},
  year   = {2025},
  eprint = {2501.14787},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2501.14787v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2501.14787.svg)](https://codeofpaper.com/paper/2501.14787)

Discussion