Linear Algebra
Linear Algebra
Linear Algebra 3
What is Linear Equation?
𝟏
𝑹𝟏 = 𝑹𝟏
𝟐
𝑹𝟑 = −𝟐𝑹𝟏 + 𝑹𝟑
3 6 9 1 1 2 1 1 1 2
R1 R 2 1 2 3
R2
e.g. A 1 1 2 3 6 9 3
2 0 3 2 0 3 2 0 3
1 1 2
R3R32R11 2 3 B.
0 2 1
Example 2
Example 2
Example :
1 1 1 1
Let A 1 0 0 1.
1 2 1 0
Note : For r, s R,
A B B A (r s) A rA sA
A (B C) ( A B) C r( A B) rA rB
AO O A A r(sA) (rs) A
A A A A O 1A A
Zero matrix
Matrix Multiplication
Example 1:
2 1 4 6
If A and B
,
3 0 2 1
(2 4 1 2) (2 6 1 -1) 10 11
then AB (3 6 0 -1) 12 18
(3 4 0 2)
1 1
Example 4 : If A , find A2
and A 4
.
2 3
1 1 1 1
A A A 3 2 3
2
2
1 2
4 7
A4 A2 A2 ?
Note:
A(BC) ( AB)C
A(B C) AB AC Zero matrix
( A B)C AC BC
AIn A, Ais an m n matrix • AO = OA = O
Im A A, Ais an m n matrix If I is identity matrix and (I )n = I.
An A A … A
n times
Identity matrix
x y
Let B .
z
w
1 1 x y x
y 1 1
AB BA z
0 1 w z w
0 1
x z y w x x y
z
z w z w
x z x
y w x y
zz
xw
z0
z 0 x w t B t
y r
0
r
t
, t, r R.
w z w
© Ahmed Hagag Linear Algebra 11
Operations with Matrices
True or False
If 𝐴𝐶 = 𝐵𝐶, then 𝐴 = 𝐵.
True or False
If 𝐴𝐶 = 𝐵𝐶, then 𝐴 = 𝐵.
3
3 4 3 2
If A ,then A
T
If B 3 2 5, then BT 2
2 5 4 5 5
1 1 1 1 1 3 2 7
3 4 5 6 1 4 2 8
C CT
2 2 2 2 1 5 2 9
7 0 1
8 9 6 2
0
If A and B are matrices (with sizes such that the matrix operations are
defined) and c is a scalar, then the properties below are true. its rows as
columns.
CT C C is symmetric. BA AB AB BA.
0 1 3 4 If A is an n n matrix, then A AT
1 0 5 6
C ,
is skew symmetric:
3 5 0 2
4
6 2 0 ( A AT )T AT ( AT )T AT A ( A AT ).
0 1 3 4
1 0 5 6 If Aand B are skew symmetric, then
C
T
3 5 0 2 AB BA is symmetric :
4
6 2 0
CT C
( AB BA)T ( AB)T (BA)T BT AT AT BT
(B)( A) ( A)(B) BA AB AB BA.
C is skew symmetric.
adjoint of 𝑨
Note:
• The inverse of a matrix is unique.
• If A and B are nonsingular matrices, then
o A-1 is nonsingular and (A-1)-1 = A.
o AT is nonsingular and (AT )-1 = (A-1)T.
o AB is nonsingular and (AB)-1 = B-1A-1 .
o A is nonsingular and (An)-1 = (A-1)n .
1
o A is nonsingular and (nA)-1 = n A-1 .
o I is identity matrix and ( I )-1 = I.
Note:
• If A and B are nonsingular matrices, then
o (A+B)-1 ≠ A-1 + B-1
o (A+B)-1 = A-1 − A-1BA-1 + A-1BA-1BA-1 − A-1BA-1BA-1BA-1 +…
True or False
True or False
1 1 0 2 3
Example : Let A 1 0 0 and B 1 0.
1 2 1 0 2
Example:
0 1 1 0
𝐴= → 𝐴4 = =𝐼
−1 0 0 1
∴ 𝐴 is periodical with order = 4
Example: Prove that the following matrix is periodical and find the order.
0 0 1
𝐴= 1 0 0
0 1 0
0 0 1
𝐴= 1 0 0
0 1 0
The adjoint (or adjugate) matrix of an n×n matrix is the transpose of the
cofactor matrix.
Note that odd positions (where i + j is odd) have negative signs, and even positions
(where i + j is even) have positive signs.
Note that odd positions (where i + j is odd) have negative signs, and even positions
(where i + j is even) have positive signs.
Note that odd positions (where i + j is odd) have negative signs, and even positions
(where i + j is even) have positive signs.
Example
Example
Example
Determinant of a Transpose
If 𝑨 is a square matrix, then 𝐝𝐞𝐭 𝑨 = 𝒅𝒆𝒕(𝑨𝑻).
Notes:
If 𝐴 is an 𝑛 × 𝑛 invertible matrix, then
𝟏
𝐝𝐞𝐭 𝑨−𝟏 =
𝒅𝒆𝒕(𝑨)
Notes:
If a matrix B is obtained from a matrix A by multiplying one row (column)
of A by a number r , then |B| = r |A|.
10 20 1 2
e.g. 10 (10)(2) 20.
3 4 3 4
If a matrix B is obtained from a matrix A by adding a multiple of one row
(column) of A to another row (column) of A, then |B| = |A|.
1 2
31 42
e.g. 2.
3 4 3 4
R1 10R2
© Ahmed Hagag Linear Algebra 6
Properties of Determinants
Notes:
• |AB| = |A| |B|
• |ABC…| = |A| |B| |C| …|..|
• |An| = |A|n
• If A is an n×n matrix and r is a scalar, then
|r A| = r n |A| , |r 𝐴−1| = r n / |A| , | 𝑟𝐴 −1| = 1 / (r n |A|)
• A square matrix A is invertible (nonsingular) if and only if |A| ≠ 0
• |A+B| ≠ |A| + |B |
Example 1:
If A and B are 5×5 matrices with |A| = 8 and |B| = 2. Find
(i) |A2| (ii) |−A| (iii) |AT B -1| (iv) |2A-1B 4A|.
(i) A A 82 64.
2 2
B
1 4
(iv) 2 A1B4 A 25 A1 B4 A 32 B A 32 B 512.
4
A
© Ahmed Hagag Linear Algebra 8
Examples
Example 2: Answer each of the following as True or False. Justify your answer.
(i) If A and B are n×n matrices, then |AB | = |BA|.
(ii) If A and B are n×n matrices, then |A + B | = |A| + |B |.
(iii) If A and B are n×n matrices such that AB2 = In , then A is nonsingular.
(i) AB A B B A BA , TRUE.
1 0 3 0.
(ii) Let A ,B
0 2 0 4
A B 24, A 2, B 12, FALSE, using counter example.
(iii) AB 2 I A B I 1 A 0, TRUE.
2
n n
2 3 5 7
0 0 3 4
Example 3: Evaluate .
0 4 1 0
0 0 0 1
2 3 5 7 2 3 5 7
0 0 3 4 0 4 1 0
(2)(4)(3)(1) 24.
0 4 1 0 0 0 3 4
0 0 0 1 0 0 0 1
R2 R3
a b c 2g a 3d
Example 5: If d e f 2, Find 2h b 3e .
g h i 2i c 3f
a b c 2g a 3d
Example 5: If d e f 2, Find 2h b 3e .
g h i 2i c 3f
2g a 3d 2g a. d g a d
2h b 3e 3 2h b. e 6h b e
2i c 3f 2i c. f i c f
d. a g a d g a b c
6 e b h 6b e h 6d e f 6 2 12.
f c i c f i g h i
Geometric Representation
Geometrically, a vector in the plane is represented by a directed line
segment with its initial point at the origin and its terminal point at (𝑥1, 𝑥2).
The term vector derives from the Latin word
vectus, meaning “to carry.” The idea is that if you
were to carry something from the origin to the
point (𝑥1, 𝑥2).
𝑥1
Vectors are represented by lowercase letters set 𝐱 = 𝑥1 , 𝑥2 = 𝑥1
𝑥2 = 𝑥
2
in boldface type (such as u, v, w, and x). Non- 𝑥 = 𝑥1, 𝑥2
bold italic, as in 𝑣, or non-bold italic accented by Ԧ = 𝑥1, 𝑥2
𝑥
Vectors in 𝑹𝟐
𝑅2 = 2-space = set of all ordered pairs of real numbers.
−3 −3
a 2-vector 𝐮 = −3, 5 = = is vector in 𝑅2 or vector in the plane.
5 5
Vectors in 𝑹𝟑
𝑅3 = 3-space = set of all ordered triples of real numbers.
1 1
a 3-vector 𝐯 = 1,0, −2 = 0 = 0 is vector in 𝑅3 or vector in the space.
−2 −2
Vectors in 𝑹𝒏
𝑅 𝑛 = 𝑛-space = set of all ordered 𝑛-tuples of real numbers.
𝑣1
𝑣2
An 𝑛-vector 𝐯 = ⋮ is called a vector in 𝑅 𝑛 ,
𝑣𝑛
where 𝑣1, 𝑣2, … , 𝑣𝑛 ∈ 𝑅 are called the components of the vector.
Vector Equality
𝑢1 𝑣1
𝑢2 𝑣2
Two vectors 𝐮 = ⋮ and 𝐯 = ⋮ in 𝐑𝑛are said to be equal if 𝑢 𝑖 = 𝑣𝑖 , 1 ≤ 𝑖 ≤ 𝑛.
𝑢𝑛 𝑣𝑛
Example
2 2
• Two vectors 𝐮 = 0 and 𝐯 = 0 in 𝐑3 are equal.
5 5
Vector Addition
𝑢1 𝑣1
𝑢2 𝑣2
The sum of two vectors 𝐮 = ⋮ and 𝐯 = ⋮ in 𝐑𝑛 are a vector in 𝐑𝑛 defined by:
𝑢𝑛 𝑣𝑛
𝑢1 + 𝑣1
𝑢2 + 𝑣2 Example
𝐮+𝐯= 1 −2
⋮
𝑢𝑛 + 𝑣𝑛 Two vectors 𝐮 = 0 and 𝐯 = 2 in 𝐑3
5 −3
1−2 −1
𝐮+𝐯= 0+2 = 2
5−3 2
© Ahmed Hagag Linear Algebra 6
Vectors in 𝑹𝒏
Scalar Multiplication
𝑢1 𝑟𝑢1
𝑢2 𝑛
𝑟𝑢2
The product of a vector 𝐮 = ⋮ in 𝐑 by a real scalar 𝑟 is defined by 𝑟𝐮 = ⋮ .
𝑢𝑛 𝑟𝑢𝑛
Example
1 −2
Let 𝐮 = 0 and 𝐯 = 2 be vectors in 𝐑3. Find 3𝐮 − 2𝐯.
5 −3
1 −2 3 4 7
3𝐮 − 2𝐯 = 3 0 − 2 2 = 0 + −4 = −4
5 −3 15 6 21
© Ahmed Hagag Linear Algebra 7
Vectors in 𝑹𝒏
Properties (1/2):
Properties (2/2):
Linear Combination
A vector 𝐱 in 𝑅 𝑛 is a linear combination of the vectors 𝐯1, 𝐯2, ⋯ , 𝐯𝑘 in 𝑅 𝑛 if
there exist scalars 𝑐1, 𝑐2, ⋯ , 𝑐𝑘 ∈ 𝑅 such that
𝐱 = 𝑐1𝐯1 + 𝑐2𝐯2 + ⋯ + 𝑐𝑘𝐯𝑘.
The vector 𝐱 is called a linear combination of the vectors 𝐯1, 𝐯2, ⋯ , 𝐯𝑘.
Example:
The vector 𝐱 = −1, −2, −2 is a linear combination of
u = (0, 1, 4), v = ( − 1, 1, 2), and w = (3, 1, 2)
since 𝐱 = u − 2v − w.
Example 1:
5
Determine whether the vector 𝐱 = is a linear combination of the
0
1 3
vectors 𝐱1 = and 𝐱2 = .
2 −4
Example 1:
Example 2:
10
Determine whether the vector 𝐯 = 1 is a linear combination of the
4
2 1 −2
vectors 𝐮1 = 3 , 𝐮2 = 2 and 𝐮3 = 2 .
5 4 3
Example 2:
Example 3:
−5
Determine whether the vector 𝐯 = 11 is a linear combination of the
−7
1 0 2
vectors 𝐮1 = −2 , 𝐮2 = 5 and 𝐮3 = 0 .
2 5 8
Example 3:
Example 4:
Find the value of m such that the vector (m, 7, −4) is linear combination of
vectors ( − 2, 2, 1) and (2, 1, − 2).
Example 4:
The set 𝑉 = 𝑀𝑚×𝑛 of all 𝑚 × 𝑛 matrices with the matrix addition and scalar
multiplication is a Vector Space.
Example 1:
𝑥
Show that the set 𝑉 = 𝑦 ቚ𝑥 > 𝑦 , together with the standard operations
of vector addition and scalar multiplication is not a vector space.
Example 1:
𝑥
Show that the set 𝑉 = 𝑦 ቚ𝑥 > 𝑦 , together with the standard operations
of vector addition and scalar multiplication is not a vector space.
Example 2:
Determine whether 𝑉 = 𝑥, 𝑥 : 𝑥 is a real number together with the standard
operations, is a vector space. If it is not, identify at least one of the ten vector space
axioms that fails.
Example 2:
Example 3:
Determine whether 𝑉 = 𝑅3 together with the two operations defined as:
∀ 𝑥, 𝑦, 𝑧 ∈ 𝑉, and ∀ 𝑟 ∈ 𝑅
𝑥 𝑥′ 𝑥 + 𝑦′ 𝑥 𝑟𝑥
𝑦 ⨁ 𝑦 ′ = 𝑦 + 𝑧′ and 𝑟 ⊗ 𝑦 = 𝑟𝑦 is a vector space.
𝑧 𝑧′ 𝑧 + 𝑥′ 𝑧 𝑟𝑧
⨁ ⊗ or ⨀
vector addition scalar multiplication
Example 3:
Example 4:
Consider the set of numbers 𝑉 = 𝑥: 𝑥 ∈ 𝑅, 𝑥 > 0 together with the two operations
defined as: ∀ 𝑥, 𝑦 ∈ 𝑉, and ∀ 𝑟 ∈ 𝑅 ∶ 𝑥 ⨁ 𝑦 = 𝑥 + 𝑦 and 𝑟 ⊗ 𝑥 = 𝑟𝑥
Is (𝑉, ⨁,⊗) a vector space?
Example 4:
Consider the set of numbers 𝑉 = 𝑥: 𝑥 ∈ 𝑅, 𝑥 > 0 together with the two operations
defined as: ∀ 𝑥, 𝑦 ∈ 𝑉, and ∀ 𝑟 ∈ 𝑅 ∶ 𝑥 ⨁ 𝑦 = 𝑥 + 𝑦 and 𝑟 ⊗ 𝑥 = 𝑟𝑥
Is (𝑉, ⨁,⊗) a vector space?
Example 5:
Show that the set 𝑉 = 𝑅3, together with the operations
𝑥 𝑟𝑥
𝑟 ⊗ 𝑦 = 𝑟𝑦 and the standard addition operation on 𝑅3 is not a vector space.
𝑧 0
Example 5:
Show that the set 𝑉 = 𝑅3, together with the operations
𝑥 𝑟𝑥
𝑟 ⊗ 𝑦 = 𝑟𝑦 and the standard addition operation on 𝑅3 is not a vector space.
𝑧 0
Example 6:
Let 𝑉 be the set of all positive real numbers.
Determine whether 𝑉 is a vector space with the operations shown below.
∀ 𝑥, 𝑦 ∈ 𝑉, and ∀ 𝑐 ∈ 𝑅 ∶ 𝑥 ⨁ 𝑦 = 𝑥𝑦 and 𝑐 ⊗ 𝑥 = 𝑥𝑐
Example 6: (1/2)
Example 6: (2/2)
Example 1:
𝑥
Show that the set 𝑊 = ቚ𝑥 ∈ 𝑅 is a subapace of the vector space 𝑅2 with
𝑥
the standard operations of vector addition and scalar multiplication.
Example 1:
Example 2:
Show that the set 𝑊 = 𝑥1, 0, 𝑥3 : 𝑥1and 𝑥3 ∈ 𝑅 is a subapace of the vector
space 𝑅3 with the standard operations.
Example 2:
Example 3:
Is the set 𝑊 = 𝑥1, 1, 𝑥3 : 𝑥1and 𝑥3 ∈ 𝑅 a subapace of 𝑅3 with the standard
operations ?
Example 3:
Is the set 𝑊 = 𝑥1, 1, 𝑥3 : 𝑥1and 𝑥3 ∈ 𝑅 a subapace of 𝑅3 with the standard
operations ?
Example 4:
Is the set 𝑊 = 𝑥1, 𝑥2 : 𝑥1 ≥ 0 and 𝑥3 ≥ 0 a subapace of 𝑅2 with the standard
operations ?
Example 4:
Is the set 𝑊 = 𝑥1, 𝑥2 : 𝑥1 ≥ 0 and 𝑥3 ≥ 0 a subapace of 𝑅2 with the standard
operations ?
Example 5:
𝑎
Show that 𝑊 = 𝑏 อ𝑐 = 𝑎 + 𝑏 is a subapace of the vector space 𝐑3.
𝑐
Example 5:
Example 6:
𝑎
Show that 𝑊 = 𝑏 อ𝑎, 𝑏 ∈ 𝐑 is not a subapace of the vector space 𝐑3
𝑎+𝑏+1
Example 6:
𝑎
Show that 𝑊 = 𝑏 อ𝑎, 𝑏 ∈ 𝐑 is not a subapace of the vector space 𝐑3
𝑎+𝑏+1
Note that:
Span(𝑆) or Span{𝐯𝟏, 𝐯𝟐, . . . , 𝐯𝐤} is a subspace of 𝑉.
Example 1:
𝑎+𝑏
Show that 𝑊 = 𝑎 − 2𝑏 ተ𝑎, 𝑏 ∈ 𝑅 is a subapace of the vector space 𝑅3.
2𝑎 + 3𝑏
Example 1:
𝑎+𝑏
Show that 𝑊 = 𝑎 − 2𝑏 ተ𝑎, 𝑏 ∈ 𝑅 is a subapace of the vector space 𝑅3.
2𝑎 + 3𝑏
Example 2:
𝑥−𝑦
Let 𝑊 = 2𝑥 ተ𝑥, 𝑦 ∈ 𝑅 be a subset of the vector space 𝑅3.
3𝑥 + 4𝑦
Example 2:
Example 3:
𝑎+𝑏
Let 𝑊 = 𝑏 ተ𝑎, 𝑏 ∈ 𝑅 be a subset of the vector space 𝑅3.
𝑎 − 3𝑏
Example 4:
Is the polynomial 𝑥3 + 𝑥 belongs to span 𝑥3 − 𝑥, 3𝑥3 + 2𝑥, 𝑥2 .
Example 4:
Is the polynomial 𝑥3 + 𝑥 belongs to span 𝑥3 − 𝑥, 3𝑥3 + 2𝑥, 𝑥2 .
Example 5:
𝑎
Find a spanning set for the subspace 𝑊 = :𝑎 ∈ 𝑅 .
2𝑎
Example 5:
𝑎
Find a spanning set for the subspace 𝑊 = :𝑎 ∈ 𝑅 .
2𝑎
Example 6:
Find a spanning set for the subspace 𝑊 = 2𝑎 : 𝑎 ∈ 𝑅 .
4𝑎
Example 6:
Find a spanning set for the subspace 𝑊 = 2𝑎 : 𝑎 ∈ 𝑅 .
4𝑎
Example 7:
𝑎
Find a spanning set for the subspace 𝑊 = : 𝑎, 𝑏 ∈ 𝑅 .
2𝑏
Example 7:
𝑎
Find a spanning set for the subspace 𝑊 = : 𝑎, 𝑏 ∈ 𝑅 .
2𝑏
Example 8:
𝑎−𝑏
Find a spanning set for the subspace 𝑊 = : 𝑎, 𝑏 ∈ 𝑅 .
𝑏 − 2𝑎
Example 8:
𝑎−𝑏
Find a spanning set for the subspace 𝑊 = : 𝑎, 𝑏 ∈ 𝑅 .
𝑏 − 2𝑎
Example 9:
𝑎
𝑊= 𝑏 : 𝑎, 𝑏 ∈ 𝑅 is subspace of 𝑅3. (True/False)
𝑎+𝑏+1
Example 9:
𝑎
𝑊= 𝑏 : 𝑎, 𝑏 ∈ 𝑅 is subspace of 𝑅3. (True/False)
𝑎+𝑏+1
Example 10:
𝑎
𝑊= 1 : 𝑎 ∈ 𝑅 is subspace of 𝑅3. (True/False)
0
Example 10:
𝑎
𝑊= 1 : 𝑎 ∈ 𝑅 is subspace of 𝑅3. (True/False)
0
Example 1:
Determine whether the set of vectors in 𝑅3
is linearly independent or linearly dependent.
𝑆 = {𝐯𝟏, 𝐯𝟐, 𝐯𝟑} = {(1, 2, 3), (0, 1, 2), (−2, 0, 1)}
Example 1:
Example 2:
Determine whether the set of vectors in 𝑃2 is linearly independent or linearly
dependent. 𝑆 = 1 + 𝑥 − 2𝑥2, 2 + 5𝑥 − 𝑥2, 𝑥 + 𝑥2
Example 2:
Determine whether the set of vectors in 𝑃2 is linearly independent or linearly
dependent. 𝑆 = 1 + 𝑥 − 2𝑥2, 2 + 5𝑥 − 𝑥2, 𝑥 + 𝑥2
Example 3:
Let 𝑆 = {𝑋1, 𝑋2, 𝑋3} be linearly independent set. Show that
𝑇 = {𝑋1 + 𝑋2, 𝑋1 − 𝑋3, 𝑋2 + 2𝑋3} is linearly independent set.
Example 3:
Example 4:
Find the conditions that must be achieved by the scalar numbers 𝑐, 𝑘 be the set of
vectors {(1,2,0), (𝑐, 𝑘, 2), (1,0,1)} linearly dependent.
Example 4:
Note:
The set of 𝑛 vectors 𝑆 = 𝐯𝟏, 𝐯𝟐, ⋯ , 𝐯𝒏 in 𝐑𝑛 is linearly dependent
if the determinant 𝐯𝟏𝐯𝟐 ⋯ 𝐯𝐧 = 0,
othrerwise 𝑆 is linearly independent.
Example 6:
Determine whether the set of vectors in 𝑅4 is linearly independent or linearly
dependent.
1 1 0 0
0 1 3 1
𝑆= −1 , 0 , 1 , −1
0 2 −2 2
Example 7:
1 −1
The set 𝑆 = 1 , 2 is a linearly independent set of 𝑅3 . (True/False)
0 0
Example 7:
1 −1
The set 𝑆 = 1 , 2 is a linearly independent set of 𝑅3 . (True/False)
0 0
Span 𝑹𝒏 :
To span 𝑅 𝑛 , a set of vectors must be able to generate any vector in 𝑅 𝑛 through
linear combinations. For this to happen, the vectors must be:
• In 𝑅 𝑛 (i.e., each vector has 𝑛 components), and Linearly independent. There
must be 𝑛 such independent vectors.
For Example:
• If you have 3 linearly independent vectors, they span 𝑅3.
• If you have fewer than 3, or 3 dependent vectors, they do not span 𝑅3.
Example 8:
Which of the following does not span 𝑅3?
a) 𝑥 = 2,2,2 , 𝑦 = 0,0,3 , 𝑧 = 0,1,1
b)𝑥 = 2, −1,3 , 𝑦 = 4,1,2 , 𝑧 = 8, −1,8
c)Neither 𝑎 nor 𝑏 span 𝑅3.
d)Both 𝑎 and 𝑏 span 𝑅3.
Example 8:
Which of the following does not span 𝑅3?
a) 𝑥 = 2,2,2 , 𝑦 = 0,0,3 , 𝑧 = 0,1,1
b) 𝑥 = 2, −1,3 , 𝑦 = 4,1,2 , 𝑧 = 8, −1,8
c)Neither 𝑎 nor 𝑏 span 𝑅3.
d)Both 𝑎 and 𝑏 span 𝑅3.
Definition of Basis
A set of vectors 𝑆 = {𝐯𝟏, 𝐯𝟐, . . . , 𝐯𝐤} be a subset of a vector space 𝑅 𝑛 is said to form a
basis for a subspace 𝑊 of 𝑅 𝑛 if:
1) 𝑊 = Span(𝑆) .
2) 𝑆 is linearly independent set.
Note that:
A set of 𝒏 vectors 𝑆 = {𝐯𝟏, 𝐯𝟐, . . . , 𝐯𝒏} in a vector space 𝑅𝑛
is a basis for 𝑅 𝑛 if 𝑆 is linearly independent.
Example 1:
𝑎−𝑏
Let 𝑊 = 2𝑎 ተ𝑎, 𝑏 ∈ 𝑅 be a subset of the vector space 𝑅3.
3𝑎 + 4𝑏
Example 1:
Example 2:
Show that the set 𝑆 = {(1, 1), (1, −1)} is a basis for 𝑅2.
Example 2:
Show that the set 𝑆 = {(1, 1), (1, −1)} is a basis for 𝑅2.
Example 3:
1 1 3
Show that 𝑋1 = 2 , 𝑋2 = 0 and 𝑋3 = 1 are bases for 𝐑3.
1 1 0
Example 3:
1 1 3
Show that 𝑋1 = 2 , 𝑋2 = 0 and 𝑋3 = 1 are bases for 𝐑3.
1 1 0
Note that:
The dimension of 𝑅 𝑛 with the standard operations is 𝑛.
Example 4:
Find the dimension of the subspace 𝑊 of 𝑅4 spanned by
𝑆 = {𝐯𝟏, 𝐯𝟐, 𝐯𝟑} = {(−1, 2, 5, 0), (3, 0, 1, −2), (−5, 4, 9, 2)}.
Example 4:
Example 5:
1 3 11 7
Let 𝑆 = 2 , 2 , 10 , 6 .
2 1 7 4
Find a subset of 𝑆 that forms a basis for the subspace 𝑊 = span(𝑆).
Example 5:
Example 6:
𝑎
Let 𝑊 = 𝑏 : 𝑐 = 2𝑎 + 3𝑏, 𝑎, 𝑏 ∈ 𝑅 be a subset of 𝑅3.
𝑐
1) Show that 𝑊 is a subspace of 𝑅3.
2) Find a set 𝑆 such that 𝑊 = span(𝑆).
3) Find a basis for 𝑊.
4) What is dim(𝑊)?
Example 6:
Example 7:
1 , 3
The set 𝑆 = is a basis for 𝑅2. (True/False)
2 6
Example 7:
1 , 3
The set 𝑆 = is a basis for 𝑅2. (True/False)
2 6
Example 8:
Which of the following does not a basis for 𝑅3?
a) 1,1,1 , 1,1,0 , 1,0,0
b) 1,0,0 , 0,2,0 , 0,0,3
c) 1,1,2 , 1,2,1 , 0, −1,1
d)All are bases.
Example 8:
Example 9:
𝑎
The dimension of the subspace 𝑊 = 2𝑎 : 𝑎, 𝑏 ∈ 𝑅 is
3𝑏
a) 0
b) 1
c) 2
d) 3
Example 9:
𝑎
The dimension of the subspace 𝑊 = 2𝑎 : 𝑎, 𝑏 ∈ 𝑅 is
3𝑏
a) 0
b) 1
c) 2
d) 3
Example 10:
𝑎
The dimension of the subspace 𝑊 = 2𝑎 : 𝑎 ∈ 𝑅 is
3𝑎
a) 0
b) 1
c) 2
d) 3
Example 10:
𝑎
The dimension of the subspace 𝑊 = 2𝑎 : 𝑎 ∈ 𝑅 is
3𝑎
a) 0
b) 1
c) 2
d) 3
Example 11:
1 2 −3
The dimension of the subspace 𝑊 = 1 , 2 , −3 is
1 2 −3
a) 0
b) 1
c) 2
d) 3
Example 11:
1 2 −3
The dimension of the subspace 𝑊 = 1 , 2 , −3 is
1 2 −3
a) 0
b) 1
c) 2
d) 3
Rank of a matrix
The matrix 𝐴 has a rank 𝑛 if the reduced row-echelon form of A has 𝑛 nonzero rows.
1 1 3 1 0 0
𝐴= 2 0 1 ≈≈ 0 1 0 → rank 𝐴 = 3
1 1 0 0 0 1
1 2 3 1 2 3
𝐵= 1 2 3 ≈≈ 0 0 0 → rank 𝐵 = 1
1 2 3 0 0 0
[Link]
Example 1:
𝑥 𝑥−𝑦
Show that the mapping 𝑇: 𝑅2 → 𝑅2 defined by 𝑇 = 𝑥 + 2𝑦
𝑦
is a linear transformation.
Example 1:
𝑥 𝑥−𝑦
Show that the mapping 𝑇: 𝑅2 → 𝑅2 defined by 𝑇 𝑦 = 𝑥 + 2𝑦 is a linear transformation.
Example 2:
𝑥 𝑥
Show that the mapping 𝑇: 𝑅3 → 𝑅2 defined by 𝑇 𝑦 = 𝑦+𝑧
𝑧
is a linear transformation.
Example 2:
𝑥
𝑥
Show that the mapping 𝑇: 𝑅3 → 𝑅2 defined by 𝑇 𝑦 = 𝑦 + 𝑧 is a linear transformation.
𝑧
Example 3:
𝑥 𝑥+𝑦
Show that the mapping 𝑇: 𝑅3 → 𝑅3 defined by 𝑇 𝑦 = 𝑦+𝑧
𝑧 𝑧+1
is not a linear transformation.
Example 3:
𝑥 𝑥+𝑦
Show that the mapping 𝑇: 𝑅3 → 𝑅3 defined by 𝑇 𝑦 = 𝑦 + 𝑧 is not a linear transformation.
𝑧 𝑧+1
Example 4:
Let 𝑇: 𝑅3 → 𝑅3 defined by
𝑇 𝑥1, 𝑥2, 𝑥3 = 𝑥1 − 𝑥2 + 𝑥3, 2𝑥1 + 𝑥2 − 𝑥3, −𝑥1 − 2𝑥2 + 2𝑥3
Show that T is a linear transformation.
Example 4:Let 𝑇: 𝑅3 → 𝑅3 defined by 𝑇 𝑥1, 𝑥2, 𝑥3 = 𝑥1 − 𝑥2 + 𝑥3, 2𝑥1 + 𝑥2 − 𝑥3, −𝑥1 − 2𝑥2 + 2𝑥3
Show that T is a linear transformation.
Example 5:
𝑥
Determine whether the mapping 𝑇: 𝑅2 → 𝑅 by 𝑇 = 𝑥 2 + 𝑦2
𝑦
is a linear transformation.
Example 5:
𝑥
Determine whether the mapping 𝑇: 𝑅2 → 𝑅 by 𝑇 𝑦 = 𝑥 2 + 𝑦2 is a linear transformation.
Example 6:
Let 𝑇: 𝑅2 → 𝑅2 be a linear transformation such that
1 1 0 2 . 3
𝑇 = and 𝑇 = Find 𝑇 .
0 2 1 3 −2
Example 6:
1 1 0 2 .
Let 𝑇: 𝑅2 → 𝑅2 be a linear transformation such that 𝑇 = and 𝑇 =
0 2 1 3
3
Find 𝑇 .
−2
Example 7:
1 2
Let 𝐴 = and define the mapping 𝑇: 𝑅2 → 𝑅2 by 𝑇(𝐮) = 𝐴𝐮,
3 0
for every 𝐮 ∈ 𝑅2.
1. Show that 𝑇 is a linear transformation.
1
2. Find 𝑇 .
4
Example 7:
1 2
Let 𝐴 = and define the mapping 𝑇: 𝑅2 → 𝑅2 by 𝑇(𝐮) = 𝐴𝐮, for every 𝐮 ∈ 𝑅2.
3 0
1. Show that 𝑇 is a linear transformation.
1
2. Find 𝑇 .
4
Example 7:
1 2
Let 𝐴 = and define the mapping 𝑇: 𝑅2 → 𝑅2 by 𝑇(𝐮) = 𝐴𝐮, for every 𝐮 ∈ 𝑅2.
3 0
1. Show that 𝑇 is a linear transformation.
1
2. Find 𝑇 .
4
Example 8:
3 0
Let 𝐴 = 2 1 and define the mapping 𝑇: 𝑅2 → 𝑅3 by 𝑇(𝐮) = 𝐴𝐮,
−1 −2
for every 𝐮 ∈ 𝑅2.
1. Show that 𝑇 is a linear transformation.
2. Find 𝑇 𝐮 when 𝐮 = 2, −1 .
Example 2:
Let 𝑇: 𝑅3 → 𝑅3 defined by
𝑇 𝑥1, 𝑥2, 𝑥3 = 𝑥1 − 𝑥2 + 𝑥3, 2𝑥1 + 𝑥2 − 𝑥3, −𝑥1 − 2𝑥2 + 2𝑥3
1) Show that T is a linear transformation.
2) Find the ker(𝑇).
Example 2:
Let 𝑇: 𝑅3 → 𝑅3 defined by 𝑇 𝑥1, 𝑥2, 𝑥3 = 𝑥1 − 𝑥2 + 𝑥3, 2𝑥1 + 𝑥2 − 𝑥3, −𝑥1 − 2𝑥2 + 2𝑥3
1) Show that T is a linear transformation.
2) Find the ker(𝑇).
Example 3:
Let 𝑇: 𝑅3 → 𝑅3 be linear transformation defined by
𝑥 𝑥
𝑇 𝑦 = 𝑥 + 𝑦 . Find N(𝑇) and R(𝑇).
𝑧 𝑥+𝑦+𝑧
Example 3:
𝑥 𝑥
Let 𝑇: 𝑅3 → 𝑅3 be linear transformation defined by 𝑇 𝑦 = 𝑥 + 𝑦 . Find N(𝑇) and R(𝑇).
𝑧 𝑥+𝑦+𝑧
Example 4:
𝑥
3 2
2𝑥 − 𝑦
Define 𝑇: 𝑅 → 𝑅 by 𝑇 𝑦 =
𝑦+𝑧
𝑧
1) Show that T is a linear transformation.
2) Find the null space, N(𝑇).
2) Find the ragne of T, R(𝑇).
Example 5:
𝑎
𝑏 𝑎 + 𝑏
4 3
Define 𝑇: 𝑅 → 𝑅 by 𝑇 = 𝑏 − 𝑐 , where 𝑎, 𝑏, 𝑐, and 𝑑 ∈ 𝑅.
𝑐
𝑑 𝑎+𝑑
1) Find the Null(𝑇), its basis, and its dimension.
2) Find the Range(𝑇), its basis, and its dimension.
Example 6:
𝑥 𝑥
Define 𝑇: 𝑅3 → 𝑅3 by 𝑇 𝑦 = 0 .
𝑧 𝑧
1) Show that T is a linear transformation.
2) Find the null space, N(𝑇).
3) Find the ragne of T, R(𝑇).
[Link]
Example 1:
Find the eigenvalues and corresponding eigenvectors and eigenspace of
2 −12 .
𝐴=
1 −5
Example 2:
Find the eigenvalues and corresponding eigenvectors and eigenspace of
1 2 0
𝐴= 2 1 0 .
0 0 −3
Note:
If the matrix 𝐴 is an 𝑛 × 𝑛 triangular diagonal matrixthen its eigenvalues
are the entries on its main diagonal.
Example: Finding the eigenvalues of
Note:
If the matrix 𝐴 is an 𝑛 × 𝑛 triangular diagonal matrixthen its eigenvalues
are the entries on its main diagonal.
Example: Finding the eigenvalues of
Example 3:
Find the eigenvalues and corresponding eigenvectors and eigenspace of
2 3 1
𝐴 = 0 −1 2.
0 0 3
Example 3:
Find the eigenvalues and corresponding eigenvectors and eigenspace of
2 3 1
𝐴 = 0 −1 2.
0 0 3
Example 4:
Find the eigenvalues and corresponding eigenvectors and eigenspace of
2 1 0
𝐴= 0 2 0 .
0 0 2
Example 4:
Find the eigenvalues and corresponding eigenvectors and eigenspace of
2 1 0
𝐴= 0 2 0 .
0 0 2
3 0
An eigenvalue for the matrix 𝐴 = is
1 −2
𝑎) 0
𝑏) 1
𝑐) − 2
𝑑) − 6
3 0
An eigenvalue for the matrix 𝐴 = is
1 −2
𝑎) 0
𝑏) 1
𝑐) − 2
𝑑) − 6
2 1
An eigenvalue for the matrix 𝐴 = is
0 2
𝑎) 0
𝑏) 1
𝑐) 2
𝑑) 3
2 1
An eigenvalue for the matrix 𝐴 = is
0 2
𝑎) 0
𝑏) 1
𝑐) 2
𝑑) 3
3 5
An eigenvector for value of 𝜆 = −2 for matrix is
3 1
𝑎) 0
1
𝑏) 1
0
𝑐) 1
1
𝑑) −1
1
3 5
An eigenvector for value of 𝜆 = −2 for matrix is
3 1
𝑎) 0
1
𝑏) 1
0
𝑐) 1
1
𝑑) −1
1
𝑎 𝑏 𝑑 −𝑏
The matrices and have the same eigenvalues.
𝑐 𝑑 −𝑐 𝑎
1 0 .
𝜆 = 2 is an eigenvalue for 𝐴 =
3 2
𝐵=
𝐵=
Example 1:
1 1
Let 𝐴 =
−2 4
a) Show that 𝜆 = 2 and 𝜆 = 3 are eigenvalues of 𝐴.
b) Find a matrix 𝑃 such that 𝑃−1𝐴𝑃 = 𝐷, 𝐷 is a diagonal matrix.
Example 2:
−1 0 −1
Let 𝐴 = 0 −1 1
−1 0 −1
a) Show that 𝜆 = 0, −1, −2 are eigenvalues of 𝐴.
b) Find an eigenvector corresponding to 𝜆 = 0.
c) Show that the matrix 𝐴 is diagonalizable.
Example 3:
Show that the matrix 𝐴 is diagonalizable
1 −1 −1
𝐴= 1 3 1
−3 1 −1
Then find a matrix 𝑃 such that 𝑃−1𝐴𝑃 is diagonal.
Example 3:
Example 3:
Example 3:
Example 4:
Show that the matrix 𝐴 is diagonalizable
1 0 0
𝐴 = 6 −2 0
7 −4 2
Then find a matrix 𝑃 such that 𝑃−1𝐴𝑃 is diagonal.
Example 5:
Show that the matrix 𝐴 is not diagonalizable
1 0 0
𝐴= 6 1 0
7 −4 2
Example 5:
Example 5: