Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

( 1 ) d y d x = x 2 - y 3 y ( 0 ) = 0 le noticed before that there is

(1)
dydx=x2-y3
y(0)=0
le noticed before that there is no way for us to solve this system by any analytic method, but since x2y3 is a continuous function, we know that a solution exists on some interval around the initial value x0. We saw using slope field and drawode roughly what the solution curve looks like. Now let's se our new numerical method to estimate the solution.
Exercise 3.3
a. Run Euler's Method in MATLAB for the inital value problem (1) on the interval 0x4. Use different colors to plot the estimates for the following values of h:1,0.5,0.25, and 0.1.
Remember to use hold on! Some of the colors you can use with MATLAB's plot command are 'r','g','b','c','m','y', and 'k'.
Notice that the y-axis is very large. Rescale the y-axis to range from -10 to 10.(Assignment 1 showed us how to do this.) Given the results of the plot, what can you say about the accuracy of the h=0.1 case? You do not need to include the actual data in the table x,y in your writeup, only the plot and your written answer.
b. Enter hold off so that MATLAB will overwrite your previous plot, and this time, run Euler's Method with the h values 1,0.1,0.01, and 0.001. Plot the results on one graph using colors of your choice, and rescale so that y ranges from 0 to 2.5. Paste this plot into your writeup.
Did the additional shrinking of h change the results significantly? What does this suggest about the accuracy of your solution for each step size? Comment on the consistency of your plot with the direction field shown at the top of the page, and also describe any inconsistencies between different step sizes.
Answer in MATLAB code please!
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

DB2 11 The Database For Big Data And Analytics

Authors: Cristian Molaro, Surekha Parekh, Terry Purcell, Julian Stuhler

1st Edition

1583473858, 978-1583473856

More Books

Students also viewed these Databases questions