Professional Documents
Culture Documents
1linear Complete
1linear Complete
2 Matrix Operations
4 Special Matrices
5 Partitioned Matrices
6 Nonsingular Matrices
Linear Equations
The equation
a1 x1 + a2 x2 + · · · + an xn = b, (1)
is called a linear equation, where x1 , x2 , . . . , xn are unknowns,
a1 , a2 , . . . , an are real or complex constants and b is real or complex
quantity.
A solution to (1) is a sequence of n numbers which satisfy (1) when
x1 = s1 , x2 = s2 , . . . , xn = sn are substituted in (1).
Example
x1 = 2, x2 = 3, x3 = −4 is a solution to the linear equation
Linear Equations
Linear Equations
Example
The system
4x1 − x2 + 3x3 = −1
3x1 + x2 + 9x3 = −4
Linear Equations
Theorem
Any system of linear equations has either
unique solution
no solution
an infinite number of solutions.
A system of linear equations is said to be consistent if it has one or more
solution and inconsistent if it has no solution.
Geometrical Interpretation In 2D
Geometrical Interpretation In 2D
Example
Consider the following linear system.
2x1 + x2 = 3
2x1 − x2 = 0
x1 − 2x2 = 4
Geometrical Interpretation In 2D
Solution:
Geometrical Interpretation In 2D
Example
Consider the following linear system.
2x1 + x2 = 3
2x1 − x2 = 5
x1 − 2x2 = 4
Geometrical Interpretation In 2D
Solution:
Geometrical Interpretation In 2D
Example
Consider the following linear system.
2x1 + x2 = 3
4x1 + 2x2 = 6
6x1 + 3x2 = 9
Geometrical Interpretation In 2D
Solution:
Geometrical Interpretation In 3D
Two linear systems are called equivalent if they have the same
solution sets.
Example
x −y =1 and x −y =1
x +y =3 y =1
Matrices
Matrices
The jth column of A is
a1j
a2j
..
.
amj
If m = n, then A is a square matrix of order n and a11 , a22 , . . . , ann
form the main diagonal of A.
Example
Let
1 1 0
1 2 3 1+i i
A= , B = −1 0 1 , C=
.
−1 0 1 2 − 3i −3
3 −1 2
A is 2 × 3 matrix, B is 3 × 3 matrix, C is 2 × 2 matrix
Sem 2 2018/2019 (UNIMAS) Chap 1 17 / 49
Systems of Linear Eqns Matrix Operations Linear Systems in Matrix Form Special Matrices Partitioned Matrices Nonsingular Ma
Matrix Addition
Definition
If A = [aij ] and B = [bij ] are both m × n matrices, then the sum A + B is
an m × n matrix C = [cij ] defined by cij = aij + bij .
Example
Find A + B if given
1 −2 3 0 2 1
A= and B = .
2 −1 4 1 3 −4
Solution
1+0 −2 + 2 3+1 1 0 4
A+B = =
2+1 −1 + 3 4 + (−4) 3 2 0
Matrix Addition
Example
Using the same matrices A and B from the previous example,
2 1 3
i. Find A + B + C when C = .
4 0 1
ii. If D = −C , find D + C .
Solution
i.
1+0 −2 + 2 3+1 2 1 3
(A + B) + C = +
2+1 −1 + 3 4 + (−4) 4 0 1
3 1 7
=
7 2 1
−3 + 3 −1 + 1 −7 + 7 0 0 0
ii. D +C = =
−7 + 7 −2 + 2 −1 + 1 0 0 0
Sem 2 2018/2019 (UNIMAS) Chap 1 19 / 49
Systems of Linear Eqns Matrix Operations Linear Systems in Matrix Form Special Matrices Partitioned Matrices Nonsingular Ma
A+O =A
A + D = O.
Scalar Multiplication
Definition
If A = [aij ] is an m × n matrix and r is a real number, then the scalar
multiple of A by r , rA, is the m × n matrix C = [cij ] defined by cij = raij .
Example
4 −2 −3
Compute −2 .
7 −3 2
Solution
4 −2 −3 (−2)(4) (−2)(−2) (−2)(−3)
−2 =
7 −3 2 (−2)(7) (−2)(−3) (−2)(2)
−8 4 6
=
−14 6 −4
Sem 2 2018/2019 (UNIMAS) Chap 1 21 / 49
Systems of Linear Eqns Matrix Operations Linear Systems in Matrix Form Special Matrices Partitioned Matrices Nonsingular Ma
Scalar Multiplication
Example
4 −2 −3 4 −2 −3
Find −2 +3 .
7 −3 2 7 −3 2
Solution
−8 4 6 (3)(4) (3)(−2) (3)(−3)
+
−14 6 −4 (3)(7) (3)(−3) (3)(2)
−8 4 6 12 −6 −9
= +
−14 6 −4 21 −9 6
4 −2 −3
=
7 −3 2
or
4 −2 −3 4 −2 −3 4 −2 −3
(−2 + 3) = (1) =
7 −3 2 7 −3 2 7 −3 2
Sem 2 2018/2019 (UNIMAS) Chap 1 22 / 49
Systems of Linear Eqns Matrix Operations Linear Systems in Matrix Form Special Matrices Partitioned Matrices Nonsingular Ma
If r and s are real numbers and A and B are matrices of the appropriate
sizes, then
1. r (sA) = (rs)A
2. (r + s)A = rA + sA
3. r (A + B) = rA + rB
4. A(rB) = r (AB) = (rA)B
Matrix Subtraction
Example
Find A − B if given
2 3 −5 2 −1 3
A= and B = .
4 2 1 3 5 −2
Solution
2−2 3+1 −5 − 3
A−B =
4−3 2−5 1+2
0 4 −8
=
1 −3 3
Matrix Transpose
Definition
If A = [aij ] is an m × n matrix, the the transpose of A, AT = [aijT ], is the
n × m matrix defined by aijT = aji . Thus the transpose of A is obtained
from A by interchanging the rows and columns of A.
Example
Let
2 3 −5
A= .
4 2 1
Then
2 4
AT = 3 2 .
−5 1
Matrix Transpose
Example
3 1
T
Find B when B = 0 2 . Then, use A from the previous example to
1 6
T
show that (A + B) and AT + B T are equal.
Solution
3 0 1
B= AT + B T
1 2 6
T 2+3 4+1
2+3 3 + 0 (−5) + 1
(A + B)T = = 3+0 2+2
4+1 2+2 1+6 (−5) + 1 1 + 6
T 5 5
5 5
5 3 −4
= = 3 4 = 3 4
5 4 7
−4 7 −4 7
Sem 2 2018/2019 (UNIMAS) Chap 1 26 / 49
Systems of Linear Eqns Matrix Operations Linear Systems in Matrix Form Special Matrices Partitioned Matrices Nonsingular Ma
Properties of Transpose
Matrix Multiplication
Definition
If A = [aij ] is an m × p matrix and B = [bij ] is a p × n matrices, then the
product, AB is an m × n matrix C = [cij ] defined by
Matrix Multiplication
Example
Let
−2 5
1 2 −1
A= and B = 4 −3 .
3 1 4
2 1
Find AB.
Solution
(1)(−2) + (2)(4) + (−1)(2) (1)(5) + (2)(−3) + (−1)(1)
AB =
(3)(−2) + (1)(4) + (4)(2) (3)(5) + (1)(−3) + (4)(1)
4 −2
=
6 16
Matrix Multiplication
Example
Let
1 −2 3 1 4
A= 4 2 1 and B = 3 −1 .
0 1 −2 −2 2
Solution
If AB = C , then the (3,2) entry of AB is c32 , i.e.
0 4
(row3 (A))T col2 (B) = 1 −1 = −5.
−2 2
Matrix Multiplication
Matrix Multiplication
Example
Let A be 2 × 3 and let B be 3 × 2. Then AB is 2 × 2 and BA is 3 × 3.
Example
Let
1 2 2 1
A= and B = .
−1 3 0 1
Then
2 3 1 7
AB = and BA = .
−2 2 −1 3
Thus, AB 6= BA.
Matrix Multiplication
Example
−1 −4
−3 1 4 1 2 −1
Let A = ,B= 0 −5 and C = .
5 −2 0 1 2 −1
−2 −6
1
Find (AB)C and ( AB)T .
2
Solution
3+0−8 12 − 5 − 24 1 2 −1
(AB)C =
−5 + 0 + 0 −20 + 10 + 0 1 2 −1
−5 −17 1 2 −1
=
−5 −10 1 2 −1
−22 −44 22
= .
−15 −30 15
Sem 2 2018/2019 (UNIMAS) Chap 1 34 / 49
Systems of Linear Eqns Matrix Operations Linear Systems in Matrix Form Special Matrices Partitioned Matrices Nonsingular Ma
Matrix Multiplication
Solution
1 1 −22 −44 22
AB =
2 2 −15 −30 15
−11 −22 11
= .
−7.5 −15 7.5
Therefore,
−11 −7.5
1 T
( AB) = −22
−15 .
2
11 7.5
Linear Combination
Example
Examples of linear combinations of matrices are:
0 −3 5 5 2 5
3
3 2 3 4 + 6 3 7 ,
2
1 −2 −3 1 −2 −3
2 1 2 − 3 5 0 + 4 −2 5 .
The matrix A is called the coefficient matrix of the linear system (3).
The augmented matrix of the linear system (3) is obtained by
joining column b to A.
a11 a12 · · · a1n b1
a21 a22 · · · a2n b2
.. .. .. ..
. . . .
am1 am2 · · · amn bm
−2x + z = 5
2x + 3y − 4z = 7 .
3x + 2y + 2z = 3
Solution
−2 0 1 x 5
By letting A = 2 3 −4 , x = y , b = 7 , we can
3 2 2 z 3
write the linear system in matrix form as Ax = b. The augmented matrix is
−2 0 1 5
2 3 −4 7
3 2 2 3
Sem 2 2018/2019 (UNIMAS) Chap 1 39 / 49
Systems of Linear Eqns Matrix Operations Linear Systems in Matrix Form Special Matrices Partitioned Matrices Nonsingular Ma
Example
Let
1 0 0 2 0 0 1 0 0
A= 0 2 0 , B= 0 2 0 , I3 = 0 1 0
0 0 3 0 0 2 0 0 1
Power of a Matrix
Ap = A
| · A {z
· · · · · A}
p factors
If A is n × n, then
A0 = In .
For nonnegative integers p and q,
Ap Aq = Ap+q ,
(Ap )q = Apq .
Power of a Matrix
Example
1 2
Given A = . Compute A2 and A3 .
3 4
Solution
1 2 1 2 10 7
A2 = AA = = .
3 4 3 4 22 15
3 2 7 10 1 2 37 54
A = (A )A = = .
15 22 3 4 81 118
Triangular Matrix
Example
Determine if the matrix below is symmetric or skew symmetric.
√
3 2 5
i. A = 2 1.5 −1
3 −1 1
0 1 5
ii. B = −1 0 4 .
−5 −4 0
Solution
i. Not symmetric because AT 6= A.
ii. Skew symmetric because B T = −B.
Submatrix Matrices
If we cross out the second row and third column, we get the submatrix
1 2 4
.
3 0 −3
Partitioned Matrices
Nonsingular Matrices
3
2 3 −1 2
A= and B = .
2 2 1 −1
Nonsingular Matrices
Theorems
The inverse of a matrix, if it exists, is unique.
If A and B are both nonsingular n × n matrices, then AB is
nonsingular and (AB)−1 = B −1 A−1 .
If A1 , A2 , . . . , Ar are n × n nonsingular matrices, then A1 A2 · · · Ar is
−1 −1
nonsingular and (A1 A2 · · · Ar )−1 = A−1 r Ar −1 · · · A1 .
If A is a nonsingular matrix, then A−1 is nonsingular and
(A−1 )−1 = A.
If A is a nonsingular matrix, then AT is nonsingular and
(A−1 )T = (AT )−1 .