Question: ( 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!
 (1) dydx=x2-y3 y(0)=0 le noticed before that there is no way

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!