Linear algebra and differential equations (Math 54): Lecture 1 - - PowerPoint PPT Presentation

linear algebra and differential equations math 54 lecture
SMART_READER_LITE
LIVE PREVIEW

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-1
SLIDE 1

Linear algebra and differential equations (Math 54): Lecture 1

Vivek Shende January 22, 2019

slide-2
SLIDE 2

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 questions!

Your GSIs

Luya Wang Onyebuchi Ekenta Guillaume Massas Magda Hlavacek Dun Tang Benjamin Siskind Adele Padgett James Dix Mostafa Adnane

slide-3
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
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
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
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
SLIDE 7

What is linear algebra?

slide-8
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
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
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
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
SLIDE 12

What is linear algebra?

More abstractly, linear algebra is the study of transformations

  • f spaces which carry lines to lines.
slide-13
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
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
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
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
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
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
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
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
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
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
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
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
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
SLIDE 26

What is linear algebra?

Many phenomena are approximately linear:

slide-27
SLIDE 27

What is linear algebra?

Many phenomena are approximately linear:

slide-28
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
SLIDE 29

What is linear algebra?

Many phenomena are approximately linear:

slide-30
SLIDE 30

What is linear algebra?

Many phenomena are approximately linear:

slide-31
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
SLIDE 32

What will you learn in this class?

slide-33
SLIDE 33

What will you learn in this class?

Concrete procedures for manipulating linear equations

slide-34
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
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
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
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
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
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
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
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
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
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
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
SLIDE 45

Let’s get to work

slide-46
SLIDE 46

Linear equations

slide-47
SLIDE 47

Linear equations

Example.

The equation x + 2y + 3z = 6 is linear in x, y, z.

slide-48
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
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
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
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
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
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
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
SLIDE 55

Try it yourself!

Which of these equations are linear in x1, x2, . . . , xn?

◮ x1 = 5

slide-56
SLIDE 56

Try it yourself!

Which of these equations are linear in x1, x2, . . . , xn?

◮ x1 = 5 linear

slide-57
SLIDE 57

Try it yourself!

Which of these equations are linear in x1, x2, . . . , xn?

◮ x1 = 5 linear ◮ x1 + x2 + · · · + xn = 1

slide-58
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
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
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
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
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
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
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
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
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
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
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
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
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
SLIDE 71

Systems of linear equations: examples

We now have a description for our old friend

slide-72
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
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
SLIDE 74

Systems of linear equations: examples

An example of 2 equations in 3 unknowns

x + y + z = x + y = 1

slide-75
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
SLIDE 95

Solving a system

These two equations (1 + y − z) + 2y + 3z = 6 and 2(1 + y − z) + 3y + 4z = 9

slide-96
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
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
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
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
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
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
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
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
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
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
SLIDE 106

That worked

slide-107
SLIDE 107

That worked

But it was a bit of a mess.

slide-108
SLIDE 108

Let’s clean it up.

slide-109
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
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
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
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
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
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
SLIDE 115

Let’s clean it up

Divide the top equation by 2, z = 1 x + z = 2 y = 1

slide-116
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
SLIDE 117

Why did that work?

Solving one linear equation for a given variable,

slide-118
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
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
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
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
SLIDE 122

What did we do?

We solved a system of linear equations,

slide-123
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
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
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
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
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
SLIDE 128

Augmented matrix

We can abbreviate

slide-129
SLIDE 129

Augmented matrix

We can abbreviate x + 2y + 3z = 6 x − y + z = 1 2x + 3y + 4z = 9

slide-130
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
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
SLIDE 132

Let’s clean it up

We can just write our solution as a series of augmented matrices:

slide-133
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
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
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
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
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
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
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
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
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
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
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
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
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
SLIDE 146

Solution

We write and reduce the augmented matrix for the first system:

slide-147
SLIDE 147

Solution

We write and reduce the augmented matrix for the first system:

  • 1

s −1 1 s + 1

slide-148
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
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
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
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
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
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
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
SLIDE 155

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. See you next time!