What is the finite difference method and how does it involve a grid?

  • Thread starter courtrigrad
  • Start date
  • Tags
    Conceptual
In summary: Effectively, the finite difference method replaces a differential equation with a difference equation. Since a differential equation must hold for all points on a domain (like the real line, or plane), we require that the difference equation must be satisfied on a grid (which is the discrete version of the domain). A very simple example is the best I can do here. Suppose you have the differential equation y"- y= 0 with boundary conditions y(0)= 1, y(1)= 2. Divide the interval from 0 to 1 into 4 equal parts (I SAID "simple"). We can approximate the derivative y' (which is limit (y(x+h)- y(x))/h with h going
  • #1
courtrigrad
1,236
2
What exactly is the finite difference method and difference equations? I know you work backwards, but could you provide some examples? Also how does the finite difference method involve a grid?

Thanks
 
Physics news on Phys.org
  • #2
Effectively, the finite difference method replaces a differential equation with a difference equation.
Since a differential equation must hold for all points on a domain (like the real line, or plane), we require that the difference equation must be satisfied on a grid (which is the discrete version of the domain).
 
  • #3
A very simple example is the best I can do here.

Suppose you have the differential equation y"- y= 0 with boundary conditions y(0)= 1, y(1)= 2. Divide the interval from 0 to 1 into 4 equal parts (I SAID "simple"). We can approximate the derivative y' (which is limit (y(x+h)- y(x))/h with h going to 0)by the "finite difference" (y(x+y)- y(x))/h. Obviously, the smaller h is, the more accurate this is- here h= 0.25 which isn't all that accurate. The more partitions, the more accurate.
There are a variety of possible "finite difference" formulas for the second derivative- the best is the "centered difference": y" is approximately ((y(x)- y(x-h))/h - (y(x+y)- y(x))/h)/h= (2y(x)- y(x+h)-y(x-h))/h2. Let yi be y(x) at each of the "partition" points (also called "knots") and plug into the differential equation using the finite difference equation. That will give an equation (linear if the de is linear) for the "unknowns" yi. Because we are using the centered difference we can only do that at the "internal" knots, not the endpoints. If we have n intervals, there will be n-2 internal knots and so that only gives n-2 equations for the n yi values. Fortunately, we are given the values at the endpoints so we have n (linear) equations for the n values.

In the example I gave, The equations would be
y1= 1
-y1+ 2y2- y3= 0
-y2+ 2y3- y4= 0
y4= 2


Notice, by the way, that, for each i, the equation involves only yi, yi-1, and yi+1: 3 values only out of the possible n values. Written as a matrix, we would have a matrix in which only the central 3 diagonals have non-zero entries. That's a "tri-diagonal" matrix, a special case that is well studied. There are methods for solving tri-diagonal matrix equations using only the three diagonal values. If we divided into, say, 10000 intervals to get really good accuracy, that would give us 10000 equations in 10000 unknowns- but the three central diagons have 10000+ 9991+ 9991= 29998 entries- still large but only 0.03% of 10000x10000 possible entries- a "sparce" matrix.
 
  • #4
Also, could you graph finite difference methods on as a curve? Are there any sources that are good fot this topic?

Thanks
 

1. What is a conceptual question?

A conceptual question is a type of question that seeks to understand the underlying principles or ideas behind a concept or topic. It requires critical thinking and often involves abstract or theoretical concepts.

2. How do you approach answering a conceptual question?

The best approach to answering a conceptual question is to first understand the concept or topic being asked about. Then, use critical thinking and reasoning to break down the question and analyze its components. It may also be helpful to provide real-life examples or analogies to illustrate the concept.

3. How are conceptual questions different from other types of questions?

Conceptual questions are different from other types of questions because they do not have a single factual answer. Instead, they require deeper understanding and interpretation of a concept or idea. They often require more critical thinking and reasoning skills.

4. Can conceptual questions have more than one correct answer?

Yes, conceptual questions can have multiple correct answers because they require interpretation and critical thinking. Different individuals may have different perspectives or approaches to understanding a concept, and all of their answers can be considered correct.

5. How can answering conceptual questions benefit scientific research?

Answering conceptual questions can benefit scientific research by promoting critical thinking, stimulating new ideas and perspectives, and encouraging deeper understanding of a concept or topic. It can also lead to further research and advancements in the field.

Similar threads

  • Introductory Physics Homework Help
Replies
6
Views
186
  • Introductory Physics Homework Help
Replies
2
Views
461
  • Other Physics Topics
Replies
1
Views
2K
  • Introductory Physics Homework Help
Replies
3
Views
442
  • Programming and Computer Science
Replies
8
Views
2K
  • Engineering and Comp Sci Homework Help
Replies
5
Views
1K
Replies
1
Views
321
Replies
22
Views
1K
  • Introductory Physics Homework Help
Replies
15
Views
416
  • Introductory Physics Homework Help
Replies
6
Views
588
Back
Top