Problem 1: Solve a simple ODE with function-based code This exercise aims to solve the ODE problem u(t)-5u^(')(t)=0 with the initial condition u(0)=0.1 and for t in[0,20]. 2 a) Identify the mathematical function f(t,u) in the generic ODE form u^(')=f(t,u), and implement it as a Python function. b) Use the forward_euler function from Section 1.1 of the document Solving Ordinary Differential Equations in Python to compute a numerical solution of the ODE problem. Use a time step of Delta t=5. c) Plot together the numerical solution and the exact solution u(t)=0.1e^(0.2 t). d) Try successively smaller Delta t values and demonstrate visually that the numerical solution approaches the exact solution. Filename: simple_ODE_func.py Problem 2: Solve a simple ODE with.
I just need the solution for problem 2.