Académique Documents
Professionnel Documents
Culture Documents
Chapter 1
Linear Systems of
Algebraic Equations
and Matrices
Middle-East and then Europe. This book also translated into Latin in the twelfth
century, as Algoritmi de numero Indorum. From the name of the author, rendered in
Latin as algoritmi, originated the term algorithm.
Some of his contributions were based on earlier Persian and Babylonian Astronomy,
Indian numbers, and Greek sources.
Al-Khwarizmi systematized and corrected Ptolemy's data in geography as regards to
Africa and the Middle east. Another major book was his Kitab surat al-Ard , "The
Image of the Earth"; translated as Geography, which presented the coordinates of
localities in the known world based, ultimately, on those in the Geography of
Ptolemy but with improved values for the length of the Mediterranean Sea and the
location of cities in Asia and Africa.
He also assisted in the construction of a world map for the caliph al-Ma'mun and
participated in a project to determine the circumference of the Earth, supervising the
work of 70 geographers to create the map of the then "known world".
When his work was copied and transferred to Europe through Latin translations, it
had a profound impact on the advancement of basic mathematics in Europe. He also
wrote on mechanical devices like the astrolabe and sundial.
al-Kitāb al-mukhtasar fī hisāb al-jabr wa-l-muqabala is considered to have defined
the branch algebra of mathematics. The word algebra is derived from the name of
one of the basic operations with equations (al-jabr) described in this book. The book
was translated in Latin as Liber algebrae et almucabala by Robert of Chester, in
Segovia, in the year 1145.
Al-Khwarizmi's method of solving linear and quadratic equations worked by first
reducing the equation to one of six standard forms below, where b and c are positive
integers:
• squares equal roots (ax2 = bx)
• squares equal number (ax2 = c)
• roots equal number (bx = c)
• squares and roots equal number (ax2 + bx = c)
• squares and number equal roots (ax2 + c = bx)
• roots and number equal squares (bx + c = ax2)
by dividing out the coefficient of the square and using the two operations al-jabr
“restoring” or “completion”, and al-muqabala, "balancing". Al-jabr is the process of
removing negative units, roots and squares from the equation by adding the same
quantity to each side. For example, x2 = 40x - 4x2 is reduced to 5x2 = 40x. Al-
muqabala is the process of bringing quantities of the same type to the same side of
the equation. For example, x2+14 = x+5 is reduced to x2+9 = x.
1.2 Introduction to the Systems of Linear Equations
During the first years of your primary school education, you might be encountered
with the problems as in the following example:
EXAMPLE 1.1 For five kilo of rice I paid 20 liras. What was the price of the rice?
We can express this question with an algebraic equation of the form
5 20, ?
We know that, when we divide both sides of an equation by the same nonzero
number, the equality still holds:
5 /5 20/5, 4.
Generalizing the above question, we may search for the solution of the equation
ax b 0 (1.1)
where a, b are real constants and x is the unknown. To find the value of the
unknown x , you add b to both sides knowing that adding to the both sides of
(1.1) the same number, the equality does not disturbed:
ax b (b) b (1.2)
and get
ax b . (1.3)
Then you multiply both sides of (1.3) with 1 / a , knowing that multiplying both sides
with the same number, the equality does not disturbed:
1 1
.a.x b.
a a
and simplify to
b
x .
a
Real life problems mostly deal with more than one unknowns.
4 Linear Systems of Algebraic Equations and Matrices
EXAMPLE 1.2 In our farm we have hens and rabbits. When we count the heads, we get the number
18. Counting the legs, we get 64. How many of hens and rabbits we have?
Let the number of hens and rabbits be x and y respectively. The first information
about the heads yields us the equation
x y 18 (1.4)
while the second information about the legs lead to
4 x 2 y 64. (1.5)
To find x and y , we solve y from (1.4)
y 18 x (1.6)
and substitute in (1.5):
4 x 218 x 64. (1.7)
Simplifying (1.7) one gets
4 2x 64 36, 2 x 28, x 14. (1.8)
Substitution of the value of x in (1.8) into (1.4), the value of y is found to be
y 18 14 4
It is understood that we have 14 hens and only 4 rabbits.
1
Johann Carl Friedrich Gauss, Born: 30 April 1777 in Brunswick, Duchy of Brunswick (now Germany),
died: 23 Feb 1855 in Göttingen, Hanover (now Germany), worked in a wide variety of fields in both mathematics and
physics including number theory, analysis, differential geometry, geodesy, magnetism, astronomy and optics. His work
has had an immense influence in many areas.
2
Camille Jordan (1838-1922), French mathematician.
1.2 Introduction to the Systems of Linear Equations 5
To find the value of unknowns, let us multiply both sides of the three equations by
the inverse of the coefficients of x in each equation, assuming that this coefficient
is not zero:
a12 a b
x y 13 z 1
a11 a11 a11
a 22 a b
x y 23 z 2
a 21 a 21 a 21
a32 a b
x y 33 z 3 .
a31 a31 a31
Now let us multiply the first equation by 1 and add on the second and third
equations knowing that the solution set of the three equations is not change under
these operations:
a12 a b
x y 13 z 1
a11 a11 a11
a 22 a12 a a b b
y 23 13 z 2 1 (1.10)
a 21 a11 a 21 a11 a 21 a11
a32 a12 a a b b
y 33 13 z 3 1 .
a31 a11 a 31 a11 a31 a11
In (1.10) the last two equations contain only two unknowns y and z . Applying the
same procedure again we have only one equation with one unknown z from which
this unknown is solved. Substituting this value of z in any of the last two equations
in (1.10), we can solve y . The values of y and z are substituted in the first
equation in (1.10) to find x .
EXAMPLE 1.3 In a confection factory, three types of shirts are produced. First type of shirts needs 4
buttons, 80 centimeters of textile and 20 centimeters of ribbon. For the second kind
of shirts this are 6, 90, and 30. For the third kind the same values are 8, 120, and 50.
If in stocks there are 2060 buttons, 325 meters of textile and 180 meters of ribbons,
what is a possible production plan?
Let the respective numbers of shirts of each kind be x, y , and z . The three
equations in the below relate these three unknowns:
6 Linear Systems of Algebraic Equations and Matrices
4 x 6 y 8 z 2060
80 x 90 y 120 z 32500
20 x 30 y 50 z 12100.
After simplifications one has
8 x 12 y 16 z 4120
8 x 9 y 12 z 3250 (1.11)
8 x 12 y 20 z 4840.
multiplying the first equation of (1.11) by 1 and adding on the second and third
equations one has
8 x 12 y 16 z 4120
3 y 4 z 870 (1.12)
4 z 720.
From the last equation in (1.12), the unknown z is solved as z 720 / 4 180 .
Substituting this value of z in the second equation in (1.12), y is found as
3 y 720 870, 3 y 150, y 50.
The values of y and z are substituted in the simplified version of the first equation
in (1.12) to find x :
x 3 y / 2 2 z 515, x 75 360 515, x 515 435 80.
Hence in an optimum production plan, the number of each kind of shirts is 80, 50,
and 180.
DEFINITION 1.1 An array of numbers with m rows and n columns is called an m n matrix.
c. The leading one appears to the right and below any leading ones in preceding
rows,
In addition to the above properties, if a matrix satisfy
d. If a column contains a leading one, then all other entries in this column are zero,
then it is called in reduced row echelon form.
EXAMPLE 1.4 Solve the system of algebraic equations by the use of Gaussian elimination;
4 x 6 y 8 z 2060
80 x 90 y 120 z 32500
20 x 30 y 50 z 12100.
The corresponding augmented matrix is
4 6 8 2060
80 90 120 32500
20 30 50 12100
Multiplying rows by appropriate numbers we simplify the augmented matrix into
1 3 / 2 2 515
8 9 12 3250
2 3 5 1210
Now let us perform the following elementary row operations: multiply first row by
8 , and add on the second row 8 R1 R 2 R 2 , multiply first row by 2 , and
add on the third row 2 R1 R3 R3 ,
1 3 / 2 2 515 1 3 / 2 2 515
0 3 4 870 1 0 1 4 / 3 290 .
R2 R2
3
0 0 1 180 0 0 1 180
The last matrix is in echelon form. If we interpret it as a system of linear equations
we get
x 3 y / 2 2 z 515
y 4 z / 3 290
z 180.
1.2 Introduction to the Systems of Linear Equations 9
From the last equation we get z 180. Substituting this value of z in the second
equation y is found as y 50. The values of y and z are substituted in the first
equation to find x :
x 3 y / 2 2 z 515, x 75 360 515, x 515 435 80.
1 3 / 2 2 515 1 3 / 2 0 155
0 1 4 / 3 290 4 R3 / 3 R 2 R 2,
2 R3 R1 R1, 0 1 0 50
0 0 1 180 0 0 1 180
1 0 0 80
0 1 0 50
0 0 1 180
whose last column exposes the solution. Indeed interpreted as a system of linear
equation the above augmented matrix yields
x 80, y 50, z 180.
DEFINITION 1.3 In a row echelon form, variables corresponding to leading ones are called leading
variables. The others are called the free variables.
THEOREM 1.1 Let e, and f be the number of leading and free variables in the row echelon matrix
of a linear algebraic system. Depending on e, the number r of the nonzero rows, and
the number n of unknowns, one of the following three cases does occur:
1. r e n , the linear system of algebraic equations has a unique set of solutions.
2. r e n , the linear system of algebraic equations has infinitely many sets of
solutions.
3. r e , then the linear system of algebraic equations is contradictory and has no
solutions.
EXAMPLE 1.5 Find all solutions of the below system of algebraic equations by the use of Gaussian
elimination;
10 Linear Systems of Algebraic Equations and Matrices
x y 2 z 1
x 2 y z 5
3 x y z 3.
The corresponding augmented matrix under two elementary row operations becomes
1 1 2 1 1 1 2 1
1 2 1 5 R1 R 2 R 2, 0 3 1 4
3R1 R3 R3
3 1 1 3 0 2 5 6
Multiplying second row by –1/3, and applying another elementary row operation
one has
1 1 2 1 1 1 2 1
0 1 1 / 3 4 / 3 2 R 2 R3 R3 0 1 1 / 3 4 / 3
0 2 5 6 0 0 13 / 3 26 / 3
Multiplying third row by –3/13, and applying other two elementary row operations
we get
1 1 2 1 1 1 0 3
0 1 1 / 3 4 / 3 R3 / 3 R 2 R 2, 0 1 0 2
2 R3 R1 R1
0 0 1 2 0 0 1 2
Multiplying second row by –1, and adding to the first row we get the reduced
echelon form of the augmented matrix:
1 0 0 1
0 1 0 2 .
0 0 1 2
EXAMPLE 1.6 In the following linear system, find all values of the parameter a such that the
system has
a) No solution,
b) A unique solution,
c) Infinitely many solutions;
1.2 Introduction to the Systems of Linear Equations 11
x yz 2
x 2y z 3
x y a 2 5 z a.
The corresponding augmented matrix under two elementary row operations becomes
1 1 1 2 1 1 1 2
1 2 R1 R 2 R 2,
1 3 0 1
2 1
R1 R3 R3
1 1 a 2 5 a 0 0 a 2 4 a 2
1 1 1 2
0 1 2 1 .
0 0 0 4
When interpreted as system of algebraic equations, the last row is interpreted as the
equation
0 z 4
which cannot be satisfied by a definite number z . For a 2 , r 3 e 2 , and
according to Theorem 1.1, the linear system of algebraic equations in this example
has no solutions, the system is contradictory.
b) For a 2 , say a 1, after the application of two elementary row
operations the reduced echelon form is
1 1 1 2 2 R3 R 2 R 2, 1 0 0 2
0 1 2 1 R3 R1 R1 , 0 1 0 1 / 3 .
0 0 1 1 / 3 R 2 R1 R1 0 0 1 1 / 3
1 1 1 2 1 0 3 1
0 1 2 1 R 2 R1 R1 0 1 2 1 .
0 0 0 0 0 0 0 0
12 Linear Systems of Algebraic Equations and Matrices
x 3z 1, x 3z 1
y 2 z 1, y 1 2z
z is free
the linear system of algebraic equations of this example for a 2 has infinitely
many sets of solutions of the form:
{x, y , z} {3 z 1, 1 2 z , z}
as an example, for z 3 one has { x, y , z} {10, 5, 3} .
EXAMPLE 1.7 Find all solutions of the below system of algebraic equations by the use of
Gaussian-Jordan reduction;
2 x y z 2w 1
3 x 2 y z 6 w 2
x y z w 1
5 x y 2 z 8 w 3.
The corresponding augmented matrix interchanging first and third rows becomes
2 1 1 2 1 1 1 1 1 1
3 2 1 6 2 3 2 1 6 2
R1 R3
1 1 1 1 1 2 1 1 2 1
5 1 2 8 3 5 1 2 8 3
Multiplying third row by –1, interchanging second and third rows and applying the
two elementary row operations below we get
1.2 Introduction to the Systems of Linear Equations 13
1 1 1 1 1 1 1 1 1 1
0 1 3 0 3 5 R 2 R3 R3, 0 1 3 0 3
0 5 4 3 1 6R2 R4 R4 0 0 11 3 14
0 6 7 3 8 0 0 11 3 10
Multiplying second and third rows by –1/11, and applying the elementary row
operation below we get the echelon form:
1 1 1 1 1
0 1 3 0 3
R3 R 4 R 4
0 0 1 3 / 11 14 / 11
0 0 1 3 / 11 10 / 11
1 1 1 1 1
0 1 3 0 3
.
0 0 1 3 / 11 14 / 11
0 0 0 0 4 / 11
We observe that r 4 m 3 , according to Theorem 1.1, the linear system of
algebraic equations in this example has no solutions, the system is contradictory.
THEOREM 1.2 Let e, and f be the number of leading and free variables in the row echelon matrix of
a homogeneous linear algebraic system. The number of leading variables is always
14 Linear Systems of Algebraic Equations and Matrices
EXAMPLE 1.8 Find all solutions of the below system of algebraic equations by the use of
Gaussian-Jordan elimination;
2x 9 y z 0
2x 6 y 7z 0
x 3 y 6 z 0.
The corresponding augmented matrix under three elementary row operations
becomes
2 9 1 0 R1 R3 1 3 6 0
2 6 7 0 2 R1 R 2 R 2, 0 0 19 0
1 3 6 0 2 R1 R3 R3 0 3 13 0
three other elementary row operations give
R 2 / 19 R3 1 3 6 0 1 0 0 0
3R 2 R1 R1
13R3 R 2 R 2, 0 1 0 0 0 1 0 0
6 R3 R1 R1.
R2 / 3 R2 0 0 1 0 0 0 1 0
EXAMPLE 1.9 Find all solutions of the below system of algebraic equations by the use of
Gaussian-Jordan elimination;
3x 9 y z 0
2x 6 y 7z 0
x 3 y 6 z 0.
The corresponding augmented matrix under three elementary row operations
becomes
1.2 Introduction to the Systems of Linear Equations 15
3 9 1 0 R1 R3 1 3 6 0
2 6 7 0 2 R1 R 2 R 2, 0 0 19 0
1 3 6 0 3R1 R3 R3. 0 0 19 0
three other elementary row operations give the reduced echelon form:
R 2 R3 R3, 1 3 0 0
R 2 / 19 R 2 ., 0 0 1 0
6 R 2 R1 R1. 0 0 0 0
EXAMPLE 1.10 Find all solutions of the below system of algebraic equations by the use of Gaussian-
Jordan elimination;
2 x 2 y 4 z 2w 0
x y 4 z 3w 0
2 x 7 y 19 z 3w 0.
We observe that m n , the number of equations is less than the number of
equations. The number of leading variables is always equal to the number of the
nonzero rows, and they cannot be larger than the number of equations n. Hence
r e m 3 n 4 , and according to Theorem 1.2, the linear system of
algebraic equations of this example has infinitely many sets of solutions.
To find the type of solutions let us consider the corresponding augmented matrix:
16 Linear Systems of Algebraic Equations and Matrices
2 2 4 2 0
1 1 4 3 0
2 7 19 3 0
Under three elementary row operations becomes
R1 / 2 R1 1 1 2 1 0
R1 R 2 R 2, 0 2 6 2 0
2 R1 R3 R3. 0 5 15 5 0
three other elementary row operations give the reduced echelon form:
R 2 R3 R3,
1 0 1 2 0
R2 / 2 R2 , 0 1 3 1 0
R 2 R1 R1,
0 0 0 0 0
5 R 2 R 3 R 3.
We observe that r e 2 n 4 , according to Theorem 1.2, the linear system of
algebraic equations of this example has infinitely many sets of solutions.
The variables x, y which correspond to the leading ones are leading variables, and
z, w are free variables x, y are expressed in terms of z, w :
x z 2w 0, x z 2w
y 3z w 0, y 3z w
z, w are free.
the linear system of algebraic equations of this example has infinitely many sets of
solutions of the form:
{x, y, z , w} {z 2 w, 3 z w, z , w}
as an example, for z 1, w 2 one has { x, y , z , w} {3, 1, 1, 2} .
Solution :
We convert the augmented matrix
and substituting the second equation into the top yields x=1, y=2, z=3 .
18 Linear Systems of Algebraic Equations and Matrices
EXERCISES 1.2
(a)
(b)
(c)
(d)
(a)
(b)
(c)
1.2 Introduction to the Systems of Linear Equations 19
(d)
(a)
(b)
(c)
(d)
x1 + 4x2 − x4 + 7x6 − 9x7 = 3
2x1 + 8x2 − x3 + 3x4 + 9x5 − 13x6 + 7x7 = 9
2x3 − 3x4 − 4x5 + 12x6 − 8x7 = 1
−x1 − 4x2 + 2x3 + 4x4 + 8x5 − 31x6 + 37x7 = 4
(e)
x1 − x2 − 2x3 + x4 + 11x5 = 13
x1 − x2 + x3 + x4 + 5x5 = 16
2x1 − 2x2 + x4 + 10x5 = 21
2x1 − 2x2 − x3 + 3x4 + 20x5 = 38
20 Linear Systems of Algebraic Equations and Matrices
(a)
(b)
2x1 − 3x2 + x3 − 6x4 = 0
4x1 + x2 + 2x3 + 9x4 = 0
3x1 + x2 + x3 + 8x4 = 0
(c)
(d)
(e)
(b)
(c)
1.2 Introduction to the Systems of Linear Equations 21
(a)
(b)
−11x1 + 2x2 − 14x3 = 0
23x1 − 6x2 + 33x3 = 0
14x1 − 2x2 + 17x3 = 0
(c)
x1 − x2 + 2x3 = 0
2x1 + x2 + x3 = 0
x1 + x2 = 0
(d)
2x1 + x2 + 7x3 − 7x4 = 0
−3x1 + 4x2 − 5x3 − 6x4 = 0
x1 + x2 + 4x3 − 5x4 = 0
(e)
(c)
22 Linear Systems of Algebraic Equations and Matrices
(a)
(b)
(a)
(b)
10. For which values of a will the following system have no solutions? Exactly
one solution? Infinitely many solutions?
11. Reduce
13. Solve the following system of nonlinear equations for the unknown angles α,
β, and γ, where , , and
.
14. For which value(s) of λ does the system of equations have nontrivial
solutions?
a a 12
det A det 11 a11 a 22 a12 a 21 .
a 22
(1.18)
a 21
DEFINITION 1.6 Minors and cofactors. The ijth minor M ij of a real n n square matrix, is the
26 Linear Systems of Algebraic Equations and Matrices
Ai , j (1) i j M ij .
DEFINITION 1.7 The determinant of a real n n square matrix is the real number
EXAMPLE 1.13 Find the determinant of the given 3 3 matrix by the use of cofactor expansion of
the determinant along the first row.
2 3 4
A 2 3 1
det A a11A11 a12 A12 a13 A13
3 2 7
where
- 3 1
M 11 det -3.7 - 1.2 -23, A11 (1)11 M 11 23,
2 7
- 2 1
M 12 det -2.7 - 1.3 -17, A12 (1)1 2 M 12 17,
3 7
- 2 - 3
M 13 det -2.2 - (-3).3 5, A13 (1)13 M 13 5.
3 2
1.3 Determinants of Matrices and Cramer’s Rule 27
EXAMPLE 1.14 Find the determinant of the given 4 4 matrix by the use of cofactor expansion of
the determinant along the first column.
1 2 3 4
0 5 6 7
A det A a11 A11 a 21 A 21 a31 A 31 a 41 A 41
0 0 8 9
2 4 6 9
5 6 7
M 11 det 0 8 9 5(72 - 54) - 6(0 - 36) 7(0 - 32) 82,
4 6 9
A11 (1)11 M 11 82,
2 3 4
M 41 det 5 6 7 0(21 - 24) - 8(14 - 20) 9(12 - 15) 21,
0 8 9
A12 (1) 41 M 41 21
Therefore one has
det A 1.82 2.( 21) 40.
In the above A11 is found through the cofactor expansion of the related determinant
along the first row cofactor expansion, and A41 is found through the cofactor
expansion of the related determinant along the first column.
THEOREM 1.3 The effect of elementary row (column) operations on the determinant of a matrix are
as follows:
1. Interchanging of two rows (columns), change the sign of the determinant,
2. Multiplying any of the rows (columns) by a number, causes the multiplication of
the determinant by the same number,
3. Multiplication of any of the rows (columns) by a number, and addition on
another row (column) does not change the determinant.
EXAMPLE 1.15 Find the determinant of the given 4 4 matrix, first simplifying it by the use of the
elementary row (column) operations.
1 2 1 1
2 1 3 3 2 R1 R 2 R 2
det A det
0 1 2 3 R1 R 4 R 4
1 4 2 4
1 2 1 1
0 R3 R 2
3 1 5
det 3 R 2 R3 R3
0 1 2 3
6R2 R4 R4
0 6 1 3
1 2 1 1
0 R3 R 4
1 2 3
det 2 R 4 R3 R3
0 0 5 14
0 0 11 15
1 2 1 1
0 1 2 3
det 5 R3 R 4 R 4
0 0 1 13
0 0 5 14
1 2 1 1
0 1 2 3
det 79.
0 0 1 13
0 0 0 79
1.3 Determinants of Matrices and Cramer’s Rule 29
1 - 2 3
M 11 det 0 1 13 1.1.79 79, A11 (1)11 M 11 79.
0 0 79
Therefore one has
det A 1.79 79.
In the above A11 is found through the cofactor expansion of the related determinant
along the first column.
1
Gabriel Cramer (1704–1752) was a Swiss mathematician. Although Cramer does not rank with the great
mathematicians of his time, his contributions as a disseminator of mathematical ideas have earned him a well-deserved
place in the history of mathematics. Cramer traveled extensively and met many of the leading mathematicians of his
day.
Cramer's most widely known work, Introduction à l'analyse des lignes courbes algébriques (1750), was a study and
classification of algebraic curves; Cramer's rule appeared in the appendix. Although the rule bears his name, variations
of the idea were formulated earlier by various mathematicians. However, Cramer's superior notation helped clarify and
popularize the technique.
Overwork combined with a fall from a carriage led to his death at the age of 48. Cramer was apparently a good-natured
and pleasant person with broad interests. He wrote on philosophy of law and government and the history of
mathematics.
He served in public office, participated in artillery and fortifications activities for the government, instructed workers
on techniques of cathedral repair, and undertook excavations of cathedral archives. Cramer received numerous honors
for his activities.
30 Linear Systems of Algebraic Equations and Matrices
THEOREM 1.4 Let the coefficient matrix of a linear system of n algebraic equations for n unknowns
{x1 , x 2 ,...., x n }
a11 x1 a12 x 2 ... a1n x n b1
a 21 x1 a 22 x 2 ... a 2 n x n b2
(1.20)
........................
a n1 x1 a n 2 x 2 ... a nn x n bn
and the vector b of the right hand sides be as follows:
EXAMPLE 1.16 Find the solution of the following linear system of algebraic equations by the use of
the Cramer’s rule.
6x 7 y 3
8 x 9 y 4.
In the above
6 7 3 3 7 6 3
A , b 4 , Ax 4 9 , A y 8 4,
8 9
and hence
det A 2, det Ax 1, det Ay 0,
1.3 Determinants of Matrices and Cramer’s Rule 31
1 1 0
x , y 0.
2 2 2
EXAMPLE 1.17 Find the solution of the following linear system of algebraic equations by the use of
the Cramer’s rule.
5x 2 y 2 z 1
x 5 y 3z 2.
5x 3 y 5z 2
In the above
5 2 2 1
A 1 5 3, b 2 ,
5 3 5 2
1 2 2 5 1 2 5 2 1
Ax 2 5 3, Ay 1 2 3, Az 1 5 2
2 3 5 5 2 5 5 3 2
and hence
det A 96, det Ax 32, det Ay 64, det Az 32,
32 1 64 2 32 1
x , y , z .
96 3 96 3 96 3
EXAMPLE 1.18 Find the solution of the following linear system of algebraic equations by the use of
the Cramer’s rule.
2 x 5 y 2 z 3w 3
3 x 6 y 5 z 2 w 2.
4 x 5 y 14 z 14 w 11
5 x 10 y 8 z 4 w 4.
In the above
2 5 2 3 3
3 6 5 2
A , b 2 ,
4 5 14 14 11
5 10 8 4 4
32 Linear Systems of Algebraic Equations and Matrices
and hence
det A 5, det Ax 330, det Ay 135, det Az 30, det Aw 20,
330 135 30 20
x 66, y 27, z 6, w 4.
5 5 5 5
EXAMPLE 1.19 Find the solution of the following linear system of algebraic equations by the use of
the Cramer’s rule.
x 2y z w u 2
x 2 y 4 z w 5u 3.
3 x 4 y 5 z w 2u 7
x 3 y 4 z 5w u 4
2 x 5 y 8 z 4 w u 7.
In the above
1 2 1 1 1 2
1 2 4 1 5 3
A 3 4 5 1 2 , b 7 ,
1 3 4 5 1 4
2 5 8 4 1 7
and hence
det A 126, det Ax 231, det Ay 0,
det Az 42, det Aw 21, det Au 0,
231 11 0 42 1
x , y 0, z ,
126 6 126 126 3
21 1 0
w , u 0.
126 6 126
Solution
Therefore,
Exercises 1.3
1. Let
2. Let
Find , , , , , , , .
7. 8.
9. 10.
11. 12.
1.3 Determinants of Matrices and Cramer’s Rule 35
13. 14.
15.
16. 17.
18. 19.
20. 21.
23. Use Cramer's rule to solve for y, without solving for x, z, and w .
25. Prove that if and all the entries in A are integers, then all the entries in are
integers.
29. Prove: The equation of the line through the distinct points and can be
written as
31. (a)
If is an “upper triangular” block matrix, where and are square matrices, then
. Use this result to evaluate for
1.3 Determinants of Matrices and Cramer’s Rule 37
(b) Verify your answer in part (a) by using a cofactor expansion to evaluate .
32. Prove that if A is upper triangular and is the matrix that results when the
ith row and th column of A are deleted,
then is upper triangular if .
33. What is the maximum number of zeros that a matrix can have without
having a zero determinant? Explain your reasoning.
35. Indicate whether the statement is always true or sometimes false. Justify
your answer by giving
a logical argument or a counterexample.
(a) is a diagonal matrix for every square matrix .
(b) In theory, Cramer's rule can be used to solve any system of linear
equations, although
the amount of computation may be enormous.
(c) If A is invertible, then must also be invertible.
(d) If A has a row of zeros, then so does .
38 Linear Systems of Algebraic Equations and Matrices
1.4 Matrices
In this section we begin our study of matrix theory by giving some of the
fundamental definitions. We shall see how to define arithmetic operations of
addition, subtraction, and multiplication in the set of matrices.
EXAMPLE 1.20 For example, the following rectangular array with three rows and seven columns
might describe the number planes that take off from Istanbul Ataturk Airport to four
continents during a certain week:
M TU W TH F S SU
AF 45 33 78 90 55 63 17
AM 72 45 78 90 57 97 45
AU 12 17 36 33 23 24 12
EU 102 89 110 145 167 123 112
The following rectangular array of numbers with four rows and seven columns,
called a “matrix” can summarize the information above:
45 33 78 90 55 63 17
72 45 78 90 57 97 45
12 17 36 33 23 24 12
102 89 110 145 167 123 112
DEFINITION 1.8 A matrix is a rectangular array of numbers. The numbers in the array are called the
entries in the matrix.
40 Linear Systems of Algebraic Equations and Matrices
The size of a matrix is described in terms of the number of rows (horizontal lines)
and columns (vertical lines) it contains. For example, the matrix A in Example 1.21
has four rows and five columns, so its size is 4 by 5 (written4 5). In a size
description, the first number always denotes the number of rows, and the second
denotes the number of columns. The remaining matrices in Example 1.21 have sizes
1 1, 5 1 , and 1 3 respectively. A matrix with only one column is called a
column matrix (or a column vector), and a matrix with only one row is called a row
matrix (or a row vector). Thus, in Example 1.21 the matrix C is a column matrix, the
matrix D is a row matrix, and the matrix B is both a row matrix and a column
matrix.
We shall use capital letters to denote matrices and lowercase letters to denote
numerical quantities; thus we might write
(1.21)
the first notation being used when it is important in the discussion to know the size,
and the second being used when the size need not be emphasized. Usually, we shall
match the letter denoting a matrix with the letter denoting its entries; thus, for a
matrix B we would generally use for the entry in row i and column j, and for a
matrix C we would use the notation .
The entry in row i and column j of a matrix A is also commonly denoted by the
symbol . Thus, for matrix (1.21) above, we have
Row and column matrices are of special importance, and it is common practice to
denote them by boldface lowercase letters rather than capital letters. For such
matrices, double subscripting of the entries is unnecessary. Thus a general 1
row matrix a and a general 1 column matrix b would be written as
A matrix A with n rows and n columns is called a square matrix of order n, and the
shaded entries , , ,… in (1.22) are said to be on the main diagonal of
A.
(1.22)
So far, we have used matrices to abbreviate the work in solving systems of linear
equations. For other applications, however, it is desirable to develop an “arithmetic
42 Linear Systems of Algebraic Equations and Matrices
DEFINITION 1.8 Two matrices are defined to be equal if they have the same size and their
corresponding entries are equal.
, , , , .
If , x=2 then A=B, but for all other values of x the matrices A and B are not equal,
since not all of their corresponding entries are equal.
DEFINITION 1.9 If A and B are matrices of the same size, then the sum is the matrix obtained by
adding the entries of B to the corresponding entries of A. Matrices of different sizes
cannot be added.
In matrix notation,
.
2 7 1 5
,
3 4 6 0
Then
2 1 7 5 3 2
.
3 6 4 0 9 4
DEFINITION 1.10 The matrix 0 with all entries zero is called the zero matrix.
2 1 7
3 4 2
and
2 2 1 1 7 7 0 0 0
.
3 3 4 4 2 2 0 0 0
and associative
Similarly the associativity of the matrix addition is a result of the associativity of the
addition in real numbers.
44 Linear Systems of Algebraic Equations and Matrices
2 3 0 1 2 7 7 4 1
=
3 6 2 4 0 3 2 1 4
DEFINITION 1.10 If A is any matrix and c is any scalar, then the product is the matrix obtained by
multiplying each entry of the matrix A by c. The matrix is said to be a scalar
multiple of A.
In matrix notation,
.
is the linear combination of A, B, and C with scalar coefficients 2, −5, and 1/3.
Proof Proof of the theorem relies on the associativity of the multiplication in real numbers,
,
and distribution of the multiplication over addition:
.
Thus far we have defined multiplication of a matrix by a scalar but not the
multiplication of two matrices. Since matrices are added by adding corresponding
entries, it would seem natural to define multiplication of matrices by multiplying
corresponding entries. However, it turns out that such a definition would not be very
useful for most problems.
Experience has led mathematicians to the following more useful definition of matrix
multiplication.
∑ .
46 Linear Systems of Algebraic Equations and Matrices
(1.23)
1.4 Matrices 47
Partitioned Matrices
A matrix can be subdivided or partitioned into smaller matrices by inserting
horizontal and vertical rules between selected rows and columns. For example, the
following are three possible partitions of a general 3 4 matrix A—the first is a
partition of A into four submatrices , , , ; the second is a partition of A
into its row matrices , , ; and the third is a partition of A into its column
matrices , , , :
(1.24)
(1.25)
48 Linear Systems of Algebraic Equations and Matrices
(1.26)
(1.27)
Then
(1.28)
1.4 Matrices 49
In words, (1.28) tells us that the product Ax of a matrix A with a column matrix x is
a linear combination of the column matrices of A with the coefficients coming from
the matrix x. In the exercises we ask the reader to show that the product of a 1
matrix y with an matrix A is a linear combination of the row matrices of A
with scalar coefficients coming from y.
It follows from (1.26) and (1.27) that the jth column matrix of a product AB is a
linear combination of the column matrices of A with the coefficients coming from
the jth column of B.
Since two matrices are equal if and only if their corresponding entries are equal, we
can replace the m equations in this system by the single matrix equation
The matrix on the left side of this equation can be written as a product to give
.
1.4 Matrices 51
The product is
so the effect of multiplying A by a column vector is to change the sign of the second
entry of the column vector. If we view the column vector x as locating a point in the
plane, then the effect of A is to reflect the point about the x-axis.
Figure 1.1
the product is
Figure 1.2
Transpose of a Matrix
DEFINITION 1.12 If A is any matrix, then the transpose of A, denoted by , is defined to be the
matrix that results from interchanging the rows and columns of A; that is, the first
column of is the first row of A, the second column of is the second row of A,
and so forth.
EXAMPLE 1.32 The following are some examples of matrices and their transposes.
Observe that not only are the columns of the rows of A, but the rows of are
the columns of A. Thus the entry in row I and column j of is the entry in row j and
column i of A; that is,
(1.29)
Note the reversal of the subscripts.
In the special case where A is a square matrix, the transpose of A can be obtained by
interchanging entries that are symmetrically positioned about the main diagonal. In
12 it is shown that can also be obtained by “reflecting” A about its main diagonal.
1.4 Matrices 53
(1.30)
AB and BA need not be equal. Equality can fail to hold for three reasons: It can
happen that the product AB is defined but BA is undefined. For example, this is the
case if A is a matrix and B is a matrix. Also, it can happen that AB and BA are both
defined but have different sizes. It is also possible to have even if both AB
and BA are defined and have the same size.
THEOREM 1.7 When matrix multiplications are defined, the following equalities are hold:
1) (associative)
2) (left distributive)
3) (right distributive)
4) (associativity of multiplication by a scalar)
Identity Matrix
DEFINITION 1.13 The square matrix with all ones on the main diagonal and all zero off
diagonals is called identity matrix .
For example
1 0 0
0 1 0.
0 0 1
EXAMPLE 1.34 The following example shows the effect of the unit matrix in multiplication.
1 0 0 8 3 4 8 3 4 1 0 0 8 3 4
0 1 0 5 1 9 5 1 9 0 1 0 5 1 9
0 0 1 4 5 6 4 5 6 0 0 1 4 5 6
DEFINITION 1.14 For an matrix A, the square matrix with the property
1 2 2 1 0 0
1 0 1 , 0 1 0.
1 1 1 0 0 1
Properties of Inverses
It is reasonable to ask whether an invertible matrix can have more than one inverse.
The next theorem shows that the answer is no—an invertible matrix has exactly one
inverse. Proof is easy and left to the reader.
THEOREM 1.10 If B and C are both inverses of the matrix A, then B=C.
The following theorem gives conditions under which a matrix is invertible and
provides a simple formula for the inverse.
1.4 Matrices 57
THEOREM 1.11 The matrix A is invertible if det 0 , in which case the inverse is given by the
formula
Where Aij is the ijth cofactor of the real n n square matrix A given by the
Definition 1.6.
THEOREM 1.12 If A and B are invertible matrices of the same size, then AB is invertible and
.
Proof
.
Although we will not prove it, this result can be extended to include three or more
factors; that is, a product of any number of invertible matrices is invertible, and the
inverse of the product is the product of the inverses in the reverse order:
… … .
Also,
Powers of a Matrix
Next, we shall define powers of a square matrix and discuss their properties.
DEFINITION 1.14 If A is a square matrix, then we define the nonnegative integer powers of A to be
, … , 0.
Because this definition parallels that for real numbers, the usual laws of exponents
hold.
Then
(1.33)
1.4 Matrices 59
where I is the identity matrix. In words, is the matrix that results when
A is substituted for x in (1.33) and is 1 replaced by I.
Then
THEOREM 1.12 If the sizes of the matrices are such that the stated operations can be performed, then
(a) ,
(b)
(c) , where k is any scalar
(d) .
If we keep in mind that transposing a matrix interchanges its rows and columns,
parts (a), (b), and (c) should be self-evident.
Invertibility of a Transpose
The following theorem establishes a relationship between the inverse of an
invertible matrix and the inverse of its transpose.
Proof .
.
which completes the proof.