Numerical Method question solutions
Ältere Kommentare anzeigen
- Consider the following second order differential equation: d2 u (N — 1) du
— + —u = O in (0, 1), (0.1) dr r dr r2 where 1 + I (N — and N 1, 2, 3.
- Find (erplicitly) all the solutions to (0.1) having the form
Hint: make the change of variables t log(r) for r e (0, 1). Find the ODE that v(log(r)) v(t) solves. Observe that this change of variable maps (0, 1) (—00, 0).
- Find the exact solution for the ODE (0.1) with the Final Values
u(l) 0, du (l) —— 1. dr
Hint: Use the explicit solutions found in i.
- Write one MATLAB script to solve numerically the ODE (0.1) + Final Value problem in ii.. Hint: rlYansforrn the Final Value Problem into an IVP reversing the interval (0, 1) using
The script must contain at least one implementation based on the Crank-Nicholson method and another based on the Runge-Kutta method of order 2.
Include plots to compare the implementatioms against the true sohltion. Provide also analysis of your findings.
2 Kommentare
James Tursa
am 1 Jun. 2021
What have you done so far? What specific problems are you having with your code?
Can you add an image showing the differential equation and instructions? I can't understand what you have posted.
Mehmet Çuha
am 3 Jun. 2021
Bearbeitet: darova
am 5 Jun. 2021
Antworten (0)
Kategorien
Mehr zu Ordinary Differential Equations finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!