Lecture Slides Linear Algebra 1
Lecture Slides Linear Algebra 1
Linear Equations
Topics
We will explore the following concepts in this video.
• systems of linear equations
• elementary row operations
• solving linear systems
Learning Objectives
Students should be able to do the following after watching this video and
completing the assigned homework.
• identify coefficients and variables in a linear system
• apply elementary row operations to solve linear systems of equations
A Single Linear Equation
For example,
• 2x1 + 4x2 = 4 is one equation with two variables
• 3x1 + 2x2 + x3 = 6 is one equation with three variables
Systems of Linear Equations
(3, 2)
x1 x1 x1
Later in this course we will see why these are the only three possibilities.
Row Reduction by Elementary Row Operations
Consistent Systems
Topics and Learning Objectives
Topics
We will explore the following concepts in this video.
• augmented matrices
• fundamental questions of existence and uniqueness of solutions
• row equivalence
Learning Objectives
Students should be able to do the following after watching this video and
completing the assigned homework.
• express a set of linear equations as an augmented matrix
• characterize a linear system in terms of the number of solutions, and
whether the system is consistent or inconsistent
Augmented Matrices
The vertical line reminds us that the first three columns are the coefficients to
our variables x1 , x2 , and x3 . Row operations can be applied to rows of
augmented matrices as though they were coefficients in a system.
Consistent Systems and Row Equivalence
Definition: Consistent
A linear system is consistent if it has at least one solution.
Note: if the augmented matrices of two linear systems are row equivalent,
then the systems have the same solution set.
Example for Consistent Systems and Row Equivalence
Suppose
1 1 1 0 1 1
A= , B= , C=
0 1 0 1 0 0
Suppose
1 1 1 0 1 1
A= , B= , C=
0 1 0 1 0 0
1 1 1 1 1 1
2. Do the augmented matrices and correspond to
0 1 1 0 0 1
consistent systems?
Summary: Fundamental Questions
Topics
We will explore the following concepts in this video.
• echelon form and row reduced echelon form
Learning Objectives
Students should be able to do the following after watching this video and
completing the assigned homework.
• identify whether a matrix is in echelon form or in row reduced echelon
form (RREF)
• give examples of matrices in echelon form or in RREF
Motivation: Identifying a Solution to a Linear System
0 0 1 17 0
b) e)
0 0 0 0 1
0
1
c)
0
0
Summary: Echelon and RREF
Topics
We will explore the following concepts in this video.
• row reduction algorithm
• pivots and pivot columns
Learning Objectives
Students should be able to do the following after watching this video and
completing the assigned homework.
• characterize a linear system in terms of the number of leading entries,
pivots, pivot columns, pivot positions
• apply the row reduction algorithm to reduce a linear system to echelon
form, or to RREF
Definition: Pivot Position, Pivot Column
Example: Express the matrix in RREF and identify the pivot columns.
0 −3 −6 9
−1 −2 −1 3
−2 −3 0 3
Row Reduction Algorithm
The algorithm we used in the previous example produces a matrix in RREF. Its
steps can be stated as follows.
Step 1: Swap the first row with a lower one so the leftmost nonzero
entry is in the first row
Step 2: Scale the 1st row so that its leading entry is equal to 1
Step 3: Use row replacement so all entries above and below this leading
entry (if any) are equal to zero
Then repeat these steps for row 2, then for row 3, and so on, for the
remaining rows of the matrix.
Notes on the Row Reduction Algorithm
Topics
We will explore the following concepts in this video.
• consistency, existence, uniqueness
• pivots, and basic and free variables
Learning Objectives
Students should be able to do the following after watching this video and
completing the assigned homework.
• determine whether a linear system is consistent from its echelon form
• apply the row reduction algorithm to compute the coefficients of a
polynomial
Basic and Free Variables
• Note that a matrix, on its own, does not have basic variables or free
variables. Systems have variables.
• If A has n columns, then the linear system
A ~b
must have n variables. One variable for each column of the matrix.
• There are two types of variables: basic and free. And a variable cannot be
both free and basic at the same time.
n = number of columns of A
= (number of basic variables) + (number of free variables)
Existence and Uniqueness
Theorem
A linear system is consistent if and only if (exactly when) the last column
of the augmented matrix does not have a pivot. This is the same as
saying that the RREF of the augmented matrix does not have a row of
the form
0 0 0 ··· 0 | 1
Moreover, if a linear system is consistent, then it has
1. a unique solution if and only if there are no free variables, and
2. infinitely many solutions that are parameterized by free variables.
Example: Existence and Uniqueness
Vectors in Rn
Topics and Learning Objectives
Topics
We will explore the following concepts in this video.
• vectors in Rn , and their basic properties
Learning Objectives
Students should be able to do the following after watching this video and
completing the assigned homework.
• apply geometric and algebraic properties of vectors in Rn to compute
vector additions and scalar multiplications
Motivation
x − 3y = −3
2x + y = 8
We can also think of them as vectors: arrows with a given length and
direction.
3
For example, the vector points horizontally in the amount of its
2
x-coordinate, and vertically in the amount of its y-coordinate.
Vector Algebra
~a + ~b
~b
~a
Summary
Linear Combinations
Topics and Learning Objectives
Topics
We will explore the following concepts in this video.
• linear combinations of vectors
Learning Objectives
Students should be able to do the following after watching this video and
completing the assigned homework.
• characterize a set of vectors in terms of linear combinations
Linear Combinations Definition
Definition
Given vectors ~v1 , ~v2 , . . . , ~vp ∈ Rn , and scalars c1 , c2 , . . . , cp , the
vector ~y , where
~y = c1~v1 + c2~v2 + · · · + cp~vp
is called a linear combination of ~v1 , ~v2 , . . . , ~vp with weights
c1 , c2 , . . . , cp .
Linear Combinations Example
~y
~v2
2~v1
~v2 ~v1
x1
Geometric Interpretation of Linear Combinations
Span
Topics and Learning Objectives
Topics
We will explore the following concepts in this video.
• the span of a set of vectors
Learning Objectives
Students should be able to do the following after watching this video and
completing the assigned homework.
• characterize a set of vectors in terms of linear combinations and their
span, and how they are related to each other geometrically
Span
Definition
Given vectors ~v1 , ~v2 , . . . , ~vp ∈ Rn , and scalars c1 , c2 , . . . , cp .
The set of all linear combinations of ~v1 , ~v2 , . . . , ~vp is called the
span of ~v1 , ~v2 , . . . , ~vp .
Span Example
In the previous example, did we find that ~y is in the span of ~v1 and ~v2 ?
~0
Summary
Topics
We will explore the following concepts in this video.
• matrix notation for systems of equations
• the matrix product A~x
Learning Objectives
Students should be able to do the following after watching this video and
completing the assigned homework.
• compute matrix-vector products
• express linear systems as vector equations and matrix equations
Multiple Representations
symbol meaning
∈ belongs to
Rn the set of vectors with n real-valued elements
Rm×n the set of real-valued matrices with m rows and n columns
Example
The notation ~x ∈ R5 means that ~x is a vector with five real-valued elements.
Matrix-Vector Product as a Linear Combination
Definition
If A ∈ Rm×n has columns ~a1 , . . . , ~an and ~x ∈ Rn , then the matrix
vector product A~x is a linear combination of the columns of A.
x1
| | · · · | x
2
A~x = ~a1 ~a2 · · · ~an
.. = x1~a1 + x2~a2 + · · · + xn~an
.
| | ··· |
xn
Note that A~x is in the span of the columns of A.
Linear Combination Examples
1 0 2
Suppose A = and ~x =
0 −3 3
1. The following product can be written as a linear combination of vectors:
A~x =
2
2. Is ~b = in the span of the columns of A?
9
Summary
Existence of Solutions
Topics and Learning Objectives
Topics
We will explore the following concepts in this video.
• solution sets
Learning Objectives
Students should be able to do the following after watching this video and
completing the assigned homework.
• express linear systems as vector equations and matrix equations
• characterize solution sets of linear systems using the concepts of span,
linear combinations
Equivalent Solution Sets
Theorem
The equation A~x = ~b has a solution if and only if ~b is a linear
combination of the columns of A.
This follows directly from our definition of A~x being a linear combination of
the columns of A.
Using Linear Combinations to Characterize a System
Example
b1
For what vectors ~b = b2 does the equation have a solution?
b3
1 3 4
2 8 4 ~x = ~b
0 1 −2
Multiple Representations of Linear Systems
Homogeneous Systems
Topics and Learning Objectives
Topics
We will explore the following concepts in this video.
• homogeneous systems
• parametric vector forms of solutions to linear systems
Learning Objectives
Students should be able to do the following after watching this video and
completing the assigned homework.
• characterize homogeneous linear systems using the concepts of free
variables, span, pivots, linear combinations, and echelon forms
Homogeneous Systems
Definition
Linear systems of the form A~x = ~0 are homogeneous.
Because homogeneous systems always have the trivial solution, ~x = ~0, the
interesting question is whether they have non-trivial solutions.
Homogeneous Systems
Observation
A~x = ~0 has a nontrivial solution
⇐⇒ there is a free variable
⇐⇒ A has a column with no pivot.
Example: a Homogeneous System
Identify the free variables, and the solution set, of the system.
x1 + 3x2 + x3 = 0
2x1 − x2 − 5x3 = 0
x1 − 2x3 = 0
Summary
Topics
We will explore the following concepts in this video.
• homogeneous systems
• parametric vector forms of solutions to linear systems
Learning Objectives
Students should be able to do the following after watching this video and
completing the assigned homework.
• express the solution set of a linear system in parametric vector form
Recall: Homogeneous Systems
Definition
Linear systems of the form A~x = ~0 are homogeneous.
These systems are related to each other in a way that is easier to see with
parametric vector form.
Parametric Vector form of the Solution of a
Non-homogeneous System
In general, suppose the free variables for A~x = ~0 are xk , . . . , xn . Then all
solutions to A~x = ~0 can be written as
~x = xk~vk + xk+1~vk+1 + · · · + xn~vn
for some ~vk , . . . , ~vn . This is the parametric form of the solution.
Summary
Topics
We will explore the following concepts in this video.
• linear independence
• geometric interpretation of linearly independent vectors
Learning Objectives
Students should be able to do the following after watching this video and
completing the assigned homework.
• characterize a set of vectors and linear systems using the concept of linear
independence
A Motivating Question
In other words, {~v1 , . . . , ~vk } are linearly dependent if there are real numbers
c1 , c2 , . . . , ck not all zero so that
c1~v1 + c2~v2 + · · · + ck~vk = ~0
How to Establish Linear Independence
cn
Topics
We will explore the following concepts in this video.
• linear independence
• geometric interpretation of linearly independent vectors
Learning Objectives
Students should be able to do the following after watching this video and
completing the assigned homework.
• characterize a set of vectors and linear systems using the concept of linear
independence
• construct dependence relations between linearly dependent vectors
A Motivating Question
In other words, {~v1 , . . . , ~vk } are linearly dependent if there are real numbers
c1 , c2 , . . . , ck not all zero so that
c1~v1 + c2~v2 + · · · + ck~vk = ~0
Example: Two Dependent Vectors
Suppose ~v1 , ~v2 ∈ Rn . When is the set {~v1 , ~v2 } linearly dependent? Provide a
geometric interpretation.
Solution
From our definition of linear dependence, if ~v1 , ~v2 are dependent, then there
exists a c1 and a c2 , not both zero, so that
c1~v1 + c2~v2 = ~0
Example: Two Dependent Vectors
Thus, two vectors in Rn are dependent when either or both of the following
occur.
• One or both vectors are the zero vector.
• One vector is a multiple of the other.
Linear Independence Theorems
2) Set Contains Zero Vector: If any one or more of ~v1 , . . . , ~vk is ~0, then
{~v1 , . . . , ~vk } is linearly dependent.
Topics
We will explore the following concepts in this video.
• the definition of a linear transformation
• domain, codomain, image, and range
• the interpretation of matrix multiplication as a linear transformation
Learning Objectives
Students should be able to do the following after watching this video and
completing the assigned homework.
• characterize linear transforms using the concepts of domain, codomain,
image, and range
From Matrices to Functions
0 π x
−π 2π
Example: A Matrix Transformation
1 1
3
Let A = 0 1 , ~u = , T (~x) = A~x
4
1 1
The function
T : Rn → Rm , T (~v ) = A~x
Topics
We will explore the following concepts in this video.
• geometric interpretations of a linear transform
Learning Objectives
Students should be able to do the following after watching this video and
completing the assigned homework.
• construct and interpret linear transformations in Rn (for example, interpret
a linear transform as a projection, or as a shear)
Linear Transformations
A function T : Rn → Rm is linear if
• T (~u + ~v ) = T (~u) + T (~v ) for all ~u, ~v in Rn .
• T (c~v ) = cT (~v ) for all ~v ∈ Rn , and c in R.
So if T is linear, then
T (c1~v1 + · · · + ck~vk ) = c1 T (~v1 ) + · · · + ck T (~vk )
This is called the principle of superposition.
1 0
2) A =
0 0
k 0
3) A = for k ∈ R
0 k
Geometric Interpretations of Transforms in R3
1 0 0
b) A = 0 −1 0
0 0 1
Constructing the Matrix of the Transformation
Topics
We will explore the following concepts in this video.
• the standard vectors and the standard matrix
Learning Objectives
Students should be able to do the following after watching this video and
completing the assigned homework.
• identify and construct linear transformations of a matrix
Definition: The Standard Vectors
The standard vectors in Rn are the vectors ~e1 , ~e2 , . . . , ~en , where:
For example, in R3 ,
Theorem
Let T : Rn 7→ Rm be a linear transformation. Then there is a
unique matrix A such that
T (~x) = A~x, ~x ∈ Rn .
In fact, A is a m × n, and its j th column is the vector T (~ej ).
A = T (~e1 ) T (~e2 ) · · · T (~en )
https://xkcd.com/184
Example: Constructing a Standard Matrix
Topics
We will explore the following concepts in this video.
• the standard vectors and the standard matrix
• two dimensional transformations in more detail
Learning Objectives
Students should be able to do the following after watching this video and
completing the assigned homework.
• identify and construct linear transformations of a matrix
Standard Matrices in R2
~e1 x1
reflection through x2 −axis x2 −1 0
0 1
~e2
x1
~e1
Two Dimensional Examples: Reflections
transformation image of unit square standard matrix
reflection through x2 = x1 x2 0 1
x2 = x1
1 0
~e2
x1
~e1
reflection through x2 = −x1 x2 0 −1
x2 = −x1 −1 0
~e2
x1
~e1
Two Dimensional Examples: Contractions and Expansions
transformation image of unit square standard matrix
horizontal contraction x2 k 0
. |k| < 1
0 1
~e2
x1
~e1
horizontal expansion x2 k 0
,k>1
0 1
~e2
x1
~e1
Two Dimensional Examples: Contractions and Expansions
transformation image of unit square standard matrix
vertical contraction x2 1 0
, |k| < 1
0 k
~e2
x1
~e1
vertical expansion x2 1 0
,k>1
0 k
~e2
x1
~e1
Two Dimensional Examples: Shears
x1
k<0
horizontal shear (right) x2 1 k
,k>0
0 1
x1
k>0
Two Dimensional Examples: Shears
Topics
We will explore the following concepts in this video.
• onto and one-to-one transformations
Learning Objectives
Students should be able to do the following after watching this video and
completing the assigned homework.
• characterize and construct linear transformations that are onto and/or
one-to-one
Onto
Definition
A linear transformation T : Rn → Rm is onto if for all ~b ∈ Rm
there is a ~x ∈ Rn so that T (~x) = A~x = ~b.
Implications
• Onto is an existence property: for any ~b ∈ Rm , A~x = ~b has a solution.
• T is onto if and only if its standard matrix has a pivot in every row.
One-to-One
Definition
A linear transformation T : Rn → Rm is one-to-one if for all ~b ∈ Rm
there is at most one (possibly no) ~x ∈ Rn so that T (~x) = A~x = ~b.
Implications
• One-to-one is a uniqueness property, it does not assert existence for all ~b.
• T is one-to-one if and only if the only solution to T (~x) = ~0 is the zero
vector, ~x = ~0.
• T is one-to-one if and only if every column of A is pivotal.
Example: Matrix Completion, One-to-one and Onto
Complete the matrices by entering numbers into the missing entries so that
the properties are satisfied. If it isn’t possible to do so, state why.
a) A is a 2 × 3 standard matrix for a one-to-one transform.
1 0
A=
0 1
b) B is a 3 × 3 standard matrix for a transform that is one-to-one and onto.
1 1 1
B=
Theorem for Onto Transforms
Theorem
For a linear transformation T : Rn → Rm with standard
matrix A, these are equivalent statements.
1. T is onto.
2. A has columns that span Rm .
3. Every row of A is pivotal.
Theorem for One-to-one Transforms
Theorem
For a linear transformation T : Rn → Rm with standard
matrix A, these are equivalent statements.
1. T is one-to-one.
2. The unique solution to T (~x) = ~0 is the trivial one.
3. A has linearly independent columns.
4. Each column of A is pivotal.
Example: Constructing a Standard Matrix, One-to-one
and Onto