Courses / Mathematics I
Matrices and Vectors

Matrices and Matrix Operations

Mathematics I 211 words Free to read

Matrix Basics and Addition

A matrix is a rectangular array of numbers organized in rows and columns. An m×nm \times n matrix has mm rows and nn columns. They represent linear systems, transformations, and data.

OperationRuleCondition
AdditionAdd corresponding entriesSame shape (m×nm \times n)
Scalar MultiplicationMultiply every entry by a scalarAny matrix

Common pitfall: Never add matrices entry-by-entry if their shapes differ, and never multiply matrices entry-by-entry like addition. Matrix multiplication follows the strict row-times-column rule.

Matrix Multiplication

The product ABAB is defined only when the inner dimensions match: the number of columns of AA equals the number of rows of BB. An m×nm \times n times an n×pn \times p matrix yields an m×pm \times p result.

Entry (i,j)(i,j) is the dot product of row ii of AA and column jj of BB:

(AB)ij=kAikBkj(AB)_{ij} = \sum_k A_{ik} B_{kj}

Matrix multiplication is not commutative (ABBAAB \neq BA), but it is associative (A(BC)=(AB)CA(BC) = (AB)C). The identity matrix II has ones on the diagonal and satisfies AI=IA=AAI = IA = A. Square matrices with an inverse A1A^{-1} where AA1=A1A=IAA^{-1} = A^{-1}A = I are invertible (nonsingular).

Matrices and Matrix Operations

Practise this lesson

The explanation above is free to read. The graded practice for this lesson lives in the Tryals app.

9practice questions
2interactive scenes

Matrices and Vectors