SLIDE 1
Linear algebra and differential equations (Math 54): Lecture 1 - - PowerPoint PPT Presentation
Linear algebra and differential equations (Math 54): Lecture 1 - - PowerPoint PPT Presentation
Linear algebra and differential equations (Math 54): Lecture 1 Vivek Shende January 22, 2019 Hello and welcome to class! I am Vivek Shende I will be teaching you this semester. My office hours 2-4 pm on Friday, 873 Evans hall. Come ask
SLIDE 2
SLIDE 3
Some administrative details:
Enrolling in the class/sections:
Thomas Brown, 965 Evans Hall, brown@math.berkeley.edu
The book
Lay, Linear Algebra Nagle, Saff and Snider, Fundamentals of Differential Equations (combined Berkeley custom edition)
Prerequisites
Math 1b, 10b, or equivalent. Warning: Math 1b covers more than a seemingly analogous class at another university might, especially including some exposure to differential equations.
SLIDE 4
Grading
Your grade is determined by the homework (10%), quizzes (10%), midterms (20% each), and final (40%).
Homework
One assignment per lecture, due 6 days after, in section.
Quizzes
Every thursday, in section.
Exams
Two in-class midterms (Feb. 14 and Mar. 21), and the final exam (May 16, 7-10 pm).
SLIDE 5
Makeup policy
There are no makeups for any reason
Instead,
◮ The two lowest homework grades and quiz grades will be
dropped.
◮ The lowest midterm grade will be replaced by the final exam
grade, if it is higher. If you miss both mitderms, or the final, you will fail the class. Incompletes will be offered only if a medical emergency causes you to miss the final, and then only if your work until that point has been satisfactory.
SLIDE 6
Website
http://math.berkeley.edu/~vivek/54.html The website has a full syllabus, including all of the above All homework assignments for the semester are posted now. I will also post the slides on the website after each class. We will also use bcourses and piazza.
SLIDE 7
What is linear algebra?
SLIDE 8
What is linear algebra?
In its most concrete form
Linear algebra is the study of systems of equations like this one: x + 2y + 3z = 6 x − y + z = 1 2x + 3y + 4z = 9
SLIDE 9
What is linear algebra?
In its most concrete form
Linear algebra is the study of systems of equations like this one: x + 2y + 3z = 6 x − y + z = 1 2x + 3y + 4z = 9
We will spend the first few days on the concrete manipulation
- f such equations
But let me give you a hint of what is to come:
SLIDE 10
What is linear algebra?
Systems of equations have a geometric meaning:
The region where each equation is satisfied is a plane, so the simultaneous solution to all the equations is where the planes intersect.
SLIDE 11
What is linear algebra?
Systems of equations have a geometric meaning:
Linear algebra is the basic tool for understanding such geometric configurations, say in computer graphics or computer vision.
SLIDE 12
What is linear algebra?
More abstractly, linear algebra is the study of transformations
- f spaces which carry lines to lines.
SLIDE 13
What is linear algebra?
More abstractly, linear algebra is the study of transformations
- f spaces which carry lines to lines.
What is a space?
SLIDE 14
What is linear algebra?
More abstractly, linear algebra is the study of transformations
- f spaces which carry lines to lines.
What is a space? What is a line?
SLIDE 15
What is linear algebra?
More abstractly, linear algebra is the study of transformations
- f spaces which carry lines to lines.
What is a space? What is a line? What is a transformation?
SLIDE 16
What is linear algebra?
More abstractly, linear algebra is the study of transformations
- f spaces which carry lines to lines.
What is a space? What is a line? What is a transformation?
We will not try to give the general answers yet.
First we will study many examples of the above phenomenon.
SLIDE 17
What is linear algebra?
The more abstract perspective is worth the effort.
Many phenomena are linear in this abstract sense, and they all can be studied concretely using systems of linear equations.
SLIDE 18
What is linear algebra?
The more abstract perspective is worth the effort.
Many phenomena are linear in this abstract sense, and they all can be studied concretely using systems of linear equations.
Schr¨
- dinger’s equation for a quantum mechanical particle:
SLIDE 19
What is linear algebra?
The more abstract perspective is worth the effort.
Many phenomena are linear in this abstract sense, and they all can be studied concretely using systems of linear equations.
Schr¨
- dinger’s equation for a quantum mechanical particle:
i ∂ ∂t Ψ(x, t) =
- − 2
2µ∇2 + V (x, t)
- Ψ(x, t)
SLIDE 20
What is linear algebra?
The more abstract perspective is worth the effort.
Many phenomena are linear in this abstract sense, and they all can be studied concretely using systems of linear equations.
Schr¨
- dinger’s equation for a quantum mechanical particle:
i ∂ ∂t Ψ(x, t) =
- − 2
2µ∇2 + V (x, t)
- Ψ(x, t)
Here the space is a space of functions which might be our desired Ψ(x, t),
SLIDE 21
What is linear algebra?
The more abstract perspective is worth the effort.
Many phenomena are linear in this abstract sense, and they all can be studied concretely using systems of linear equations.
Schr¨
- dinger’s equation for a quantum mechanical particle:
i ∂ ∂t Ψ(x, t) =
- − 2
2µ∇2 + V (x, t)
- Ψ(x, t)
Here the space is a space of functions which might be our desired Ψ(x, t), and the linear transformations are the partial differential
- perators i ∂
∂t and − 2 2µ∇2 + V (
x, t).
SLIDE 22
What is linear algebra?
But this equation is still linear!
And by the end of the class, Schr¨
- dinger’s equation
SLIDE 23
What is linear algebra?
But this equation is still linear!
And by the end of the class, Schr¨
- dinger’s equation
i ∂ ∂t Ψ(x, t) =
- − 2
2µ∇2 + V (x, t)
- Ψ(x, t)
SLIDE 24
What is linear algebra?
But this equation is still linear!
And by the end of the class, Schr¨
- dinger’s equation
i ∂ ∂t Ψ(x, t) =
- − 2
2µ∇2 + V (x, t)
- Ψ(x, t)
will look no worse to you than this one:
SLIDE 25
What is linear algebra?
But this equation is still linear!
And by the end of the class, Schr¨
- dinger’s equation
i ∂ ∂t Ψ(x, t) =
- − 2
2µ∇2 + V (x, t)
- Ψ(x, t)
will look no worse to you than this one: x + 2y + 3z = 6 x − y + z = 1 2x + 3y + 4z = 9
SLIDE 26
What is linear algebra?
Many phenomena are approximately linear:
SLIDE 27
What is linear algebra?
Many phenomena are approximately linear:
SLIDE 28
What is linear algebra?
Many phenomena are approximately linear:
Discovering such statistical linearities plays a major role in the experimental sciences of all kinds, and in search algorithms and economic forecasting.
SLIDE 29
What is linear algebra?
Many phenomena are approximately linear:
SLIDE 30
What is linear algebra?
Many phenomena are approximately linear:
SLIDE 31
What is linear algebra?
Many phenomena are approximately linear:
Linear algebra is the language for discussing the differential and integral calculus, especially in higher dimensions.
SLIDE 32
What will you learn in this class?
SLIDE 33
What will you learn in this class?
Concrete procedures for manipulating linear equations
SLIDE 34
What will you learn in this class?
Concrete procedures for manipulating linear equations Abstract notions capturing and organizing the idea of linearity
SLIDE 35
What will you learn in this class?
Concrete procedures for manipulating linear equations Abstract notions capturing and organizing the idea of linearity Many real world examples of linear phenomena, especially in the form of differential equations
SLIDE 36
What will you learn in this class?
Concrete procedures for manipulating linear equations Abstract notions capturing and organizing the idea of linearity Many real world examples of linear phenomena, especially in the form of differential equations It
SLIDE 37
What will you learn in this class?
Concrete procedures for manipulating linear equations Abstract notions capturing and organizing the idea of linearity Many real world examples of linear phenomena, especially in the form of differential equations It will
SLIDE 38
What will you learn in this class?
Concrete procedures for manipulating linear equations Abstract notions capturing and organizing the idea of linearity Many real world examples of linear phenomena, especially in the form of differential equations It will be
SLIDE 39
What will you learn in this class?
Concrete procedures for manipulating linear equations Abstract notions capturing and organizing the idea of linearity Many real world examples of linear phenomena, especially in the form of differential equations It will be a
SLIDE 40
What will you learn in this class?
Concrete procedures for manipulating linear equations Abstract notions capturing and organizing the idea of linearity Many real world examples of linear phenomena, especially in the form of differential equations It will be a lot
SLIDE 41
What will you learn in this class?
Concrete procedures for manipulating linear equations Abstract notions capturing and organizing the idea of linearity Many real world examples of linear phenomena, especially in the form of differential equations It will be a lot of
SLIDE 42
What will you learn in this class?
Concrete procedures for manipulating linear equations Abstract notions capturing and organizing the idea of linearity Many real world examples of linear phenomena, especially in the form of differential equations It will be a lot of work
SLIDE 43
What will you learn in this class?
Concrete procedures for manipulating linear equations Abstract notions capturing and organizing the idea of linearity Many real world examples of linear phenomena, especially in the form of differential equations It will be a lot of work — both in terms of the raw amount of new concepts to process, and correspondingly, in terms of the number
- f exercises assigned to help you master them (20-30 per week) —
SLIDE 44
What will you learn in this class?
Concrete procedures for manipulating linear equations Abstract notions capturing and organizing the idea of linearity Many real world examples of linear phenomena, especially in the form of differential equations It will be a lot of work — both in terms of the raw amount of new concepts to process, and correspondingly, in terms of the number
- f exercises assigned to help you master them (20-30 per week) —
but you will leave this class equipped with a powerful conceptual framework on which the vast majority of mathematics, science, engineering, etc., depend.
SLIDE 45
Let’s get to work
SLIDE 46
Linear equations
SLIDE 47
Linear equations
Example.
The equation x + 2y + 3z = 6 is linear in x, y, z.
SLIDE 48
Linear equations
Example.
The equation x + 2y + 3z = 6 is linear in x, y, z.
- Definition. An equation in variables x1, x2, . . . , xn is linear if it can
be put in the form
SLIDE 49
Linear equations
Example.
The equation x + 2y + 3z = 6 is linear in x, y, z.
- Definition. An equation in variables x1, x2, . . . , xn is linear if it can
be put in the form a1x1 + a2x2 + · · · + anxn = b
SLIDE 50
Linear equations
Example.
The equation x + 2y + 3z = 6 is linear in x, y, z.
- Definition. An equation in variables x1, x2, . . . , xn is linear if it can
be put in the form a1x1 + a2x2 + · · · + anxn = b where a1, a2, . . . , an and b do not depend on any of the xi.
SLIDE 51
Linear equations
Example.
The equation x + 2y + 3z = 6 is linear in x, y, z.
- Definition. An equation in variables x1, x2, . . . , xn is linear if it can
be put in the form a1x1 + a2x2 + · · · + anxn = b where a1, a2, . . . , an and b do not depend on any of the xi. Usually, the ai and b will just be explicit real or complex numbers.
SLIDE 52
Linear equations
- Definition. An equation in variables x1, x2, . . . , xn is linear if it can
be put in the form a1x1 + a2x2 + · · · + anxn = b where a1, a2, . . . , an and b do not depend on any of the xi. Usually, the ai and b will just be explicit real or complex numbers.
Nonexample.
The equation x3 = 6 is not linear in x.
SLIDE 53
Linear equations
- Definition. An equation in variables x1, x2, . . . , xn is linear if it can
be put in the form a1x1 + a2x2 + · · · + anxn = b where a1, a2, . . . , an and b do not depend on any of the xi. Usually, the ai and b will just be explicit real or complex numbers.
Nonexample.
The equation x3 = 6 is not linear in x. You might try writing it as (x2)x = 6 and pretend x2 is a coefficient, but this is no good because x2 depends on x.
SLIDE 54
Linear equations
- Definition. An equation in variables x1, x2, . . . , xn is linear if it can
be put in the form a1x1 + a2x2 + · · · + anxn = b where a1, a2, . . . , an and b do not depend on any of the xi. Usually, the ai and b will just be explicit real or complex numbers.
Example-nonexample.
The equation xy = 1 is “linear in the variable x”, and it is “linear in the variable y”, but it is not “linear in the variables x and y”.
SLIDE 55
Try it yourself!
Which of these equations are linear in x1, x2, . . . , xn?
◮ x1 = 5
SLIDE 56
Try it yourself!
Which of these equations are linear in x1, x2, . . . , xn?
◮ x1 = 5 linear
SLIDE 57
Try it yourself!
Which of these equations are linear in x1, x2, . . . , xn?
◮ x1 = 5 linear ◮ x1 + x2 + · · · + xn = 1
SLIDE 58
Try it yourself!
Which of these equations are linear in x1, x2, . . . , xn?
◮ x1 = 5 linear ◮ x1 + x2 + · · · + xn = 1 linear
SLIDE 59
Try it yourself!
Which of these equations are linear in x1, x2, . . . , xn?
◮ x1 = 5 linear ◮ x1 + x2 + · · · + xn = 1 linear ◮ 4x1 + 17x2 = −x3
SLIDE 60
Try it yourself!
Which of these equations are linear in x1, x2, . . . , xn?
◮ x1 = 5 linear ◮ x1 + x2 + · · · + xn = 1 linear ◮ 4x1 + 17x2 = −x3 linear
SLIDE 61
Try it yourself!
Which of these equations are linear in x1, x2, . . . , xn?
◮ x1 = 5 linear ◮ x1 + x2 + · · · + xn = 1 linear ◮ 4x1 + 17x2 = −x3 linear ◮ 4x1 + 17x2 = −x3 cos(s)
SLIDE 62
Try it yourself!
Which of these equations are linear in x1, x2, . . . , xn?
◮ x1 = 5 linear ◮ x1 + x2 + · · · + xn = 1 linear ◮ 4x1 + 17x2 = −x3 linear ◮ 4x1 + 17x2 = −x3 cos(s) linear
SLIDE 63
Try it yourself!
Which of these equations are linear in x1, x2, . . . , xn?
◮ x1 = 5 linear ◮ x1 + x2 + · · · + xn = 1 linear ◮ 4x1 + 17x2 = −x3 linear ◮ 4x1 + 17x2 = −x3 cos(s) linear ◮ x1 + x2 + · · · + xn = x1x2 · · · xn
SLIDE 64
Try it yourself!
Which of these equations are linear in x1, x2, . . . , xn?
◮ x1 = 5 linear ◮ x1 + x2 + · · · + xn = 1 linear ◮ 4x1 + 17x2 = −x3 linear ◮ 4x1 + 17x2 = −x3 cos(s) linear ◮ x1 + x2 + · · · + xn = x1x2 · · · xn nonlinear
SLIDE 65
Try it yourself!
Which of these equations are linear in x1, x2, . . . , xn?
◮ x1 = 5 linear ◮ x1 + x2 + · · · + xn = 1 linear ◮ 4x1 + 17x2 = −x3 linear ◮ 4x1 + 17x2 = −x3 cos(s) linear ◮ x1 + x2 + · · · + xn = x1x2 · · · xn nonlinear ◮ x1/x2 = 4
SLIDE 66
Try it yourself!
Which of these equations are linear in x1, x2, . . . , xn?
◮ x1 = 5 linear ◮ x1 + x2 + · · · + xn = 1 linear ◮ 4x1 + 17x2 = −x3 linear ◮ 4x1 + 17x2 = −x3 cos(s) linear ◮ x1 + x2 + · · · + xn = x1x2 · · · xn nonlinear ◮ x1/x2 = 4 I will try not to ask this question on an exam
SLIDE 67
Try it yourself!
Which of these equations are linear in x1, x2, . . . , xn?
◮ x1 = 5 linear ◮ x1 + x2 + · · · + xn = 1 linear ◮ 4x1 + 17x2 = −x3 linear ◮ 4x1 + 17x2 = −x3 cos(s) linear ◮ x1 + x2 + · · · + xn = x1x2 · · · xn nonlinear ◮ x1/x2 = 4 I will try not to ask this question on an exam
The equation x1/x2 = 4 is equivalent to the equation x1 = 4x2, subject to the condition that x2 = 0. Depending on the context,
- ne might or might not want to call this linear.
SLIDE 68
Systems of linear equations
- Definition. A system of linear equations in x1, x2, . . . , xn is a finite
collection of linear equations in x1, x2 . . . , xn.
SLIDE 69
Systems of linear equations
- Definition. A system of linear equations in x1, x2, . . . , xn is a finite
collection of linear equations in x1, x2 . . . , xn. It is helpful to “line up the x’s” and write such systems in the form a11x1 + a12x2 + · · · + a1nxn = b1 a21x1 + a22x2 + · · · + a2nxn = b2 . . . am1x1 + am2x2 + · · · + amnxn = bm
SLIDE 70
Systems of linear equations
- Definition. A system of linear equations in x1, x2, . . . , xn is a finite
collection of linear equations in x1, x2 . . . , xn. It is helpful to “line up the x’s” and write such systems in the form a11x1 + a12x2 + · · · + a1nxn = b1 a21x1 + a22x2 + · · · + a2nxn = b2 . . . am1x1 + am2x2 + · · · + amnxn = bm We say this is a system of m linear equations in n unknowns.
SLIDE 71
Systems of linear equations: examples
We now have a description for our old friend
SLIDE 72
Systems of linear equations: examples
We now have a description for our old friend x + 2y + 3z = 6 x − y + z = 1 2x + 3y + 4z = 9
SLIDE 73
Systems of linear equations: examples
We now have a description for our old friend x + 2y + 3z = 6 x − y + z = 1 2x + 3y + 4z = 9 It is a system of 3 linear equations in 3 unknowns (namely x, y, z).
SLIDE 74
Systems of linear equations: examples
An example of 2 equations in 3 unknowns
x + y + z = x + y = 1
SLIDE 75
Systems of linear equations: examples
An example of 2 equations in 3 unknowns
x + y + z = x + y = 1
An example of 2 equations in 1 unknown
x = 1 x = 2
SLIDE 76
Solutions of systems of linear equations
- Definition. The set of solutions to a system of linear equations in
x1, . . . , xn is the set of all tuples of numbers (s1, . . . , sn) such that substituting si for xi gives an identity.
SLIDE 77
Solutions of systems of linear equations
- Definition. The set of solutions to a system of linear equations in
x1, . . . , xn is the set of all tuples of numbers (s1, . . . , sn) such that substituting si for xi gives an identity.
Examples.
SLIDE 78
Solutions of systems of linear equations
- Definition. The set of solutions to a system of linear equations in
x1, . . . , xn is the set of all tuples of numbers (s1, . . . , sn) such that substituting si for xi gives an identity.
Examples.
◮ The equation x1 = 5 has solution set {5}.
SLIDE 79
Solutions of systems of linear equations
- Definition. The set of solutions to a system of linear equations in
x1, . . . , xn is the set of all tuples of numbers (s1, . . . , sn) such that substituting si for xi gives an identity.
Examples.
◮ The equation x1 = 5 has solution set {5}. ◮ The system x1 = 2 and x1 + x2 = 7 has solution set {(2, 5)}.
SLIDE 80
Solutions of systems of linear equations
- Definition. The set of solutions to a system of linear equations in
x1, . . . , xn is the set of all tuples of numbers (s1, . . . , sn) such that substituting si for xi gives an identity.
Examples.
◮ The equation x1 = 5 has solution set {5}. ◮ The system x1 = 2 and x1 + x2 = 7 has solution set {(2, 5)}. ◮ The system x1 = 2 and x1 = 7 has the empty solution set.
SLIDE 81
Solutions of systems of linear equations
- Definition. The set of solutions to a system of linear equations in
x1, . . . , xn is the set of all tuples of numbers (s1, . . . , sn) such that substituting si for xi gives an identity.
Examples.
◮ The equation x1 = 5 has solution set {5}. ◮ The system x1 = 2 and x1 + x2 = 7 has solution set {(2, 5)}. ◮ The system x1 = 2 and x1 = 7 has the empty solution set. ◮ The system x1 + x2 = 0 has the solution set {(s, −s)} where s
takes any value.
SLIDE 82
Consistency and inconsistency.
- Definition. A system of linear equations is consistent if it has
solutions, and inconsistent otherwise. We saw examples of both consistent and inconsistent systems
- already. In all the examples so far, there were either 0, 1, or ∞
- solutions. We will learn soon that this is always the case.
SLIDE 83
Try it yourself!
Find all solutions to the following. Is it a consistent system? How many solutions are there? x = 1 x = 2
SLIDE 84
Try it yourself!
Find all solutions to the following. Is it a consistent system? How many solutions are there? x = 1 x = 2 The solution set is the empty set. The system is inconsistent, with zero solutions.
SLIDE 85
Try it yourself!
Find all solutions to the following. Is it a consistent system? How many solutions are there? x + y + z = x + y = 1
SLIDE 86
Try it yourself!
Find all solutions to the following. Is it a consistent system? How many solutions are there? x + y + z = x + y = 1 The solution set of possible (x, y, z) is {(s, 1 − s, −1) | any number s} The system is consistent, with infinitely many solutions.
SLIDE 87
I’ll do one
Find the solution set. Is it a consistent system? How many solutions are there? x + 2y + 3z = 6 x − y + z = 1 2x + 3y + 4z = 9
SLIDE 88
Solving a system
Here is one way to arrive at the solution. Of the equations, x + 2y + 3z = 6 x − y + z = 1 2x + 3y + 4z = 9
SLIDE 89
Solving a system
Here is one way to arrive at the solution. Of the equations, x + 2y + 3z = 6 x − y + z = 1 2x + 3y + 4z = 9 we can pick one, say x − y + z = 1,
SLIDE 90
Solving a system
Here is one way to arrive at the solution. Of the equations, x + 2y + 3z = 6 x − y + z = 1 2x + 3y + 4z = 9 we can pick one, say x − y + z = 1, and use it to express x in terms of the other variables:
SLIDE 91
Solving a system
Here is one way to arrive at the solution. Of the equations, x + 2y + 3z = 6 x − y + z = 1 2x + 3y + 4z = 9 we can pick one, say x − y + z = 1, and use it to express x in terms of the other variables: x = 1 + y − z.
SLIDE 92
Solving a system
Here is one way to arrive at the solution. Of the equations, x + 2y + 3z = 6 x − y + z = 1 2x + 3y + 4z = 9 we can pick one, say x − y + z = 1, and use it to express x in terms of the other variables: x = 1 + y − z. Now, we substitute
SLIDE 93
Solving a system
Here is one way to arrive at the solution. Of the equations, x + 2y + 3z = 6 x − y + z = 1 2x + 3y + 4z = 9 we can pick one, say x − y + z = 1, and use it to express x in terms of the other variables: x = 1 + y − z. Now, we substitute this back into the other two, giving
SLIDE 94
Solving a system
Here is one way to arrive at the solution. Of the equations, x + 2y + 3z = 6 x − y + z = 1 2x + 3y + 4z = 9 we can pick one, say x − y + z = 1, and use it to express x in terms of the other variables: x = 1 + y − z. Now, we substitute this back into the other two, giving (1 + y − z) + 2y + 3z = 6 and 2(1 + y − z) + 3y + 4z = 9
SLIDE 95
Solving a system
These two equations (1 + y − z) + 2y + 3z = 6 and 2(1 + y − z) + 3y + 4z = 9
SLIDE 96
Solving a system
These two equations (1 + y − z) + 2y + 3z = 6 and 2(1 + y − z) + 3y + 4z = 9 simplify into 3y + 2z = 5 and 5y + 2z = 7
SLIDE 97
Solving a system
These two equations (1 + y − z) + 2y + 3z = 6 and 2(1 + y − z) + 3y + 4z = 9 simplify into 3y + 2z = 5 and 5y + 2z = 7 We can use the first
SLIDE 98
Solving a system
These two equations (1 + y − z) + 2y + 3z = 6 and 2(1 + y − z) + 3y + 4z = 9 simplify into 3y + 2z = 5 and 5y + 2z = 7 We can use the first to write z = (5 − 3y)/2,
SLIDE 99
Solving a system
These two equations (1 + y − z) + 2y + 3z = 6 and 2(1 + y − z) + 3y + 4z = 9 simplify into 3y + 2z = 5 and 5y + 2z = 7 We can use the first to write z = (5 − 3y)/2, and then substitute
SLIDE 100
Solving a system
These two equations (1 + y − z) + 2y + 3z = 6 and 2(1 + y − z) + 3y + 4z = 9 simplify into 3y + 2z = 5 and 5y + 2z = 7 We can use the first to write z = (5 − 3y)/2, and then substitute this into the second to find 5y + 2(5 − 3y)/2 = 7,
SLIDE 101
Solving a system
These two equations (1 + y − z) + 2y + 3z = 6 and 2(1 + y − z) + 3y + 4z = 9 simplify into 3y + 2z = 5 and 5y + 2z = 7 We can use the first to write z = (5 − 3y)/2, and then substitute this into the second to find 5y + 2(5 − 3y)/2 = 7, which we simplify to 2y = 2, then y = 1.
SLIDE 102
Solving a system
These two equations (1 + y − z) + 2y + 3z = 6 and 2(1 + y − z) + 3y + 4z = 9 simplify into 3y + 2z = 5 and 5y + 2z = 7 We can use the first to write z = (5 − 3y)/2, and then substitute this into the second to find 5y + 2(5 − 3y)/2 = 7, which we simplify to 2y = 2, then y = 1. We substitute
SLIDE 103
Solving a system
These two equations (1 + y − z) + 2y + 3z = 6 and 2(1 + y − z) + 3y + 4z = 9 simplify into 3y + 2z = 5 and 5y + 2z = 7 We can use the first to write z = (5 − 3y)/2, and then substitute this into the second to find 5y + 2(5 − 3y)/2 = 7, which we simplify to 2y = 2, then y = 1. We substitute back into either one
- f the two equations above to find z = 1,
SLIDE 104
Solving a system
These two equations (1 + y − z) + 2y + 3z = 6 and 2(1 + y − z) + 3y + 4z = 9 simplify into 3y + 2z = 5 and 5y + 2z = 7 We can use the first to write z = (5 − 3y)/2, and then substitute this into the second to find 5y + 2(5 − 3y)/2 = 7, which we simplify to 2y = 2, then y = 1. We substitute back into either one
- f the two equations above to find z = 1, which we substitute
SLIDE 105
Solving a system
These two equations (1 + y − z) + 2y + 3z = 6 and 2(1 + y − z) + 3y + 4z = 9 simplify into 3y + 2z = 5 and 5y + 2z = 7 We can use the first to write z = (5 − 3y)/2, and then substitute this into the second to find 5y + 2(5 − 3y)/2 = 7, which we simplify to 2y = 2, then y = 1. We substitute back into either one
- f the two equations above to find z = 1, which we substitute into
any of the original equations to get x = 1.
SLIDE 106
That worked
SLIDE 107
That worked
But it was a bit of a mess.
SLIDE 108
Let’s clean it up.
SLIDE 109
Let’s clean it up.
We transformed x + 2y + 3z = 6 x − y + z = 1 2x + 3y + 4z = 9 into 3y + 2z = 5 x − y + z = 1 5y + 2z = 7
SLIDE 110
Let’s clean it up.
We transformed x + 2y + 3z = 6 x − y + z = 1 2x + 3y + 4z = 9 into 3y + 2z = 5 x − y + z = 1 5y + 2z = 7 by solving the original second equation for x, plugging into the
- thers, and then simplifying.
SLIDE 111
Let’s clean it up.
We transformed x + 2y + 3z = 6 x − y + z = 1 2x + 3y + 4z = 9 into 3y + 2z = 5 x − y + z = 1 5y + 2z = 7 by solving the original second equation for x, plugging into the
- thers, and then simplifying. Instead: subtract the second equation
from the first, and twice the second equation from the third.
SLIDE 112
Let’s clean it up
We did some more substitutions to find y = 1. Instead, we can transform 3y + 2z = 5 x − y + z = 1 5y + 2z = 7 into 3y + 2z = 5 x − y + z = 1 2y = 2 by subtracting the first equation from the third.
SLIDE 113
Let’s clean it up
After dividing the last equation by 2, we have 3y + 2z = 5 x − y + z = 1 y = 1
SLIDE 114
Let’s clean it up
After dividing the last equation by 2, we have 3y + 2z = 5 x − y + z = 1 y = 1 Now we can add multiples of the bottom equation to the top two, 2z = 2 x + z = 2 y = 1
SLIDE 115
Let’s clean it up
Divide the top equation by 2, z = 1 x + z = 2 y = 1
SLIDE 116
Let’s clean it up
Divide the top equation by 2, z = 1 x + z = 2 y = 1 and finally, subtract the top equation from the middle one: z = 1 x = 1 y = 1
SLIDE 117
Why did that work?
Solving one linear equation for a given variable,
SLIDE 118
Why did that work?
Solving one linear equation for a given variable, and then plugging that in to another linear equation
SLIDE 119
Why did that work?
Solving one linear equation for a given variable, and then plugging that in to another linear equation is the same as
SLIDE 120
Why did that work?
Solving one linear equation for a given variable, and then plugging that in to another linear equation is the same as adding a multiple of the first equation to the second.
SLIDE 121
Why did that work?
Solving one linear equation for a given variable, and then plugging that in to another linear equation is the same as adding a multiple of the first equation to the second. This is only true of linear equations!
SLIDE 122
What did we do?
We solved a system of linear equations,
SLIDE 123
What did we do?
We solved a system of linear equations,
by transforming them into simpler but equivalent — i.e., having the same solution set — systems of equations.
SLIDE 124
What did we do?
We solved a system of linear equations,
by transforming them into simpler but equivalent — i.e., having the same solution set — systems of equations.
We only used the following “elementary” equivalences
SLIDE 125
What did we do?
We solved a system of linear equations,
by transforming them into simpler but equivalent — i.e., having the same solution set — systems of equations.
We only used the following “elementary” equivalences
adding a multiple of one equation to another
SLIDE 126
What did we do?
We solved a system of linear equations,
by transforming them into simpler but equivalent — i.e., having the same solution set — systems of equations.
We only used the following “elementary” equivalences
adding a multiple of one equation to another and multiplying an equation by a nonzero number.
SLIDE 127
What did we do?
We solved a system of linear equations,
by transforming them into simpler but equivalent — i.e., having the same solution set — systems of equations.
We only used the following “elementary” equivalences
adding a multiple of one equation to another and multiplying an equation by a nonzero number. We also allow ourselves to re-order the equations.
SLIDE 128
Augmented matrix
We can abbreviate
SLIDE 129
Augmented matrix
We can abbreviate x + 2y + 3z = 6 x − y + z = 1 2x + 3y + 4z = 9
SLIDE 130
Augmented matrix
We can abbreviate x + 2y + 3z = 6 x − y + z = 1 2x + 3y + 4z = 9 as 1 2 3 6 1 −1 1 1 2 3 4 9
SLIDE 131
Augmented matrix
We can abbreviate x + 2y + 3z = 6 x − y + z = 1 2x + 3y + 4z = 9 as 1 2 3 6 1 −1 1 1 2 3 4 9 This is called the augmented matrix of the system. There are as many rows as equations, and one more column than the number of unknowns.
SLIDE 132
Let’s clean it up
We can just write our solution as a series of augmented matrices:
SLIDE 133
Let’s clean it up
We can just write our solution as a series of augmented matrices: 1 2 3 6 1 −1 1 1 2 3 4 9
SLIDE 134
Let’s clean it up
We can just write our solution as a series of augmented matrices: 1 2 3 6 1 −1 1 1 2 3 4 9 3 2 5 1 −1 1 1 5 2 7
SLIDE 135
Let’s clean it up
We can just write our solution as a series of augmented matrices: 1 2 3 6 1 −1 1 1 2 3 4 9 3 2 5 1 −1 1 1 5 2 7 3 2 5 1 −1 1 1 2 2
SLIDE 136
Let’s clean it up
We can just write our solution as a series of augmented matrices: 1 2 3 6 1 −1 1 1 2 3 4 9 3 2 5 1 −1 1 1 5 2 7 3 2 5 1 −1 1 1 2 2 3 2 5 1 −1 1 1 1 1
SLIDE 137
Let’s clean it up
We can just write our solution as a series of augmented matrices: 1 2 3 6 1 −1 1 1 2 3 4 9 3 2 5 1 −1 1 1 5 2 7 3 2 5 1 −1 1 1 2 2 3 2 5 1 −1 1 1 1 1 2 2 1 1 2 1 1
SLIDE 138
Let’s clean it up
We can just write our solution as a series of augmented matrices: 1 2 3 6 1 −1 1 1 2 3 4 9 3 2 5 1 −1 1 1 5 2 7 3 2 5 1 −1 1 1 2 2 3 2 5 1 −1 1 1 1 1 2 2 1 1 2 1 1 1 1 1 1 2 1 1
SLIDE 139
Let’s clean it up
We can just write our solution as a series of augmented matrices: 1 2 3 6 1 −1 1 1 2 3 4 9 3 2 5 1 −1 1 1 5 2 7 3 2 5 1 −1 1 1 2 2 3 2 5 1 −1 1 1 1 1 2 2 1 1 2 1 1 1 1 1 1 2 1 1 1 1 1 1 1 1
SLIDE 140
Row reduction
At each stage, we reduced the number of non-zero entries in the matrix, by adding multiples of one row to another.
SLIDE 141
Row reduction
At each stage, we reduced the number of non-zero entries in the matrix, by adding multiples of one row to another. This procedure is called
SLIDE 142
Row reduction
At each stage, we reduced the number of non-zero entries in the matrix, by adding multiples of one row to another. This procedure is called row reduction,
SLIDE 143
Row reduction
At each stage, we reduced the number of non-zero entries in the matrix, by adding multiples of one row to another. This procedure is called row reduction, or Gaussian elimination.
SLIDE 144
Row reduction
At each stage, we reduced the number of non-zero entries in the matrix, by adding multiples of one row to another. This procedure is called row reduction, or Gaussian elimination. It was in 9 chapters on the mathematical art, 2000 years before.
SLIDE 145
Try it yourself!
For what numerical values of s are the systems x + sy = −x + y = s + 1 and x − y = 0 equivalent?
SLIDE 146
Solution
We write and reduce the augmented matrix for the first system:
SLIDE 147
Solution
We write and reduce the augmented matrix for the first system:
- 1
s −1 1 s + 1
SLIDE 148
Solution
We write and reduce the augmented matrix for the first system:
- 1
s −1 1 s + 1
- →
1 s 1 + s s + 1
- If s = −1, then the second equation says 0 = 0 and the first says
x − y = 0;
SLIDE 149
Solution
We write and reduce the augmented matrix for the first system:
- 1
s −1 1 s + 1
- →
1 s 1 + s s + 1
- If s = −1, then the second equation says 0 = 0 and the first says
x − y = 0; i.e., in this case, it is equivalent to the second system.
SLIDE 150
Solution
We write and reduce the augmented matrix for the first system:
- 1
s −1 1 s + 1
- →
1 s 1 + s s + 1
- If s = −1, then the second equation says 0 = 0 and the first says
x − y = 0; i.e., in this case, it is equivalent to the second system. Otherwise, we can divide the second equation by 1 + s to find 1 s 1 1
SLIDE 151
Solution
We write and reduce the augmented matrix for the first system:
- 1
s −1 1 s + 1
- →
1 s 1 + s s + 1
- If s = −1, then the second equation says 0 = 0 and the first says
x − y = 0; i.e., in this case, it is equivalent to the second system. Otherwise, we can divide the second equation by 1 + s to find 1 s 1 1
- →
1 −s 1 1
SLIDE 152
Solution
We write and reduce the augmented matrix for the first system:
- 1
s −1 1 s + 1
- →
1 s 1 + s s + 1
- If s = −1, then the second equation says 0 = 0 and the first says
x − y = 0; i.e., in this case, it is equivalent to the second system. Otherwise, we can divide the second equation by 1 + s to find 1 s 1 1
- →
1 −s 1 1
- i.e., x = −s and y = 1. This is not equivalent to the second
system, which has solutions (s, −s) for any s.
SLIDE 153
Solution
We write and reduce the augmented matrix for the first system:
- 1
s −1 1 s + 1
- →
1 s 1 + s s + 1
- If s = −1, then the second equation says 0 = 0 and the first says
x − y = 0; i.e., in this case, it is equivalent to the second system. Otherwise, we can divide the second equation by 1 + s to find 1 s 1 1
- →
1 −s 1 1
- i.e., x = −s and y = 1. This is not equivalent to the second
system, which has solutions (s, −s) for any s. The systems are equivalent if and only if s = −1.
SLIDE 154
Next time:
We will continue to refine our solution method — transforming a given linear system into equivalent, but increasingly easy to solve, linear systems. We will also consider various reformulations and interpretations of linear equations.
SLIDE 155