1.3-1.4 Vector Equations & The Matrix Equation Ax = b
Theory: Vector Equations & The Matrix Equation Ax=b
Vectors in Rn & Linear Combinations
A column vector u∈Rn is an ordered list of n real numbers:
u=u1u2⋮un
Given vectors v1,v2,…,vp∈Rn and scalars c1,c2,…,cp, the vector:
y=c1v1+c2v2+⋯+cpvp
is called a linear combination of v1,…,vp with weightsc1,…,cp.
The set of all linear combinations is denoted by:
Span{v1,…,vp}={c1v1+⋯+cpvp:c1,…,cp∈R}
Span{v} (for v=0) is a line passing through the origin 0 in Rn.
Span{u,v} (for non-parallel u,v) is a plane passing through the origin 0.
The Matrix Equation Ax=b
If A is an m×n matrix with columns a1,…,an, and x∈Rn, then the product Ax is defined as the linear combination of the columns of A using the corresponding entries in x as weights:
[!IMPORTANT]
Key Equivalence: The matrix equation Ax=b, the vector equation x1a1+⋯+xnan=b, and the linear system with augmented matrix [a1a2⋯an∣b] have the exact same solution set.
Therefore, b∈Span{a1,…,an} if and only if Ax=b is consistent.
Theorem 4: When Does Ax=b Have a Solution for Every b?
Let A be an m×n matrix. The following four statements are logically equivalent (either all true or all false):
For each b∈Rm, the equation Ax=b has a solution.
Each b∈Rm is a linear combination of the columns of A.
The columns of A span Rm (Span{a1,…,an}=Rm).
A has a pivot position in every row.
Solved Examples (Textbook Questions)
Exercise 1
(Adapted from Lay §1.3, Exercise 11)
Let a1=1−20, a2=012, a3=5−68, and b=2−16.
Determine whether b is in Span{a1,a2,a3}. If it is, express b as a linear combination of a1,a2,a3.
Show solution ↓Hide solution ↑
Solution
The question asks whether there exist scalars x1,x2,x3 such that:
x1a1+x2a2+x3a3=b
Step 1: Form the augmented matrix.
1−200125−682−16
Step 2: Row reduce to RREF.
R2←R2+2R1:
[−2,1,−6,−1]+2[1,0,5,2]=[0,1,4,3]
The matrix becomes:
100012548236
R3←R3−2R2:
[0,2,8,6]−2[0,1,4,3]=[0,0,0,0]
The RREF is:
100010540230
Step 3: Conclusion.
There is no pivot in the augmented column, so the system is consistent. Thus, b∈Span{a1,a2,a3}.
The solution equations are:
x1+5x3x2+4x3x3=2⟹x1=2−5x3=3⟹x2=3−4x3 is free
Choosing x3=0, we get weights x1=2 and x2=3:
b=2a1+3a2+0a3=2a1+3a2
Verification:
21−20+3012=2+0−4+30+6=2−16=b✓
Exercise 2
(Adapted from Lay §1.3, Exercise 17)
For what value(s) of h is y in the plane generated by v1 and v2, where:
v1=14−2,v2=−2−37,y=41h
Show solution ↓Hide solution ↑
Solution
The vector y lies in the plane Span{v1,v2} if and only if the vector equation x1v1+x2v2=y is consistent.
Step 1: Set up the augmented matrix.
14−2−2−3741h
Step 2: Row reduce to echelon form.
R2←R2−4R1:
[4,−3,1]−4[1,−2,4]=[0,5,−15]
R3←R3+2R1:
[−2,7,h]+2[1,−2,4]=[0,3,h+8]
The matrix is:
100−2534−15h+8
Scale row 2 by 51 (R2←51R2):
100−2134−3h+8
Eliminate entry in row 3 (R3←R3−3R2):
[0,3,h+8]−3[0,1,−3]=[0,0,h+8−(−9)]=[0,0,h+17]
The echelon form is:
100−2104−3h+17
Step 3: Enforce consistency.
By Theorem 2, the system is consistent if and only if the last row does not have a pivot in the augmented column:
h+17=0⟹h=−17
Conclusion:y∈Span{v1,v2} if and only if h=−17.
Exercise 3
(Adapted from Lay §1.4, Exercise 17)
Let A=1−1023−1−400−12331−8−1.
Do the columns of A span R4? Does the equation Ax=b have a solution for each b∈R4? Justify your answer using Theorem 4.
Show solution ↓Hide solution ↑
Solution
According to Theorem 4, the columns of A span R4 if and only if A has a pivot position in every row. Since A has 4 rows, it must have 4 pivots.
Step 1: Row reduce A to echelon form.
A=1−1023−1−400−12331−8−1
R2←R2+R1:
[−1,−1,−1,1]+[1,3,0,3]=[0,2,−1,4]
R4←R4−2R1:
[2,0,3,−1]−2[1,3,0,3]=[0,−6,3,−7]
Matrix:
100032−4−60−12334−8−7
R3←R3+2R2:
[0,−4,2,−8]+2[0,2,−1,4]=[0,0,0,0]
R4←R4+3R2:
[0,−6,3,−7]+3[0,2,−1,4]=[0,0,0,5]
Interchange R3 and R4 to place the zero row at the bottom (R3↔R4):
100032000−1003450
Step 2: Count the pivots.
Pivot in row 1 (column 1: entry 1)
Pivot in row 2 (column 2: entry 2)
Pivot in row 3 (column 4: entry 5)
Row 4 is all zeros: no pivot in row 4.
Conclusion:
Matrix A has only 3 pivot positions, not 4. By Theorem 4:
The columns of Ado not spanR4.
The equation Ax=bdoes not have a solution for every b∈R4.