MAT 1302B Mathematical Methods II

Similar documents
MAT 1302B Mathematical Methods II

MAT 1302B Mathematical Methods II

MAT 1302B Mathematical Methods II

Announcements Monday, September 18

Section 1.5. Solution Sets of Linear Systems

University of Ottawa

MA 242 LINEAR ALGEBRA C1, Solutions to First Midterm Exam

University of Ottawa

Math 3A Winter 2016 Midterm

1. Determine by inspection which of the following sets of vectors is linearly independent. 3 3.

Review for Chapter 1. Selected Topics

MATH 1553, SPRING 2018 SAMPLE MIDTERM 1: THROUGH SECTION 1.5

Week #4: Midterm 1 Review

Announcements Wednesday, September 05

Linear Independence x

Linear Algebra MATH20F Midterm 1

MATH10212 Linear Algebra B Homework Week 4

Math 314H EXAM I. 1. (28 points) The row reduced echelon form of the augmented matrix for the system. is the matrix

Announcements Wednesday, September 20

MATH 1553, C.J. JANKOWSKI MIDTERM 1

Linear Equations in Linear Algebra

MTH 464: Computational Linear Algebra

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

if b is a linear combination of u, v, w, i.e., if we can find scalars r, s, t so that ru + sv + tw = 0.

Announcements Monday, September 17

Chapter 1: Systems of Linear Equations

MATH 152 Exam 1-Solutions 135 pts. Write your answers on separate paper. You do not need to copy the questions. Show your work!!!

Linear Algebra (wi1403lr) Lecture no.3

Linear Algebra. Preliminary Lecture Notes

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

1300 Linear Algebra and Vector Geometry Week 2: Jan , Gauss-Jordan, homogeneous matrices, intro matrix arithmetic

a 1n a 2n. a mn, a n = a 11 a 12 a 1j a 1n a 21 a 22 a 2j a m1 a m2 a mj a mn a 11 v 1 + a 12 v a 1n v n a 21 v 1 + a 22 v a 2n v n

Linear Algebra. Preliminary Lecture Notes

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.

Row Reduction and Echelon Forms

1 Linear systems, existence, uniqueness

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

Problem Sheet 1 with Solutions GRA 6035 Mathematics

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 308 Midterm, Feb 11th 2015 Winter Form Bonus. Possible (6) 63

0.0.1 Section 1.2: Row Reduction and Echelon Forms Echelon form (or row echelon form): 1. All nonzero rows are above any rows of all zeros.

Chapter 1: Linear Equations

Lecture 6: Spanning Set & Linear Independency

Announcements Wednesday, November 15

Chapter 3. Directions: For questions 1-11 mark each statement True or False. Justify each answer.

Linear Equation: a 1 x 1 + a 2 x a n x n = b. x 1, x 2,..., x n : variables or unknowns

Linear Algebra Exam 1 Spring 2007

Math 2802 Applications of Linear Algebra. School of Mathematics Georgia Institute of Technology

LECTURES 4/5: SYSTEMS OF LINEAR EQUATIONS

Solutions of Linear system, vector and matrix equation

Linear Algebra Math 221

1300 Linear Algebra and Vector Geometry

Review Solutions for Exam 1

2018 Fall 2210Q Section 013 Midterm Exam I Solution

MATH 1553 PRACTICE MIDTERM 1 (VERSION A)

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

Chapter 1: Linear Equations

1 Last time: determinants

Announcements Monday, September 25

Check that your exam contains 20 multiple-choice questions, numbered sequentially.

It is the purpose of this chapter to establish procedures for efficiently determining the solution of a system of linear equations.

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

MATH240: Linear Algebra Exam #1 solutions 6/12/2015 Page 1

Linear Combination. v = a 1 v 1 + a 2 v a k v k

Announcements Wednesday, August 30

Solutions to Math 51 First Exam October 13, 2015

web: HOMEWORK 1

5) homogeneous and nonhomogeneous systems 5a) The homogeneous matrix equation, A x = 0 is always consistent.

Abstract Vector Spaces and Concrete Examples

Math 3191 Applied Linear Algebra

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

1 General Tips and Guidelines for Proofs

Announcements Wednesday, August 30

Matrix equation Ax = b

The value of a problem is not so much coming up with the answer as in the ideas and attempted ideas it forces on the would be solver I.N.

Lecture 03. Math 22 Summer 2017 Section 2 June 26, 2017

Solutions to Math 51 Midterm 1 July 6, 2016

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

Math 2114 Common Final Exam May 13, 2015 Form A

Math 301 Test I. M. Randall Holmes. September 8, 2008

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

Math 220: Summer Midterm 1 Questions

Math 102, Winter 2009, Homework 7

Contents. 1 Vectors, Lines and Planes 1. 2 Gaussian Elimination Matrices Vector Spaces and Subspaces 124

Fall 2016 MATH*1160 Final Exam

b for the linear system x 1 + x 2 + a 2 x 3 = a x 1 + x 3 = 3 x 1 + x 2 + 9x 3 = 3 ] 1 1 a 2 a

Section Gaussian Elimination

Math 2331 Linear Algebra

Math 220 Some Exam 1 Practice Problems Fall 2017

APPM 2360 Exam 2 Solutions Wednesday, March 9, 2016, 7:00pm 8:30pm

Math 54. Selected Solutions for Week 5

Mid-term Exam #1 MATH 205, Fall 2014

Week 3 September 5-7.

Math 220 F11 Lecture Notes

Sections 1.5, 1.7. Ma 322 Fall Ma 322. Sept

Announcements Wednesday, November 15

Math 308 Midterm Practice Winter 2015

Linear Algebra Homework and Study Guide

Additional Problems for Midterm 1 Review

Transcription:

MAT 1302B Mathematical Methods II Alistair Savage Mathematics and Statistics University of Ottawa Winter 2015 Lecture 6 Alistair Savage (uottawa) MAT 1302B Mathematical Methods II Winter 2015 Lecture 6 1 / 31

Announcements First Midterm: DGDs: Second class of next week. Covers Lectures 1 6 (up to and including today s lecture). Know your DGD number. You will be asked to write it on your exam. You must use pen, not pencil. No calculators. Bring your student ID. Next week TAs will go through some old/practice exams (available on course webpage). Alistair Savage (uottawa) MAT 1302B Mathematical Methods II Winter 2015 Lecture 6 2 / 31

Three languages: Solution sets Theorem (How to translate) If A is an m n matrix with columns a 1,..., a n and b R m, then 1 the matrix equation A x = b, 2 the vector equation x 1 a 1 + + x n a n = b, and 3 the LS with augmented matrix [ A b ] (1) all have the same solution set. In the above, x 1 x n x =. All of the above solution sets are found by row reducing the augmented matrix in (1). Alistair Savage (uottawa) MAT 1302B Mathematical Methods II Winter 2015 Lecture 6 3 / 31

Three languages: Existence of solutions Theorem (How to translate) Suppose A is an m n matrix with columns a 1,..., a n, and b R m. then the following statements are equivalent: 1 The matrix equation A x = b has a solution. 2 The vector equation x 1 a 1 + + x n a n = b has a solution. 3 b is a linear combination of a1,..., a n. 4 b is in Span{ a1,..., a n }. [ 5 The LS with augmented matrix A b ] has a solution. So there are 5 ways [ of asking] the same question! All are answered by row reducing the matrix A b to see if the rightmost column is a pivot column. Alistair Savage (uottawa) MAT 1302B Mathematical Methods II Winter 2015 Lecture 6 4 / 31

Equivalent questions: example Suppose a 1 = (4, 7, 1), a 2 = ( 3, 8, 5), a 3 = (2, 0, 1), b = (0, 1, 6). Question 1: Is b a linear combination of a 1, a 2, a 3? Question 2: Is b in Span{ a 1, a 2, a 3 }? Question 3: Does the following vector equation have a solution? x 1 a 1 + x 2 a 2 + x 3 a 3 = b [ 4 3 ] 2 Question 4: Does the matrix equation A x = b with A = 7 8 0 1 5 1 have a solution? Question 5: Does the following linear system have a solution? 4x 1 3x 2 + 2x 3 = 0 7x 1 + 8x 2 = 1 x 1 + 5x 2 + x 3 = 6 Alistair Savage (uottawa) MAT 1302B Mathematical Methods II Winter 2015 Lecture 6 5 / 31

Equivalent questions: example [ We solve all of these questions by row reducing the matrix A [ A b ] = 4 3 2 0 7 8 0 1 1 5 1 6 row reduce b ] : 1 0 0 109/139 0 1 0 78/139 0 0 1 335/139 Since the system is consistent, the answer to all the questions is YES. Alistair Savage (uottawa) MAT 1302B Mathematical Methods II Winter 2015 Lecture 6 6 / 31

Example Suppose 3 0 3 a 1 = 1, a 2 = 1, a 3 = 0, 2 1 1 6 b = 1. 3 If possible, express b as a linear combination of a 1, a 2, and a 3. Solution: We row reduce: 3 0 3 6 1 1 0 1 2 1 1 3 The general solution is row reduce 1 0 1 2 0 1 1 1 0 0 0 0 x 1 + x 3 = 2 x 1 = 2 x 3 x 2 x 3 = 1 x 2 = 1 + x 3 x 3 free Alistair Savage (uottawa) MAT 1302B Mathematical Methods II Winter 2015 Lecture 6 7 / 31

Example (cont.) General solution: x 1 = 2 x 3 x 2 = 1 + x 3 x 3 free Since we are asked to express b as a linear combination of a 1, a 2, a 3, any solution will do. So we can pick any value for x 3 we like. Let s take x 3 = 0. Then x 1 = 2, x 2 = 1. Then we have 3 0 6 2 a 1 a 2 + 0 a 3 = 2 1 1 + 0 = 1 = b 2 1 3 Other choices for x 3 give other answers. Alistair Savage (uottawa) MAT 1302B Mathematical Methods II Winter 2015 Lecture 6 8 / 31

Example 2 0 1 a 1 = 2, a 2 = 1, a 3 = 1, 4 1 0 b 1 b = b 2 b 3 For which values of b 1, b 2, b 3 is b Span{ a 1, a 2, a 3 }? Solution: We row reduce: 2 0 1 b 1 2 1 1 b 2 4 1 0 b 3 R 2 +R 3 R 1 +R 2 2R 1 +R 3 2 0 1 b 1 0 1 2 b 1 + b 2 0 1 2 2b 1 + b 3 2 0 1 b 1 0 1 2 b 1 + b 2 0 0 0 b 1 b 2 + b 3 The system is consistent if and only if b 1 b 2 + b 3 = 0. Therefore, b Span{ a 1, a 2, a 3 } if and only if b 1 b 2 + b 3 = 0. Alistair Savage (uottawa) MAT 1302B Mathematical Methods II Winter 2015 Lecture 6 9 / 31

Today: Overview Three languages: Linear systems Vector equations Matrix equations Up to now, our final descriptions of solution sets have been in the language of linear systems (at least for solution sets with free variables) We want to complete this picture by describing solution sets in terms of vectors. Alistair Savage (uottawa) MAT 1302B Mathematical Methods II Winter 2015 Lecture 6 10 / 31

Homogeneous linear systems Definition A LS is homogeneous if it can be written in the form A x = 0 where A is an m n matrix and 0 R m. A homogenous system always has the solution x = 0 R n, called the trivial solution. A nontrivial solution is a solution x 0. Theorem The homogeneous equation A x = 0 has a nontrivial solution iff it has at least one free variable. Reason: Every LS has 0, 1 or infinitely many solutions! Alistair Savage (uottawa) MAT 1302B Mathematical Methods II Winter 2015 Lecture 6 11 / 31

Example The linear system 3x 1 + 2x 2 + 4x 4 = 0 x 1 + 10x 3 8x 4 = 0 x 2 x 3 + x 4 = 0 is homogenous. This system is consistent (it has at least the trivial solution x 1 = x 2 = x 3 = x 4 = 0). To find out if it has nontrivial solutions, we d have to row reduce and see if there are free variables. Example 3x 1 + 2x 2 + 4x 4 = 0 x 1 + 10x 3 8x 4 = 4 x 2 x 3 + x 4 = 2 is not a homogenous system. To know if this system is consistent or inconsistent, we would have to row reduce. Alistair Savage (uottawa) MAT 1302B Mathematical Methods II Winter 2015 Lecture 6 12 / 31

Example Consider the linear system: 2x 1 + 6x 2 x 3 = 0 4x 1 + 3x 2 + 2x 3 = 0 6x 1 5x 2 + 3x 3 = 0 We write down the augmented matrix and row reduce: 1 2 6 1 0 1 0 4 3 2 0 row reduce 2 0 0 1 0 0 6 5 3 0 0 0 0 0 So the general solution is x 1 + 1 2 x 3 = 0 x 2 = 0 0 = 0 x 1 = 1 2 x 3 x 2 = 0 x 3 free Since there are free variables, the system has nontrivial solutions. Alistair Savage (uottawa) MAT 1302B Mathematical Methods II Winter 2015 Lecture 6 13 / 31

Example (cont.) So the general solution to A x = 0, where A is the coefficient matrix of the above LS has the form x 1 1 2 x 3 1 2 1 2 x = x 2 = 0 = x 3 0 = x 3 v, where v = 0. x 3 x 3 1 1 This is the vector parametric form of the solution. x 3 Span{ v} v x 2 x 1 The solution set is Span{ v}, the line through 0 and v. It consists of all scalar multiples of v. The trivial solution corresponds to the zero multiple (x 3 = 0). Alistair Savage (uottawa) MAT 1302B Mathematical Methods II Winter 2015 Lecture 6 14 / 31

Another example Consider the equation (also a LS) The solution set is given by 3x 1 2x 2 5x 3 = 0 x 1 = 2 3 x 2 + 5 3 x 3 x 2, x 3 free So the general solution is 2 x 1 3 x 2 + 5 3 x 2 3 3 x 5 2 3 x 3 x = x 2 = x 2 = x 2 + 0 x 3 x 3 0 x 3 2 5 3 3 = x 2 1 + x 3 0, x 2, x 3 R vector parametric form 0 1 Alistair Savage (uottawa) MAT 1302B Mathematical Methods II Winter 2015 Lecture 6 15 / 31

Another example (cont.) So the general solution is 2 5 ( ) ( ) 3 3 x 2 1 + x 3 0 2 5 = x 2 u + x 3 v, where u = 3, 1, 0, v = 3, 0, 1 0 1 where x 2, x 3 can be any scalars. x 3 So the solution set is Span{ u, v} v x 1 u x 2 Alistair Savage (uottawa) MAT 1302B Mathematical Methods II Winter 2015 Lecture 6 16 / 31

Solutions to homogeneous systems Description in terms of Span The solution set of a homogeneous system can always be written in the form Span{ v 1,..., v p } for some vectors v 1,..., v p. To find the set of vectors {v 1,..., v p } we: solve the linear system as usual, write the solution in vector notation, (replace basic variables by their expressions in terms of free variables), split the vector into a sum, one term for each free variable, and factor out the free variables the vectors appearing yield the set. E.g. x 1 x =. = x 1 [. ] ] + x 4 [. (if x 1 and x 4 are the free variables) x n Alistair Savage (uottawa) MAT 1302B Mathematical Methods II Winter 2015 Lecture 6 17 / 31

Solutions to homogeneous systems Important note: The above is only true for homogeneous systems! For example, the system x = 1 y = 2 has the unique solution (x, y) = (1, 2) and this solution set is not the span of a set of vectors (for instance, 0 is always in any span). Another note: If a homogenous system has only the trivial solution, the solution set is Span{ 0}. Alistair Savage (uottawa) MAT 1302B Mathematical Methods II Winter 2015 Lecture 6 18 / 31

Nonhomogeneous systems Example: Describe all solutions of A x = b where 1 1 2 3 A = 1 3 6, b = 5. 2 1 5 4 Solution: We first row reduce: 1 1 2 3 1 3 6 5 2 1 5 4 Then we write the general solution: row reduce 1 0 3 1 0 1 1 2 0 0 0 0 x 1 + 3x 3 = 1 x 1 = 1 3x 3 x 2 x 3 = 2 x 2 = 2 + x 3 0 = 0 x 3 free Alistair Savage (uottawa) MAT 1302B Mathematical Methods II Winter 2015 Lecture 6 19 / 31

Then we switch to vector notation: x 1 = 1 3x 3 x 1 1 3x 3 1 3 x 2 = 2 + x 3 x = x 2 = 2 + x 3 = 2 +x 3 1, x 3 free x 3 x 3 0 1 So the vector parametric form of the general solution is x = p + t v, t R x 3 R where p = (1, 2, 0) and v = ( 3, 1, 1). Note: We have replaced x 3 by a parameter t. x 3 v x 2 The solution set is a line p through p, parallel to v. x 1 Solution set Alistair Savage (uottawa) MAT 1302B Mathematical Methods II Winter 2015 Lecture 6 20 / 31

Homogeneous and nonhomogeneous systems Question What is the relationship between homogeneous and nonhomogeneous systems? In our previous example, we solved A x = b and described the solution set as x = p + t v, t R. If we solved the corresponding homogeneous system A x = 0 we would get the solution (same A as above) x = t v, t R (same v as above). Note: The only difference is the presence of the vector p, which is a solution of the nonhomogeneous system (corresponding to parameter value t = 0). Alistair Savage (uottawa) MAT 1302B Mathematical Methods II Winter 2015 Lecture 6 21 / 31

Homogenous and nonhomogeneous systems Theorem If A x = b is consistent and p is any solution, then full the solution set is the set of all vectors of the form w = p + v h where v h is any solution of the corresponding homogeneous equation A x = 0. Notation In the above, p is called a particular solution. So if we know all the solutions to the homogenous system (obtained by setting the constant terms to zero), then we get all the solutions to the nonhomogeneous system just by adding any particular solution p to them all! Alistair Savage (uottawa) MAT 1302B Mathematical Methods II Winter 2015 Lecture 6 22 / 31

Advantages The relation between homogeneous and nonhomogeneous systems can save us a lot of time. Question Suppose we have to solve a bunch of systems with the same coefficients but different constant terms. How could we do this efficiently? Answer 1 Solve the corresponding homogenous system. 2 For each system find one particular solution (sometimes this is easy to do by inspection). 3 Add the particular solutions to the solution set of the homogenous system. Alistair Savage (uottawa) MAT 1302B Mathematical Methods II Winter 2015 Lecture 6 23 / 31

Geometric interpretation x 3 A x = b A x = 0 p x 2 x 1 The solution set of A x = b is obtained by shifting the solution set of A x = 0 by a particular solution p (i.e. vector satisfying A p = b). Note: We can shift by any particular solution (green arrows represent other choices). Alistair Savage (uottawa) MAT 1302B Mathematical Methods II Winter 2015 Lecture 6 24 / 31

Another example Find the solution set to the matrix equation 1 2 1 2 5 1 2 3 4 x = 13. 2 4 0 10 2 Write the answer in vector parametric form. Solution: 1 2 1 2 5 1 2 3 4 13 2 4 0 10 2 The general solution is row reduce 1 2 0 5 1 0 0 1 3 4 0 0 0 0 0 x 1 = 2x 2 5x 4 1 x 3 = 3x 4 + 4 x 2, x 4 free Alistair Savage (uottawa) MAT 1302B Mathematical Methods II Winter 2015 Lecture 6 25 / 31

We switch to vector notation: x 1 2x 2 5x 4 1 x = x 2 x 3 = x 2 3x 4 + 4 x 4 x 4 = 1 0 4 0 2 5 + x 1 2 0 + x 0 4 3, 0 1 x 2, x 4 R Question: What is the solution set to the corresponding homogeneous equation 1 2 1 2 0 1 2 3 4 x = 0 2 4 0 10 0 (same equation but with zeros on the right)? Answer: We just remove the particular solution. The solution set is 2 5 2 5 Span 1 0, 0 3 = s 1 0 + t 0 3 s, t R 0 1 0 1 Alistair Savage (uottawa) MAT 1302B Mathematical Methods II Winter 2015 Lecture 6 26 / 31

How to find the vector equation of a line Question: What is the vector with tail at point a and tip at point b? b a a b Example Vector with tip at point (3, 1, 5) and tail at ( 2, 0, 8) is v = (3 ( 2), 1 0, 5 8) = (5, 1, 3). Alistair Savage (uottawa) MAT 1302B Mathematical Methods II Winter 2015 Lecture 6 27 / 31

How to find the vector equation of a line Procedure To find the vector equation of a line 1 Find a vector v parallel to the line (can use any two points on the line and find the vector from one to the other as above). 2 Find a point p on the line. 3 The vector equation is then p + t v, t R. x 1 v x 2 p x 3 Alistair Savage (uottawa) MAT 1302B Mathematical Methods II Winter 2015 Lecture 6 28 / 31

Example Question: Find the vector equation of the line through the points (2, 0, 3) and ( 1, 1, 2). Answer: A vector parallel to the line is A point on the line is Therefore, the vector equation is v = (2, 0, 3) ( 1, 1, 2) = (3, 1, 1). p = (2, 0, 3). (2, 0, 3) + t(3, 1, 1), t R. Note: There are lots of vector equations of any given line. Example: Another vector equation of the above line is ( 1, 1, 2) + t(3, 1, 1), t R. Alistair Savage (uottawa) MAT 1302B Mathematical Methods II Winter 2015 Lecture 6 29 / 31

Weekend problem goat You re on a game show There are 3 closed doors Behind 2 doors are goats, behind the other is 1 million dollars You choose a door (it remains closed) The host opens a door you did not choose, showing you a goat You are given a choice: stick with your original choice or switch to the other unopened door What should you do? Does it make any difference? Alistair Savage (uottawa) MAT 1302B Mathematical Methods II Winter 2015 Lecture 6 30 / 31

Next time For next time: Read Section LI Discuss homogeneous equations in the language of vector equations Linear dependence/independence Important: Students often find linear dependence a difficult topic. So read the section before class! Alistair Savage (uottawa) MAT 1302B Mathematical Methods II Winter 2015 Lecture 6 31 / 31