1. Solution for Laplace Equation
π2π’
ππ₯2 +
π2π’
ππ¦2 = 0 ----------(12)
Consider a rectangular region π for which π’(π₯, π¦) is known at the boundary. Divide this region into
a network of square mesh of side β (assuming that an exact division of π is possible.
Figure-2. Figure-3.
2. Replacing the derivatives in (12) by their difference approximations, we have
1
β2
π’π+1,π β 2π’π,π + π’πβ1,π +
1
β2
π’π,π+1 β 2π’π,π + π’π,πβ1 = 0
Or π’π,π =
1
4
π’π+1,π + π’πβ1,π + π’π,π+1 + π’π,πβ1 ----------(13)
This shows that the value of π’ at any interior mesh point is the average of its values at four
neighboring points to the left, right, above and below. Equation (13) is called standard 5-point
formula as shown in figure-2.
3. Sometimes a formula similar to this is used which is given by,
π’π,π =
1
4
(π’πβ1,π+1 + π’π+1,πβ1 + π’π+1,π+1 + π’πβ1,πβ1) ----------(14)
Which shows that the value of π’ at any interior mesh point is the average of its values at four
neighboring diagonal mesh points. Equation (14) is also called the diagonal 5-point formula as
shown in figure-3. Although this is less accurate than the standard 5-point formula, it is used in
getting a good approximation for the starting values at the mesh points.
4. By applying 5-point formula at each interior mesh point, we arrive at linear equations in the nodal
values π’π,π. These equations can be solved by Jacobiβs iterative method or Gauss-Seidal iterative
method. The iterative methods are repeated till the difference between two consecutive iterates become
negligible.
1. Jacobiβs method: Denoting the ππ‘β iterative value of π’π,π by π’π,π
π
, the iterative formula to solve is,
π’π,π
(π+1)
=
1
4
π’π+1,π
(π)
+ π’πβ1,π
(π)
+ π’π,π+1
(π)
+ π’π,πβ1
(π)
----------(15)
It gives improved values of π’π,π at the interior mesh points.
1. Gauss-Seidal method or Leibmannβs method: In this method, the iteration formula is,
π’π,π
(π+1)
=
1
4
π’π+1,π
(π)
+ π’πβ1,π
(π+1)
+ π’π,π+1
(π+1)
+ π’π,πβ1
(π)
----------(16)
This utilizes the latest iterative values available and evaluates the mesh points symmetrically from
left to right along successive rows.
5. Note:
οΆ The accuracy of the calculations depends on the mesh-size i.e. smaller the π, better the
accuracy. But if π is too small, it increases the computations.
οΆ The error in solving Laplace and Poissonβs equations by finite-difference method is of the
order π ππ .
6. Solution: Solution is symmetric about principal
diagonal as shown in figure. Using 5-point formula at
each of the unknown mesh points, we have,
4π = π + π + 2
4π = 2π + 4
4π = 2π
Solving for unknowns,
π = π = 1; π = 1.5; π = 0.5
Solved examples:
1. Solve
πππ
πππ +
πππ
πππ = π, with π =
π
π
, π π, π = π π, π = π, π < π, π < π and also π π, π = π π β ππ
,
π π, π = π π β ππ .
7. 2. Solve
πππ
πππ +
πππ
πππ = π, with π =
π
π
, π π, π = π π, π = π, π < π, π < π and also π π, π =
πππ, π π, π = π using Leibmannβs method.
Solution: With reference to the figure, we have equations
in 6 unknowns.
4π = 100 + π + π
4π = π + π + π
4π = π + π
4π = 100 + 2π + π
4π = 2π + π + π
4π = 2π + π
Solving using Leibmannβs method or Gauss seidal
method(3 iterations),
π π π π π π
0 0 0 0 0 0
25 6.25 1.5625 37.5 12.5 0.78125
35.9375 12.5 3.3203 46.09375 17.96875 6.1523 and so on.
9. Poisson Equation
The Poisson equation is an elliptic partial differential equation that frequently
emerges when modeling electromagnetic systems. However, like many other partial
differential equations, exact solutions are difficult to obtain for complex
geometries. This motivates the use of numerical methods in order to provide
accurate results for real-world systems. One very simple algorithm is the Finite-
Difference Method (FDM), which works by replacing the continuous derivative
operators with approximate finite differences. Although the Finite-Difference
Method is one of the oldest methods ever devised, comprehensive information is
difficult to find compiled in a single reference.
10. β’ Poisson differential equation is
π2π’
ππ₯2 +
π2π’
ππ¦2 = π π₯, π¦ ---------- (1)
β’ Its method of solution is similar to that of Laplace equation. Here the
standard 5-point formula takes the form,
π’πβ1,π + π’π+1,π + π’π,π+1 + π’π,πβ1 β 4π’π,π = β2π(πβ, πβ) ---------- (2)
By applying formula (2) at each interior mesh point, we arrive at linear
equations in the nodal values π’π,π. These equations can be solved by
Gauss-Seidal iterative method. The iterative methods are repeated till the
difference between two consecutive iterates become negligible.