Docsity

Project: The Matrix Exponential and ODE Systems | MATH 410, Study Guides, Projects, Research of Mathematics

Toggle sidebar
bg1
Math 410 Project: The Matrix Exponential and ODE Systems
Problem Description:
This project deals with solutions to linear ODE systems. Consider an initial value
problem ordinary dierential equation of the form
y0(t) = ay (t), y (0) = y0.
To solve, the equation is rewritten as
y0(t)
y(t)=a
and integrated with respect to
t
. We get
ln y(t) = at +c,
which becomes
y(t) = eceat.
Then
y(0) = y0
implies
ec=y0
and we have
y(t) = y0eat.
What if we were to have a vector equation
y0(t) = Ay(t),y(0) = y0
with
y∈Rn
,
A∈Rn×n
, and
t
a scalar? Our solution is the same, we have
y(t) = y0eAt,
but
eA
is not simply the exponential of each element of
A
. It needs to be properly dened. Recall that, when using
a Taylor series expansion around
x= 0
, we can write the scalar exponential as
ex=
∞
X
k=0
xk
k!.
We dene the
matrix exponential
similarly
eA=
∞
X
k=0
Ak
k!.
Assigned Problem:
Download the
MatrixExponentialExample.m
le from the class web page. Use this
.m
le
as reference for the rest of the project.
1. Consider the following initial value problem
˙
u=Au,
with
A=cos 2πθ sin 2πθ
−sin 2πθ cos 2πθ
and
u(0) = 2
−1
(a) Find the eigenvalues and eigenvectors of
A
. What is the complex modulus of each eigenvalue?
(b) Describe the solution
u
on the interval
0≤t≤10
to the above IVP for
θ=1
8,2
8,...,8
8
. Specically,
which solutions are stable, which are unstable, and which oscillate. How is this related to the eigenvalues?
(c) Plot the solution for each choice of
θ=1
8,2
8,...,8
8
on one single gure with 8 plots, using
subplot(4,2,i)
where
i
varies from
i= 1
to
i= 8
(corresponding to
θ=i
8
).
1
pf2

Partial preview of the text

Download Project: The Matrix Exponential and ODE Systems | MATH 410 and more Study Guides, Projects, Research Mathematics in PDF only on Docsity!

Math 410 Project: The Matrix Exponential and ODE Systems

Problem Description: This project deals with solutions to linear ODE systems. Consider an initial value

problem ordinary dierential equation of the form

y′^ (t) = ay (t) , y (0) = y 0.

To solve, the equation is rewritten as y′^ (t) y (t) = a and integrated with respect to t. We get

ln y (t) = at + c,

which becomes y (t) = eceat. Then y (0) = y 0 implies ec^ = y 0 and we have

y (t) = y 0 eat.

What if we were to have a vector equation

y′^ (t) = Ay (t) , y (0) = y 0

with y ∈ Rn, A ∈ Rn×n, and t a scalar? Our solution is the same, we have

y (t) = y 0 eAt,

but eA^ is not simply the exponential of each element of A. It needs to be properly dened. Recall that, when using a Taylor series expansion around x = 0, we can write the scalar exponential as

ex^ =

∑^ ∞

k=

xk k!

We dene the matrix exponential similarly

eA^ =

∑^ ∞

k=

Ak k!

Assigned Problem: Download the MatrixExponentialExample.m le from the class web page. Use this .m le

as reference for the rest of the project.

  1. Consider the following initial value problem

u ˙ = Au, with A =

cos 2πθ sin 2πθ − sin 2πθ cos 2πθ

and u (0) =

(a) Find the eigenvalues and eigenvectors of A. What is the complex modulus of each eigenvalue?

(b) Describe the solution u on the interval 0 ≤ t ≤ 10 to the above IVP for θ =

. Specically, which solutions are stable, which are unstable, and which oscillate. How is this related to the eigenvalues?

(c) Plot the solution for each choice of θ =

on one single gure with 8 plots, using subplot(4,2,i)

where i varies from i = 1 to i = 8 (corresponding to θ = i 8

  1. Consider

u ˙ = Au, with A =

 (^) and u (1) =

(a) Plot the solutions to the ODE system, u 1 , u 2 and u 3 , on the same axis for 1 ≤ t ≤ 5 using the matrix exponential in Matlab. (b) Write A = D + U where D is a diagonal matrix, and U is an upper triangular matrix with zeros on the diagonal. Compute, by hand or in Matlab, eD^ and eU^ by using the series denition of the matrix exponential. (c) Compute e(t−t^0 )D^ and e(t−t^0 )U^ by hand or in Matlab. Then nd the solution (in terms of a general t) to the dierential equation using e(t−t^0 )A^ = e(t−t^0 )(D+U^ )^ = e(t−t^0 )De(t−t^0 )U^.

  1. Consider the dierential equation

y′′′^ + 4y′′^ − y′^ − 4 y = 0, y (0) = 0, y′^ (0) = 1, y′′^ (0) = 2.

It is possible to convert a higher order dierential equation to a rst order system by using smart substitution.

(a) Let u 1 = y, u 2 = y′^ and u 3 = y′′. Rewrite the above dierential equation as a linear IVP u˙ =Au with three equations and three unknowns. (b) Plot the solution (the value of y(t)) by solving the resulting IVP in Matlab for 0 ≤ t ≤ 5.

  1. (Extra Credit) Find a computer which has the symbolic toolbox installed for Matlab. Compute the solution, u(t) at a general t, for problems 2 and 3 in Matlab.