Question

In: Advanced Math

Consider the IVPs: (A) y'+2y = 1, 0<t<1 , y(0)=2. (B) y' = y(1-y), 0<t<1 ,...

Consider the IVPs: 
        (A)  y'+2y = 1,   0<t<1 ,  y(0)=2.
        (B)  y' = y(1-y), 0<t<1 ,  y(0)=1/2.

1. For each one, do the following:
  a. Find the exact solution y(t) and evaluate it at t=1.
  b. Apply Euler's method with  Δt=1/4  to find Y4 ≈ y(1).
     Make a table of tn, Yn for n=0,1,2,3,4.
  c. Find the error at t=1.

2. Euler's method is obtained by approximating y'(tn) by a forward finite difference.
   Use the backward difference approximation to y'(tn+1) to derive the 
   Backward Euler Method:   Yn+1 = Yn + Δt f(tn+1, Yn+1) , n=0,1,2,...  

   Note that now the unknown Yn+1 appears inside f(.,.), so this equation needs to be 
   solved for Yn+1 at each time-step!!! whence it is also called Implicit Euler Method.
   For the simple ODEs (A), (B) above, the updating equation can be solved by hand, 
   but in general a root-finder (like Newton-Raphson) is needed.
   This scheme is also 1st order, but it has better stability properties than Explicit Euler.

   For each IVP problem (A), (B), do the following:
  a. Apply the Backward Euler Method with  Δt=1/4  to find Y4 ≈ y(1).
  b. Find the error at t=1 and compare with Explicit Euler.


3. Use the centered difference approximation to y'(tn) to derive the so called 
   Midpoint Method:   Yn+1 = Yn-1 + 2 Δt f(tn, Yn) , n=1,2,... 
 
   Note that this requires both Yn-1 and Yn to produce Yn+1.  It is a 2-step method, 
   hence not self-starting (need Y0 and Y1 before it can be applied), 
   so some single-step method (like Euler) must be used to start it off.
   However, it has the advantage of being a 2nd order method, and explicit.
 
   For each IVP problem (A), (B), do the following:
  a. Apply the Midpoint Method with  Δt=1/4  to find Y4 ≈ y(1).
  b. Find the error at t=1 and compare with Explicit Euler and with Implicit Euler.
     Which method seems to be doing better in this case ?

Solutions

Expert Solution


Related Solutions

Solve the following IVPs: A. y"" +2y′′+y = 4et, y(0)=1,  y′(0)=1, y′′(0)=1, y′′′(0)=1. B. y′′′+25y′ = 325e−t,...
Solve the following IVPs: A. y"" +2y′′+y = 4et, y(0)=1,  y′(0)=1, y′′(0)=1, y′′′(0)=1. B. y′′′+25y′ = 325e−t, y(0) = 0, y′(0) = 0, y′′(0) = 0.
y"-3y'+2y=4t-8 , y(0)=2 , y'(0)=7 y(t)=?
y"-3y'+2y=4t-8 , y(0)=2 , y'(0)=7 y(t)=?
a) ty’ −y/(1+T) = T,(T>0),y(1)=0 b) y′+(tanT)y=(cos(T))^2,y(0)=π2 Solve the above equations.
a) ty’ −y/(1+T) = T,(T>0),y(1)=0 b) y′+(tanT)y=(cos(T))^2,y(0)=π2 Solve the above equations.
y''+2y'+2y=0,y(45)=2,y'(45)=-2
y''+2y'+2y=0,y(45)=2,y'(45)=-2
y''' + 2y'' − y' − 2y = sin(4t),  y(0) = 0,  y'(0) = 0,  y''(0) = 1
y''' + 2y'' − y' − 2y = sin(4t),  y(0) = 0,  y'(0) = 0,  y''(0) = 1
Solve using Laplace Transform ty'' + 2(t-1)y'-2y = 0 y(0)=0, y'(0)=0, Y(s) = C/(s^2+2s)^2 (C is...
Solve using Laplace Transform ty'' + 2(t-1)y'-2y = 0 y(0)=0, y'(0)=0, Y(s) = C/(s^2+2s)^2 (C is arbitrary)
if y(t) is the solution of y′′+2y′+y=δ(t−3),y(0)=0,y′(0)=0 the find y(4)
if y(t) is the solution of y′′+2y′+y=δ(t−3),y(0)=0,y′(0)=0 the find y(4)
u(t−c) =uc(t) ={0, 0≤t<c,1, t≥c.} USE Laplace Transform to solve y′′+ 2y′+ 2y=δ(t−5)e^tcost, y(0) = 1,...
u(t−c) =uc(t) ={0, 0≤t<c,1, t≥c.} USE Laplace Transform to solve y′′+ 2y′+ 2y=δ(t−5)e^tcost, y(0) = 1, y′(0) = 2, whereδ(t)is the Dirac delta. Does the solution show a resonance?
y′ = t, y(0) = 1, solution: y(t) = 1+t2/2 y′ = 2(t + 1)y, y(0)...
y′ = t, y(0) = 1, solution: y(t) = 1+t2/2 y′ = 2(t + 1)y, y(0) = 1, solution: y(t) = et2+2t y′ = 5t4y, y(0) = 1, solution: y(t) = et5 y′ = t3/y2, y(0) = 1, solution: y(t) = (3t4/4 + 1)1/3 For the IVPs above, make a log-log plot of the error of Backward Euler and Implicit Trapezoidal Method, at t = 1 as a function of hwithh=0.1×2−k for0≤k≤5.
y′ = t, y(0) = 1, solution: y(t) = 1+t2/2 y′ = 2(t + 1)y, y(0)...
y′ = t, y(0) = 1, solution: y(t) = 1+t2/2 y′ = 2(t + 1)y, y(0) = 1, solution: y(t) = et2+2t y′ = 5t4y, y(0) = 1, solution: y(t) = et5 y′ = t3/y2, y(0) = 1, solution: y(t) = (3t4/4 + 1)1/3 For the IVPs above, make a log-log plot of the error of Explicit Trapezoidal Rule at t = 1 as a function ofhwithh=0.1×2−k for0≤k≤5.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT