Skip to main content

Laplace: 3x3 grid 500/1000/500

Short answer

Use the five-point Laplace formula with Gauss-Seidel iteration; symmetry reduces the unknowns. The values are u1=u3=u7=u9=937.5, u2=u8=1000.0, u4=u6=1250.0, and u5=1125.0.

Solve the elliptic equation uxx + uyy = 0 for the square mesh with the boundary values as shown. [Figure: 3x3 interior points u1 u2 u3 / u4 u5 u6 / u7 u8 u9. Top boundary left to right: 0 (corner), 500, 1000, 500, 0 (corner). Bottom boundary: 0 (corner), 500, 1000, 500, 0 (corner). Left boundary top to bottom: 1000, 2000, 1000. Right boundary top to bottom: 1000, 2000, 1000.]

Number the interior points row-wise: u₁ u₂ u₃ / u₄ u₅ u₆ / u₇ u₈ u₉. For Laplace's equation ∇²u = 0 on a square mesh, each interior value equals the mean of its four neighbours (standard five-point formula):

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

Boundary values next to the interior points: top 500, 1000, 500 (above u₁, u₂, u₃) and the same along the bottom (below u₇, u₈, u₉); left 1000, 2000, 1000 (beside u₁, u₄, u₇) and the same along the right (beside u₃, u₆, u₉). Corner values are not used.

Equations

u₁ = ¼(1500 + u₂ + u₄)
u₂ = ¼(1000 + 2u₁ + u₅)
u₄ = ¼(2000 + 2u₁ + u₅)
u₅ = ¼(0 + 2u₂ + 2u₄)

The figure is symmetric about the vertical and horizontal centre lines, so u₁ = u₃ = u₇ = u₉, u₂ = u₈ and u₄ = u₆. Only u₁, u₂, u₄ and u₅ are unknown.

Iteration (Gauss–Seidel / Liebmann)

Initial value 1000 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₅
01000.00001000.00001000.00001000.0000
1875.0000937.50001187.50001062.5000
2906.2500968.75001218.75001093.7500
3921.8750984.37501234.37501109.3750
4929.6875992.18751242.18751117.1875
5933.5938996.09381246.09381121.0938
6935.5469998.04691248.04691123.0469
7936.5234999.02341249.02341124.0234
8937.0117999.51171249.51171124.5117
9937.2559999.75591249.75591124.7559
10937.3779999.87791249.87791124.8779
……………
21937.4999999.99991249.99991124.9999
22937.50001000.00001250.00001125.0000

Converged to 4 decimals after 22 iterations.

Direct solution of the equations (check)

u₁ = 937.5000
u₂ = 1000.0000
u₄ = 1250.0000
u₅ = 1125.0000

Answer: u₁ = 937.5000, u₂ = 1000.0000, u₃ = 937.5000, u₄ = 1250.0000, u₅ = 1125.0000, u₆ = 1250.0000, u₇ = 937.5000, u₈ = 1000.0000, u₉ = 937.5000

✓ Answer checked by Claude Opus 5.5 (high effort)

All Numerical Method chapter 7 questions →