Solving integral equation with nystrom method

Click For Summary

Discussion Overview

The discussion revolves around the Nyström method for solving integral equations, specifically focusing on a participant's equation involving a function defined both inside and outside an integral. The conversation includes requests for explanations, guidance on implementation in Fortran, and clarification on the method's application.

Discussion Character

  • Exploratory
  • Technical explanation
  • Homework-related

Main Points Raised

  • One participant seeks a simple explanation of the Nyström method and its application to a specific integral equation.
  • Another participant questions the original poster's experience with Fortran and understanding of the Nyström method, highlighting the complexity of having the function f both inside and outside the integral.
  • There are suggestions to start with simpler integrals before tackling the more complex equation posed.
  • Participants discuss the general form of the Nyström method, including the approximation of integrals and the determination of weights.
  • One participant provides a formula for calculating weights and suggests using equal spacing for initial attempts.
  • A later reply indicates that the original poster has gained understanding and can now solve their equation.

Areas of Agreement / Disagreement

Participants do not reach a consensus on the best approach to solve the integral equation, and multiple viewpoints on the complexity of the problem and the Nyström method's application remain present.

Contextual Notes

Participants express varying levels of familiarity with the Nyström method and Fortran programming, indicating potential gaps in foundational knowledge that could affect understanding and implementation.

Who May Find This Useful

This discussion may be useful for individuals interested in numerical methods for solving integral equations, particularly those using Fortran or exploring the Nyström method.

huyhohoang
Messages
12
Reaction score
0
Hello everyone!
I am building set of Fortran code to solve integral equation. I have read "Numerical recipe" and heard about "Nystrom method". But there's no sample problem, I found it difficult to understand. Can anyone explain "Nystrom method" for me with a simple problem?
Many thanks
 
Technology news on Phys.org
Do you have a particular equation you want to solve?
 
Here my equation $$f(x)=x+\int_{-1}^{1}xyf(y)dy$$
Can you solve it in detail for me? I am an amauteur :)
Thank you so much
 
huyhohoang said:
Can you solve it in detail for me?
I can. But I'm not inclined to. The purpose of this forum is education. So you are a student - not an amateur - and let's find out whether you understand what you're wading into:

What's your experience so far as a Fortran programmer? Took a course? In a course?

Do you know what the Nyström method is?

Do you realize the significance of function "f" being used both inside the integration and out? What problem does that pose?
 
  • Like
Likes   Reactions: huyhohoang
Thanks for your advice! Would you mind send me some articles or books for more details?
 
If you attempt to answer those questions I posed, I would be able to gauge where you are starting from.

I would guess that you have the Fortran covered - you have coded, perhaps already taken a course or two - and you have reference material and a development environment set up.

The Nyström method is just a few equations and it is covered in a wiki article. When it is implemented in software, the weights are commonly set equal and the x's are the midpoints of the ranges - with each range being of equal width.

As I suggested before, having the function f() inside and outside of the integral adds a complicating twist to the problem. I would suggest you start with a simpler integral, get your Fortran program working with it. Once you've done that, you should understand the complication. There are methods and college course available for solving those kinds of integral problems. And there are potential ways of attacking them by computer - but they require considerable expertise on the part of the software developers.

And, of course, it may already be done. Mathematica sells products for solving these types of equations.
Here's a link to their online integral calculator. It won't do the integral you posed, but it will do many others:
http://integrals.wolfram.com/index.jsp
 
An integral is approximated by $$\int_{a}^{b}f(x)dx=\sum_{i=1}^{n}w_{i}f(x_{i})$$
I am very confused with the weights wi in Nystrom equation. How can I find it?
 
As I said:
The Nyström method is just a few equations and it is covered in a wiki article. When it is implemented in software, the weights are commonly set equal and the x's are the midpoints of the ranges - with each range being of equal width.
So, for example, if you divide this integral into 100 pieces, then:
x1=a+(1(b-a)/200), x2=a+(3(b-a)/200), ... x100=a+(199(b-a)/200)
w1 = w2 = ... = w100 = (b-a)/100

In general, you might want to use x values that are not evenly spaced - in which case you might use this formula for the weights: wn=(xn+1-xn-1)/2
But for now, keep it simple and use the values I posted above.
 
  • Like
Likes   Reactions: Silicon Waffle
I have known how to solve my equation :) Thanks for your help.
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 14 ·
Replies
14
Views
4K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 11 ·
Replies
11
Views
2K
Replies
1
Views
2K
  • · Replies 12 ·
Replies
12
Views
2K
  • · Replies 2 ·
Replies
2
Views
1K