For A of size m×n and B of size n×p, the product AB has size m×p, with entry (AB)ij=∑kAikBkj. Its action is A(Bx): the rightmost transformation acts first. Generally AB=BA, even when both products exist.
A square matrix has an inverse when some A−1 satisfies A−1A=AA−1=I. Then Ax=b has unique solution A−1b for every target. For actual numerical solving, elimination or a factorization usually avoids forming the inverse explicitly.
Visual guide
VISUAL GUIDEMatrix columns are images of the basis
For A = [[2, 1], [0, 1]], the unit square becomes a parallelogram. Its edges are the columns (2, 0) and (1, 1). Multiplying a vector forms the same weighted combination of those columns.
Worked example: order matters
Let A=(2001) and B=(1011). Then AB=(2021) but BA=(2011). Scaling after shearing differs from shearing after scaling.
For a 2×2 matrix (acbd), the inverse is (ad−bc)−1(d−c−ba) when ad−bc=0. Multiplying verifies the identity; zero determinant makes this formula and an inverse impossible.
PAUSE & THINKA quick check, not a grade
Try it yourself.
Choose an answer and explain your reasoning to yourself. Use a hint if you get stuck.
Hint 1 · Find a starting point
Matrix products represent nested function composition.
Hint 2 · Take the next step
Read ABx as A(Bx).
Show the reasoning
Answer:B
B acts first; its output becomes the input to A. Order generally matters.
Before moving on: what would make one of the other answers wrong? Saying why is part of understanding.
Worked example: factor once, solve repeatedly
For A=(2413), elimination subtracts twice row one from row two. Hence
A=LU=(1201)(2011).
To solve Ax=(3,7)T, first solve Ly=b, obtaining y=(3,1)T, then Ux=y, giving x=(1,1)T. The same factors can solve many new right-hand sides. If elimination needs row swaps, the usual form is PA=LU with a permutation matrix P.
Practice
What is the shape of a 3×2 matrix times a 2×4 matrix?
Invert diag(2,5).
Why does (1224) have no inverse?
Show worked solutions
3×4.
diag(1/2,1/5).
Its columns are dependent and its determinant is zero. Some targets are unreachable and others have multiple preimages.
MAKE IT YOURS
Pause before the next idea.
Can you explain how the visualization connects to this lesson’s goal? If a step still feels uncertain, put this lesson on your review list and try the check again another day.
Optional marks, not a grade. Saved in this browser only. Open notebook →