Solving integral equation with nystrom method

Click For Summary
The discussion centers on the Nyström method for solving integral equations, specifically the equation f(x) = x + ∫_{-1}^{1} xyf(y) dy. A participant seeks a detailed explanation and sample problem to better understand the method. Responses emphasize the educational purpose of the forum, encouraging the inquirer to assess their understanding of the Nyström method and its complexities, particularly the challenge of having the function f both inside and outside the integral. The Nyström method is briefly described, noting that it involves approximating integrals using weighted sums of function values at specific points. A suggestion is made to start with simpler integrals to build programming skills in Fortran before tackling more complex problems. The weights in the Nyström method are typically set equal, with midpoints of the integration range used for calculations. For more advanced applications, different spacing for x values and corresponding weights can be employed. The discussion concludes with the inquirer expressing newfound clarity on solving their equation.
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 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 Silicon Waffle
I have known how to solve my equation :) Thanks for your help.
 

Similar threads

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