Connection between numerical integration and solving ODE numerically.

In summary: You solve the system of linear equations for y(x), which is a standard method for solving systems of linear equations.
  • #1
riemann86
11
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
  • #2
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
 
  • #3
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?
 
  • #4
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.
 
  • #5


Yes, there is a connection between numerical integration and solving ODEs numerically. In fact, numerical integration methods are often used to solve ODEs numerically. This is because solving an ODE involves finding a function that satisfies the ODE, whereas numerical integration involves finding an approximation of the area under a curve. Both of these tasks involve finding a function, and therefore, there are similarities between the two.

One way to think about this connection is to consider that solving an ODE is essentially finding the anti-derivative of the ODE, which is the same as finding the area under the curve represented by the ODE. This is where numerical integration methods come in - they provide a way to approximate this area under the curve, which in turn helps us find a solution to the ODE.

There are many texts and resources that discuss this connection and approach numerical integration and solving ODEs in a unified manner. Some examples include "Numerical Methods for Engineers" by Steven Chapra and Raymond Canale, "Numerical Recipes" by William H. Press et al., and "Numerical Analysis" by Timothy Sauer. These texts explain how numerical integration methods can be used to solve ODEs and provide examples and exercises to help reinforce this connection.

Overall, understanding the connection between numerical integration and solving ODEs numerically can help deepen your understanding of both topics and make it easier to apply these methods in your work as a scientist.
 

Related to Connection between numerical integration and solving ODE numerically.

1. What is numerical integration?

Numerical integration is a method used to approximate the definite integral of a function using numerical techniques. It is often used when the integral cannot be solved analytically.

2. How is numerical integration related to solving ODEs?

Numerical integration is closely related to solving ODEs (ordinary differential equations) because it is used to approximate the solutions of ODEs. ODEs often involve integrals, and numerical integration can be used to approximate these integrals and find solutions to the ODE.

3. What are the advantages of using numerical integration to solve ODEs?

One major advantage of using numerical integration to solve ODEs is that it allows for the approximation of solutions to complex equations that cannot be solved analytically. It also allows for the solution to be calculated at specific points in time, which is useful for modeling and simulation purposes.

4. Are there different types of numerical integration methods?

Yes, there are various numerical integration methods, such as the Trapezoidal Rule, Simpson's Rule, and Gaussian Quadrature. Each method has its own advantages and disadvantages, and the choice of method depends on the specific problem being solved.

5. How accurate is numerical integration in solving ODEs?

The accuracy of numerical integration in solving ODEs depends on the method used and the step size chosen. Generally, the smaller the step size, the more accurate the approximation will be. However, smaller step sizes also require more computation time. Therefore, it is important to balance accuracy and efficiency when using numerical integration to solve ODEs.

Similar threads

  • Differential Equations
Replies
9
Views
2K
  • Differential Equations
Replies
3
Views
1K
  • Differential Equations
Replies
16
Views
3K
Replies
2
Views
5K
  • Differential Equations
Replies
2
Views
2K
Replies
14
Views
2K
  • Calculus and Beyond Homework Help
Replies
4
Views
806
Replies
6
Views
2K
Replies
2
Views
777
  • Science and Math Textbooks
Replies
12
Views
1K
Back
Top