Skip to main content

Laplace: five-point formula, 2x2

Short answer

Using the standard five-point formula for Laplace's equation and iterative method (Gauss-Seidel), the interior nodal values are u1 = 1208.3333, u2 = 791.6667, u3 = 1041.6667, u4 = 458.3333.

Given the values of u(x, y) on the boundary of the square as shown in the figure below, evaluate the function u(x, y) satisfying the Laplace ∇²u = 0 at the pivotal points, using standard five point formula iterative method. [Figure: interior points u1 (top-left), u2 (top-right), u3 (bottom-left), u4 (bottom-right). Top boundary: 1000, 1000, 1000 (left to right). Left boundary top to bottom: 1000 (corner), 2000, 2000, 1000 (corner). Right boundary: 500 (next to u2 row), 0 (next to u4 row), 0 (bottom). Bottom boundary: 500, 0.]

Interior points: u₁ (top-left), u₂ (top-right), u₃ (bottom-left), u₄ (bottom-right). The standard five-point formula for ∇²u = 0 is

u(i,j) = ¼[u(i−1,j) + u(i+1,j) + u(i,j−1) + u(i,j+1)]

Reading the figure: top 1000, 1000 (above u₁, u₂); left 2000, 2000 (beside u₁, u₃); right 500, 0 (beside u₂, u₄); bottom 500, 0 (below u₃, u₄). Corner values are not used.

Equations

u₁ = ¼(3000 + u₂ + u₃)
u₂ = ¼(1500 + u₁ + u₄)
u₃ = ¼(2500 + u₁ + u₄)
u₄ = ¼(0 + u₂ + u₃)

Iteration (Gauss–Seidel / Liebmann)

Initial value 875 for every unknown (close to the mean of the boundary values); each new value is used at once in the next equation.

iterationu₁u₂u₃u₄
0875.0000875.0000875.0000875.0000
11187.5000890.62501140.6250507.8125
21257.8125816.40621066.4062470.7031
31220.7031797.85161047.8516461.4258
41211.4258793.21291043.2129459.1064
51209.1064792.05321042.0532458.5266
61208.5266791.76331041.7633458.3817
71208.3817791.69081041.6908458.3454
81208.3454791.67271041.6727458.3364
91208.3364791.66821041.6682458.3341
101208.3341791.66701041.6670458.3335
111208.3335791.66681041.6668458.3334
121208.3334791.66671041.6667458.3333
131208.3333791.66671041.6667458.3333

Converged to 4 decimals after 13 iterations.

Direct solution of the equations (check)

u₁ = 1208.3333
u₂ = 791.6667
u₃ = 1041.6667
u₄ = 458.3333

Answer: u₁ = 1208.3333, u₂ = 791.6667, u₃ = 1041.6667, u₄ = 458.3333

✓ Answer checked by Claude Opus 5.5 (high effort)

All Numerical Method chapter 7 questions →