




















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





















Laplace’s equation describes the equilibrium distribution of energy, species and electromagnetic fields under certain assumptions. It is a second-order, partial- differential equation with closed boundaries. The simplest case to consider is a rectangular region with x and y coordinates such that 0 x L and 0 y H. The dependent variable is a potential, u(x,y), which may be temperature, electromagnetic potential, velocity potential or a range of other physical variables. We assume that the potential is known over the complete boundary. In subsequent problems we will consider the case where the potential gradient, rather than the potential, is known over a portion of the boundary. In two dimensions, Laplace’s equation with a simple set of boundary conditions may be written as follows
2 2
2
u y uLy u x uxH u x
x L y H y
u x
u
Here, the boundary conditions give u = 0 at x = 0, x = L, and y = 0. At y = H, the boundary condition is a known function of x. Note that there may be a discontinuity at edges of the upper boundary (x = 0, y = H) and (x = L, y = H).
The solution of Laplace’s equation proceeds by a method known as the separation of variables. In this method we postulate a solution that is the product of two functions, X(x) a function of x only and Y(y) a function of the y only. With this assumption, our solution becomes.
u(x,t) = X(x)Y(y) [2]
We do not know, in advance, if this solution will work. However, we assume that it will and we substitute it for u in equation [1]. Since X(x) is a function of x only and Y(y) is a function of y only, we obtain the following result when we substitute equation [2] into equation [1].
0
2
2 2
2 2
2 2
2 2
2 2
2
y
Y y X x x
X x Y y y
X xY y x
X xY y y
u x
u [3]
If we divide the final equation through by the product X(x)Y(y), and move the y derivative to the other side of the equal sign, we obtain the following result.
2
2 2
The left hand side of equation [6] is a function of x only; the right hand side is a function of y only. The only way that this can be correct is if both sides equal a constant. This also shows that the separation of variables solution works. In order to simply the solution, we choose the constant^1 to be equal to^2. This gives us two ordinary differential equations to solve.
2 2
2 2 2
dy
dY y dx Y y
d X x X x
Equation [5] shows that we have two separate differential equations, each of which has a known general solution. These equations and their general solutions are shown below. 2
2
2
2
2
From the solutions in equations [6] and [7], we can write the general solution for u(x,t) = X(x)T(t) as follows.
u ( x , y ) A sin( x ) B cos( x ) C sinh( y ) D cosh( y ) [8]
We now apply the boundary conditions shown with the original equation [1] to evaluate the constants A, B, C, and D. If we substitute the boundary condition at x = 0 into equation [8], get the following result.
u ( 0 , y ) 0 A sin( 0 ) B cos( 0 ) C sinh( y ) D cosh( y ) [9]
Because sin(0) = 0 and cos(0) = 1, equation [9] will be satisfied for all y only if B = 0. Thus, we set B = 0. Next we apply the solution in equation [8] (with B = 0) to the boundary condition at y = 0
u ( x , 0 ) 0 A sin( x ) C sinh( 0 ) D cosh( 0 ) [10]
(^1) The choice of – (^2) for the constant as opposed to just plain comes from experience. Choosing the constant to have this form now gives a more convenient result later. If we chose the constant to be simply , we would obtain the same result, but the expression of the constant would be awkward. In solutions to Laplace’s equation in rectangular geometries we will select the constant as – ^2 to give us an ordinary differential equation whose solutions results in sines and cosines in the direction for which we have a Sturm-Liouville problem (with homogenous boundary conditions). (^2) As usual, you can confirm that this solution satisfies the differential equation by substituting the solution into the differential equation.
L m n
L n
L
n
n
L N
dx L
m x L
m H dx C L
n H L
n x L
m x C
dx L
n H L
n x L
m x dx C L
m x u x
0
2 1 0
0 0 1
sin sin sinh sinh sin
( )sin sin sin sinh
[15]
In the second row of equation [15] we can reverse the order of summation and integration because these operations commute. We then recognize that the integrals in the summation all vanish unless m = n, leaving only the sine-squared integral to evaluate. Solving for Cm and evaluating the last integral^3 in equation [15] gives the following result.
L N
L
L N m
0
0
2
For any initial condition, then, we can perform the integral on the right hand side of equation [16] to compute the values of Cm and substitute the result into equation [13] to compute u(x,y). For example, consider the simplest case where uN(x) = UN, a constant. In this case we find Cm from the usual equation for the integral of sin(ax).
m m
m m
m L m
m x m
dx L
m x L
dx L
m x u x L
m H
N N
L N
L N
L m N
1 cos
cos cos
cos
sin
( )sin
sinh
0 0 0 [17]
Since cos(m) is 1 when m is even and – 1 when m is odd, the factor of 1 – cos(m) is zero when m is even and 2 when m is odd. This gives the final result for Cm shown below.
(^3) Using a standard integral table, and the fact that the sine of zero and the sine of an integral multiple of is zero, we find the following result:
sin 2 4
sin 2 4
sin 0 0
m L m
mx m
x L dx L
m x L L ^
m even
modd m
N
m 0
Substituting this result into equation [13] gives the following solution to the diffusion equation when u(x,H) = uN(x) = UN, a constant, and all other boundary values of u are zero.
n (^) n
If we substitute the equation for n into the summation terms we get the following result.
n
N
If we compare this equation to equation [19] in the notes on the solution of the diffusion equation, we see that the sine terms are the same. The exponential
time term, max^2
22 x
n t
^ , in the diffusion equation, has been replaced by the hyperbolic sine terms in equation [20]. This similarity arises from the fact that we have the same ordinary differential equation, with the same zero boundary conditions, for the variable X(x) in each problem. This is an important feature of separation of variable solutions. The contribution to the solution from a term like
2
2 x
u
will be the same in different partial differential equations where the
separation of variables solution works and that the boundary conditions for the term are the same.
Equation [20] shows that the ratio u(x,y)/UN depends on the dimensionless parameters x/L, y/L, and H/L. Thus we can compute universal plots of the solution for different values of H/L. A contour plot of the solution u(x,y) where U = 1 and H/L = 1 is shown in Figure 1 below.
Each of the subscripted functions, ui(x,y) represents a solution of the differential equation in equation [21], but with different boundary conditions. The different boundary conditions for the different dependent variables, ui(x,y), are shown below.
4 4 4 4
3 3 3 3
2 2 2 2
1 1 1 1
u y u x and u x u xH u L y
u Ly u x and u x u xH u y
u x u x and u y u Ly u xH
u xH u x and u y u Ly u x
E
W
S
N
[23]
The solution posed in equation [22] with the boundary conditions in equation [23] is a complete solution to the differential equation and boundary conditions in equation [20]. Since each function ui(x,y) satisfies the homogenous differential equation, the sum of these four functions also satisfies the differential equation. Furthermore, equation [24] shows that the boundary conditions on the individual ui(x,y) solutions, give the following boundary conditions on u(x,y).
1 2 3 4
1 2 3 4
1 2 3 4
1 2 3 4
u y u y u y u y u y u x u x
uLy u Ly u Ly u Ly u Ly u x u x
u x u x u x u x u x u x u x
u xH u xH u xH u xH u xH u x u x
E E
W W
S S
N N
Thus, the solution proposed in equation [22], with the boundary conditions in equation [23] satisfies the differential equation and the boundary conditions of the original problem in equation [21].
The solution for u 1 (x,y) is the one found above and is given by equation [13].
1
( 1 )
n
n
The Cn coefficient in this equation is given by equation [16], which is copied below.
L N n
The solution for u 3 (x,y) is similar to the one for u 1 (x,y) except that the roles of the x and y coordinates, and the corresponding maximum lengths, H and L, are reversed. Exchanging x and y and reversing H and L in equations [25] and [26] give us the solution for u 3 (x,y).
1
( 3 )
n
n
The Cn coefficient in this equation is given by equation [16], with an interchange of x and y, an interchange of L and H, and use of uW(y) as the boundary condition. The resulting equation is shown below.
H W n
The x dependence of the solution for u 2 (x,y) will be the same as in the solution for u 1 (x,y). This holds because the solution obtained by separation of variables is a product of two separate solutions X(x) and Y(y) and the x boundary conditions for u 2 (x,y) are the same as those for u 1 (x,y). If we make a coordinate transformation to a new coordinate, y’ = H – y, the boundary conditions in the y’ coordinate system for u 2 will have the same form as those for u 1 in the y coordinate system. Furthermore, the differential equation has only the second derivative in y. We can find the second derivative for the new y’ coordinate as follows.
2 2
2
' ' '
y
u y
u y y
u y y
y y
u and y
u y
u y
y y
u
Thus Laplace’s equation has the same form, 2
2 2
2
y
u x
u
, for both the y and the y’
coordinate system. This means that the solution for u 2 in the y’ coordinate system will be the same as u 1 in the y coordinate system. Thus we can take the solution for u 1 in equations [25] and [26] and replace y in that solution by y’ = H – y to get the correct solution for u 2. (We also replace the old boundary condition for uN by the one for uS.)
1
( 2 ) 2
n
n
L S n
3 1 2 2
1 3 2
1
The complex conjugate of a complex number z, which is denoted as z or z*, is found by setting i to – i. Thus if z = x + iy = rei, z =x - iy = re-i. From the
definitions of r and the complex conjugate, we see that r = (^) zz.
We can have some complex variables, which are functions of other complex variables. Such a functional relationship is usually written in terms of the real part, u(x,y) and the imaginary part v(x,y) as follows:
f(z) = u(x,y) + iv(x,y) [47]
For example, if f(z) = z^2 = (x + iy)^2 = x^2 +2ixy + (iy)^2 = x^2 – y^2 + 2ixy, we would have u(x,y) = x^2 – y^2 and v(x,y) = 2xy. When we consider the derivative of a complex function, using the usual definition of a derivative from the first course in calculus, we have the following result.
z
f z z f z dz z
df z
( ) lim [48]
Since z represents a two-dimensional space (containing both the x and y directions) we may have different definitions of this derivative depending on the directions in which we approach the limit. An important result of complex analysis, known as the Cauchy-Riemann conditions states that f(z) is differentiable at z if the following conditions hold.
y
u i y
v x
v i x
u dz
df then y
u x
v and y
v x
u If
In the previous example of f(z) = z^2 where u(x,y) = x^2 – y^2 and v(x,y) = 2xy. We have the follow results when we apply the Cauchy-Riemann conditions
y y
u y x
v x and y
v x x
u 2 2 2 2
Thus the Cauchy-Riemann conditions are satisfied and we can write the derivative df/dz as follows.
2 2 2 x i ( 2 y ) y
u i y
v dz
df x i y or x
v i x
u dz
df
Note that this result is simply the result we would have obtained by taking the derivative of f(z) = z^2 directly as df/dz = 2z = 2(x +iy). Functions that satisfy the Cauchy-Riemann conditions and are continuous are called analytic functions.
The Cauchy-Riemann conditions provide the link between the complex analysis
and the solutions to Laplace’s equation. If the take x of the first condition and
y
of the second condition, we have the following results.
2
2 2 2 2
2
y
u y x
v y
u x
v y
and x y
v x
u y
v x
u x
Since y x
v x y
v
, subtracting the two results in equation [52] shows that u
satisfies Laplace’s equation.
2 2
2 2
2 2 2 2
2
y
u x
u y
u y x
v x y
v x
u [53]
In a similar way, we could take y of the first Cauchy-Riemann condition and
x
of the second condition, and use the same manipulations of equations [52]
and [53] to show that the imaginary part of the analytical function also satisfies Laplace’s equation.
2 2
2
y
v x
v [54]
Although we have approached this result by considering the requirements for a complex variable to have a derivative, we have obtained an important result for solutions of Laplace’s equations. If we have one solution, u(x,y) to Laplace’s equation, we will also have a companion solution, v(x,y) related to the original solution by the Cauchy-Riemann conditions of equation [49], repeated below.
y
ux y x
v x y and y
v x y x
u x y
We can show that these solutions are mutually perpendicular as follows. The vector gradients of the two components, u and v can be expressed in terms of the unit vectors in the x and y directions ( i and j ) as follows.
i j i j y
v x
v and v y
u x
u u
We find the angle between these two gradients by taking their dot product. Recalling that i•i = j•j = 1 and j•i = i • j = 0, we get the following result for the dot product of these two vectors.
From these conditions and the definitions of the velocity potential, , in equation [55], we have the following definitions of the velocity components in terms gradients of the .
In fluid mechanics, is called the stream function.
Important results from complex analysis
The solutions to Laplace’s equation can be used to construct a complex variable, F(z) = u(x,y) + iv(x,y). The Cauchy theorem for integration of complex variables can be applied to F(z) in a solution region of arbitrary (two-dimensional) shape to obtain important results for Laplace’s equation in two dimensions. (See section 16.6 of Kreyszig for proofs of these statements.)
The theory of complex integration is a significant topic in its own right and we do not have time to cover it here. However these results, which are based on the treatment of solutions to Laplace’s equation as complex variables, are useful ones for making a reality check on our solutions. If we find a point in the region where the solution has a value that is greater than the maximum boundary value or less than the minimum boundary value we can be sure that we have an error.
In contrast to the uniqueness of the solution to the Dirichlet problem, the solution to the problem where we specify a gradient at all points of the boundary (the Neumann problem) is not unique. This is easy to see. If we have a solution, u 1 , that satisfies Laplace’s equation and satisfies the gradient boundary conditions, any other solution u 2 = u 1 + C, where C is a constant, will also satisfy the differential equation and the gradient boundary conditions.
In addition to the results from complex analysis for Laplace’s equation, we can also obtain results from vector calculus regarding solutions to Laplace’s equation. In particular if there is a flux, f, which is found as the gradient of the potential u, the solution of Laplace’s equation, we can show that the net flow of the flux f across the boundaries of the region in which Laplace’s equation applies is zero. This is true for any coordinate system.
In a cylindrical coordinate system, 0 ≤ r ≤ R, 0 ≤ z ≤ H, Laplace’s equation has the following form.
2
2
Regardless of the boundary conditions, the solution proceeds by separation of variables. We postulate a solution that is the product of two functions, Z(z) a function of the z coordinate only and P(r) a function of the radial coordinate, r, only. With this assumption, our solution becomes.
u(r,t) = P(r)Z(z) [62]
We substitute equation [62] for u in equation [61]. Since P(r) is a function of r only and Z(z) is a function of z only, we obtain the following result.
r
Pr r r r
Z z r
PrZ z r r r r
u r r r
z
Z z Pr z
PrZ z z
u
2
2 2
2 2
2
[63]
Substituting these results into equation [62] and dividing the result through by the product P(r)Z(z), gives following.
2
2 2
z
Z z r Z z
Pr r z Pr r r
Z z r Z z
Pr r P r r r
Equation [64] says that a function of r only equals a function of z only. This can only be true if each term equals a constant. As before, we want to choose the constant to give us a Sturm-Liouville problem in the direction that has homogenous boundary conditions. We set the term with homogenous boundary conditions to be equal to^2. Then the other term will be equal to ^2. For a solid cylinder, no boundary condition is required at r = 0. It is sufficient to require that u remain finite at r = 0 to get a Sturm-Liouville problem. If we have a zero boundary condition in the radial direction, we can get a solution to the radial problem in terms of Bessel functions and the solutions in the z direction will be in terms of hyperbolic sines and cosines. If we have homogenous boundary conditions in the z directions, we can obtain eigenfunction solutions in terms of sines and cosines in this direction and the radial solution will be in terms of modified Bessel functions.
As usual in solutions of Laplace’s equation, we can use superposition if we do not have a sufficient number of homogenous boundary conditions.
For example, the first five points at which J 0 is zero are for α 10 = 2.40483, α 20 = 5.52008, α 30 = 8.65373, α 40 = 11.79153, and α 50 = 14.93092. There are an infinite number of such values such that J 0 (λmr), with λmR = αm0 provides a complete set of orthogonal eigenfunctions that can be used to represent any other function over 0 ≤ r ≤ R. These mn values are called the zeros of Jn.
We can apply the boundary condition that u(r,0) = 0 to equation [67] (with D set equal to zero to eliminate the Y 0 term) to obtain.
This gives B = 0. The general solution to the problem is the sum of all eigenvalue solutions, each multiplied by a different constant.
0 1
m
We still have to satisfy the boundary condition that u(r,H) = uN(r). We can do this by using an eigenfunction expansion. Setting z = H in equation [71] gives the following equation for the boundary condition at y = H.
1
m
The values of Cm are found from the general equation for orthogonal eigenfunction expansions which includes a weighting function. Here the weighting function p(r) is equal to r. For any initial condition, u 0 (r), we find the values of Cm from the following equation. (In the second equation below, the integral in the denominator has been evaluated using integral tables and the fact that J 0 (mR) = 0.)
2 1
2
0
0
0
2 0
0
0
m m
R m N
R m m
R m N m
If we consider the simple case where uN(r) is a constant equal to U. we have the following result for Cm.
1 0 1 0
2 1
2
1
2 1
0
1
2 2 1
2
0
0
m m m m m
m m
m
m m
m
r R
m r
m
m m m
R m m
With this result for Cm our solution for u(r,t) shown in equation [71] with the constant boundary condition uN(r), is written as shown below, using the result from equation [71] that m = m0/R.
1
0 0 0 0 1 0 0
sinh ( )sinh
m
m m m m m
z R
r J
R
urz [75]
Dividing this equation by U shows the important variables are u(r,t)/U, r/R, z/R, and H/R. The solution to this equation for u(r,z)/U with H/R = 1 is shown below.
2
2
R
2
2 [80]
0 0
The functions I 0 and K 0 are known as the modified Bessel functions of the first and second kind, respectively.^6 Since K 0 approaches –∞ as r approaches zero we must set D = 0. Satisfying the boundary conditions that u(r,0) = u(r,H) = 0 leads to the same result that we found in the analysis of a rectangular region. We must have B = 0 and = n/H, where n is a positive, nonzero integer. These boundary conditions lead to a solution for u that is a sum of all the eigenfunction solutions.
m
m m m
1
The usual eigenfunction expansion gives the boundary condition that u(R,z) = uR(z). Solving this eigenfunction expansion for Cm gives.
H R
H
H R m 0
0
0
2 0
0
The solutions in equations [71] and [82] (along with the corresponding equations for Cm in equations [73] and [83]) can be used along with the principle of superposition to obtain solutions to Laplace’s equation in a solid cylinder for more complex boundary conditions.
Hollow cylinder with boundary condition at outer radius – If we replace the problem in equation [79] that we just solved for a solid cylinder with a similar problem for the hollow cylinder, we have to include a boundary condition at the inner radius. This gives the problem shown below.
(^6) These modified Bessel functions may be regarded as functions to be found in tables or from software. They are the solution to a modified Bessel equation in which the final term has a negative instead of a positive sign. From this equation one can show that I(z) = i-J(iz). This definition means that I is real valued if z is real valued.
2
2
i o o
i o
The solution to this equation proceeds in exactly the same way as the solution to the equation [79] problem. However, we can not eliminate the K 0 term in this case. With the eigenfunction solutions in the z direction, a typical two dimensional solution could be written as follows.
Applying the inner-radius boundary condition that u(Ri,z) = 0 to equation [85] gives the following relationship between Cm and Dm.
0
0 m i
m m i m
With this definition we can write our radial solution from equation [85], for one eigenfunction, Pm, as follows.
0
0
m i
m i m m m m^ [87]
Substituting this result into equation [85] and summing over all values of m gives the general solution for u(r,z).
m
m m m
1
We can fit the boundary condition that u(R 0 ,z) = uo(z) by an eigenfunction expansion of this boundary condition. In the same way that equation [83] was derived, we can write
H o
H m o
H o m
0
2
0
Using the definition of the radial solution from equation [87] gives the solution to the problem in equation [84] as follows.