MATH 417 Lecture 15

From Notes
Jump to navigation Jump to search

« previous | Tuesday, March 18, 2014 | next »

Begin Exam 2 content


Chapter 5.1: Initial Value Problems

Definition: A differential equation of the form dy(t)dt=f(t,y(t)) given y(a)=α

Do we have a solution for y(t)? If so, is it unique?


Example: Population Growth Model

dy(t)dt=ky(t)

If k>0, the population grows, and if k<0, the population decays.

These are the types of differential equations we will focus on.

Example: Harmonic Oscillator

dθdt=v(t) and dv(t)dt=gLθ(t)


Well-Posedness

An initial value problem is well-posed if and only if

  1. it has a unique solution (existence and uniqueness)
  2. continuous dependence of the solution with respect to (the initial data) + f(x).

there should exist a k and an ϵ0 such that for all ϵ[0,ϵ0] such that given two initial value problems

{dy1dt=f(t,y1)y1(a)=α

{dy2dt=f(t,y2)+δ(t)y2(a)=α+ϵ0

maxt[a,b]|y1(t)y2(t)|kϵ. This is true if maxt|δ(t)|+ϵ0ϵ.


Lipschitz Continuity

Let D2. Then f:D is Lipschitz continuous with respect to the second variable if there exists a L such that

|f(t,y1)f(t,y2)|L|y1y2| for all (t,y1),(t,y2)D.

Note: D represents a collection of points on the ty plane

Cauchy-Lipschitz / Picard-Lindelof Theorem

Theorem. Let D={(t,y)t[a,b],y} be a stripe of the t,y plane. Let f:D.

If

  1. f is continuous with respect to t
  2. f is Lipschitz continuous with respect to y

then the initial value problem is well-posed.

Proof. [omitted].

quod erat demonstrandum

Example 1

is {dy(t)dt=y(t)t2+1y(0)=12 well-posed for t[0,2]?

  1. f is continuous with respect to t since t2+1 is continuous
  2. |f(t,y1)f(t,y2)|=|y1t2+1y2+t21|=|y1y2|, hence L=1.


Example 2

is {dy(t)dt=2y(t)y(0)=0 well-posed for t+×+

We can find solutions y(t)=0 and y(t)=t2 that satisfy the equation, so the solution is not unique, and therefore the problem is not well-posed.

Observe that f is continuous with respect to t, so there must be a discrepancy in the Lipschitz continuity:

|f(t,y)f(t,0)|=|2y0|L|y| holds true for y4L2.


Chapter 5.2: Euler Method

In real life, analytical solutions to ODEs are rare. Instead, we approximate solutions.

{dy(t)dt=f(t,y(t))y(a)=α for t[a,b].

We define h=baN as our time-step function to discretize time into N samples:

ti=a+ih for i0,1,,N.

We set t0=a, so y0=α. Now we use the fundamental theorem of calculus to construct solutions for ti:

titi+1dy(τ)dtdτ=y(ti+1)y(ti)=titi+1f(τ,y(τ))dτ

We approximate the value of the integral as follows:

titi+1f(τ,y(τ))dτtiti+1f(ti,y(ti))dτ

Hence yi+1=yi+hf(ti,yi) for i>0.

In summary

y0=αi=0yi+1=yi+hf(ti,yi)i>0!


Example

Construct an approximate solution for {dydt=yt2+1y(0)=12 for t[0,2] with N=4.

Calculate h=204=12

t0=0 y0=12
t1=12 y1=54
t2=1 y2=94
t3=32 y3=278
t4=2 y4=7116

Error Estimate

Theorem. Let f:D

  1. be continuous with respect to t
  2. be Lipschitz-continuous with respect to y with some L
  3. there is a M>0 such that maxt[a,b]|y(t)|M

|yiy(ti)|hM2L(eL(tia)1)

Proof.

Theorem. [Discrete Gronwall]. Assume we have a sequence ai(s,r) that satisfies ai+1(1+s)ai+r for all i. Then ai+1e(i+1)s(a0+rs)rs

Proof. [omitted].

quod erat demonstrandum

The exact solution has form y(ti+1)=y(ti)+titi+1f(τ,y(τ))dτ. Let's integrate by parts substituting 1=ddτ(τti+1):

Failed to parse (unknown function "\begin{align}"): {\displaystyle \begin{align} y(t_{i+1}) = y(t_i) + \int_{t_i}^{t_{i+1}} \left( \frac{\mathrm{d}}{\mathrm{d}\tau} \left( \tau - t_{i+1} \right) \right) \, \left( f(\tau, y(\tau)) \right) \,\mathrm{d}\tau &= y(t_i) + \left( t_{i+1} - t_i \right) \, f(t_i, y(t_i)) - \int_{t_i}^{t_{i+1}} \left( \tau - t_{i+1} \right) \, \frac{\mathrm{d}}{\mathrm{d}\tau} \left( f(\tau, y(\tau) \right) \right) \,\mathrm{d}\tau \\ &= y(t_i) + h \, f(t_i, y(t_i)) + \int_{t_i}^{t_{i+1}} \left( t_{i+1} - \tau \right) \, \frac{\mathrm{d}^2 y(t)}{\mathrm{d}\tau^2} \,\mathrm{d}\tau \end{align}}

Our approximation is as follows:

y~(ti+1)=y~(ti)+hf(ti,y~(ti))

Hence the error is

Ei=|y(ti)y~(ti)|

Expanding this and simplifying gives

Failed to parse (syntax error): {\displaystyle \left| E_{i+1} \right| &\le \left| E_i \right| + h \, \left| f(t_i, y(t_i)) - f(t_i, \tilde{y}(t_i)) \right| + \int_{t_i}^{t_{i+1}} \left( t_{i+1} - \tau \right) \, \left| \frac{\mathrm{d}^2 y}{\mathrm{d}\tau^2} \right| \,\mathrm{d}\tau \\ &\le \left| E_i \right| + h\,L \, \left| y(t_i) - \tilde{y}(t_i) \right| + M \, \int_{t_i}^{t_{i+1}} \left( t_{i+1} - \tau \right) \,\mathrm{d}\tau \\ &= \left| E_i \right| + h \, L \, \left| E_i \right| + M \, \frac{h^2}{2} \\ &= \left( 1 + h \, L \right) \, \left| E_i \right| + \frac{M \, h^2}{2}}

By the lemma above,

|Ei|(eihL1)Mh22hL=(e(tia)L1)Mh2L
quod erat demonstrandum