Docsity

Lectures 1-8 notes for MATH405, Lecture notes of Linear Algebra

Partial preview of the text

Download Lectures 1-8 notes for MATH405 and more Lecture notes Linear Algebra in PDF only on Docsity!

Linear Algebra

Math 405

R. Ebrahimian

University of Maryland, College Park

Notations

  • ∈, belongs to.
  • ∀, for all.
  • ∃, there exists or for some.
  • Im f , the image of function f.
  • N, the set of nonnegative integers.
  • Z+, the set of positive integers.
  • Q, the set of rational numbers.
  • R, the set of real numbers.
  • A ⊆ B, set A is a subset of set B.
  • A ⫋ B, set A is a proper subset of set B.
  • A ∪ B, the union of sets A and B.
  • A ∩ B, the intersection of sets A and B.
  • A\B, the difference set of B from A.
  • Sn i= Ai, the union of sets A 1 , A 2 ,... , An.
  • Tn i= Ai, the intersection of sets A 1 , A 2 ,... , An.
  • A 1 × A 2 × · · · × An, the Cartesian product of sets A 1 , A 2 ,... , An.
  • ∅, the empty set.
  • f −^1 (T ), the inverse image or pre-image of set T under function f.
  • f (S), the image of set S under function f.
  • F, the field of real or complex numbers, i.e. R or C.
  • Pn, the vector space of all polynomials of degree not exceeding n and coefficients in F.
  • F[t], the vector space of all polynomials with coefficients in F.
  • C[a, b], the vector space of all continuous functions from [a, b] to R.
  • span S, the subspace spanned by the set S.
  • dim V , the dimension of vector space V.

Contents

CONTENTS 7

These note may contain occasional typos or errors. Feel free to email me at [email protected] if you notice a typo or an error.

8 CONTENTS

10 CHAPTER 1. LECTURE 1

Definition 1.2. A polynomial with coefficients in F is a function p : F → F of the form p(t) = a 0 + a 1 t + · · · + antn, where n is a nonnegative integer, and a 0 , a 1 ,... , an ∈ F are constants. If an ̸= 0, we say the degree of p is n and we write deg p = n. The constants a 0 , a 1 ,... , an are called the coefficients of p. The zero polynomial is the polynomial all of whose coefficients are zero. The degree of the zero polynomial is defined as −∞.

Definition 1.3. Let m, n be two positive integers. An m×n matrix (or simply a matrix) A is a rectangular array of elements with m rows and n columns as follows:

A =

A 11 A 12 · · · A 1 n A 21 A 22 · · · A 2 n ... ... · · · ... Am 1 Am 2 · · · Amn

For each j, 1 ≤ j ≤ m and k, 1 ≤ k ≤ n the element Ajk is called the (j, k) entry of A. This is often shortened as A = (Ajk)m×n, or A = (ajk), to indicate A is an m × n matrix whose (j, k) entry is Ajk. The set of m × n matrices with entries from a field F is denoted by Mm×n(F). When m = n, we say A is a square matrix. The set of all n × n matrices with entries in F is denoted by Mn(F).

Example 1.1. The following are examples of vector spaces:

(a) Fn, the set of n-tuples with entries in F along with the standard componentwise vector addition and scalar multiplication.

(b) Pn = {a 0 + a 1 t + · · · + antn^ | a 0 , a 1 ,... , an ∈ F}, the set of polynomials of degree not exceeding n, with the usual polynomial addition and scalar multiplication: (a 0 + a 1 t + · · · + antn) + (b 0 + b 1 t + · · · + bntn) = (a 0 + b 0 ) + (a 1 + b 1 )t + · · · + (an + bn)tn c(a 0 + a 1 t + · · · + antn) = ca 1 + ca 1 t + · · · + cantn. To emphasize the field F we often denoted Pn by Pn(F).

(c) F[t] =

∞S

n= Pn, the set of all polynomials with coefficients in F along with the usual polynomial addition and scalar multiplication.

(d) Mm×n(F), the set of m × n matrices with entries in F along with the standard entrywise matrix addition and scalar multiplication.

(e) C[D], the set of continuous functions f : D → R, where D is a given nonempty subset of R, along with the standard addition and scalar multiplication is a real vector space.

Theorem 1.1. Let V be a vector space. Then,

(a) the additive identity is unique.

(b) the additive inverse of every vector is unique.

1.2. EXAMPLES 11

Remark 1.1. The additive identity of a vector space V is denoted by (^0) V , or 0 if there is no ambiguity. The additive inverse of every vector v is denoted by −v. The vector u − v, denoting u + (−v), is called the difference of v from u.

1.2 Examples

Example 1.2 (“Zero” does not mean zero). Consider the set F^2 along with the following two operations:

(x, y) ⊕ (z, t) = (x + z − 1 , y + t − 2), and c · (x, y) = (cx − c + 1, cy − 2 c + 2), for all x, y ∈ F

Prove that F^2 along with the above vector addition and scalar multiplication is a vector space. What is the zero vector? What is the additive inverse of (x, y)?

Solution. The given vector addition can be written as u⊕v = u+v−e, for every u, v ∈ F^2 , where e = (1, 2). Here, + and − are the usual vector addition and subtraction of F^2. We also see that c · u = cu − ce + e for every u ∈ F^2. We will now show ⊕ and · satisfy all properties of a vector space.

Let u, v, w ∈ F^2 and a, b ∈ F.

Closure: The vectors u + v − e and au − ae + e are in F^2 , since F^2 is closed under the standard vector addition and scalar multiplication.

Associativity: (u ⊕ v) ⊕ w = (u + v − e) ⊕ w = (u + v − e) + w − e = u + v + w − 2 e

On the other hand, u ⊕ (v ⊕ w) = u ⊕ (v + w − e) = u + (v + w − e) − e = u + v + w − 2 e

Therefore, (u ⊕ v) ⊕ w = u ⊕ (v ⊕ w). We also see: (ab) · u = (ab)u − (ab)e + e, and a · (b · u) = a · (bu − be + e) = a(bu − be + e) − ae + e = a(bu) − a(be) + ae − ae + e = (ab)u − (ab)e + e.

Thus, (ab) · u = a · (b · u).

Commutativity: u⊕v = u+v−e and v⊕u = v+u−e. Since the standard vector addition is commutative u ⊕ v = v ⊕ u.

1.3. EXERCISES 13

0 + 0 ′^ = 0 Since 0 ′^ is an additive identity 0 + 0 ′^ = 0 ′^ Since 0 is an additive identity

 ⇒^0 =^0

′

This completes the proof.

Example 1.6. Let V be a vector space. Prove that for every vector v ∈ V , we have (−1)v = −v.

Solution. We note that

v + (−1)v = 1v + (−1)v Multiplicative identity = (1 + (−1))v Distributive property = 0v = 0 An exercise

Therefore, by adding −v to both sides of v + (−1)v = 0 we conclude (−1)v = −v, as desired.

1.3 Exercises

Exercise 1.1. Determine if each statement is true or false.

(a) Closure of V under addition states: x, y ∈ V if and only if x + y ∈ V.

(b) By definition of a vector space, 0 v = 0.

(c) By definition of a vector space, 1 v = v.

(d) The set of all quadratic polynomials of the form at^2 + bt + c, with a, b, c ∈ R and a ̸= 0, is a real vector space.

(e) The set of functions f : R → R of the form f (x) = c 1 x + c 2 sin x, with c 1 , c 2 ∈ R, is a real vector space.

(f ) Every vector space is nonempty.

Exercise 1.2. Prove part (b) of Theorem 1.1.

Exercise 1.3. Prove that if v is a vector in a vector space, then 0 v = 0.

Exercise 1.4. Let V be a vector space over F. Prove that for every a, b ∈ F and every u, v ∈ V we have:

(a) −(−u) = u.

(b) a(u − v) = au − av.

(c) −(u + v) = −u − v.

(d) (a − b)u = au − bv.

Exercise 1.5. Using the definition, determine if each of the following is a vector space.

14 CHAPTER 1. LECTURE 1

(a) The set consisting of all polynomials on variable t with degree 3, along with the usual polynomial addition and scalar multiplication.

(b) The set consisting of all 2 × 2 matrices

 a^ b c d

 (^) that satisfy a + b = c + d.

(c) The set of all functions f : R → R that are continuous but not differentiable along with the standard function addition and scalar multiplication.

(d) The set of all bounded functions f : R → R with the standard function addition and scalar multiplication.

(e) The set of all vectors (x 1 , x 2 ,... , xn) in Fn^ for which x 1 + x 2 + · · · + xn = 0.

(f ) {(x, y, z) ∈ R^3 | (x^2 + y^2 )(x − 2 y + z) = 0} as a subset of R^3.

(g) {(x, y, z) ∈ C^3 | (x^2 + y^2 )(x − 2 y + z) = 0} as a subset of C^3.

Exercise 1.6. Let F∞^ be the set consisting of all infinite sequences (x 1 , x 2 ,.. .) whose terms xn are in F. Prove F∞^ with the natural componentwise addition and scalar multiplication is a vector space over F.

Definition 1.4. For every nonempty set S, the vector space of all functions f : S → F is denoted by F(S, F).

Exercise 1.7. Let S be a nonempty set. Consider the set V = F(S, F) equipped with the addition and scalar multiplication defined below for all f, g ∈ V and c ∈ F:

∀ x ∈ D (f + g)(x) = f (x) + g(x), and (cf )(x) = cf (x).

Using the definition, prove that V is a vector space.

Definition 1.5. A rational function over F is a function of the form p(t)/q(t), where p(t) ∈ F[t] and q(t) ∈ F[t]{ 0 }. The domain of this rational function is the set of all elements of F that are not roots of q(t).

Exercise 1.8. Let F(t) be the set of all rational functions over F with the natural addition and scalar multiplication. Prove F(t) is a vector space.

Exercise 1.9. Given a vector v in a vector space V , define a vector addition and a scalar multiplication that turns V into a vector space, where v is the zero of this new vector space.

Hint: See Example 1.2.

1.4 Challenge Problems

Exercise 1.10. Suppose V is a nonempty set of elements, called vectors. Assume V is equipped with a vector addition and a scalar multiplication, and that V is closed under both operations. The following list includes

  • 1 Lecture
    • 1.1 Vector Spaces
    • 1.2 Examples
    • 1.3 Exercises
    • 1.4 Challenge Problems
  • 2 Lecture
    • 2.1 Linear Independence, Generating, and Bases
    • 2.2 Isomorphisms and Linear Transformations
    • 2.3 Examples
    • 2.4 Exercises
    • 2.5 Challenge Problems
  • 3 Lecture
    • 3.1 Matrix Multiplication
    • 3.2 Examples
    • 3.3 Exercises
    • 3.4 Challenge Problems
  • 4 Lecture
    • 4.1 Review of Inverse Functions
    • 4.2 Inverse Functions and Linear Transformations
    • 4.3 Examples
    • 4.4 Exercises
  • 5 Lecture
    • 5.1 Subspaces
    • 5.2 Examples
    • 5.3 Exercises
    • 5.4 Challenge Problems
  • 6 Lecture 6 CONTENTS
    • 6.1 Systems of Linear Equations
    • 6.2 Echelon Form and Reduced Echelon Form
    • 6.3 More Examples
    • 6.4 Exercises
    • 6.5 Challenge Problems
  • 7 Lecture
    • 7.1 Echelon Form, Dimension and Bases
    • 7.2 Examples
    • 7.3 Exercises
    • 7.4 Challenge Problems
  • 8 Lecture
    • 8.1 Evaluating the Inverse of a Matrix
    • 8.2 General Solutions to Linear Systems
    • 8.3 Examples
    • 8.4 Exercises
  • A Basics of Complex Numbers
    • A.1 Definition and Basic Operations
    • A.2 Geometry of C
    • A.3 Examples
    • A.4 Exercises
  • 16 CHAPTER 1. LECTURE

Lecture 2

2.1 Linear Independence, Generating, and Bases

Definition 2.1. Let V be a vector space. A vector w ∈ V is said to be a linear combination of a list of vectors v 1 ,... , vn ∈ V , iff there are scalar c 1 ,... , cn for which

w = c 1 v 1 + · · · + cnvn.

The only linear combination of the empty list is the zero vector. The linear combination above is said to be trivial iff c 1 = · · · = cn = 0.

Definition 2.2. A list of vectors v 1 ,... , vn in a vector space V is called a basis for V iff every vector w ∈ V can uniquely be written as a linear combination of v 1 ,... , vn.

Example 2.1. The following are examples of bases:

(a) Let ei ∈ Fn^ be the vector whose i-th component is one and all of whose other components are zero. The vectors e 1 ,... , en form a basis for Fn. This basis is called the standard basis for Fn.

(b) 1, t,... , tn^ form a basis for Pn. This basis is called the standard basis of Pn.

Definition 2.3. A list of vectors v 1 ,... , vn in V is said to be generating or spanning iff every vector in V can be represented as a linear combination of v 1 ,... , vn.

Definition 2.4. A list of vectors v 1 ,... , vn is said to be linearly independent iff their only linear com- bination that is 0 is the trivial one. Otherwise, we say they are linearly dependent.

Theorem 2.1. A list of vectors v 1 ,... , vn is linearly dependent if and only if one of the vj ’s is a linear combination of the others.

Theorem 2.2. A list of vectors v 1 , v 2 ,... , vn in a vector space V form a basis if and only if they are linearly independent and generating.

Theorem 2.3. Any finite^1 generating list of vectors in a vector space contains a basis. (^1) The finiteness can be dropped if we assume the Axiom of Choice.

17

2.3. EXAMPLES 19

Theorem 2.5. Let V, W be vector spaces over the same field F. Consider L(V, W ), the set of all linear transformations T : V → W. Define the following addition and scalar multiplication for every T, S ∈ L(V, W ) and every c ∈ F. (T + S)(v) = T (v) + S(v), and (cT )(v) = cT (v), for all v ∈ V.

L(V, W ) equipped with these two operations is a vector space over F.

2.3 Examples

Example 2.4. Find a basis for F({ 1 , 2 ,... , n}, F). (Check Exercise 1.7.)

Scratch: We see that each function f : { 1 , 2 ,... , n} → F is determined by f (1), f (2),... , f (n). We need to find n functions that generate all functions. We can do that by choosing functions that are 1 at one value and zero for all other values.

Solution. Let V = F({ 1 , 2 ,... , n}, F). For every j ∈ { 1 ,... , n}, define fj : { 1 , 2 ,... , n} → F by fj (j) = 1, and fj (k) = 0 for all j ̸= k. Linear independence: Suppose c 1 f 1 + c 2 f 2 + · · · + cnfn = 0 for some c 1 , c 2 ,... , cn ∈ R. Evaluating both sides at j we obtain cj fj (j) = 0, and thus cj = 0, which completes the proof. Generating: Let f ∈ V and let g = f (1)f 1 + f (2)f 2 + · · · + f (n)fn. We see that g(j) = f (j)fj (j) = f (j) for all j. Therefore, f = g. This means f is a linear combination of f 1 , f 2 ,... , fn.

Example 2.5. Prove that every list of vectors that contains the vector 0 is linearly dependent.

Solution. Let S be a list of vectors containing 0. We see that 1 0 = 0 and the coefficient 1 is nonzero. Therefore the list S is linearly dependent.

Example 2.6. Let v 1 ,... , vm ∈ Fn^ be linearly independent. Consider arbitrary vectors w 1 ,... , wm ∈ Fk and form the vectors x 1 = (v 1 , w 1 ),... , xm = (vm, wm) ∈ Fn+k^ formed by placing each wj next to vj. Prove that x 1 ,... , xm are linearly independent.

Solution. Let c 1 ,... , cm ∈ F be scalars for which

c 1 x 1 + · · · + cmxm = 0.

Using the way xj ’s are created we have

c 1 (v 1 , w 1 ) + · · · + cm(vm, wm) = 0 ⇒ (c 1 x 1 + · · · + cmvm, c 1 w 1 + · · · + cmwm) = 0 ⇒ c 1 x 1 + · · · + cmvm = 0.

Since v 1 ,... , vm are linearly independent we obtain c 1 = · · · = cm = 0, and hence x 1 ,... , xm are linearly independent.

20 CHAPTER 2. LECTURE 2

Example 2.7. Let V, W be vector spaces over F. Assume v 1 ,... , vn form a basis for V , and let w 1 ,... , wn ∈ W. Prove that T : V → W defined by

T (c 1 v 1 + c 2 v 2 + · · · + cnvn) = c 1 w 1 + c 2 w 2 + · · · + cnwn, for all c 1 , c 2 ,... , cn ∈ F

is a linear transformation.

Solution. Suppose x, y ∈ V , and c ∈ F. Since v 1 ,... , vn form a basis for V , there are scalars aj , bj ∈ F for which x = Pn j= aj vj and y = Pn j= bj vj. Since x + cy = Pn j= (aj + cbj )vj , we have

T (x + cy) =

X^ n j=

(aj + cbj )wj =

X^ n j=

aj wj +

X^ n j=

cbj wj = T (x) + cT (y).

Therefore, T is linear.

Example 2.8. Let V, W be vector spaces over a common field F, and let v 1 , v 2 ,... , vn form a basis for V. Assume S, T : V → W are linear transformations. Prove that S = T if and only if S(vj ) = T (vj ) for j = 1,... , n.

Solution. ⇒: If S = T , then S(vj ) = T (vj ), as desired.

⇐: Suppose S(vj ) = T (vj ) for j = 1,... , n. Let v ∈ V. Since v 1 , v 2 ,... , vn is a basis for V , there are scalars c 1 , c 2 ,... , cn for which v = Pn j= cj vj. By linearity of S and T , and the fact that S(vj ) = T (vj ) we have S(v) = S(

X^ n j=

cj vj ) =

X^ n j=

cj S(vj ) =

X^ n j=

cj T (vj ) = T (

X^ n j=

cj vj ) = T (v).

Therefore, S = T, as desired.

Example 2.9. Let T : V → W be a linear transformation of vector spaces over F. Prove that for every c 1 ,... , cn ∈ F and v 1 ,... , vn ∈ V we have

T (c 1 v 1 + · · · + cnvn) = c 1 T (v 1 ) + · · · + cnT (vn).

Solution. We prove this by induction on n.

Basis step. The equality T (c 1 v 1 ) = c 1 T (v 1 ) follows from homogeneity.

Inductive Step. Suppose the given equality holds for a positive integer n and let c 1 ,... , cn+1 ∈ F, v 1 ,... , vn+1 ∈ V. We have the following:

T ( nP+ i= civi) = T ( Pn i= civi) + T (cn+1vn+1) by additivity = Pn i= ciT (vi) + T (cn+1vn+1) by inductive hypothesis = Pn i=1^ ciT^ (vi) +^ cn+1T^ (vn+1) by homogeneity = nP+ i= ciT (vi)