Matrices as Operators

A matrix is best understood by what it does: applied to a vector it returns a linear combination of its own columns, weighted by that vector's entries. Reading A x that way turns a wall of arithmetic into one idea, and it is the reading every later result depends on. A constraint system, a basis, a pivot step. Multiplication of matrices is then composition of those actions, which is why order matters and why it is not commutative.

Definition

An m × n matrix A has entries a i j and columns A 1 , … , A n ∈ R m . Applied to x ∈ R n it produces

A x = ∑ j = 1 n x j A j ∈ R m ,

a linear combination of the columns weighted by the entries of x ; equivalently ( A x ) i = ∑ j a i j x j . The product A B is defined when A is m × n and B is n × p , giving ( A B ) x = A ( B x ) . The transpose A T has ( A T ) i j = a j i . The identity I satisfies I x = x , and A is invertible when some A − 1 satisfies A A − 1 = A − 1 A = I .

Formal statement

A x = ∑ j x j A j ; ( A B ) x = A ( B x ) ; ( A T ) i j = a j i ; A A − 1 = A − 1 A = I .

Assumptions and scope

  • The product A B requires the inner dimensions to agree: A is m × n and B is n × p . Mismatched shapes make the product undefined rather than zero.

  • Matrix multiplication is not commutative. A B and B A may differ, may have different shapes, and one may be defined while the other is not.

  • Only a square matrix can be invertible, and not every square matrix is. Whether an inverse exists is settled by the independence of the columns, which the independence unit establishes.

  • A x lives in R m while x lives in R n . The action moves between spaces unless the matrix is square.

  • Transposing reverses a product: ( A B ) T = B T A T . The order flips, which is a frequent source of error in derivations.

Worked material

Example

The same product, both readings

Take

A = ( 2 1 0 1 3 4 ) , x = ( 3 , 2 , 1 ) .

By rows. First entry: ( 2 ) ( 3 ) + ( 1 ) ( 2 ) + ( 0 ) ( 1 ) = 8 . Second entry: ( 1 ) ( 3 ) + ( 3 ) ( 2 ) + ( 4 ) ( 1 ) = 13 . So A x = ( 8 , 13 ) .

By columns. The columns are A 1 = ( 2 , 1 ) , A 2 = ( 1 , 3 ) , A 3 = ( 0 , 4 ) , and

A x = 3 ( 2 1 ) + 2 ( 1 3 ) + 1 ( 0 4 ) = ( 6 3 ) + ( 2 6 ) + ( 0 4 ) = ( 8 13 ) .

Same answer, as it must be.

What each shows. The row computation produces the number. The column computation shows that ( 8 , 13 ) is reachable by mixing A 's columns with weights 3 , 2 , 1 , and therefore that this particular b has at least one solution to A x = b . That is a fact about existence, and the row reading does not surface it.

Note the shapes. A is 2 × 3 and x is in R 3 , so A x lands in R 2 . The action moved between spaces.

Non-example

Undefined products and rules that do not hold

Multiplying mismatched shapes. A 2 × 3 matrix times a 2 × 2 matrix is undefined: the inner dimensions, 3 and 2 , disagree. The product is not zero and not approximate. There is nothing to compute.

Assuming A B = B A . It generally fails, and for non-square matrices one side may not even exist.

Transposing without reversing. ( A B ) T = B T A T , not A T B T . The order flips, and derivations that forget it go quietly wrong.

Expecting every square matrix to be invertible. ( 1 2 2 4 ) has no inverse: its second column is twice the first, so its columns cannot reach everything. Whether an inverse exists is settled by the independence of the columns.

Cancelling matrices. From A B = A C it does not follow that B = C , unless A is invertible. Matrices are not numbers, and division is not an available move.

Reading A x as a scaling of x . It is a combination of A 's columns, and it generally lives in a different space from x altogether.

Contrast

Two readings of one product

Row readingColumn reading
ComputesOne output entry at a timeThe whole output at once
A x isA list of dot productsA combination of A 's columns
Natural questionWhat is the answer?What answers are reachable?
Makes visibleThe arithmeticExistence, span, basis
Used byHand computationEvery structural argument later

Both are correct. They are the same sum, grouped differently. Neither is an approximation of the other.

Why the column reading earns its place. Solvability, bases, pivots and degeneracy are all questions about which vectors the columns can reach. Phrased in rows, each becomes a statement about a system of equations having a solution, true, but it hides the object doing the work.

A concrete case. If A 's columns are ( 1 , 2 ) and ( 2 , 4 ) , the column reading shows immediately that everything reachable lies along a single line, so A x = b is solvable only for b on that line. The row reading arrives at the same conclusion after elimination, having said nothing about why.

When to reach for rows. When you need the number. The two readings cost the same arithmetic; only one of them tells you something while you do it.

Common errors

Common misconception

Matrix multiplication works like multiplication of numbers, so A B and B A give the same result.

Common misconception

Whether a matrix product is defined is something you find out by trying it: if the arithmetic runs out of entries you transpose something until the shapes agree.

Related units

Requires

Connected

Learn this topic

Used in

Sources

Results update as you type. Use the up and down arrow keys to move between results, Enter to open one, and Escape to close.

Type to search.

Settings

Appearance

Interface density

Your record

Your progress is stored in this browser and nowhere else: an identifier, the answers you have given, the mastery states and review schedule derived from them, and the lesson you last opened. Clearing it makes you a new learner on this device. It cannot be undone, and it will not affect your appearance or density settings.

Focus timer

Focus--minutes remaining

Phase

Kept in this browser only, and used to label the session in your own history.

Today

Nothing recorded yet. Finish a focus session and it will appear here.

Settings

Focus sessions between long breaks.

Sessions you are aiming for in a day.

Notifications

Your history

Sessions are stored in this browser and nowhere else. They are not evidence and never reach your mastery record.