A Bird’s-Eye View of Linear Algebra: Matrix Chain Multiplication

Linear algebra is the backbone of AI. Matrix multiplication is the fundamental operation of linear algebra. What if there is a whole chain?

Image created with midjourney

This is the fourth chapter of the in-progress book on linear algebra. The table of contents so far:

We covered matrix multiplication in chapter 3 and why it is defined the way it is. We also visualized the operation in five different ways. It was worth spending a chapter on this very important operation since it is so fundamental in so many fields.

And where there are two matrices, there are soon many. One of the matrices in a matrix multiplication will often split into two and so on until we get a whole chain of matrices to be multiplied together. And unlike with two matrices, where there is only one, it turns…