Skip to main content

Elliptic: 2x2 grid 10/20/40/50

Short answer

Using the standard five-point finite difference approximation for Laplace's equation and Gauss-Seidel iteration, the interior nodal values converge to u1 = 20.0000, u2 = 30.0000, u3 = 30.0000, u4 = 40.0000.

Solve the elliptic equation uxx + uyy = 0 for the following square mesh with boundary conditions as shown in figure below. [Figure: interior points u1 (top-left), u2 (top-right), u3 (bottom-left), u4 (bottom-right). Top boundary: 10, 20 (left to right). Left boundary: 10, 20 (top to bottom). Right boundary: 40, 50 (top to bottom). Bottom boundary: 40, 50 (left to right).]

Interior points: u₁ (top-left), u₂ (top-right), u₃ (bottom-left), u₄ (bottom-right). 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 beside the points: u₁: top 10, left 10; u₂: top 20, right 40; u₃: left 20, bottom 40; u₄: right 50, bottom 50.

Equations

u₁ = ¼(20 + u₂ + u₃)
u₂ = ¼(60 + u₁ + u₄)
u₃ = ¼(60 + u₁ + u₄)
u₄ = ¼(100 + u₂ + u₃)

Iteration (Gauss–Seidel / Liebmann)

Initial value 30 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₄
030.000030.000030.000030.0000
120.000027.500027.500038.7500
218.750029.375029.375039.6875
319.687529.843829.843839.9219
419.921929.960929.960939.9805
519.980529.990229.990239.9951
619.995129.997629.997639.9988
719.998829.999429.999439.9997
819.999729.999829.999839.9999
919.999930.000030.000040.0000
1020.000030.000030.000040.0000
1120.000030.000030.000040.0000

Converged to 4 decimals after 11 iterations.

Direct solution of the equations (check)

u₁ = 20.0000
u₂ = 30.0000
u₃ = 30.0000
u₄ = 40.0000

Answer: u₁ = 20.0000, u₂ = 30.0000, u₃ = 30.0000, u₄ = 40.0000

✓ Answer checked by Claude Opus 5.5 (high effort)

All Numerical Method chapter 7 questions →