week #10 : systems of des goals: introduction to systems of di … · 2016-06-27 · systems of di...

34
Week #10 : Systems of DEs Goals: Introduction to Systems of Differential Equations Solving systems with distinct real eigenvalues and eigenvectors 1

Upload: others

Post on 31-Jul-2020

0 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Week #10 : Systems of DEs Goals: Introduction to Systems of Di … · 2016-06-27 · Systems of Di erential Equations - Introdution - 1 Systems of Di erential Equations - Introdution

Week #10 : Systems of DEs

Goals:

• Introduction to Systems of Differential Equations• Solving systems with distinct real eigenvalues and eigenvectors

1

Page 2: Week #10 : Systems of DEs Goals: Introduction to Systems of Di … · 2016-06-27 · Systems of Di erential Equations - Introdution - 1 Systems of Di erential Equations - Introdution

Systems of Differential Equations - Introdution - 1

Systems of Differential Equations - Introdution

We have gone about as far as we can with interesting single-variableDEs. In practice, more complex systems involve multiple, inter-related variables.

• Complex physical and electronic systems• Interacting populations like predator/prey and host/parasites

One particularly visceral model is that of a multi-story building inan earthquake.

Page 3: Week #10 : Systems of DEs Goals: Introduction to Systems of Di … · 2016-06-27 · Systems of Di erential Equations - Introdution - 1 Systems of Di erential Equations - Introdution

Systems of Differential Equations - Introdution - 2

Demonstration

Page 4: Week #10 : Systems of DEs Goals: Introduction to Systems of Di … · 2016-06-27 · Systems of Di erential Equations - Introdution - 1 Systems of Di erential Equations - Introdution

Model: Spring Models for Buildings - 1

Model: Spring Models for Buildings

To understand the dynamics in a complex system, we need to go backto basics.

Problem. Draw a double-spring diagram, and a double-column di-agram.

If both x1 and x2 are increased by an equal amount, what is the forcein the second spring/column?

Page 5: Week #10 : Systems of DEs Goals: Introduction to Systems of Di … · 2016-06-27 · Systems of Di erential Equations - Introdution - 1 Systems of Di erential Equations - Introdution

Model: Spring Models for Buildings - 2

We will use the spring system as our model for the force calculations,simply because it is more familiar, and easier to visualize.

Problem. Draw a free-body diagram for the first mass. Obtain adifferential equation for the first mass.

Repeat for the second mass.

Page 6: Week #10 : Systems of DEs Goals: Introduction to Systems of Di … · 2016-06-27 · Systems of Di erential Equations - Introdution - 1 Systems of Di erential Equations - Introdution

Model: Spring Models for Buildings - 3

Problem. Write out the system of differential equations ob-tained.

Page 7: Week #10 : Systems of DEs Goals: Introduction to Systems of Di … · 2016-06-27 · Systems of Di erential Equations - Introdution - 1 Systems of Di erential Equations - Introdution

Converting Higher-Order DEs to 1st Order Systems - 1

Converting Higher-Order DEs to 1st Order Systems

For consistency of analysis, we will transform this second-ordersystem into a larger first-order system.

Notation: In this section of the course:

• vectors with be written with vector hats, e.g. ~x,•matrices will be written using capital letters, e.g. A or M , and• scalars will be in lower-case, e.g. c1, λ.

Problem. Define a new vector of 4 variables, ~w, that will allow theconversion of the higher-order system to a first-order system.

Page 8: Week #10 : Systems of DEs Goals: Introduction to Systems of Di … · 2016-06-27 · Systems of Di erential Equations - Introdution - 1 Systems of Di erential Equations - Introdution

Converting Higher-Order DEs to 1st Order Systems - 2

Define the derivative of ~w in terms of ~w itself, making use of the DEas necessary.

This is now a first-order system of differential equations.(The variables we are most interested in for this example are w1 = x1,and w3 = x2, the positions of each mass.)

Page 9: Week #10 : Systems of DEs Goals: Introduction to Systems of Di … · 2016-06-27 · Systems of Di erential Equations - Introdution - 1 Systems of Di erential Equations - Introdution

Converting Higher-Order DEs to 1st Order Systems - 3

Problem. Put the equations into matrix format.

Page 10: Week #10 : Systems of DEs Goals: Introduction to Systems of Di … · 2016-06-27 · Systems of Di erential Equations - Introdution - 1 Systems of Di erential Equations - Introdution

Converting Higher-Order DEs to 1st Order Systems - 4

Problem. Use a technique from earlier in the course to find a formof the solution.

Page 11: Week #10 : Systems of DEs Goals: Introduction to Systems of Di … · 2016-06-27 · Systems of Di erential Equations - Introdution - 1 Systems of Di erential Equations - Introdution

Eigenvalues In Solutions - 1

Solving ~w ′ = A~w, assume ~w = ~veλt

We have reduced our solving of the first-order system of equations tofinding the eigenvalues and eigenvectors of a matrix.

Problem. If we found eigenvalues λ = 2, 3, 4, 5, what form wouldthe solution take?

Page 12: Week #10 : Systems of DEs Goals: Introduction to Systems of Di … · 2016-06-27 · Systems of Di erential Equations - Introdution - 1 Systems of Di erential Equations - Introdution

Eigenvalues In Solutions - 2

Solving ~w ′ = A~w, assume ~w = ~veλt

Problem. If we found eigenvalues λ = −1± 2i,−2± 3i, what formwould the solution take?

Page 13: Week #10 : Systems of DEs Goals: Introduction to Systems of Di … · 2016-06-27 · Systems of Di erential Equations - Introdution - 1 Systems of Di erential Equations - Introdution

Eigenvalues In Solutions - 3

Solving ~w ′ = A~w, assume ~w = ~veλt

Problem. If λ = −1 ± 2i,−2 ± 3i were the values for our build-ing model in the demonstration software, what would be dangerousfrequencies for an external force and why?

Page 14: Week #10 : Systems of DEs Goals: Introduction to Systems of Di … · 2016-06-27 · Systems of Di erential Equations - Introdution - 1 Systems of Di erential Equations - Introdution

Matrices and Linear Systems - Homogeneous Theory - 1

Matrices and Linear Systems - Homogeneous Theory

How does linear algebra help solve systems of linear differential equa-tions?Consider the system of differential equations

x′1(t) = 3x1(t)− 4x2(t) and

x′2(t) = 4x1(t)− 7x2(t)

Problem. Write this system of equations out in matrix form.

Page 15: Week #10 : Systems of DEs Goals: Introduction to Systems of Di … · 2016-06-27 · Systems of Di erential Equations - Introdution - 1 Systems of Di erential Equations - Introdution

Matrices and Linear Systems - Homogeneous Theory - 2

In the matrix/vector form, what kind of rules about the solution canwe rely on?

Theorem. Let A(t) and ~f (t) be continuous on an open intervalI. If t0 ∈ I and u ∈ Rn, then there exists a unique solution ~x(t)

on I to ~x′(t) = A(t)~x(t) + ~f (t) where ~x(t0) = ~x0.

Theorem. Let A(t) be a continuous (n × n)-matrix on an openinterval I. If ~x1(t), . . . , ~xn(t) are linearly independent solutionsto the homogenous system ~x ′(t) = A(t)~x(t) on I, then everysolution has the form

~x(t) = c1~x1(t) + · · · + cn~xn(t).

Page 16: Week #10 : Systems of DEs Goals: Introduction to Systems of Di … · 2016-06-27 · Systems of Di erential Equations - Introdution - 1 Systems of Di erential Equations - Introdution

Verifying Solutions - Example - 1

Problem. Consider the system of equations

~x ′(t) =

0 1 11 0 11 1 0

~x(t)

Show that the following vector-valued functions are solutions to thesystem.

(a) ~x1 =

e2t

e2t

e2t

Page 17: Week #10 : Systems of DEs Goals: Introduction to Systems of Di … · 2016-06-27 · Systems of Di erential Equations - Introdution - 1 Systems of Di erential Equations - Introdution

Verifying Solutions - Example - 2

~x ′(t) =

0 1 11 0 11 1 0

~x(t)

(b) ~x2 =

−e−t0e−t

(c) ~x3 =

0e−t

−e−t

Page 18: Week #10 : Systems of DEs Goals: Introduction to Systems of Di … · 2016-06-27 · Systems of Di erential Equations - Introdution - 1 Systems of Di erential Equations - Introdution

Verifying Solutions - Example - 3

~x ′(t) =

0 1 11 0 11 1 0

~x(t)

with ~x1 =

e2t

e2t

e2t

, ~x2 =

−e−t0e−t

, ~x3 =

0e−t

−e−t

Problem. Based on the earlier results, write out the general solu-tion to the system of equations.

Page 19: Week #10 : Systems of DEs Goals: Introduction to Systems of Di … · 2016-06-27 · Systems of Di erential Equations - Introdution - 1 Systems of Di erential Equations - Introdution

Matrices and Linear Systems - Non-Homogeneous Theory - 1

Matrices and Linear Systems - Non-Homogeneous The-ory

In analogy to our earlier work, what if we have a system which isnon-homogeneous?

The standard form for a linear system with a non-homogeneous com-ponent is:

~x ′(t) = A(t)~x(t) + ~f (t)

Page 20: Week #10 : Systems of DEs Goals: Introduction to Systems of Di … · 2016-06-27 · Systems of Di erential Equations - Introdution - 1 Systems of Di erential Equations - Introdution

Matrices and Linear Systems - Non-Homogeneous Theory - 2

Theorem. Let A(t) be a continuous (n × n)-matrix on an openinterval I and let ~x1(t), . . . , ~xn(t) be linearly independent solu-tions to

~x ′(t) = A(t)~x(t) on I.

If ~xNH(t) satisfies

~x ′(t) = A(t)~x(t) + ~f (t) on I,

then every solution of the nonhomogeneous system has the form

~x(t) = c1~x1(t) + · · · + cn~xn(t) + ~xNH(t).

Page 21: Week #10 : Systems of DEs Goals: Introduction to Systems of Di … · 2016-06-27 · Systems of Di erential Equations - Introdution - 1 Systems of Di erential Equations - Introdution

Matrices and Linear Systems - Non-Homogeneous Theory - 3

Problem. Verify that ~xNH(t) = [t− 1, −t, t+ 1]t is a particularsolution to

~x ′(t) =

0 1 11 0 11 1 0

~x(t) +

0−2t− 1

2

Page 22: Week #10 : Systems of DEs Goals: Introduction to Systems of Di … · 2016-06-27 · Systems of Di erential Equations - Introdution - 1 Systems of Di erential Equations - Introdution

Matrices and Linear Systems - Non-Homogeneous Theory - 4

Problem. Find the general solution to

~x ′(t) =

0 1 11 0 11 1 0

~x(t) +

0−2t− 1

2

~xNH(t) =

t− 1−tt + 1

, ~x1 =

e2t

e2t

e2t

, ~x2 =

−e−t0e−t

, ~x3 =

0e−t

−e−t

Page 23: Week #10 : Systems of DEs Goals: Introduction to Systems of Di … · 2016-06-27 · Systems of Di erential Equations - Introdution - 1 Systems of Di erential Equations - Introdution

DE Systems with Constant Coefficients - 1

DE Systems with Constant Coefficients

Knowing how we can combine individual solutions, how do we findthose solutions in the first place?We saw earlier that eigenvalues and eigenvectors are tools thatcould assist us.

Theorem. Let A be a constant (n × n)-matrix with n linearlyindependent eigenvectors ~u1, . . . , ~un.

If ri is the eigenvalue corresponding to ~ui,

then the general solution to ~x ′ = A~x is

~x(t) = c1 er1t ~u1 + c2 e

r2t ~u2 + · · · + cn ernt ~un .

Page 24: Week #10 : Systems of DEs Goals: Introduction to Systems of Di … · 2016-06-27 · Systems of Di erential Equations - Introdution - 1 Systems of Di erential Equations - Introdution

DE Systems with Constant Coefficients - 2

Problem. Solve ~x ′(t) = A~x(t) where A =

[2 −31 −2

].

Page 25: Week #10 : Systems of DEs Goals: Introduction to Systems of Di … · 2016-06-27 · Systems of Di erential Equations - Introdution - 1 Systems of Di erential Equations - Introdution

DE Systems with Constant Coefficients - 3

~x ′(t) = A~x(t) where A =

[2 −31 −2

].

Page 26: Week #10 : Systems of DEs Goals: Introduction to Systems of Di … · 2016-06-27 · Systems of Di erential Equations - Introdution - 1 Systems of Di erential Equations - Introdution
Page 27: Week #10 : Systems of DEs Goals: Introduction to Systems of Di … · 2016-06-27 · Systems of Di erential Equations - Introdution - 1 Systems of Di erential Equations - Introdution
Page 28: Week #10 : Systems of DEs Goals: Introduction to Systems of Di … · 2016-06-27 · Systems of Di erential Equations - Introdution - 1 Systems of Di erential Equations - Introdution

DE Systems with Constant Coefficients - 4

~x ′(t) = A~x(t) where A =

[2 −31 −2

].

Problem. Verify your solution is correct.

Page 29: Week #10 : Systems of DEs Goals: Introduction to Systems of Di … · 2016-06-27 · Systems of Di erential Equations - Introdution - 1 Systems of Di erential Equations - Introdution

Real Eigenvalue Solutions - Example - 1

Problem. Solve ~x ′(t) = A~x(t) where

A :=

1 2 −11 0 14 −4 5

and ~x(0) =

−100

.

Page 30: Week #10 : Systems of DEs Goals: Introduction to Systems of Di … · 2016-06-27 · Systems of Di erential Equations - Introdution - 1 Systems of Di erential Equations - Introdution

Real Eigenvalue Solutions - Example - 2

A :=

1 2 −11 0 14 −4 5

and ~x(0) =

−100

.

Page 31: Week #10 : Systems of DEs Goals: Introduction to Systems of Di … · 2016-06-27 · Systems of Di erential Equations - Introdution - 1 Systems of Di erential Equations - Introdution

Real Eigenvalue Solutions - Example - 3

A :=

1 2 −11 0 14 −4 5

and ~x(0) =

−100

.

Page 32: Week #10 : Systems of DEs Goals: Introduction to Systems of Di … · 2016-06-27 · Systems of Di erential Equations - Introdution - 1 Systems of Di erential Equations - Introdution
Page 33: Week #10 : Systems of DEs Goals: Introduction to Systems of Di … · 2016-06-27 · Systems of Di erential Equations - Introdution - 1 Systems of Di erential Equations - Introdution
Page 34: Week #10 : Systems of DEs Goals: Introduction to Systems of Di … · 2016-06-27 · Systems of Di erential Equations - Introdution - 1 Systems of Di erential Equations - Introdution