Professor: J.P. Pretti | Term: Winter 2023
Vectors in
A member of is called a vector. We often use overline arrows. Let . Can also write as a row, but use superscript.
Two ways to think about vectors.
- Algebraic. List of real numbers
- Geometric. Directed line segment between 2 points
Given with then if for
Two operations:
Addition: Input vectors in outputs 1 vector in .
Scalar Multiplication: 1 vector in & 1 real number outputs 1 vector in
Properties: Let
- has an additive inverse. If , then is the additive inverse of
Definition
Let Say , then . This stretches by . If , then switch direction of .
Properties: Let
- If then or
Proof of the third point above.
Standard Basis
Standard Basis for
is the standard basis.
Dot Product
Vector Vector Real Number
Properties
(only iff )
Length of Vector
is (magnitude).
If and , then
Unit Vectors
is a unit vector if
Normalization
When is a non-zero vector, we can produce a unit vector.
Angle
Also
Angle between and .
Orthogonality
Two vectors are perpendicular if .
More rules:
Find 2 vectors orthogonal to .
Without inspection,
Find the angle in-between
Projection and Perpendicular
We want for some and .
Then
Definition
Let and . Projection of onto is
The length of does not impact length of projection.
Definition
Perpendicular of onto is defined by
We have
Also
Let
then
and
Fields
and are fields
- Can multiply, add, subtract, and stay in set
- Can divide by non-zero and stay in set
- ”Everything works” (commutative, associative, distributive, inverse).
Cross Product
Let (only defined for )
Cross product is given by
Properties
and let
- and
- , where is the angle between (and are not zero vectors).
area of parallelogram
Spans, Lines, and Planes
Linear Combinations and Spans
Example
is a linear combination of and .
Linear combination is a vector, span is a set.
Examples - True or False?
-
Every vector in is an element of Span
-
Every vector in is an element of Span
-
Every vector in is an element of Span
-
True -
-
True -
-
False
Geometry
Span
For , Span is a line through origin with direction .
For , if are not parallel, then Span is a plane
Lines
Parametric Equations
are fixed numbers (). Parametric equations of line in through point with slope are
Vector Equation of a Line in
This is a vector equation of line in through with direction .
Line in
Parametric Equations of a Line
Parameter “generates” points on the line. When , we have which is a vertical line with undefined slope.
Vector Equation of a Line
Let and .
- is on
- is on
- usually is not on
- is on iff Span
Exercises:
- Give parametric equations for the line
- Give a vector equation of a line through and
- Show that is the same line as
Prove parallel and coincident (pass through the same point) or,
Can set up an algebraic system of equations using set equality.
Direction vectors are scalar multiples, immediately parallel.
Equations in
Vector Equations
Parametric Equations
Lines
Lines through the origin can be described as the span.
Example of a Line in
Line through the origin and .
Parametric equations:
Planes Through the Origin
(non-zero), for
Plane Examples
These two are not on . When scaled and added to , then it is on it.
are on
Normal Vectors
(normal vector to plane)
Normal form of
Expanding
Exercise
Find a vector equation and a scalar equation of the plane containing and .
Can find direction vectors:
So a vector equation is:
Finding Scalar Equation, we can find a normal vector:
Orthogonal to the 2 direction vectors
Our equation is thus
Simplifies to
Systems of Linear Equations
These show up everywhere.
Examples from linear algebra
- Is a vector in the span of a given set?
- Find a vector orthogonal to another vector(s)?
- Determine the intersection of two planes
Linear Equation
where
coefficients (known)
variables (unknown)
A system is multiple of these. For is the equation and gives the variable.
Solving means we found into and LHS=RHS.
We view a system as simultaneous.
Solution Set
a) The solution set of .
b) Show that
is a solution to
Let . Then .
And indeed,
This shows that the given line is a solution.
Solution is either empty, one element (unique), infinite number of equations.
Solving Systems: Two big ideas.
Some systems are easy to solve ().
Solve a “hard” system by changing it to a “simpler” but equivalent system. Two systems are equivalent if they have the same solution set.
How do we do this? We can multiply both sides by , and we can add equations. We cannot multiply by zero, square an equation, remove an equation, or insert an equation.
Elementary Operations
Swap elementary operation
Scale elementary operation
Addition elementary operation
A single elementary operation performed produces an equivalent system.
Unique solution (consistent)
Infinite solutions (consistent)
No solutions (inconsistent)
Solving Systems using EO’s
Let for some .
We get the solution set:
Question
Is on
We need to solve
Has a solution on the plane.
There is no solution. That is is not on .
Prove that the only vector orthogonal to
is .
We must solve
We will work with an augmented matrix:
Matrix
matrix, array of rows, columns. is coefficient of in the th equation.
Elementary Row Operations
- Row swap:
- Row scale:
- Row addition:
Zero row: Row that has all zero entries.
If is from by finite ERO, is equivalent to .
Gauss-Jordan Algorithm (Big Picture)
Assume , “really exists”. Begin by forward elimination phase (the goal is REF).
Scale so all leading coefficients are 1. We can now use back substitution to solve or, continue with backwards elimination phase. The goal is RREF (Reduced Row Echelon Form). Place 0s above all leading coefficients.
Leftmost non-zero entry of a non-zero matrix is the leading entry.
Definition
Row Echelon Form: When all zero rows are at the bottom, leading entries appear in a column to the right of the columns entering the leading entries from columns above.
Gauss-Jordan Algorithm Examples
This tells us that is the unique solution to the system and so is indeed the only vector orthogonal to the three given vectors.
Hence there is no solution.
The first and fourth columns are pivot columns. The first two rows are pivot rows.
and are basic variables. and are free variables. When we see that the system is consistent, we assign parameters to the free variables and express the basic variables in terms of these parameters.
Notation: .
Definition
Let be any matrix, the rank is the number of pivots .
There are bounds to the rank. .
Definition
System is consistent iff .
Proof:
Let and be as given.
Let be .
Note that every pivot of is a pivot of . This means .
First assume the system is consistent. Then does not have a row of the form . That is, does not have a pivot of . Hence .
Assume the system is inconsistent.
Therefore has a row of the form . That is a pivot of that is not a pivot of . Hence . That is .
Theorem
System Rank Theorem: Let with . a) Let . If the system of equations with augmented matrix is consistent, then the solution set to this system will contain parameters. b) System with augmented matrix is consistent for every if and only if .
Sketch proof
a)
is the number of columns is the number of variables. Rank is means pivots basic variables. free variables, parameters
b)
Assume . Let . Let be pivot in every row of . No consistent.
Assume . Let . There is a row without a pivot in . Hence has a zero-row. Say it is the th row. Hence is inconsistent.
Using ERO in reverse, we get which is inconsistent.
.
Homogeneous Solutions: All elements on the right hand side are zero. Otherwise it is a non-homogeneous solution.
For homogeneous solutions, trivial solution .
Solution to homogeneous system is called the nullspace of .
Matrix-Vector Multiplication
Row Vector
.
Number of columns must be the same but doesn’t have to equal .
can be written as .
GJA works over also.
Example
determines whether or not the system is consistent. Structure really depends on .
Can partially/mostly understand once we understand .
Notice is consistent. Note is a solution. Call it the trivial solution.
The set of all solutions to is called the nullspace of , written as .
Example
Proposition: Let for some .
Let . Let . Then and .
Proof:
To show , we must show . Well, .
Proposition: Let . Let such that is consistent.
Let be a solution to .
Let be the solution set to .
Then .
So every solution to is a solution to .
Proof:
Let . So .
We want to show , i.e. that .
Well, .
Let . So .
We want to show , we want to show .
Note . So .
So , so .
and are associated homogeneous systems.
Let be the solution set of .
Let be the solution set of .
Suppose is a solution of .
Then, .
Suppose has solution set
Suppose is a solution to .
Give two more solutions.
Consider now , solution set . Consider , solution set .
Suppose is a solution to and is a solution to .
Suppose is a solution to .
Then is a solution to .
Then is a solution to .
Theorem
determines whether or not is consistent. solely determines the structure of the set of all solutions.
Matrices
Let . Write with each .
Column Space of , written as , is the .
Let and . The system of linear equations is consistent if and only if .
Proof:
Assume is consistent.
such that .
So . So .
Assume . Thus .
Such that .
So .
So is a solution to . So is consistent.
Let . We define the transpose of , denoted , by .
Note: Rows become columns, columns become rows.
Example
Let . We define the row space of , denoted by , to be the span of the transposed rows of . That is,
Note: Turn rows into vectors and then take their linear combinations. .
Example
Let . If is row equivalent to , then
EROs do not change the row space, but EROs do change the column space.
Let . Prove that is consistent for .
Proof:
is in , thus is consistent.
Let . Then for all .
In other words, the matrix-vector multiplication of and the th standard basis vector yields the th column of . Useful result used later.
Let . Then
Assume , then .
Assume .
So for .
By column extraction, , .
So . So the columns of and match. So .
Matrix Product
Let and . We define the matrix product to be the matrix , constructed as follows:
That is, the th column of , is obtained by multiplying the matrix by the th column of the matrix :
Note: Number of columns of first matrix must match the number of rows of the second matrix.
Note: Each column of is an element of .
If , then to find , take the “dot product” of th row of and th column of .
Matrix Sum
Let . We define the matrix sum to be the matrix whose th entry is , for all and .
The matrices must be the same size.
Properties:
The zero matrix is the matrix all of whose entries are .
Let . We define the additive inverse of to be the matrix whose th entry is for all and .
If , then
If , and , then
Proof of
Let and . We define the product of and to be the matrix whose th entry is for all and .
If and , then
- . Thus we may write for any of these three quantities unambiguously.
Also, .
More properties for transpose:
Proof of .
A matrix where the number of rows is equal to the number of columns is called a square matrix.
Let . We say that is upper triangular if for with and .
Square matrices in REF or RREF are upper triangular.
Let . We say that is lower triangular if for with and .
We say that an matrix is diagonal if for with and . We refer to the entries as the diagonal entries of , and denote our matrix by .
Diagonal matrices are both upper and lower triangular. If is upper triangular, then is lower triangular. If is lower triangular, then is upper triangular.
If is diagonal then .
The diagonal matrix is called the identity matrix, and is denoted by . If we wish to indicate that the size of the identity matrix is , we add a subscript and write .
The identity matrix is the multiplicative identity. and .
Also, .
Question
Does there exist where , such that .
A square matrix is called idempotent if .