Question: Please use python 1. Use pythonumpy to solve the differential equation u(t) + u'(t) 0 with initial conditions u(0) 1 and u,(0) 0, using the
Please use python
1. Use pythonumpy to solve the differential equation u"(t) + u'(t) 0 with initial conditions u(0) 1 and u,(0) 0, using the Forward Euler method. First plot the analytical solution to 1"(t) + u'(t) = 0 and then overlay this plot with the results from the Forward Euler method, with t 1x10-3 1x10-2, and 1x10-1 (you should have 4 total lines on your graph). Plot from t 0 to t 2. Your plot should have u on the x- axis and u' on the y-axis. Please include commented code in your solution. 1. Use pythonumpy to solve the differential equation u"(t) + u'(t) 0 with initial conditions u(0) 1 and u,(0) 0, using the Forward Euler method. First plot the analytical solution to 1"(t) + u'(t) = 0 and then overlay this plot with the results from the Forward Euler method, with t 1x10-3 1x10-2, and 1x10-1 (you should have 4 total lines on your graph). Plot from t 0 to t 2. Your plot should have u on the x- axis and u' on the y-axis. Please include commented code in your solution
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
