8-Solving A System of Linear Equations
8-Solving A System of Linear Equations
Shivangi Chandel
2 Solving Ax = b
where aij represents the element in the the ith row and the jth column.
The structure of a matrix comprises of row and column vectors.
The vector Ri = ai1 , ai2 , ai3 , · · · , ain ∈ Rn is called the ith
Equality of Matrices:
Let A = [aij ] and B = [bij ] be any two m × n matrices. Then
A = B ⇐⇒ aij = bij for all i = 1, 2, · · · m and j = 1, 2, · · · n.
Matrix Addition/Subtraction:
Let A = [aij ] and B = [bij ] be any two m × n matrices. Then
A ± B = [aij ± bij ].
Scalar Multiplication:
Let A = [aij ] is an m × n matrix and c is a scalar. Then,
cA = c[aij ] = [caij ].
Matrix Multiplication: Let A = [aij ] is an m × n matrix and
B = [bij ] be a n × r matrices.Then,the
" n # matrix product AB is an
X
m × r matrix given by aik bkj , i = 1, 2, · · · m and j = 1, 2, · · · r .
k=1
For any m × n matrix A, the sets spanned by its row vectors and the
column vectors are indeed vector spaces. We call the space spanned
by row vectors, {R1 , R2 , · · · , Rm }, as the Row Space of A or Row (A)
and the space spanned by column vectors, {C 1 , C 2 , · · · , C n }, as the
Column Space of A or Col(A).
The dimensions of these spaces hold valuable information for us.
Define: Row Rank of A = dimension of Col(A) and
Column Rank of A = dimension of Row (A)
2 Solving Ax = b
Define
a11 a12 a13 ... a1n
x1
b1
a21 a22 a23 ... a2n x2 b2
A= . ,x =
· · · , and b = · · · .
..
am1 am2 am3 . . . amn xn bm
Definition 2.1
A matrix C is said to be in row echelon form if the following conditions
are satisfied:
1 All non-zero rows are above any rows of all zeroes.
2 The first non-zero coefficient of any row (also called leading
coefficient or pivot) is always placed to the right of the leading
coefficient of the row above it.
Theorem 2.1
Let A be an m × n matrix and b be a vector in Rm . Then the system of
equations Ax = b has a solution if and only if rank(A) = rank(Ac ).
The system has a unique solution iff rank(A) = rank(Ac ) = n.
2x1 + x2 + 4x3 = 16
3x1 + 2x2 + x3 = 10
x1 + 3x2 + 3x3 = 16
Now that you know how to convert a matrix into its row-echelon form,
we can use it to identify Row space and Column Space of that matrix.
The row space of A is the same as the row space of Ar .
The column space of A need not be the same as the column space of
Ar .
1 2 r 1 2
Consider matrix A = . Then A = .
2 4 0 0
The row space of A contains linear combinations of vectors (1, 2) and
(2, 4) which are linearly dependent. Therefore, the Row (A) is nothing
but the linear span of (1, 2). This is the same as Row (Ar ).
The column space of A is the vector space containing scalar multiples
of (1, 2) i.e. line passing through origin with equation y = 2x. The
column space of Ar , however, is the space containing scalar multiples
of (1, 0) i.e. line passing through origin with equation y = 0 or x-axis.
x1 + 2x2 + 3x3 = 0
x3 + 3x4 = 0
Since there are two equations in 4 variables, the system solves itself in a solution
space. How is the space identified? Should we write x3 in the form of x4 or the
other way around?
The convention we follow is easy; call variables corresponding to basis columns as
basis variables and the variables not corresponding to the basis columns as free
variables. Now write basis variables as expressions of free variables.
In the example, x1 and x3 are basis variables and x2 and x4 are free variables.
Therefore, we say, x3 = −3x4 and x 1 = −2x2 + 9x4 . For any given x2 , x4 , the
−2x2 + 9x4
x2
solution of Ax = 0 would look like −3x4 . Take x2 = a and x4 = b for
x4
any a, b ∈ R, to get the desired expression.