Finite difference method derivation PDE

Click For Summary
SUMMARY

The discussion centers on the derivation of the finite difference method for solving the Poisson equation, specifically $$U_{xx} + U_{yy} = F(x,y)$$ within the unit square. The central difference approximation is utilized, leading to the expression $$U(x,y) = \frac{1}{4}[U(x+h,y)+U(x-h,y)+U(x,y-h)+U(x,y+h)-h^2F(x,y)]$$. A discrepancy arises regarding the coefficient in the book's solution, which uses $$\frac{1}{2}$$ instead of $$\frac{1}{4}$$. Participants assert that the standard computation found in numerous textbooks supports the $$\frac{1}{4}$$ coefficient.

PREREQUISITES
  • Understanding of partial differential equations (PDEs)
  • Familiarity with finite difference methods
  • Knowledge of central difference approximation techniques
  • Basic concepts of numerical analysis
NEXT STEPS
  • Study the derivation of the finite difference method for the Poisson equation
  • Learn about the stability and convergence of finite difference methods
  • Explore numerical solutions for boundary value problems using MATLAB or Python
  • Research common errors in finite difference approximations and their corrections
USEFUL FOR

Students and professionals in applied mathematics, computational physics, and engineering who are working with numerical methods for solving partial differential equations.

fahraynk
Messages
185
Reaction score
5

Homework Statement


Which algebraic expressions must be solved when you use finite difference approximation to solve the following Possion equation inside of the square :

$$U_{xx} + U_{yy}=F(x,y)$$[/B]
$$0<x<1$$ $$0<y<1$$
Boundary condition $$U(x,y)=G(x,y)$$

Homework Equations


Central difference approximation
$$U_{xx}=\frac{-2F(x)+F(x+h)+F(x-h)}{h^2}$$
$$U_x=\frac{F(x+h)-F(x-h)}{2h}$$

The Attempt at a Solution


$$U_{xx}+U_{yy} = \frac{1}{h^2}[U(x+h,y)+U(x-h,y)-4U(x,y)+U(x,y+h)+U(x,y-h)]=F(x,y)$$
$$U(x,y)=\frac{1}{4}[U(x+h,y)+U(x-h,y)+U(x,y-h)+U(x,y+h)-h^2F(x,y)]$$

The books solution is
$$\frac{1}{2}[U(i+1,j)+U(i-1,j)+U(i,j+1)+U(i,j-1)]-\frac{h^2}{4}F(x,y)$$

I know why the book changed x,y to i,j... but I don't get why the fraction is 1/2 instead of 1/4 across the entire equation.
 
Physics news on Phys.org
fahraynk said:

Homework Statement


Which algebraic expressions must be solved when you use finite difference approximation to solve the following Possion equation inside of the square :

$$U_{xx} + U_{yy}=F(x,y)$$[/B]
$$0<x<1$$ $$0<y<1$$
Boundary condition $$U(x,y)=G(x,y)$$

Homework Equations


Central difference approximation
$$U_{xx}=\frac{-2F(x)+F(x+h)+F(x-h)}{h^2}$$
$$U_x=\frac{F(x+h)-F(x-h)}{2h}$$

The Attempt at a Solution


$$U_{xx}+U_{yy} = \frac{1}{h^2}[U(x+h,y)+U(x-h,y)-4U(x,y)+U(x,y+h)+U(x,y-h)]=F(x,y)$$
$$U(x,y)=\frac{1}{4}[U(x+h,y)+U(x-h,y)+U(x,y-h)+U(x,y+h)-h^2F(x,y)]$$

The books solution is
$$\frac{1}{2}[U(i+1,j)+U(i-1,j)+U(i,j+1)+U(i,j-1)]-\frac{h^2}{4}F(x,y)$$

I know why the book changed x,y to i,j... but I don't get why the fraction is 1/2 instead of 1/4 across the entire equation.

I think the book's expression is wrong; your computation is the standard one that appears in numerous textbooks (maybe not yours!) and in many web pages; just Google "laplacian + finite differences".
 

Similar threads

  • · Replies 12 ·
Replies
12
Views
2K
  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 21 ·
Replies
21
Views
2K
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 4 ·
Replies
4
Views
1K
Replies
26
Views
4K
Replies
5
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K