Linear Algebra. Introduction. Marek Petrik 3/23/2017. Many slides adapted from Linear Algebra Lectures by Martin Scharlemann

Size: px
Start display at page:

Download "Linear Algebra. Introduction. Marek Petrik 3/23/2017. Many slides adapted from Linear Algebra Lectures by Martin Scharlemann"

Transcription

1 Linear Algebra Introduction Marek Petrik 3/23/2017 Many slides adapted from Linear Algebra Lectures by Martin Scharlemann

2 Midterm Results Highest score on the non-r part: 67 / 77 Score scaling: Additive in order for at least of 20% class gets over 95% Independent scaling for graduate and undergraduate students Not like grading on a curve5 Questions that were most often wrong Some of the same questions will be on the final (practice tests)

3 Methods Covered Until Now Supervised learning 1. Linear regression 2. Logistic regression 3. LDA, QDA 4. Naive Bayes 5. Lasso 6. Ridge regression 7. Subset selection Unsupervised learning 1. PCA 2. K-means clustering 3. Hierarchical clustering 4. Expectation maximization

4 Important Concepts We Have Covered Training and test sets Cross-validation and leave-one-out Maximum likelihood Maximum a posteriori

5 Remainder of the Course In ISL: 1. Support vector machines 2. Boosting and bagging 3. Advanced nonlinear features Not in ISL: 1. Recommender systems 2. Methods for time series analysis 3. Reinforcement learning 4. Deep learning 5. Graphical models

6 Today: Linear Algebra Crucial in many machine learning algorithms Which ones? 1. Linear regression 2. Logistic regression 3. LDA, QDA 4. Naive Bayes 5. Lasso 6. Ridge regression 7. Subset selection 8. PCA 9. K-means clustering 10. Hierarchical clustering 11. Expectation maximization

7 Suggested Linear Algebra Books Strang, G. (2016). Introduction to linear algebra (5th ed.) gs/linearalgebra/ Watch online lectures: linear-algebra-spring-2010/ video-lectures/ Hefferon, J. (2017). Linear algebra (3rd ed.). Free PDF:

8 Linear Equation Equation of a line: y m 1 } b x

9 Linear Equation Equation of a line: y y = mx + b m 1 } b x

10 Linear Equation Equation of a line: y m 1 } b x y = mx + b y mx = b

11 Linear Equation Equation of a line: x 2 m 1 } b x 1 y = mx + b y mx = b x 2 mx 1 = b

12 Linear Equation Equation of a line: x 2 m 1 } b x 1 y = mx + b y mx = b x 2 mx 1 = b mx 1 + x 2 = b

13 Linear Equation Equation of a line: x 2 m 1 } b x 1 y = mx + b y mx = b x 2 mx 1 = b mx 1 + x 2 = b ( a 2 0) a 1 x 1 + a 2 x 2 = b

14 Linear Equation Linear equation in variables x 1,..., x n : a 1 x 1 + a 2 x a n x n = b where a 1,..., a n and maybe b are all known in advance.

15 Linear Equation Linear equation in variables x 1,..., x n : a 1 x 1 + a 2 x a n x n = b where a 1,..., a n and maybe b are all known in advance. Solution is a list s 1,..., s n of numbers so a 1 s 1 + a 2 s a n s n = b

16 Linear Equation Linear equation in variables x 1,..., x n : a 1 x 1 + a 2 x a n x n = b where a 1,..., a n and maybe b are all known in advance. Solution is a list s 1,..., s n of numbers so a 1 s 1 + a 2 s a n s n = b Example 1: For the equation a 1 x 1 + a 2 x 2 = b of a line, given above: The pair s 1, s 2 is a solution the point (s 1, s 2 ) is on the line.

17 Example 2 Converting grades to the standard scale: F = 0 grade 4 = A, let x 1 be your first midterm grade x 2 be your second midterm grade x 3 be your grade on the final x 4 be your homework & quiz grade x 5 be your i-clicker grade

18 Example 2 Converting grades to the standard scale: F = 0 grade 4 = A, let x 1 be your first midterm grade x 2 be your second midterm grade x 3 be your grade on the final x 4 be your homework & quiz grade x 5 be your i-clicker grade Then translates to 0.2x x x x x 5 = your course grade

19 System of Linear Equations A system of linear equations is a bunch of linear equations:

20 System of Linear Equations A system of linear equations is a bunch of linear equations: a 11 x 1 + a 12 x a 1n x n = b 1 a 21 x 1 + a 22 x a 2n x n = b 2. a m1 x 1 + a m2 x a mn x n = b m

21 System of Linear Equations A system of linear equations is a bunch of linear equations: a 11 x 1 + a 12 x a 1n x n = b 1 a 21 x 1 + a 22 x a 2n x n = b 2. a m1 x 1 + a m2 x a mn x n = b m A solution to the system is a list s 1,..., s n R that is simultaneously a solution to all m equations.

22 System of Linear Equations A system of linear equations is a bunch of linear equations: a 11 x 1 + a 12 x a 1n x n = b 1 a 21 x 1 + a 22 x a 2n x n = b 2 a m1 x 1 + a m2 x a mn x n = b m A solution to the system is a list s 1,..., s n R that is simultaneously a solution to all m equations. That is, all m equations are true when x 1 = s 1, x 2 = s 2,..., x n = s n..

23 Example Conceptual example: a 11 x 1 + a 12 x 2 = b 1 a 21 x 1 + a 22 x 2 = b 2

24 Example Conceptual example: a 11 x 1 + a 12 x 2 = b 1 a 21 x 1 + a 22 x 2 = b 2 Solution two lines intersect: x 2 x 1

25 Example Conceptual example: a 11 x 1 + a 12 x 2 = b 1 a 21 x 1 + a 22 x 2 = b 2 Solution two lines intersect: x 2 Example: 1x 1 + 2x 2 = 3 2x 1 + 1x 2 = 3 (x 1, x 2 ) = (1, 1) x 1

26 Line Configurations Other possibilities: x 2 x 1 x 2 x 1

27 Line Configurations Other possibilities: x 2 1x 1 + 2x 2 = 3 1x 1 + 2x 2 = 4 x 1 inconsistent x 2 x 1

28 Line Configurations Other possibilities: x 2 1x 1 + 2x 2 = 3 1x 1 + 2x 2 = 4 x 1 inconsistent x 2 1x 1 + 2x 2 = 3 2x 1 + 4x 2 = 6 x 1 redundant

29 3 Possible Line Configurations Upshot: There are exactly three possibilities

30 3 Possible Line Configurations Upshot: There are exactly three possibilities 1. There could be no solution

31 3 Possible Line Configurations Upshot: There are exactly three possibilities 1. There could be no solution 2. There could be exactly one solution

32 3 Possible Line Configurations Upshot: There are exactly three possibilities 1. There could be no solution 2. There could be exactly one solution 3. There could be infinitely many solutions

33 3 Possible Line Configurations Upshot: There are exactly three possibilities 1. There could be no solution 2. There could be exactly one solution 3. There could be infinitely many solutions Some goals: Figure out which possibility applies.

34 3 Possible Line Configurations Upshot: There are exactly three possibilities 1. There could be no solution 2. There could be exactly one solution 3. There could be infinitely many solutions Some goals: Figure out which possibility applies. Write down the solution if it s unique.

35 3 Possible Line Configurations Upshot: There are exactly three possibilities 1. There could be no solution 2. There could be exactly one solution 3. There could be infinitely many solutions Some goals: Figure out which possibility applies. Write down the solution if it s unique. if there are infinitely many solutions, figure out a way to describe them all.

36 Matrix The critical information is in the a ij, b i.

37 Matrix The critical information is in the a ij, b i. So extract just those numbers into a matrix a 11 x a 1n x n = b 1 a 21 x a 2n x n = b 2. a m1 x a mn x n = b m

38 Matrix The critical information is in the a ij, b i. So extract just those numbers into a matrix a 11 x a 1n x n = b 1 a 21 x a 2n x n = b 2 a m1 x a mn x n = b m. a 11 a a 1n a 21 a a 2n a m1 a m2... a mn m n coefficient matrix

39 Matrix The critical information is in the a ij, b i. So extract just those numbers into a matrix a 11 x a 1n x n = b 1 a 21 x a 2n x n = b 2 a 11 a a 1n a 21 a a 2n a m1 a m2... a mn m n coefficient matrix a m1 x a mn x n = b m. a 11 a a 1n b 1 a 21 a a 2n b a m1 a m2... a mn b m m (n + 1) augmented matrix

40 Operations Allowed These don t change the set of solutions for a system of linear equations: Reorder the equations

41 Operations Allowed These don t change the set of solutions for a system of linear equations: Reorder the equations Multiply an equation by c 0

42 Operations Allowed These don t change the set of solutions for a system of linear equations: Reorder the equations Multiply an equation by c 0 Replace one equation by itself plus a multiple of another equation

43 Operations Allowed These don t change the set of solutions for a system of linear equations: Reorder the equations Matrix operations: Reorder the rows Multiply an equation by (interchange) c 0 Replace one equation by itself plus a multiple of another equation

44 Operations Allowed These don t change the set of solutions for a system of linear equations: Reorder the equations Matrix operations: Reorder the rows (interchange) Multiply an equation by c 0 Replace one equation by itself plus a multiple of another equation Multiply a row by c 0 (scaling)

45 Operations Allowed These don t change the set of solutions for a system of linear equations: Reorder the equations Matrix operations: Reorder the rows (interchange) Multiply an equation by c 0 Replace one equation by itself plus a multiple of another equation Multiply a row by c 0 (scaling) Replace one row by itself plus a multiple of another row (replacement) Grand strategy: Do this until the equations are easy to solve.

46 Example 1x 1 + 2x 2 = 3 2x 1 + 1x 2 = 3

47 Example 1x 1 + 2x 2 = 3 2x 1 + 1x 2 = 3 Subtract twice 1 st from 2 nd : 1x 1 + 2x 2 = 3 3x 2 = 3

48 Example 1x 1 + 2x 2 = 3 2x 1 + 1x 2 = 3 Subtract twice 1 st from 2 nd : 1x 1 + 2x 2 = 3 3x 2 = 3 Add 2 3 second to first: 1x 1 = 1 3x 2 = 3

49 Example 1x 1 + 2x 2 = 3 2x 1 + 1x 2 = 3 Subtract twice 1 st from 2 nd : 1x 1 + 2x 2 = 3 3x 2 = 3 Add 2 3 second to first: 1x 1 = 1 3x 2 = 3 Multiply second by 1 3 x 1 = 1 x 2 = 1

50 Example 1x 1 + 2x 2 = 3 2x 1 + 1x 2 = 3 [ ] Subtract twice 1 st from 2 nd : 1x 1 + 2x 2 = 3 3x 2 = 3 Add 2 3 second to first: 1x 1 = 1 3x 2 = 3 Multiply second by 1 3 x 1 = 1 x 2 = 1

51 Example 1x 1 + 2x 2 = 3 2x 1 + 1x 2 = 3 Subtract twice 1 st from 2 nd : 1x 1 + 2x 2 = 3 3x 2 = 3 [ ] [ ] Add 2 3 second to first: 1x 1 = 1 3x 2 = 3 Multiply second by 1 3 x 1 = 1 x 2 = 1

52 Example 1x 1 + 2x 2 = 3 2x 1 + 1x 2 = 3 Subtract twice 1 st from 2 nd : 1x 1 + 2x 2 = 3 3x 2 = 3 Add 2 3 second to first: 1x 1 = 1 3x 2 = 3 Multiply second by 1 3 x 1 = 1 x 2 = 1 [ ] [ [ [ ] ] ]

53 Step one: Use first x 1 term [upper left matrix entry] to eliminate all other x 1 terms [change rest of first column to 0]: L1 : x 1 3x 2 2x 3 = 6 L2 : 2x 1 4x 2 3x 3 = 8 L3 : 3x 1 + 6x 2 + 8x 3 = 5

54 Step one: Use first x 1 term [upper left matrix entry] to eliminate all other x 1 terms [change rest of first column to 0]: L1 : x 1 3x 2 2x 3 = 6 L2 : 2x 1 4x 2 3x 3 = 8 L3 : 3x 1 + 6x 2 + 8x 3 = 5 Subtract 2 first from second Add 3 first to third: L1 : x 1 3x 2 2x 3 = 6 L2 2L1 : 2x 2 + x 3 = 4 3L1 + L3 : 3x 2 + 2x 3 = 13

55 Step one: Use first x 1 term [upper left matrix entry] to eliminate all other x 1 terms [change rest of first column to 0]: L1 : x 1 3x 2 2x 3 = 6 L2 : 2x 1 4x 2 3x 3 = 8 L3 : 3x 1 + 6x 2 + 8x 3 = Subtract 2 first from second Add 3 first to third: L1 : x 1 3x 2 2x 3 = 6 L2 2L1 : 2x 2 + x 3 = 4 3L1 + L3 : 3x 2 + 2x 3 = 13

56 Step one: Use first x 1 term [upper left matrix entry] to eliminate all other x 1 terms [change rest of first column to 0]: L1 : x 1 3x 2 2x 3 = 6 L2 : 2x 1 4x 2 3x 3 = 8 L3 : 3x 1 + 6x 2 + 8x 3 = 5 Subtract 2 first from second Add 3 first to third: L1 : x 1 3x 2 2x 3 = 6 L2 2L1 : 2x 2 + x 3 = 4 3L1 + L3 : 3x 2 + 2x 3 = Move on to Step two! - the second column

57 Step two: L1 : x 1 3x 2 2x 3 = 6 L2 : 2x 2 + x 3 = 4 L3 : 3x 2 + 2x 3 = 13

58 Step two: L1 : x 1 3x 2 2x 3 = 6 L2 : 2x 2 + x 3 = 4 L3 : 3x 2 + 2x 3 = 13 Add 3 2 L2 to L1 and L3: L L2 : x x 3 = 0 L2 : 2x 2 + x 3 = 4 L L2 : 7 2 x 3 = 7

59 Step two: L1 : x 1 3x 2 2x 3 = 6 L2 : 2x 2 + x 3 = 4 L3 : 3x 2 + 2x 3 = 13 Add 3 2 L2 to L1 and L3: L L2 : x x 3 = 0 L2 : 2x 2 + x 3 = 4 L L2 : 7 2 x 3 = Multiply L3 by Move on to Step three! - the third column

60 Step three: L1 : x x 3 = 0 L2 : 2x 2 + x 3 = 4 L3 : x 3 = 2 Subtract L3 from L2; add 1 2 L3 to L1: L L3 : x 1 = 1 L2 1 2 L3 : 2x 2 = 6 L3 : x 3 = 2

61 Step three: L1 : x x 3 = 0 L2 : 2x 2 + x 3 = 4 L3 : x 3 = 2 Subtract L3 from L2; add 1 2 L3 to L1: L L3 : x 1 = 1 L2 1 2 L3 : 2x 2 = 6 L3 : x 3 = Multiply L2 by We re done: (x 1, x 2, x 3 ) = (1, 3, 2)

62 What can go wrong? x 1 + 2x 2 = 3 x 1 + 2x 2 = 4

63 What can go wrong? x 1 + 2x 2 = 3 x 1 + 2x 2 = 4 Subtract L1 from L2: x 1 + 2x 2 = 3 0= 1 inconsistent NO SOLUTION

64 What can go wrong? x 1 + 2x 2 = 3 x 1 + 2x 2 = 4 x 1 + 2x 2 = 3 2x 1 + 4x 2 = 6 Subtract L1 from L2: x 1 + 2x 2 = 3 0= 1 inconsistent NO SOLUTION

65 What can go wrong? x 1 + 2x 2 = 3 x 1 + 2x 2 = 4 Subtract L1 from L2: x 1 + 2x 2 = 3 0= 1 inconsistent NO SOLUTION x 1 + 2x 2 = 3 2x 1 + 4x 2 = 6 Subtract 2L1 from L2: x 1 + 2x 2 = 3 0= 0 redundant SOLUTIONS INFINITE

66 Configurations If the system has 3 variables, an equation determines a plane in R 3.

67 Configurations If the system has 3 variables, an equation determines a plane in R 3. So a solution will be the intersection of 3 planes: P 1, P 2, P 3 :

68 Configurations If the system has 3 variables, an equation determines a plane in R 3. So a solution will be the intersection of 3 planes: P 1, P 2, P 3 : P 1 P 3 P 3 P2 P 1 P 2 inconsistent equations (no solution)

69 Configurations If the system has 3 variables, an equation determines a plane in R 3. So a solution will be the intersection of 3 planes: P 1, P 2, P 3 : P 1 P 3 P 3 P2 P 1 P 2 inconsistent equations (no solution) line of solutions solution P 2 P3 1P 1P P 2 3 P single solution redundant

70 Question? George tells you the system of equations has exactly three solutions. 5x 1 + 2x 2 3x 3 = 4 12x 1 7x 2 + 2x 3 = 8 3x 1 + 4x 2 + 5x 3 = 10

71 Question? George tells you the system of equations 5x 1 + 2x 2 3x 3 = 4 12x 1 7x 2 + 2x 3 = 8 3x 1 + 4x 2 + 5x 3 = 10 has exactly three solutions. A) George is probably right, since he s Honest George.

72 Question? George tells you the system of equations 5x 1 + 2x 2 3x 3 = 4 12x 1 7x 2 + 2x 3 = 8 3x 1 + 4x 2 + 5x 3 = 10 has exactly three solutions. A) George is probably right, since he s Honest George. B) George is probably wrong.

73 Question? George tells you the system of equations 5x 1 + 2x 2 3x 3 = 4 12x 1 7x 2 + 2x 3 = 8 3x 1 + 4x 2 + 5x 3 = 10 has exactly three solutions. A) George is probably right, since he s Honest George. B) George is probably wrong. C) George is definitely right.

74 Question? George tells you the system of equations 5x 1 + 2x 2 3x 3 = 4 12x 1 7x 2 + 2x 3 = 8 3x 1 + 4x 2 + 5x 3 = 10 has exactly three solutions. A) George is probably right, since he s Honest George. B) George is probably wrong. C) George is definitely right. D) George is definitely wrong.

75 Question? George tells you the system of equations 5x 1 + 2x 2 3x 3 = 4 12x 1 7x 2 + 2x 3 = 8 3x 1 + 4x 2 + 5x 3 = 10 has exactly three solutions. A) George is probably right, since he s Honest George. B) George is probably wrong. C) George is definitely right. D) George is definitely wrong. E) My brain is full.

76 Vector An m-vector [column vector, vector in R m ] is an m 1 matrix: a 1 a 2 a 3 a =. a m

77 Vector An m-vector [column vector, vector in R m ] is an m 1 matrix: a 1 a 2 a 3 a =. Can add two m-vectors in the obvious way, or multiply a vector by a real number: a 1 b 1 a 1 + b 1 a 2 b 2 a 1 + b 2 a 3 + b 3 = a 1 + b 3 ;... a m b m a 1 + b m a m

78 Vector An m-vector [column vector, vector in R m ] is an m 1 matrix: a 1 a 2 a 3 a =. Can add two m-vectors in the obvious way, or multiply a vector by a real number: a 1 b 1 a 1 + b 1 a 1 ca 1 a 2 b 2 a 1 + b 2 a 2 ca 2 a 3 + b 3 = a 1 + b 3 ; c a 3 = ca a m b m a 1 + b m a m ca m Do not multiply two vectors together like this. a m

79 Vector Operations Examples: = 7 ; 3 6 9

80 Vector Operations Examples: = 7 ; 1 2 =

81 Vector Operations Examples: = 7 ; 1 2 = = 3 4 0

82 Vector Operations Examples: = 7 ; 1 2 = = ( 1) =

83 Vector Operations Examples: = 7 ; 1 2 = = ( 1) =

84 Question: = 3 4 0

85 Question: = A) 10 B) 9 C) 10 D) 19 E)

86 Picturing Vectors 2- and 3-vectors: think of vector as arrow from 0 multiply number with vector via scaling. add vectors head-to-tail; x 2 v u x 1

87 Picturing Vectors 2- and 3-vectors: think of vector as arrow from 0 multiply number with vector via scaling. add vectors head-to-tail; x 2 v u x 1

88 Picturing Vectors 2- and 3-vectors: think of vector as arrow from 0 multiply number with vector via scaling. add vectors head-to-tail; x 2 v u x 1

89 Picturing Vectors 2- and 3-vectors: think of vector as arrow from 0 multiply number with vector via scaling. add vectors head-to-tail; x 2 v u x 1

90 Picturing Vectors 2- and 3-vectors: think of vector as arrow from 0 multiply number with vector via scaling. add vectors head-to-tail; x 2 v u x 1

91 Picturing Vectors 2- and 3-vectors: think of vector as arrow from 0 multiply number with vector via scaling. add vectors head-to-tail; x 2 u + v v u x 1

92 Picturing Vectors 2- and 3-vectors: think of vector as arrow from 0 multiply number with vector via scaling. add vectors head-to-tail; parallelogram rule; x 2 u + v v u x 1

93 Application Gives more flexible way to describe a line.

94 Application Gives more flexible way to describe a line. For a line through a point p, in direction d, use x = p + t d, t R Argument: x 2 p d x 1

95 Application Gives more flexible way to describe a line. For a line through a point p, in direction d, use x = p + 1 d, t = 1 Argument: x 2 p p + d d x 1

96 Application Gives more flexible way to describe a line. For a line through a point p, in direction d, use x = p + 1 d, t = 1 Argument: x 2 p p - d d x 1

97 Application Gives more flexible way to describe a line. For a line through a point p, in direction d, use x = p + t d, t R Argument: x 2 p p + td d x 1

98 Question: Pictured are points u, v R 2.

99 Question: Pictured are points u, v R 2. Which point represents u 3 v? x 2 u v x 1

100 Question: Pictured are points u, v R 2. Which point represents u 3 v? x 2 E D C B A u v x 1

101 Question: Pictured are points u, v R 2. Which point represents u 3 v? x 2 u v x 1

102 Question: Pictured are points u, v R 2. Which point represents u 3 v? x 2-3v -v u v x 1

103 Properties of Vectors For all w, x, y R n and s, t R, we have the following.

104 Properties of Vectors For all w, x, y R n and s, t R, we have the following. x + y = y + x (commutative)

105 Properties of Vectors For all w, x, y R n and s, t R, we have the following. x + y = y + x (commutative) ( x + y) + w = x + ( y + w) (associative)

106 Properties of Vectors For all w, x, y R n and s, t R, we have the following. x + y = y + x (commutative) ( x + y) + w = x + ( y + w) (associative) z + 0 = 0 + z = z

107 Properties of Vectors For all w, x, y R n and s, t R, we have the following. x + y = y + x (commutative) ( x + y) + w = x + ( y + w) (associative) z + 0 = 0 + z = z x + ( x) = x + x = 0

108 Properties of Vectors For all w, x, y R n and s, t R, we have the following. x + y = y + x (commutative) ( x + y) + w = x + ( y + w) (associative) z + 0 = 0 + z = z x + ( x) = x + x = 0 t( x + y) = t x + t y (distributive law)

109 Properties of Vectors For all w, x, y R n and s, t R, we have the following. x + y = y + x (commutative) ( x + y) + w = x + ( y + w) (associative) z + 0 = 0 + z = z x + ( x) = x + x = 0 t( x + y) = t x + t y (distributive law) (s + t) x = s x + t x (distributive law)

110 Properties of Vectors For all w, x, y R n and s, t R, we have the following. x + y = y + x (commutative) ( x + y) + w = x + ( y + w) (associative) z + 0 = 0 + z = z x + ( x) = x + x = 0 t( x + y) = t x + t y (distributive law) (s + t) x = s x + t x (distributive law) s(t x) = (st) x (associative)

111 Properties of Vectors For all w, x, y R n and s, t R, we have the following. x + y = y + x (commutative) ( x + y) + w = x + ( y + w) (associative) z + 0 = 0 + z = z x + ( x) = x + x = 0 t( x + y) = t x + t y (distributive law) (s + t) x = s x + t x (distributive law) s(t x) = (st) x (associative) 1 x = x

112 Linear Combination Definition Suppose {t 1, t 2... t k } are all real numbers. The vector y = t 1 v t k v k is called a linear combination of the vectors { v 1, v 2... v k }.

113 Linear Combination Definition Suppose {t 1, t 2... t k } are all real numbers. The vector y = t 1 v t k v k is called a linear combination of the vectors { v 1, v 2... v k }. Sample problem: Given vectors { a 1, a 2... a n, b} in R m, find real numbers {t 1, t 2... t n } so that t 1 a t n a n = b.

114 Linear Combination Definition Suppose {t 1, t 2... t k } are all real numbers. The vector y = t 1 v t k v k is called a linear combination of the vectors { v 1, v 2... v k }. Sample problem: Given vectors { a 1, a 2... a n, b} in R m, find real numbers {t 1, t 2... t n } so that t 1 a t n a n = b. Off hand, could have any number of {t 1, t 2... t n } solutions.

115 Linear Combination How to think about solving for {t 1, t 2... t n } in the equation t 1 a t n a n = b :

116 Linear Combination How to think about solving for {t 1, t 2... t n } in the equation t 1 a t n a n = b : Let b 1 b 2 b = b 3 ; a j =. a 1j a 2j a 3j b m a mj. for 1 j n

117 Linear Combination How to think about solving for {t 1, t 2... t n } in the equation t 1 a t n a n = b : Let b 1 b 2 b = b 3 ; a j =. a 1j a 2j a 3j b m a mj. for 1 j n Then for any 1 i m, the i th row of the equation becomes: t 1 a i1 + t 2 a i2 + + t n a in = b i or a i1 t 1 + a i2 t a in t n = b i

118 Linear Combination In other words, solving t 1 a t n a n = b : is the same as solving this system of m linear equations: a 11 t a 1n t n = b 1 a 21 t a 2n t n = b 2. a m1 t a mn t n = b m We just learned how to do this!

119 Linear Combination Solving t 1 a t n a n = b : is the same as solving a system of m linear equations.

120 Linear Combination Solving t 1 a t n a n = b : is the same as solving a system of m linear equations. The system has augmented matrix a 11 a a 1n b 1 a 21 a a 2n b a m1 a m2... a mn b m

121 Linear Combination Solving t 1 a t n a n = b : is the same as solving a system of m linear equations. The system has augmented matrix a 11 a a 1n b 1 a 21 a a 2n b a m1 a m2... a mn b m Since each a j is a column of i numbers, can just write [ a 1 a 2... a n b ]

122 Example Suppose a 1 = 2 4 a 2 = 2 4 a 3 = 1 1 a 4 = and want to find c 1, c 2, c 3, c 4 so that 12 c 1 a 1 + c 2 a 2 + c 3 a 3 + c 4 a 4 =

123 Example This translates to the system of linear equations whose augmented matrix is

124 Example This translates to the system of linear equations whose augmented matrix is which reduces to:

125 Example This translates to the system of linear equations whose augmented matrix is which reduces to: and so has general solution c 2 = anything, c 1 = 3 2 c 2, c 3 = 2, c 4 = 1 2

126 Span Definition Given a collection { v 1, v 2,..., v k } of vectors in R m, the set of all linear combinations of these vectors, that is all vectors that can be written as c 1 v c k v k for some c 1,..., c k R is denoted Span { v 1,..., v k } and is called the span of { v 1,..., v k }.

127 Span Definition Given a collection { v 1, v 2,..., v k } of vectors in R m, the set of all linear combinations of these vectors, that is all vectors that can be written as c 1 v c k v k for some c 1,..., c k R is denoted Span { v 1,..., v k } and is called the span of { v 1,..., v k }. Easy example: If k = 1 so there is only one vector v, then Span{ v} is just all vectors that are multiples of v. That is, Span{ v} = {c v c R}

128 Span Picturing the span when m = 2, 3:

129 Span Picturing the span when m = 2, 3: When there is only one vector v then Span{ v} = {c v c R} is just the line that contains both 0 (take c = 0) and v (take c = 1).

130 Span Picturing the span when m = 2, 3: When there is only one vector v then Span{ v} = {c v c R} is just the line that contains both 0 (take c = 0) and v (take c = 1). With two vectors u and v, Span{ u, v} = {c 1 u + c 2 v} pictured via the parallelogram rule (Span = entire plane; c i 0 highlighted): u (3u+5v)/2 v

131 Span So we can think of the set of all solutions as Span

132 Span So we can think of the set of all solutions as Span So we can picture the solution as a line in the direction of the second vector, going through the point given by the first vector (but in R 4!) x 2 p p + td d x 1

133 Matrix Multiplication Definition The linear combination is abbreviated. x 1 a x k a k x 1 [ ] x 2 a1 a 2 a 3... a k x 3. Here [ a 1 a 2 a 3... a k ] is the matrix A with i th column a i. x k

134 Matrix Multiplication Simplest example: each a i R 1, i. e. each column in the matrix is just a number: b 1 [ ] b 2 a1 a 2 a 3... a k b 3 = a 1 b 1 + a 2 b a k b k.. b k

135 Matrix Multiplication Simplest example: each a i R 1, i. e. each column in the matrix is just a number: b 1 [ ] b 2 a1 a 2 a 3... a k b 3 = a 1 b 1 + a 2 b a k b k.. so b k 7 [ ] = 2

136 Matrix Multiplication Simplest example: each a i R 1, i. e. each column in the matrix is just a number: b 1 [ ] b 2 a1 a 2 a 3... a k b 3 = a 1 b 1 + a 2 b a k b k.. so b k 7 [ ] = ( 2) ( 4) 2 = = 4

137 Matrix Multiplication Simplest example: each a i R 1, i. e. each column in the matrix is just a number: b 1 [ ] b 2 a1 a 2 a 3... a k b 3 = a 1 b 1 + a 2 b a k b k.. so b k 7 [ ] = ( 2) ( 4) 2 = = 4 R 1.

138 Question 3 [ ] = 1 A) -3 B) -6 C) -9 D) 6 E) 9

139 Matrix-vector Multiplication More complicated example: For a i R 2, i = 1, 2, 3: [ ] [ ] [ ] = [ ] 1 5

140 Matrix-vector Multiplication More complicated example: For a i R 2, i = 1, 2, 3: [ ] [ ] [ ] = so [ ] 2 1 = 4 [ ] 1 5 [ ] [ ] =

141 Matrix-vector Multiplication More complicated example: For a i R 2, i = 1, 2, 3: [ ] [ ] [ ] = so [ ] 2 1 = 4 [ ] 1 5 [ ] [ ] = Think of doing the simple case on each row of the matrix A: R 2.

142 Matrix-vector Multiplication Apply simple case to first row: [ ] = [ ] [ ] =

143 Matrix-vector Multiplication Apply simple case to first row: [ ] = Apply simple case to second row: [ ] 2 1 = 4 [ ] [ ] = [ ] [ ] =

144 Matrix-vector Multiplication Apply simple case to first row: [ ] = Apply simple case to second row: [ ] 2 1 = 4 [ ] [ ] = [ ] [ ] = R 2.

145 Matrix-vector Multiplication Further abbreviation: Use vector notation: then x 1 x 2 x 3 = x. x k

146 Matrix-vector Multiplication Further abbreviation: Use vector notation: then x 1 x 2 x 3 = x. x k x 1 a x k a k = [ ] x 2 a 1 a 2 a 3... a k x 3 = A x. x 1 x k

147 Matrix-vector Multiplication Summary: For A an m n matrix, and a vector x R n, multiplication A x is defined and gives a vector in R m. Multiplication has two important properties: For any vectors u, v R n, A( u + v) = A u + A v

148 Matrix-vector Multiplication Summary: For A an m n matrix, and a vector x R n, multiplication A x is defined and gives a vector in R m. Multiplication has two important properties: For any vectors u, v R n, A( u + v) = A u + A v For any vector u R n and any c R, A(c u) = c(a u).

149 Matrix-vector Multiplication Summary: For A an m n matrix, and a vector x R n, multiplication A x is defined and gives a vector in R m. Multiplication has two important properties: For any vectors u, v R n, A( u + v) = A u + A v For any vector u R n and any c R, A(c u) = c(a u). For example: u 1 u 2 u 3 A( u + v) = [ ] v 2 a 1 a 2 a 3... a n ( + v 3 ) =.. u n v 1 v n

150 Matrix-vector Multiplication Summary: For A an m n matrix, and a vector x R n, multiplication A x is defined and gives a vector in R m. Multiplication has two important properties: For any vectors u, v R n, A( u + v) = A u + A v For any vector u R n and any c R, A(c u) = c(a u). For example: u 1 u 2 u 3 A( u + v) = [ ] v 2 a 1 a 2 a 3... a n ( + v 3 ) =.. (u 1 +v 1 ) a 1 + +(u n +v n ) a n = (u 1 a 1 + +u n a n )+(v 1 a 1 + +v n a n ) = A u + A v u n v 1 v n

151 Question [ ] = 1 A) [ ] 7 9 B) [ ] 9 4 C) [ ] 9 1 D) [ ] 4 9 E) π e

152 Matrix Equation Sample problem from before: Given vectors { a 1, a 2... a n } and b in R m, find real numbers {x 1, x 2... x n } so that x 1 a x n a n = b.

153 Matrix Equation Sample problem from before: Given vectors { a 1, a 2... a n } and b in R m, find real numbers {x 1, x 2... x n } so that x 1 a x n a n = b. Might arise from the question: Is b in Span{ a 1, a 2... a n }?

154 Matrix Equation Sample problem from before: Given vectors { a 1, a 2... a n } and b in R m, find real numbers {x 1, x 2... x n } so that x 1 a x n a n = b. Might arise from the question: Is b in Span{ a 1, a 2... a n }? New: translation to matrix equation: Given m n matrix A and b R m find a vector x R n so that A x = b

155 Matrix Equation Sample problem from before: Given vectors { a 1, a 2... a n } and b in R m, find real numbers {x 1, x 2... x n } so that x 1 a x n a n = b. Might arise from the question: Is b in Span{ a 1, a 2... a n }? New: translation to matrix equation: Given m n matrix A and b R m find a vector x R n so that A x = b where A = [ a 1 a 2 a 3... a n ].

156 Matrix Equation Sample problem from before: Given vectors { a 1, a 2... a n } and b in R m, find real numbers {x 1, x 2... x n } so that x 1 a x n a n = b. Might arise from the question: Is b in Span{ a 1, a 2... a n }? New: translation to matrix equation: Given m n matrix A and b R m find a vector x R n so that A x = b where A = [ a 1 a 2 a 3... a n ]. Note: the Matrix-vector multiplication A x makes sense only if the number of columns in A matches the number of entries in x.

157 Background Background thoughts: If two non-trivial vectors x 1, x 2 both lie on the same line, then Span{ x 1, x 2 } is just that line.

158 Background Background thoughts: If two non-trivial vectors x 1, x 2 both lie on the same line, then Span{ x 1, x 2 } is just that line. On the other hand, if they don t lie on the same line, then Span{ x 1, x 2 } consists of an entire plane.

159 Background Background thoughts: If two non-trivial vectors x 1, x 2 both lie on the same line, then Span{ x 1, x 2 } is just that line. On the other hand, if they don t lie on the same line, then Span{ x 1, x 2 } consists of an entire plane. (The plane determined by the heads of the vectors and 0.)

160 Background Background thoughts: If two non-trivial vectors x 1, x 2 both lie on the same line, then Span{ x 1, x 2 } is just that line. On the other hand, if they don t lie on the same line, then Span{ x 1, x 2 } consists of an entire plane. (The plane determined by the heads of the vectors and 0.) So the span of two vectors may be a plane, or it could be something simpler: either a line, or even just 0 in the case that x 1 = 0 = x 2.

161 Background Similarly, if three non-trivial vectors x 1, x 2, x 3 all lie on the same line, then Span{ x 1, x 2, x 3 } is just that line.

162 Background Similarly, if three non-trivial vectors x 1, x 2, x 3 all lie on the same line, then Span{ x 1, x 2, x 3 } is just that line. If they don t all lie on the same line, but lie on the same plane, then Span{ x 1, x 2, x 3 } is just that plane.

163 Background Similarly, if three non-trivial vectors x 1, x 2, x 3 all lie on the same line, then Span{ x 1, x 2, x 3 } is just that line. If they don t all lie on the same line, but lie on the same plane, then Span{ x 1, x 2, x 3 } is just that plane. If they don t all lie in the same plane, then Span{ x 1, x 2, x 3 } looks like space.

164 Linear Independence How do we put these ideas into math lingo, so we can be precise? Definition A set of vectors { v 1,..., v k } in R m is linearly independent if and only if the only solution to the equation x 1 v x k v k = 0 is the solution x i = 0 for 1 i k. Conversely, the set of vectors { v 1,..., v k } is linearly dependent if there are real numbers c 1,..., c k, not all zero, such that c 1 v c k v k = 0.

165 Linear Independence How do we put these ideas into math lingo, so we can be precise? Definition A set of vectors { v 1,..., v k } in R m is linearly independent if and only if the only solution to the equation x 1 v x k v k = 0 is the solution x i = 0 for 1 i k. Conversely, the set of vectors { v 1,..., v k } is linearly dependent if there are real numbers c 1,..., c k, not all zero, such that c 1 v c k v k = 0. Idea: if the set is linearly independent, then span is big as possible.

166 Linear Independence How do we put these ideas into math lingo, so we can be precise? Definition A set of vectors { v 1,..., v k } in R m is linearly independent if and only if the only solution to the equation x 1 v x k v k = 0 is the solution x i = 0 for 1 i k. Conversely, the set of vectors { v 1,..., v k } is linearly dependent if there are real numbers c 1,..., c k, not all zero, such that c 1 v c k v k = 0. Idea: if the set is linearly independent, then span is big as possible. If the set is linearly dependent then span is thinner than it has to be;

167 Linear Independence How do we put these ideas into math lingo, so we can be precise? Definition A set of vectors { v 1,..., v k } in R m is linearly independent if and only if the only solution to the equation x 1 v x k v k = 0 is the solution x i = 0 for 1 i k. Conversely, the set of vectors { v 1,..., v k } is linearly dependent if there are real numbers c 1,..., c k, not all zero, such that c 1 v c k v k = 0. Idea: if the set is linearly independent, then span is big as possible. If the set is linearly dependent then span is thinner than it has to be; you could even throw some away and not change the span.

168 In pictures: v 2 v 1 v 3 { v 1, v 2, v 3 } linearly dependent.

169 v v 1 2 v 3 { v 1, v 2, v 3 } linearly independent.

170 Linear Independence If any subset of { v 1,..., v k } is linearly dependent, so is the whole set.

171 Linear Independence If any subset of { v 1,..., v k } is linearly dependent, so is the whole set. Argument: Suppose, say, { v 1, v 2, v 3 } { v 1,..., v k } is linearly dependent.

172 Linear Independence If any subset of { v 1,..., v k } is linearly dependent, so is the whole set. Argument: Suppose, say, { v 1, v 2, v 3 } { v 1,..., v k } is linearly dependent. This means that there are c 1, c 2, c 3 not all 0 so that But then, c 1 v 1 + c 2 v 2 + c 3 v 3 = 0 c 1 v 1 + c 2 v 2 + c 3 v v v n = 0 so the whole set is linearly dependent.

173 Linear Independence If any subset of { v 1,..., v k } is linearly dependent, so is the whole set. Argument: Suppose, say, { v 1, v 2, v 3 } { v 1,..., v k } is linearly dependent. This means that there are c 1, c 2, c 3 not all 0 so that But then, c 1 v 1 + c 2 v 2 + c 3 v 3 = 0 c 1 v 1 + c 2 v 2 + c 3 v v v n = 0 so the whole set is linearly dependent. Equivalently: if { v 1,..., v k } is linearly independent then so is every subset of vectors from { v 1,..., v k }.

174 Determining Independence How to check whether a set of vectors { a 1,..., a n } is linearly dependent:

175 Determining Independence How to check whether a set of vectors { a 1,..., a n } is linearly dependent: It s equivalent to saying there is non-zero solution to x 1 a x n a n = 0.

176 Determining Independence How to check whether a set of vectors { a 1,..., a n } is linearly dependent: It s equivalent to saying there is non-zero solution to x 1 a x n a n = 0. But this is a homogeneous system of linear equations - we can answer that question!

177 Determining Independence How to check whether a set of vectors { a 1,..., a n } is linearly dependent: It s equivalent to saying there is non-zero solution to x 1 a x n a n = 0. But this is a homogeneous system of linear equations - we can answer that question! Construct associated matrix of column vectors: a 11 a a 1n a 21 a a 2n A = a m1 a m2... a mn Reduce to echelon form and see if there are any free variables.

178 Determining Independence How to check whether a set of vectors { a 1,..., a n } is linearly dependent: It s equivalent to saying there is non-zero solution to x 1 a x n a n = 0. But this is a homogeneous system of linear equations - we can answer that question! Construct associated matrix of column vectors: a 11 a a 1n a 21 a a 2n A = a m1 a m2... a mn Reduce to echelon form and see if there are any free variables. There are no free variables if and only if linearly independent

179 Determining Independence Example 4: Any set of more than m vectors in R m is linearly dependent.

180 Determining Independence Example 4: Any set of more than m vectors in R m is linearly dependent. For if n > m then the associated matrix of column vectors a 11 a a 1n a 21 a a 2n A = a m1 a m2... a mn is longer than it is high.

181 Determining Independence Example 4: Any set of more than m vectors in R m is linearly dependent. For if n > m then the associated matrix of column vectors a 11 a a 1n a 21 a a 2n A = a m1 a m2... a mn is longer than it is high. When reduced to echelon form, there must be free variables: $ 0 $ $ $ $

182 Determining Independence Example 4: Any set of more than m vectors in R m is linearly dependent. For if n > m then the associated matrix of column vectors a 11 a a 1n a 21 a a 2n A = a m1 a m2... a mn is longer than it is high. When reduced to echelon form, there must be free variables: $ 0 $ $ $ $ Here 6 > 5 and x 3 is the free variable.

183 Question Question: Is this set of vectors linearly dependent, or linearly independent? 2 3 3, A) Dependent since they are 2 vectors in R 3 and 2 < 3. B) Independent since they are 2 vectors in R 3 and 2 < 3. C) Dependent because one is a multiple of the other. D) Independent because neither is a multiple of the other. E) Independent because one is a multiple of the other.

184 Question Question: Is this set of vectors linearly dependent, or linearly independent? 2 3 3, A) Dependent since they are 2 vectors in R 3 and 2 < 3. B) Independent since they are 2 vectors in R 3 and 2 < 3. C) Dependent because one is a multiple of the other. D) Independent because neither is a multiple of the other. E) Independent because one is a multiple of the other. Answer: It s a pair of vectors and neither is a multiple of the other. Hence linearly independent.

185 Question Question: Is this set of vectors linearly dependent, or linearly independent? , 4,

186 Question Question: Is this set of vectors linearly dependent, or linearly independent? , 4, A) Independent since they are 3 vectors in R 3. B) Dependent because one is a multiple of the other. C) Dependent because a subset is dependent. D) Independent because a subset is independent.

187 Question Question: Is this set of vectors linearly dependent, or linearly independent? , 4, A) Independent since they are 3 vectors in R 3. B) Dependent because one is a multiple of the other. C) Dependent because a subset is dependent. D) Independent because a subset is independent. Answer: The second is a multiple of the first, so that pair alone is linearly dependent.

188 Question Question: Is this set of vectors linearly dependent, or linearly independent? , 4, A) Independent since they are 3 vectors in R 3. B) Dependent because one is a multiple of the other. C) Dependent because a subset is dependent. D) Independent because a subset is independent. Answer: The second is a multiple of the first, so that pair alone is linearly dependent. Since this subset is linearly dependent, so is the entire set.

189 Question Question: Is this set of vectors linearly dependent, or linearly independent? , 4, A) Independent since they are 3 vectors in R 3. B) Dependent because one is a multiple of the other. C) Dependent because a subset is dependent. D) Independent because a subset is independent. Answer: The second is a multiple of the first, so that pair alone is linearly dependent. Since this subset is linearly dependent, so is the entire set. Both B) and C) are used to show linear dependence.

190 Question Question: Is this set of vectors linearly dependent, or linearly independent? , 3,

191 Question Question: Is this set of vectors linearly dependent, or linearly independent? , 3, A) Independent since they are 3 vectors in R 3. B) Dependent because one is a multiple of the other. C) Dependent because a subset is dependent. D) Independent because a subset is independent. E) I can t tell.

192 Answer: For this triple of vectors , 3, we want to determine whether the homogeneous system of linear equations: x x 2 = x 3 has a non-trivial solution.

193 Answer: For this triple of vectors , 3, we want to determine whether the homogeneous system of linear equations: x x 2 = x 3 has a non-trivial solution. Consider the associated column matrix (no need to augment):

194 Answer: For this triple of vectors , 3, we want to determine whether the homogeneous system of linear equations: x x 2 = x 3 has a non-trivial solution. Consider the associated column matrix (no need to augment):

195 Answer: For this triple of vectors , 3, we want to determine whether the homogeneous system of linear equations: x x 2 = x 3 has a non-trivial solution. Consider the associated column matrix (no need to augment): Since there is a free variable (namely x 3 ) there are non-trivial solutions, so linearly dependent.

196 Connection with Span Theorem A set of vectors { v 1,..., v k } in R m is linearly dependent if and only if at least one of the vectors is in the span of all the others. For example, suppose v 1 Span{ v 2, v 3,..., v k }.

197 Connection with Span Theorem A set of vectors { v 1,..., v k } in R m is linearly dependent if and only if at least one of the vectors is in the span of all the others. For example, suppose v 1 Span{ v 2, v 3,..., v k }. That means there are c 2, c 3,..., c k so that v 1 = c 2 v 2 + c 3 v c k v k

198 Connection with Span Theorem A set of vectors { v 1,..., v k } in R m is linearly dependent if and only if at least one of the vectors is in the span of all the others. For example, suppose v 1 Span{ v 2, v 3,..., v k }. That means there are c 2, c 3,..., c k so that v 1 = c 2 v 2 + c 3 v c k v k But this vector equation can be rewritten 1 v 1 + c 2 v 2 + c 3 v c k v k = 0.

199 Connection with Span Theorem A set of vectors { v 1,..., v k } in R m is linearly dependent if and only if at least one of the vectors is in the span of all the others. For example, suppose v 1 Span{ v 2, v 3,..., v k }. That means there are c 2, c 3,..., c k so that v 1 = c 2 v 2 + c 3 v c k v k But this vector equation can be rewritten 1 v 1 + c 2 v 2 + c 3 v c k v k = 0. Since at least one of the coefficients (namely 1) is not zero, this shows the set of vectors is linearly dependent.

200 Connection with Span Theorem A set of vectors { v 1,..., v k } in R m is linearly dependent if and only if at least one of the vectors is in the span of all the others. Here s the argument in the other direction: Suppose { v 1,..., v k } is linearly dependent.

201 Connection with Span Theorem A set of vectors { v 1,..., v k } in R m is linearly dependent if and only if at least one of the vectors is in the span of all the others. Here s the argument in the other direction: Suppose { v 1,..., v k } is linearly dependent. That means there are c 1, c 2,..., c k, not all zero, so that c 1 v 1 + c 2 v 2 + c 3 v c k v k = 0.

202 Connection with Span Theorem A set of vectors { v 1,..., v k } in R m is linearly dependent if and only if at least one of the vectors is in the span of all the others. Here s the argument in the other direction: Suppose { v 1,..., v k } is linearly dependent. That means there are c 1, c 2,..., c k, not all zero, so that c 1 v 1 + c 2 v 2 + c 3 v c k v k = 0. For concreteness, say c 1 0.

203 Connection with Span Theorem A set of vectors { v 1,..., v k } in R m is linearly dependent if and only if at least one of the vectors is in the span of all the others. Here s the argument in the other direction: Suppose { v 1,..., v k } is linearly dependent. That means there are c 1, c 2,..., c k, not all zero, so that c 1 v 1 + c 2 v 2 + c 3 v c k v k = 0. For concreteness, say c 1 0. Divide by c 1 to get v 1 + c 2 c 1 v 2 + c 3 c 1 v c k c 1 v k = 0

204 Connection with Span Theorem A set of vectors { v 1,..., v k } in R m is linearly dependent if and only if at least one of the vectors is in the span of all the others. Here s the argument in the other direction: Suppose { v 1,..., v k } is linearly dependent. That means there are c 1, c 2,..., c k, not all zero, so that c 1 v 1 + c 2 v 2 + c 3 v c k v k = 0. For concreteness, say c 1 0. Divide by c 1 to get and this can be rewritten v 1 + c 2 c 1 v 2 + c 3 c 1 v c k c 1 v k = 0 v 1 = c 2 c 1 v 2 c 3 c 1 v 3... c k c 1 v k

205 Connection with Span Theorem A set of vectors { v 1,..., v k } in R m is linearly dependent if and only if at least one of the vectors is in the span of all the others. Here s the argument in the other direction: Suppose { v 1,..., v k } is linearly dependent. That means there are c 1, c 2,..., c k, not all zero, so that c 1 v 1 + c 2 v 2 + c 3 v c k v k = 0. For concreteness, say c 1 0. Divide by c 1 to get and this can be rewritten v 1 + c 2 c 1 v 2 + c 3 c 1 v c k c 1 v k = 0 v 1 = c 2 c 1 v 2 c 3 c 1 v 3... c k c 1 v k Hence v 1 Span{ v 2, v 3,..., v k }.

206 Connection with Span In pictures: v 2 v 1 v 3 v 1 Span{ v 2, v 3 } and { v 1, v 2, v 3 } linearly dependent.

207 Connection with Span v v 1 2 v 3 v 1 / Span{ v 2, v 3 } and { v 1, v 2, v 3 } linearly independent.

Vectors Picturing vectors Properties of vectors Linear combination Span. Vectors. Math 4A Scharlemann. 9 January /31

Vectors Picturing vectors Properties of vectors Linear combination Span. Vectors. Math 4A Scharlemann. 9 January /31 1/31 Vectors Math 4A Scharlemann 9 January 2015 2/31 CELL PHONES OFF 3/31 An m-vector [column vector, vector in R m ] is an m 1 matrix: a 1 a 2 a = a 3. a m 3/31 An m-vector [column vector, vector in R

More information

Midterm 1 Review. Written by Victoria Kala SH 6432u Office Hours: R 12:30 1:30 pm Last updated 10/10/2015

Midterm 1 Review. Written by Victoria Kala SH 6432u Office Hours: R 12:30 1:30 pm Last updated 10/10/2015 Midterm 1 Review Written by Victoria Kala vtkala@math.ucsb.edu SH 6432u Office Hours: R 12:30 1:30 pm Last updated 10/10/2015 Summary This Midterm Review contains notes on sections 1.1 1.5 and 1.7 in your

More information

Second Midterm Exam April 14, 2011 Answers., and

Second Midterm Exam April 14, 2011 Answers., and Mathematics 34, Spring Problem ( points) (a) Consider the matrices all matrices. Second Midterm Exam April 4, Answers [ Do these matrices span M? ] [, ] [, and Lectures & (Wilson) ], as vectors in the

More information

Systems of Linear Equations

Systems of Linear Equations Systems of Linear Equations Linear Equation Definition Any equation that is equivalent to the following format a a ann b (.) where,,, n are unknown variables and a, a,, an, b are known numbers (the so

More information

Finite Math - J-term Section Systems of Linear Equations in Two Variables Example 1. Solve the system

Finite Math - J-term Section Systems of Linear Equations in Two Variables Example 1. Solve the system Finite Math - J-term 07 Lecture Notes - //07 Homework Section 4. - 9, 0, 5, 6, 9, 0,, 4, 6, 0, 50, 5, 54, 55, 56, 6, 65 Section 4. - Systems of Linear Equations in Two Variables Example. Solve the system

More information

Determine whether the following system has a trivial solution or non-trivial solution:

Determine whether the following system has a trivial solution or non-trivial solution: Practice Questions Lecture # 7 and 8 Question # Determine whether the following system has a trivial solution or non-trivial solution: x x + x x x x x The coefficient matrix is / R, R R R+ R The corresponding

More information

Solving Linear Systems Using Gaussian Elimination

Solving Linear Systems Using Gaussian Elimination Solving Linear Systems Using Gaussian Elimination DEFINITION: A linear equation in the variables x 1,..., x n is an equation that can be written in the form a 1 x 1 +...+a n x n = b, where a 1,...,a n

More information

MATH 2331 Linear Algebra. Section 1.1 Systems of Linear Equations. Finding the solution to a set of two equations in two variables: Example 1: Solve:

MATH 2331 Linear Algebra. Section 1.1 Systems of Linear Equations. Finding the solution to a set of two equations in two variables: Example 1: Solve: MATH 2331 Linear Algebra Section 1.1 Systems of Linear Equations Finding the solution to a set of two equations in two variables: Example 1: Solve: x x = 3 1 2 2x + 4x = 12 1 2 Geometric meaning: Do these

More information

Chapter 5. Linear Algebra. A linear (algebraic) equation in. unknowns, x 1, x 2,..., x n, is. an equation of the form

Chapter 5. Linear Algebra. A linear (algebraic) equation in. unknowns, x 1, x 2,..., x n, is. an equation of the form Chapter 5. Linear Algebra A linear (algebraic) equation in n unknowns, x 1, x 2,..., x n, is an equation of the form a 1 x 1 + a 2 x 2 + + a n x n = b where a 1, a 2,..., a n and b are real numbers. 1

More information

March 19 - Solving Linear Systems

March 19 - Solving Linear Systems March 19 - Solving Linear Systems Welcome to linear algebra! Linear algebra is the study of vectors, vector spaces, and maps between vector spaces. It has applications across data analysis, computer graphics,

More information

Chapter 5. Linear Algebra. Sections A linear (algebraic) equation in. unknowns, x 1, x 2,..., x n, is. an equation of the form

Chapter 5. Linear Algebra. Sections A linear (algebraic) equation in. unknowns, x 1, x 2,..., x n, is. an equation of the form Chapter 5. Linear Algebra Sections 5.1 5.3 A linear (algebraic) equation in n unknowns, x 1, x 2,..., x n, is an equation of the form a 1 x 1 + a 2 x 2 + + a n x n = b where a 1, a 2,..., a n and b are

More information

System of Linear Equations

System of Linear Equations Math 20F Linear Algebra Lecture 2 1 System of Linear Equations Slide 1 Definition 1 Fix a set of numbers a ij, b i, where i = 1,, m and j = 1,, n A system of m linear equations in n variables x j, is given

More information

Linear Independence Reading: Lay 1.7

Linear Independence Reading: Lay 1.7 Linear Independence Reading: Lay 17 September 11, 213 In this section, we discuss the concept of linear dependence and independence I am going to introduce the definitions and then work some examples and

More information

Example: 2x y + 3z = 1 5y 6z = 0 x + 4z = 7. Definition: Elementary Row Operations. Example: Type I swap rows 1 and 3

Example: 2x y + 3z = 1 5y 6z = 0 x + 4z = 7. Definition: Elementary Row Operations. Example: Type I swap rows 1 and 3 Math 0 Row Reduced Echelon Form Techniques for solving systems of linear equations lie at the heart of linear algebra. In high school we learn to solve systems with or variables using elimination and substitution

More information

Linear Algebra for Beginners Open Doors to Great Careers. Richard Han

Linear Algebra for Beginners Open Doors to Great Careers. Richard Han Linear Algebra for Beginners Open Doors to Great Careers Richard Han Copyright 2018 Richard Han All rights reserved. CONTENTS PREFACE... 7 1 - INTRODUCTION... 8 2 SOLVING SYSTEMS OF LINEAR EQUATIONS...

More information

Exercise Sketch these lines and find their intersection.

Exercise Sketch these lines and find their intersection. These are brief notes for the lecture on Friday August 21, 2009: they are not complete, but they are a guide to what I want to say today. They are not guaranteed to be correct. 1. Solving systems of linear

More information

Matrices and Systems of Equations

Matrices and Systems of Equations M CHAPTER 3 3 4 3 F 2 2 4 C 4 4 Matrices and Systems of Equations Probably the most important problem in mathematics is that of solving a system of linear equations. Well over 75 percent of all mathematical

More information

MATH 213 Linear Algebra and ODEs Spring 2015 Study Sheet for Midterm Exam. Topics

MATH 213 Linear Algebra and ODEs Spring 2015 Study Sheet for Midterm Exam. Topics MATH 213 Linear Algebra and ODEs Spring 2015 Study Sheet for Midterm Exam This study sheet will not be allowed during the test Books and notes will not be allowed during the test Calculators and cell phones

More information

Chapter 5. Linear Algebra. Sections A linear (algebraic) equation in. unknowns, x 1, x 2,..., x n, is. an equation of the form

Chapter 5. Linear Algebra. Sections A linear (algebraic) equation in. unknowns, x 1, x 2,..., x n, is. an equation of the form Chapter 5. Linear Algebra Sections 5.1 5.3 A linear (algebraic) equation in n unknowns, x 1, x 2,..., x n, is an equation of the form a 1 x 1 + a 2 x 2 + + a n x n = b where a 1, a 2,..., a n and b are

More information

Announcements August 31

Announcements August 31 Announcements August 31 Homeworks 1.1 and 1.2 are due Friday. The first quiz is on Friday, during recitation. Quizzes mostly test your understanding of the homework. There will generally be a quiz every

More information

Solutions to Homework 5 - Math 3410

Solutions to Homework 5 - Math 3410 Solutions to Homework 5 - Math 34 (Page 57: # 489) Determine whether the following vectors in R 4 are linearly dependent or independent: (a) (, 2, 3, ), (3, 7,, 2), (, 3, 7, 4) Solution From x(, 2, 3,

More information

Lecture 12: Solving Systems of Linear Equations by Gaussian Elimination

Lecture 12: Solving Systems of Linear Equations by Gaussian Elimination Lecture 12: Solving Systems of Linear Equations by Gaussian Elimination Winfried Just, Ohio University September 22, 2017 Review: The coefficient matrix Consider a system of m linear equations in n variables.

More information

Lecture 1 Systems of Linear Equations and Matrices

Lecture 1 Systems of Linear Equations and Matrices Lecture 1 Systems of Linear Equations and Matrices Math 19620 Outline of Course Linear Equations and Matrices Linear Transformations, Inverses Bases, Linear Independence, Subspaces Abstract Vector Spaces

More information

Row Reduced Echelon Form

Row Reduced Echelon Form Math 40 Row Reduced Echelon Form Solving systems of linear equations lies at the heart of linear algebra. In high school we learn to solve systems in or variables using elimination and substitution of

More information

Lecture #11: Classification & Logistic Regression

Lecture #11: Classification & Logistic Regression Lecture #11: Classification & Logistic Regression CS 109A, STAT 121A, AC 209A: Data Science Weiwei Pan, Pavlos Protopapas, Kevin Rader Fall 2016 Harvard University 1 Announcements Midterm: will be graded

More information

Linear Equations in Linear Algebra

Linear Equations in Linear Algebra Linear Equations in Linear Algebra.7 LINEAR INDEPENDENCE LINEAR INDEPENDENCE Definition: An indexed set of vectors {v,, v p } in n is said to be linearly independent if the vector equation x x x 2 2 p

More information

Linear Algebra. Preliminary Lecture Notes

Linear Algebra. Preliminary Lecture Notes Linear Algebra Preliminary Lecture Notes Adolfo J. Rumbos c Draft date May 9, 29 2 Contents 1 Motivation for the course 5 2 Euclidean n dimensional Space 7 2.1 Definition of n Dimensional Euclidean Space...........

More information

Final Review Sheet. B = (1, 1 + 3x, 1 + x 2 ) then 2 + 3x + 6x 2

Final Review Sheet. B = (1, 1 + 3x, 1 + x 2 ) then 2 + 3x + 6x 2 Final Review Sheet The final will cover Sections Chapters 1,2,3 and 4, as well as sections 5.1-5.4, 6.1-6.2 and 7.1-7.3 from chapters 5,6 and 7. This is essentially all material covered this term. Watch

More information

Math 2030 Assignment 5 Solutions

Math 2030 Assignment 5 Solutions Math 030 Assignment 5 Solutions Question 1: Which of the following sets of vectors are linearly independent? If the set is linear dependent, find a linear dependence relation for the vectors (a) {(1, 0,

More information

chapter 12 MORE MATRIX ALGEBRA 12.1 Systems of Linear Equations GOALS

chapter 12 MORE MATRIX ALGEBRA 12.1 Systems of Linear Equations GOALS chapter MORE MATRIX ALGEBRA GOALS In Chapter we studied matrix operations and the algebra of sets and logic. We also made note of the strong resemblance of matrix algebra to elementary algebra. The reader

More information

Math 308 Midterm Answers and Comments July 18, Part A. Short answer questions

Math 308 Midterm Answers and Comments July 18, Part A. Short answer questions Math 308 Midterm Answers and Comments July 18, 2011 Part A. Short answer questions (1) Compute the determinant of the matrix a 3 3 1 1 2. 1 a 3 The determinant is 2a 2 12. Comments: Everyone seemed to

More information

Matrices and RRE Form

Matrices and RRE Form Matrices and RRE Form Notation R is the real numbers, C is the complex numbers (we will only consider complex numbers towards the end of the course) is read as an element of For instance, x R means that

More information

The scope of the midterm exam is up to and includes Section 2.1 in the textbook (homework sets 1-4). Below we highlight some of the important items.

The scope of the midterm exam is up to and includes Section 2.1 in the textbook (homework sets 1-4). Below we highlight some of the important items. AMS 10: Review for the Midterm Exam The scope of the midterm exam is up to and includes Section 2.1 in the textbook (homework sets 1-4). Below we highlight some of the important items. Complex numbers

More information

Linear Algebra. Preliminary Lecture Notes

Linear Algebra. Preliminary Lecture Notes Linear Algebra Preliminary Lecture Notes Adolfo J. Rumbos c Draft date April 29, 23 2 Contents Motivation for the course 5 2 Euclidean n dimensional Space 7 2. Definition of n Dimensional Euclidean Space...........

More information

Math 1553 Introduction to Linear Algebra. School of Mathematics Georgia Institute of Technology

Math 1553 Introduction to Linear Algebra. School of Mathematics Georgia Institute of Technology Math 1553 Introduction to Linear Algebra School of Mathematics Georgia Institute of Technology Introduction to Linear Algebra Motivation and Overview Linear. Algebra. What is Linear Algebra? Linear having

More information

LECTURES 14/15: LINEAR INDEPENDENCE AND BASES

LECTURES 14/15: LINEAR INDEPENDENCE AND BASES LECTURES 14/15: LINEAR INDEPENDENCE AND BASES MA1111: LINEAR ALGEBRA I, MICHAELMAS 2016 1. Linear Independence We have seen in examples of span sets of vectors that sometimes adding additional vectors

More information

Chapter 1: Systems of Linear Equations

Chapter 1: Systems of Linear Equations Chapter : Systems of Linear Equations February, 9 Systems of linear equations Linear systems Lecture A linear equation in variables x, x,, x n is an equation of the form a x + a x + + a n x n = b, where

More information

Fall 2016 MATH*1160 Final Exam

Fall 2016 MATH*1160 Final Exam Fall 2016 MATH*1160 Final Exam Last name: (PRINT) First name: Student #: Instructor: M. R. Garvie Dec 16, 2016 INSTRUCTIONS: 1. The exam is 2 hours long. Do NOT start until instructed. You may use blank

More information

This pre-publication material is for review purposes only. Any typographical or technical errors will be corrected prior to publication.

This pre-publication material is for review purposes only. Any typographical or technical errors will be corrected prior to publication. This pre-publication material is for review purposes only. Any typographical or technical errors will be corrected prior to publication. Copyright Pearson Canada Inc. All rights reserved. Copyright Pearson

More information

Review for Chapter 1. Selected Topics

Review for Chapter 1. Selected Topics Review for Chapter 1 Selected Topics Linear Equations We have four equivalent ways of writing linear systems: 1 As a system of equations: 2x 1 + 3x 2 = 7 x 1 x 2 = 5 2 As an augmented matrix: ( 2 3 ) 7

More information

1 - Systems of Linear Equations

1 - Systems of Linear Equations 1 - Systems of Linear Equations 1.1 Introduction to Systems of Linear Equations Almost every problem in linear algebra will involve solving a system of equations. ü LINEAR EQUATIONS IN n VARIABLES We are

More information

MA 242 LINEAR ALGEBRA C1, Solutions to First Midterm Exam

MA 242 LINEAR ALGEBRA C1, Solutions to First Midterm Exam MA 242 LINEAR ALGEBRA C Solutions to First Midterm Exam Prof Nikola Popovic October 2 9:am - :am Problem ( points) Determine h and k such that the solution set of x + = k 4x + h = 8 (a) is empty (b) contains

More information

Math 3A Winter 2016 Midterm

Math 3A Winter 2016 Midterm Math 3A Winter 016 Midterm Name Signature UCI ID # E-mail address There are 7 problems for a total of 115 points. Present your work as clearly as possible. Partial credit will be awarded, and you must

More information

MATH10212 Linear Algebra B Homework Week 4

MATH10212 Linear Algebra B Homework Week 4 MATH22 Linear Algebra B Homework Week 4 Students are strongly advised to acquire a copy of the Textbook: D. C. Lay Linear Algebra and its Applications. Pearson, 26. ISBN -52-2873-4. Normally, homework

More information

Row Space, Column Space, and Nullspace

Row Space, Column Space, and Nullspace Row Space, Column Space, and Nullspace MATH 322, Linear Algebra I J. Robert Buchanan Department of Mathematics Spring 2015 Introduction Every matrix has associated with it three vector spaces: row space

More information

Linear Algebra I Lecture 8

Linear Algebra I Lecture 8 Linear Algebra I Lecture 8 Xi Chen 1 1 University of Alberta January 25, 2019 Outline 1 2 Gauss-Jordan Elimination Given a system of linear equations f 1 (x 1, x 2,..., x n ) = 0 f 2 (x 1, x 2,..., x n

More information

Math 110 Professor Ken Ribet

Math 110 Professor Ken Ribet Math 110 Professor Ken Ribet Linear Algebra Spring, 2005 January 20, 2005 A psychologist named Nalini Ambady gave students three 10-second soundless videotapes of a teacher lecturing. Then she asked the

More information

1300 Linear Algebra and Vector Geometry

1300 Linear Algebra and Vector Geometry 1300 Linear Algebra and Vector Geometry R. Craigen Office: MH 523 Email: craigenr@umanitoba.ca May-June 2017 Introduction: linear equations Read 1.1 (in the text that is!) Go to course, class webpages.

More information

Math 308 Spring Midterm Answers May 6, 2013

Math 308 Spring Midterm Answers May 6, 2013 Math 38 Spring Midterm Answers May 6, 23 Instructions. Part A consists of questions that require a short answer. There is no partial credit and no need to show your work. In Part A you get 2 points per

More information

MTH 464: Computational Linear Algebra

MTH 464: Computational Linear Algebra MTH 464: Computational Linear Algebra Lecture Outlines Exam 1 Material Dr. M. Beauregard Department of Mathematics & Statistics Stephen F. Austin State University January 9, 2018 Linear Algebra (MTH 464)

More information

Linear Algebra. Min Yan

Linear Algebra. Min Yan Linear Algebra Min Yan January 2, 2018 2 Contents 1 Vector Space 7 1.1 Definition................................. 7 1.1.1 Axioms of Vector Space..................... 7 1.1.2 Consequence of Axiom......................

More information

Chapter 1: Linear Equations

Chapter 1: Linear Equations Chapter : Linear Equations (Last Updated: September, 6) The material for these notes is derived primarily from Linear Algebra and its applications by David Lay (4ed).. Systems of Linear Equations Before

More information

Probability models for machine learning. Advanced topics ML4bio 2016 Alan Moses

Probability models for machine learning. Advanced topics ML4bio 2016 Alan Moses Probability models for machine learning Advanced topics ML4bio 2016 Alan Moses What did we cover in this course so far? 4 major areas of machine learning: Clustering Dimensionality reduction Classification

More information

LECTURES 4/5: SYSTEMS OF LINEAR EQUATIONS

LECTURES 4/5: SYSTEMS OF LINEAR EQUATIONS LECTURES 4/5: SYSTEMS OF LINEAR EQUATIONS MA1111: LINEAR ALGEBRA I, MICHAELMAS 2016 1 Linear equations We now switch gears to discuss the topic of solving linear equations, and more interestingly, systems

More information

MATH10212 Linear Algebra B Homework Week 5

MATH10212 Linear Algebra B Homework Week 5 MATH Linear Algebra B Homework Week 5 Students are strongly advised to acquire a copy of the Textbook: D C Lay Linear Algebra its Applications Pearson 6 (or other editions) Normally homework assignments

More information

Chapter 1: Linear Equations

Chapter 1: Linear Equations Chapter : Linear Equations (Last Updated: September, 7) The material for these notes is derived primarily from Linear Algebra and its applications by David Lay (4ed).. Systems of Linear Equations Before

More information

Solving Linear Systems

Solving Linear Systems Math 240 TA: Shuyi Weng Winter 2017 January 12, 2017 Solving Linear Systems Linear Systems You have dealt with linear equations and systems of linear equations since you first learn mathematics in elementary

More information

Announcements Wednesday, August 30

Announcements Wednesday, August 30 Announcements Wednesday, August 30 WeBWorK due on Friday at 11:59pm. The first quiz is on Friday, during recitation. It covers through Monday s material. Quizzes mostly test your understanding of the homework.

More information

MTH 309 Supplemental Lecture Notes Based on Robert Messer, Linear Algebra Gateway to Mathematics

MTH 309 Supplemental Lecture Notes Based on Robert Messer, Linear Algebra Gateway to Mathematics MTH 309 Supplemental Lecture Notes Based on Robert Messer, Linear Algebra Gateway to Mathematics Ulrich Meierfrankenfeld Department of Mathematics Michigan State University East Lansing MI 48824 meier@math.msu.edu

More information

Math 54 HW 4 solutions

Math 54 HW 4 solutions Math 54 HW 4 solutions 2.2. Section 2.2 (a) False: Recall that performing a series of elementary row operations A is equivalent to multiplying A by a series of elementary matrices. Suppose that E,...,

More information

Math 2210Q (Roby) Practice Midterm #1 Solutions Fall 2017

Math 2210Q (Roby) Practice Midterm #1 Solutions Fall 2017 Math Q (Roby) Practice Midterm # Solutions Fall 7 SHOW ALL YOUR WORK! Make sure you give reasons to support your answers. If you have any questions, do not hesitate to ask! For this exam no calculators

More information

Linear Algebra I Lecture 10

Linear Algebra I Lecture 10 Linear Algebra I Lecture 10 Xi Chen 1 1 University of Alberta January 30, 2019 Outline 1 Gauss-Jordan Algorithm ] Let A = [a ij m n be an m n matrix. To reduce A to a reduced row echelon form using elementary

More information

Mathematics Algebra. It is used to describe the world around us.

Mathematics Algebra. It is used to describe the world around us. is a language. It is used to describe the world around us. Can you tell me what this means? N i I i1 If you understand only how to do the math, you will need to know the numbers to see any meaning behind

More information

Row Reduction

Row Reduction Row Reduction 1-12-2015 Row reduction (or Gaussian elimination) is the process of using row operations to reduce a matrix to row reduced echelon form This procedure is used to solve systems of linear equations,

More information

M. Matrices and Linear Algebra

M. Matrices and Linear Algebra M. Matrices and Linear Algebra. Matrix algebra. In section D we calculated the determinants of square arrays of numbers. Such arrays are important in mathematics and its applications; they are called matrices.

More information

6.036 midterm review. Wednesday, March 18, 15

6.036 midterm review. Wednesday, March 18, 15 6.036 midterm review 1 Topics covered supervised learning labels available unsupervised learning no labels available semi-supervised learning some labels available - what algorithms have you learned that

More information

MIDTERM: CS 6375 INSTRUCTOR: VIBHAV GOGATE October,

MIDTERM: CS 6375 INSTRUCTOR: VIBHAV GOGATE October, MIDTERM: CS 6375 INSTRUCTOR: VIBHAV GOGATE October, 23 2013 The exam is closed book. You are allowed a one-page cheat sheet. Answer the questions in the spaces provided on the question sheets. If you run

More information

Dimension Reduction Methods

Dimension Reduction Methods Dimension Reduction Methods And Bayesian Machine Learning Marek Petrik 2/28 Previously in Machine Learning How to choose the right features if we have (too) many options Methods: 1. Subset selection 2.

More information

Elementary maths for GMT

Elementary maths for GMT Elementary maths for GMT Linear Algebra Part 2: Matrices, Elimination and Determinant m n matrices The system of m linear equations in n variables x 1, x 2,, x n a 11 x 1 + a 12 x 2 + + a 1n x n = b 1

More information

MATH 310, REVIEW SHEET 2

MATH 310, REVIEW SHEET 2 MATH 310, REVIEW SHEET 2 These notes are a very short summary of the key topics in the book (and follow the book pretty closely). You should be familiar with everything on here, but it s not comprehensive,

More information

Solving Systems of Linear Equations

Solving Systems of Linear Equations LECTURE 5 Solving Systems of Linear Equations Recall that we introduced the notion of matrices as a way of standardizing the expression of systems of linear equations In today s lecture I shall show how

More information

1. (7pts) Find the points of intersection, if any, of the following planes. 3x + 9y + 6z = 3 2x 6y 4z = 2 x + 3y + 2z = 1

1. (7pts) Find the points of intersection, if any, of the following planes. 3x + 9y + 6z = 3 2x 6y 4z = 2 x + 3y + 2z = 1 Math 125 Exam 1 Version 1 February 20, 2006 1. (a) (7pts) Find the points of intersection, if any, of the following planes. Solution: augmented R 1 R 3 3x + 9y + 6z = 3 2x 6y 4z = 2 x + 3y + 2z = 1 3 9

More information

DM559 Linear and Integer Programming. Lecture 2 Systems of Linear Equations. Marco Chiarandini

DM559 Linear and Integer Programming. Lecture 2 Systems of Linear Equations. Marco Chiarandini DM559 Linear and Integer Programming Lecture Marco Chiarandini Department of Mathematics & Computer Science University of Southern Denmark Outline 1. Outline 1. 3 A Motivating Example You are organizing

More information

4 Elementary matrices, continued

4 Elementary matrices, continued 4 Elementary matrices, continued We have identified 3 types of row operations and their corresponding elementary matrices. If you check the previous examples, you ll find that these matrices are constructed

More information

36 What is Linear Algebra?

36 What is Linear Algebra? 36 What is Linear Algebra? The authors of this textbook think that solving linear systems of equations is a big motivation for studying linear algebra This is certainly a very respectable opinion as systems

More information

Linear Algebra Practice Problems

Linear Algebra Practice Problems Math 7, Professor Ramras Linear Algebra Practice Problems () Consider the following system of linear equations in the variables x, y, and z, in which the constants a and b are real numbers. x y + z = a

More information

BASIC NOTIONS. x + y = 1 3, 3x 5y + z = A + 3B,C + 2D, DC are not defined. A + C =

BASIC NOTIONS. x + y = 1 3, 3x 5y + z = A + 3B,C + 2D, DC are not defined. A + C = CHAPTER I BASIC NOTIONS (a) 8666 and 8833 (b) a =6,a =4 will work in the first case, but there are no possible such weightings to produce the second case, since Student and Student 3 have to end up with

More information

ENGINEERING MATH 1 Fall 2009 VECTOR SPACES

ENGINEERING MATH 1 Fall 2009 VECTOR SPACES ENGINEERING MATH 1 Fall 2009 VECTOR SPACES A vector space, more specifically, a real vector space (as opposed to a complex one or some even stranger ones) is any set that is closed under an operation of

More information

2018 Fall 2210Q Section 013 Midterm Exam I Solution

2018 Fall 2210Q Section 013 Midterm Exam I Solution 8 Fall Q Section 3 Midterm Exam I Solution True or False questions ( points = points) () An example of a linear combination of vectors v, v is the vector v. True. We can write v as v + v. () If two matrices

More information

MATH240: Linear Algebra Review for exam #1 6/10/2015 Page 1

MATH240: Linear Algebra Review for exam #1 6/10/2015 Page 1 MATH24: Linear Algebra Review for exam # 6//25 Page No review sheet can cover everything that is potentially fair game for an exam, but I tried to hit on all of the topics with these questions, as well

More information

Lecture 4: Gaussian Elimination and Homogeneous Equations

Lecture 4: Gaussian Elimination and Homogeneous Equations Lecture 4: Gaussian Elimination and Homogeneous Equations Reduced Row Echelon Form An augmented matrix associated to a system of linear equations is said to be in Reduced Row Echelon Form (RREF) if the

More information

Announcements Wednesday, September 05

Announcements Wednesday, September 05 Announcements Wednesday, September 05 WeBWorK 2.2, 2.3 due today at 11:59pm. The quiz on Friday coers through 2.3 (last week s material). My office is Skiles 244 and Rabinoffice hours are: Mondays, 12

More information

Announcements Wednesday, September 20

Announcements Wednesday, September 20 Announcements Wednesday, September 20 WeBWorK 1.4, 1.5 are due on Wednesday at 11:59pm. The first midterm is on this Friday, September 22. Midterms happen during recitation. The exam covers through 1.5.

More information

4 Elementary matrices, continued

4 Elementary matrices, continued 4 Elementary matrices, continued We have identified 3 types of row operations and their corresponding elementary matrices. To repeat the recipe: These matrices are constructed by performing the given row

More information

Chapter 5. Linear Algebra. A linear (algebraic) equation in. unknowns, x 1, x 2,..., x n, is. an equation of the form

Chapter 5. Linear Algebra. A linear (algebraic) equation in. unknowns, x 1, x 2,..., x n, is. an equation of the form Chapter 5. Linear Algebra A linear (algebraic) equation in n unknowns, x 1, x 2,..., x n, is an equation of the form a 1 x 1 + a 2 x 2 + + a n x n = b where a 1, a 2,..., a n and b are real numbers. 1

More information

MATH10212 Linear Algebra B Homework 6. Be prepared to answer the following oral questions if asked in the supervision class:

MATH10212 Linear Algebra B Homework 6. Be prepared to answer the following oral questions if asked in the supervision class: MATH0 Linear Algebra B Homework 6 Students are strongly advised to acquire a copy of the Textbook: D C Lay, Linear Algebra its Applications Pearson, 006 (or other editions) Normally, homework assignments

More information

MATH10212 Linear Algebra B Homework Week 3. Be prepared to answer the following oral questions if asked in the supervision class

MATH10212 Linear Algebra B Homework Week 3. Be prepared to answer the following oral questions if asked in the supervision class MATH10212 Linear Algebra B Homework Week Students are strongly advised to acquire a copy of the Textbook: D. C. Lay Linear Algebra its Applications. Pearson, 2006. ISBN 0-521-2871-4. Normally, homework

More information

Section 1.1 System of Linear Equations. Dr. Abdulla Eid. College of Science. MATHS 211: Linear Algebra

Section 1.1 System of Linear Equations. Dr. Abdulla Eid. College of Science. MATHS 211: Linear Algebra Section 1.1 System of Linear Equations College of Science MATHS 211: Linear Algebra (University of Bahrain) Linear System 1 / 33 Goals:. 1 Define system of linear equations and their solutions. 2 To represent

More information

Matrices and Systems of Equations

Matrices and Systems of Equations M CHAPTER 4 F 2 2 4 C 4 4 Matrices and Systems of Equations Probably the most important problem in mathematics is that of solving a system of linear equations. Well over 75 percent of all mathematical

More information

MAC Module 1 Systems of Linear Equations and Matrices I

MAC Module 1 Systems of Linear Equations and Matrices I MAC 2103 Module 1 Systems of Linear Equations and Matrices I 1 Learning Objectives Upon completing this module, you should be able to: 1. Represent a system of linear equations as an augmented matrix.

More information

Announcements Wednesday, August 30

Announcements Wednesday, August 30 Announcements Wednesday, August 30 WeBWorK due on Friday at 11:59pm. The first quiz is on Friday, during recitation. It covers through Monday s material. Quizzes mostly test your understanding of the homework.

More information

9.1 - Systems of Linear Equations: Two Variables

9.1 - Systems of Linear Equations: Two Variables 9.1 - Systems of Linear Equations: Two Variables Recall that a system of equations consists of two or more equations each with two or more variables. A solution to a system in two variables is an ordered

More information

POLI270 - Linear Algebra

POLI270 - Linear Algebra POLI7 - Linear Algebra Septemer 8th Basics a x + a x +... + a n x n b () is the linear form where a, b are parameters and x n are variables. For a given equation such as x +x you only need a variable and

More information

Sometimes the domains X and Z will be the same, so this might be written:

Sometimes the domains X and Z will be the same, so this might be written: II. MULTIVARIATE CALCULUS The first lecture covered functions where a single input goes in, and a single output comes out. Most economic applications aren t so simple. In most cases, a number of variables

More information

Linear Algebra (Math-324) Lecture Notes

Linear Algebra (Math-324) Lecture Notes Linear Algebra (Math-324) Lecture Notes Dr. Ali Koam and Dr. Azeem Haider September 24, 2017 c 2017,, Jazan All Rights Reserved 1 Contents 1 Real Vector Spaces 6 2 Subspaces 11 3 Linear Combination and

More information

A First Course in Linear Algebra

A First Course in Linear Algebra A First Course in Li... Authored by Mr. Mohammed K A K... 6.0" x 9.0" (15.24 x 22.86 cm) Black & White on White paper 130 pages ISBN-13: 9781502901811 ISBN-10: 1502901811 Digital Proofer A First Course

More information

UNIVERSITY of PENNSYLVANIA CIS 520: Machine Learning Final, Fall 2013

UNIVERSITY of PENNSYLVANIA CIS 520: Machine Learning Final, Fall 2013 UNIVERSITY of PENNSYLVANIA CIS 520: Machine Learning Final, Fall 2013 Exam policy: This exam allows two one-page, two-sided cheat sheets; No other materials. Time: 2 hours. Be sure to write your name and

More information

Additional Problems for Midterm 1 Review

Additional Problems for Midterm 1 Review Additional Problems for Midterm Review About This Review Set As stated in the syllabus, a goal of this course is to prepare students for more advanced courses that have this course as a pre-requisite.

More information

MATH 2050 Assignment 6 Fall 2018 Due: Thursday, November 1. x + y + 2z = 2 x + y + z = c 4x + 2z = 2

MATH 2050 Assignment 6 Fall 2018 Due: Thursday, November 1. x + y + 2z = 2 x + y + z = c 4x + 2z = 2 MATH 5 Assignment 6 Fall 8 Due: Thursday, November [5]. For what value of c does have a solution? Is it unique? x + y + z = x + y + z = c 4x + z = Writing the system as an augmented matrix, we have c R

More information

Math 102, Winter 2009, Homework 7

Math 102, Winter 2009, Homework 7 Math 2, Winter 29, Homework 7 () Find the standard matrix of the linear transformation T : R 3 R 3 obtained by reflection through the plane x + z = followed by a rotation about the positive x-axes by 6

More information