1. PF Contest - Win "Conquering the Physics GRE" book! Click Here to Enter
    Dismiss Notice
Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Finite difference method derivation PDE

  1. Dec 19, 2016 #1
    1. The problem statement, all variables and given/known data
    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)$$

    $$0<x<1$$ $$0<y<1$$
    Boundary condition $$U(x,y)=G(x,y)$$

    2. Relevant equations
    Central difference approximation

    3. 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)$$

    The books solution is

    I know why the book changed x,y to i,j... but I dont get why the fraction is 1/2 instead of 1/4 accross the entire equation.
  2. jcsd
  3. Dec 19, 2016 #2

    Ray Vickson

    User Avatar
    Science Advisor
    Homework Helper

    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".
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?
Draft saved Draft deleted