Question: Write a python / Matlab code to solve the following differential equation with initial value y ( 0 ) = 0 . 5 . dy

Write a python/Matlab code to solve the following differential equation with initial value y(0)=0.5.
dy/dx = xy - x^2
Using
(1) Traditional RK-4 Method
(2) Runge-Kutta-Gill Method.
Take step size 0.001 and find solution from x=0 to 2. After the solution plot the results.
Please submit your jupyther note book/ matlab original file and a pdf copy of the code in BB.

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!