y′ = t, y(0) = 1, solution: y(t) = 1+t2/2 y′ = 2(t + 1)y, y(0)...

80.2K

Verified Solution

Question

Advance Math

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 BackwardEuler and Implicit Trapezoidal Method, at t = 1 as a function ofhwithh=0.1×2−k for0≤k≤5.

Answer & Explanation Solved by verified expert
4.4 Ratings (885 Votes)
MATLAB CodeBackward Eulerclose allclearclck 015H 01 2kyexact t 1 t2 2y1 1 Initial conditionti 0 tf 1 Interval of tyfvec Vector for storing yt 1 for different stepsizesfor i 1lengthHh Hit tihtffor j 1lengtht1syms ynextsol solveynext yj htj1 Solve foy ynextsol sol1yj1 doublesol Backward Euler Updateendyfvec yfvec yend Store the value of yt 1endfigure loglogH absyexact1 yfvec o xlabelhylabelErrortitlesprintfLogLog plot of Error of Backward Eulers Method att 1nODE y tyexact t expt2 2ty1 1 Initial conditionti 0 tf 1 Interval of tyfvec Vector for storing yt 1 for different stepsizesfor i 1lengthHh Hit tihtffor j 1lengtht1syms ynextsol solveynext yj h2tj1 1ynext Solvefoy ynextsol sol1yj1 doublesol    See Answer
Get Answers to Unlimited Questions

Join us to gain access to millions of questions and expert answers. Enjoy exclusive benefits tailored just for you!

Membership Benefits:
  • Unlimited Question Access with detailed Answers
  • Zin AI - 3 Million Words
  • 10 Dall-E 3 Images
  • 20 Plot Generations
  • Conversation with Dialogue Memory
  • No Ads, Ever!
  • Access to Our Best AI Platform: Flex AI - Your personal assistant for all your inquiries!
Become a Member

Other questions asked by students