
Gradients and Inner Products in Other Vector Spaces
MIT instructors Alan Edelman and Steven G. Johnson extend the idea of a gradient beyond ordinary column vectors, part of the 18.S096 Matrix Calculus for Machine Learning and Beyond course from IAP 2023. The lecture shows how defining an inner product on a vector space is the key step that lets you generalize differentiation to objects like matrices, not just vectors. Working through the logic on the board, the instructors demonstrate how a matrix gradient falls out once you fix the right inner product, connecting the abstract definition back to familiar calculus rules. The hour runs through concrete examples rather than staying purely symbolic, building toward the machinery needed for optimization problems in machine learning where the quantities being differentiated are matrices rather than scalars or vectors. It assumes the viewer already has linear algebra and basic multivariable calculus under their belt, and continues directly from earlier lectures in the same course.