Skip to main content

Laplace: 3x3 grid 200/300/400/500

Short answer

Using standard five-point Laplace formula and symmetry, Gauss-Seidal iteration gives converged values: u1=325.0000, u2=325.0000, u3=325.0000, u4=375.0000, u5=350.0000, u6=375.0000, u7=325.0000, u8=325.0000, u9=325.0000.

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

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 200, 300, 200 (above u₁, u₂, u₃) and the same along the bottom (below u₇, u₈, u₉); left 400, 500, 400 (beside u₁, u₄, u₇) and the same along the right (beside u₃, u₆, u₉). Corner values are not used.

Equations

u₁ = ¼(600 + u₂ + u₄)
u₂ = ¼(300 + 2u₁ + u₅)
u₄ = ¼(500 + 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 333 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₅
0333.0000333.0000333.0000333.0000
1316.5000316.5000366.5000341.5000
2320.7500320.7500370.7500345.7500
3322.8750322.8750372.8750347.8750
4323.9375323.9375373.9375348.9375
5324.4688324.4688374.4688349.4688
6324.7344324.7344374.7344349.7344
7324.8672324.8672374.8672349.8672
8324.9336324.9336374.9336349.9336
9324.9668324.9668374.9668349.9668
10324.9834324.9834374.9834349.9834
……………
18324.9999324.9999374.9999349.9999
19325.0000325.0000375.0000350.0000

Converged to 4 decimals after 19 iterations.

Direct solution of the equations (check)

u₁ = 325.0000
u₂ = 325.0000
u₄ = 375.0000
u₅ = 350.0000

Answer: u₁ = 325.0000, u₂ = 325.0000, u₃ = 325.0000, u₄ = 375.0000, u₅ = 350.0000, u₆ = 375.0000, u₇ = 325.0000, u₈ = 325.0000, u₉ = 325.0000

✓ Answer checked by Claude Opus 5.5 (high effort)

All Numerical Method chapter 7 questions →