
0:00 / 0:00
Basics of Matrices
What is a Matrix?
A matrix is a rectangular array of numbers, e.g.
Size and Dimension
- A matrix with rows and columns is of size , where and are its dimensions. E.g. the matrix above is of size , and we may make this explicit by writing .
- A square matrix has the same number of rows and columns (size .
Entries
The numbers inside a matrix are called entries.
The -entry of matrix is the number in row and column , denoted .
Example
Find and .
(row 2, column 2)
(row 1, column 4)
Zero Matrix
The zero matrix is the matrix where every entry is 0.
The zero matrix is .
Diagonal Matrices
The main diagonal of a square matrix are the entries with matching row and column numbers, :
A matrix is said to be diagonal if every entry not on the main diagonal is 0, e.g.
Identity Matrix
The identity matrix is a diagonal matrix with 1s along the main diagonal, e.g.

0:00 / 0:00
Matrix Operations
Matrix Addition
Two matrices can be added/subtracted if they are the same size. The result will also be the same size.
To add two matrices, simply add corresponding entries.
Example
Compute .
Properties
- There exists a zero matrix such that
- There exists a negative matrix such that
Scalar Multiplication
We can multiply any matrix by any scalar by multiplying every entry of by :
Example
Compute .
Properties
If and are matrices and :

0:00 / 0:00
Example: Basics of Matrices
Consider the matrix .
a) Find .
Recall that is the identity matrix (1s along the main diagonal, 0s elsewhere).
b) What are the entries in the main diagonal of the result?
Given the matrix , define and find the following entries.