Connection between numerical integration and solving ODE numerically.

riemann86
Messages
11
Reaction score
0
Hey

I have taken a programming course. And I have learned about Simpson, Trapezoidal and the midpoint rule etc, I have programmed these.
I have also implemented forward Euler, backward euler, Runge Kutta etc for solving ODE.

I am wondering if there is any way to unify these two things, are there any texts you know that treat these two things as allmost the same? They were thought seperately but when you solve an ODE analytically, you integrate. So the Euler method is kind of an integration, but these methods are not derived this way, they are derived with you wanting to iterate forward, and it is not an emphasis on integration.

Are there any texts or anything that unites these two things? It seems like the only difference is that in one case you have to iterate and in the other you don't really iterate, but in both you integrate?
 
Physics news on Phys.org
Imagine the following differential equation: dy/dx = f(x)
Doing eulers method is the same as integrating f(x) using left hand sums. You should check this as an exercise

In general a way of solving odes can be reduced to integrating a function by this specialization, but it's not worth mentioning this because solving odes typically requires a much more general way of iterating forward than integration does, because when integrating you already know the derivative everywhere
 
Thank you very much, I think I understand it much clearer now.
Would it be fair to say then that a problem of solving an ODE will be reduced to numerical integration if one actually knew the exacat derivative at each point?, but it is not the same since we must approximate the derivative?

I checked with your example by writing the sums and it works, thanks! :)
But is it so that there for example exists a numerical way of solving ODE that will boil down to simpson if we actually had the exact derivative at each point?
And can we go the opposite way, is there a way to simplify the Runge Kutta method for example, so that if the function is known, we can use Runge Kutta to integrate it?
 
when you solve an ODE analytically, you integrate.
This is true only for a limited variety of first order differential equations. For example, to solve the comparatively simple y''+ y= 0, y(0)= 0, y(1)= 0, you do not integrate.
 
Thread 'Direction Fields and Isoclines'
I sketched the isoclines for $$ m=-1,0,1,2 $$. Since both $$ \frac{dy}{dx} $$ and $$ D_{y} \frac{dy}{dx} $$ are continuous on the square region R defined by $$ -4\leq x \leq 4, -4 \leq y \leq 4 $$ the existence and uniqueness theorem guarantees that if we pick a point in the interior that lies on an isocline there will be a unique differentiable function (solution) passing through that point. I understand that a solution exists but I unsure how to actually sketch it. For example, consider a...
Back
Top