Matrix Equation Ax = b
Contents
12. Matrix Equation #
12.1. Product of a Vector with a Matrix#
In this section we introduce the idea of multiplying a vector by a matrix.
Let
Then the product of
In order for
Note that this definition of muliplication of a vector by a matrix accords exactly with the definition you already studied for multiplying a matrix by a matrix.
Example
Let
and
then
Given a vectors
This is equivalent to the matrix equation
Four Ways to Write a Linear System
We now have four equivalent ways to express a linear system:
1. As a system of equations:
2. As an augmented matrix:
3. As a vector equation:
4. As a matrix equation:
Example
Let
Solution
First we answer the question geometrically. The columns of
and the target vector (the right-hand side of the equation) is
We can check our geometric answer by solving the matrix equation. The augmented matrix of the system
is already in echelon form. The last equation is
Example
Let
Does
Solution
We can write this as a matrix system and solve by row reduction of the augmented matrix:
The system is consistent with solution
Geometrically,
Let
has a solution for all .The span of the columns of
is all of . has pivots.
12.2. Solving #
The equation
Attention
The
An equation of the form
An equation of the form
For example, given the homogeneous equation
we can use row operations to reduce the augmented matrix
to reduced row echelon form:
which has only the trivial solution
Note that the augmented part of the matrix is redundant since the zeros are not affected by the row operations. It is not necessary to write an augmented matrix when solving homogeneous systems.
Example
Solve the homogeneous equation
Solution
The matrix
which can be written in parametric form:
Or as a vector equation:
for any
The two vectors
The solution set is a plane passing through the origin.
12.3. Solving #
We now have everything we need to find the general solution to the inhomogeneous equation
The general solution to
Let
is
where
Form the augmented matrix
.Use Gaussian elimination to find the reduced row echelon form and determine the
free variables.Write the parametric form of the solution set (write the corresponding system of linear equations, moving all free variables to the right hand side.)
Write the solution as a vector equation
.
Example
Determine the general solution to the following system of equations, expressing the answer in vector form:
Solution
The augmented matrix is:
We have already determined the reduced row echelon form in this example:
Write as a system of equations with the free variables
Write this in vector form:
for any
Exercise 12.1
For the matrix
What are the special solution(s) to the homogeneous equation
?What is the null space of
?Find the general solution to
where . Describe the solution geometrically.
12.4. Solutions#
Solution to Exercise 12.1
The matrix
There is one special solution corresponding to
and it isThe null space is the space of all vectors
.The general solution to
is for which is a straight line parallel to through the point .