Notes 03
Notes 03
Shenghao Yang
Spring 2023
2 1 7 −7 2 1 1 4 −5 2
row ops
−3 4 −5 −6 3 −−−−−→ 0 1 1 −3 2
1 1 4 −5 2 0 0 0 0 −5
x1 + x2 + 4x3 − 5x4 = 2,
x2 + x3 − 3x4 = 2,
0 = −5.
1
Example 2. Find the solutions to the following system of equations using Gauss-Jordan elimination
−7 −6 −12 −33 1 1 4 10 1 0 0 −3
row ops row ops
5 5 7 24 −−−−−→ 0 1 16 37 −−−−−→ 0 1 0 5
1 1 4 10 0 0 -13 −26 0 0 1 2
1 −1 2 1 1 −1 2 1 1 0 1 3
row ops row ops
2 1 1 8 −−−−−→ 0 1 −1 2 −
− −− −
→ 0 1 −1 2
1 1 0 5 0 0 0 0 0 0 0 0
2
Apply the elementary row operations to the augmented matrix:
1 −1 2 1 R2 →−2R1 +R2 1 −1 2
1
R3 →−R1 +R3
2 1 1 8 −−−−−−−−−−→ 0 3 6
−3
1 1 0 5 0 2 −2
4
R2 → 1 R2
1 −1 2 1
−−−−−
3
−→ 0 1 −1 2
0 2 −2 4
1 −1 2 1
R →−2R2 +R3
−−3−−−−−−−−→ 0 1 −1 2
0 0 0 0
1 0 1 3
R →R2 +R1
−−1−−−−−−→ 0 1 −1 2 .
0 0 0 0
The equivalent system is
x1 + x3 = 3,
x2 − x3 = 2,
or
x1 = 3 − x3 ,
x2 = 2 + x3 .
Here x3 is called a free variable. x1 and x2 are called lead (dependent) variables. For each given value
of x3 , the free variable, the system becomes one of two variables with a unique solution. For any real
number α, the 3-tuple
(3 − α, 3 + α, α)
is a solution.
3
Solution Types
• Check the last non-zero row of the augmented matrix in row echelon form.
• If it is of the form (0, . . . , 0, ∗), where ∗ is nonzero, then the system has no solution.
• Otherwise, the system has a solution, and is also called a consistent system.
– If the system has no free variables, then the system has a unique solution.
– If the system has at least one free variable, then the system has infinitely many solutions.
• The free variables of a system depend on the row echelon form of the augmented matrix.
• If we change the order of the variables, the set of free variables can be different.
a+b=0
a + b + c = 1.
So b is the free variable. But if we order the variables as b, a, c, then a is the free variable.
2 Consistent Systems
Consistent System
a+b=0
a + b + c = 1,
a = −b
a + c = 1 − b,
4
• If an m × n system has no free variables, then and the reduced row echelon form of the
coefficient matrix must be of the form
1 0 0 ··· 0
0 1 0 ··· 0
0 0 1 ··· 0
.. .. .. .. ..
. . . . .
0 0 0 ··· 1
0 0 0 ··· 0
0 0 0 ··· 0
Homogeneous Systems
• A system of linear equations is said to be homogeneous if the constants on the right-hand side are
all zero.
• Homogeneous systems are always consistent as the last column in the augmented matrix has only
zero.
• (0, 0, . . . , 0) is always a solution of a homogeneous system, and is call the trivial solution.
x1 + 2x2 + 2x3 = 0
x1 + 3x2 + 3x3 = 0
2x1 + 6x2 + 5x3 = 0
Exercise 2. • If n > m, an m × n homogeneous system has solution.
2α1 x1 + x2 = β1
α2 x1 + x2 = β2 .
Which of the following conditions can guarantee the consistency of the above system?
1. 2α1 ̸= α2
2. β1 = β2
3. 2α1 = α2 and β1 = β2
4. All of the above.
3 Matrix Operations
Matrix Notation
where aij is the entry of the matrix in the ith row and jth column, also known as the (i, j) entry.
5
• Matrices are usually denoted by uppercase letters, e.g., A, B, C, · · · .
• Denote by (A)ij the (i, j) entry of A.
• When m = n, the matrix is a square matrix.
• When all the entries of a matrix are zeros, the matrix is called zero matrix, denoted by 0.
We may use Rm×n to denote the collection of all m × n matrices.
Definition 1. The transpose of an m × n matrix A = (aij ) is the n × m matrix B = (bij ) such that
bji = aij , ∀i = 1, . . . , m, j = 1, . . . , n.
T
The transpose of A is denoted by A .
Example 7.
1 4
1 2 3 2
, 5 .
4 5 6
3 6
With the help of the transpose, we only need to focus on the row operations, row equivalence, etc.
The similar column operations/equivalence is just the row operations/equivalence on the transpose.
Vectors
• A column vector is a matrix of one column, which is usually denoted by a boldface lowercase
letter, e.g., x.
• The set of all column vectors of n real numbers is denoted by Rn .
• The set of all column vectors of n complex numbers is denoted by Cn .
• A row vector is a matrix of one row, which is the transpose of a column vector.
Example 8.
1
2
, 1 2 3 4
3
4
Matrix Operations
Definition 2 (Equality). Two m × n matrices A = (aij ) and B = (bij ) are said to be equal (written as
A = B) if aij = bij for each i and j.
Exercise 3. Show that if A = B then AT = B T .
Definition 3 (Matrix Addition). If A = (aij ) and B = (bij ) are two m × n matrices, then the sum of A
and B (written as A + B) is the m × n matrix with the (i, j) entry aij + bij for each ordered pair (i, j),
i.e, A + B = (aij + bij ).
Example 9.
1 2 3 2 3 4 3 5 7
+ =
4 5 6 −1 −2 −3 3 3 3
Definition 4 (Scalar Multiplication). Let A = (aij )m×n be a matrix and α be a scalar (any real
number). The scalar product of α and A (written as αA) is the m × n matrix with the (i, j) entry αaij ,
i.e., αA = (αaij ).
• We write −A = (−1)A, then A − B is A + (−1)B.
• By definition, 1A = A.
Example 10.
1 2 3 2 4 6
2 =
4 5 6 8 10 12
6
Properties of Matrices Operations
Consider matrices A, B, C of the same size, and scalars α and β.
1. A + B = B + A.
2. A + (B + C) = (A + B) + C. (We will therefore write A + B + C.)
3. A + 0 = 0 + A = A.
4. α(βA) = (αβ)A.
5. α(A + B) = αA + αB.
6. (α + β)A = αA + βA.
Similarly,
Now we are just comparing real (or complex) numbers, and you know the rules for comparing these:
We see that the (i, j)th entry of α(A + B) equals the (i, j)th entry of αA + αB for all i and j, which is
exactly the definition of two matrices being equal.
Exercise 5. Show that if we add a matrix A by itself for k times, the resulting matrix is kA, i.e.,
A + A + · · · + A = kA.
| {z }
k times