# Notes - Linear Algebra II HT23, Matrix multiplication

> Source: https://ollybritton.com/notes/uni/prelims/ht23/linear-algebra/notes/matrix-multiplication/ · Updated: 2026-02-09 · Tags: uni, notes

- [Course - Linear Algebra II HT23](https://ollybritton.com/notes/uni/prelims/ht23/linear-algebra/)

### Flashcards
<!-- flash-start -->
What are the three views of matrix multiplication?::
- Dot product
- Column view
- Row view

^matrix-multiplication-views
<!-- flash-end -->

<!-- flash-start -->
$AB = C$. What is $c_{ij}$ in terms of the rows and columns of $A$ and $B$?::
$$
c_{ij} = \pmb a^\text{row}_i \cdot \pmb b^\text{col}_j
$$

^matrix-entry-dot-product
<!-- flash-end -->

<!-- flash-start -->
$AB = C$. What is $\pmb c^\text{col}_j$ in terms of $A$ and $B$?::
$$
\pmb c_j^\text{col} = A\pmb b_j^\text{col}
$$

^matrix-column-view
<!-- flash-end -->

<!-- flash-start -->
$$
\left(\begin{matrix} a_{11} & a_{12} & a_{13} \\ a_{21} & a_{22} & a_{23} \\ a_{31} & a_{32} & a_{33} \end{matrix}\right) 
\left(\begin{matrix} b_{11} & b_{12} \\ b_{21} & b_{22} \\ b_{31} & b_{32} \end{matrix}\right)
$$
Quick! What’s the 2nd column of the result going to look like?::
$$
b_{12} \left(\begin{matrix} a_{11} \\ a_{21} \\ a_{31} \end{matrix}\right) + b_{22}\left(\begin{matrix} a_{12} \\ a_{22} \\ a_{32} \end{matrix}\right) + b_{32} \left(\begin{matrix} a_{13} \\ a_{23} \\ a_{33} \end{matrix}\right)
$$

^matrix-column-combination-example
<!-- flash-end -->

<!-- flash-start -->
$AB = C$. What is $\pmb c_i^\text{row}$ in terms of $A$ and $B$?::
$$
\pmb c_i^\text{row} = \pmb a^\text{row}_i B
$$

^matrix-row-view
<!-- flash-end -->

<!-- flash-start -->
$$
\left(\begin{matrix} a_{11} & a_{12} & a_{13} \\ a_{21} & a_{22} & a_{23} \\ a_{31} & a_{32} & a_{33} \end{matrix}\right) 
\left(\begin{matrix} b_{11} & b_{12} \\ b_{21} & b_{22} \\ b_{31} & b_{32} \end{matrix}\right)
$$
Quick! What’s the third row of the result going to look like?::
$$
a_{31} \left(\begin{matrix} b_{11} & b_{12} \end{matrix}\right)  + a_{32} \left(\begin{matrix} b_{21} & b_{22} \end{matrix}\right) + a_{33}  \left(\begin{matrix} b_{31} & b_{32} \end{matrix}\right) 
$$

^matrix-row-combination-example
<!-- flash-end -->

<!-- flash-start -->
Write $\mathbf c^T \mathbf w$ as a sum.::
$$
\sum^D_{j = 0} c_j w_j
$$

^vector-dot-product-as-sum
<!-- flash-end -->

<!-- flash-start -->
Write $\mathbf w^T \mathbf A \mathbf w$ as a sum.::
$$
\sum^D_{i = 0} \sum^D_{j = 0} w_iw_j A_{ij}
$$

^quadratic-form-as-sum
<!-- flash-end -->

<!-- flash-start -->
Write $\mathbf{AB}$ as a sum, giving the expression for $c_{ij}$.::
$$
c_{ij} = \sum^N_{k=1} a_{ik} b_{kj}
$$

^matrix-product-as-sum
<!-- flash-end -->

---
Olly Britton — https://ollybritton.com. Machine-readable index: https://ollybritton.com/llms.txt
