Basics of Matrices

Basics of Matrices
What is a Matrix?
A matrix is a rectangular array of numbers, e.g. A=301712303704305
Size and Dimension
- A matrix with m rows and n columns is of size m×n, where m and n are its dimensions. E.g. the matrix A above is of size 3×5, and we may make this explicit by writing A3×5.
- A square matrix has the same number of rows and columns (size n×n).
Entries
The numbers inside a matrix are called entries.
The (i,j)-entry of matrix A is the number in row i and column j, denoted aij.
Example
A=301712303704305
Find a22 and a14.
a22=1 (row 2, column 2)
a14=7 (row 1, column 4)
Zero Matrix
The zero matrix is the m×n matrix where every entry is 0.
The 3×2 zero matrix is 03×2=000000.
Diagonal Matrices
The main diagonal of a square matrix A are the entries with matching row and column numbers, aii:
a11a21a31a12a22a32a13a23a33
A matrix is said to be diagonal if every entry not on the main diagonal is 0, e.g.300010002
Identity Matrix
The identity matrix Inis a diagonal n×n matrix with 1s along the main diagonal, e.g. I3=100010001

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.
A+B=[aij+bij]
Example
Compute [1001−11]+[31−242−1].
=[1+30+10+(−2)1+4−1+21+(−1)]=[41−2510]
Properties
- A+B=B+A
- A+(B+C)=(A+B)+C
- There exists a zero matrix such that A+[ 0 ]=A
- There exists a negative matrix such that A+(−A)=[ 0 ]
Scalar Multiplication
We can multiply any matrix A by any scalar k by multiplying every entry of A by k:
kA=[k aij]
Example
Compute (−4)[31−242−1].
=[3(−4)1(−4)−2(−4)4(−4)2(−4)−1(−4)]=[−12−48−16−84]
Properties
If A and B are matrices and c, d∈R:
- c(A+B)=cA+cB
- (c+d)A=cA+dA
- c(dA)=(cd)A

Example: Basics of Matrices
Consider the matrix A=[1−32−4].
a) Find 2A−3I2.
Recall that I2 is the 2×2 identity matrix (1s along the main diagonal, 0s elsewhere).
2A−3I2=== 2[1−32−4]−3[2−64−8]−[−1−64−11][1001][3003]
b) What are the entries in the main diagonal of the result?
−1,−11