Return to computing page for the first course APMA0330
Return to computing page for the second course APMA0340
Return to Mathematica tutorial for the first course APMA0330
Return to Mathematica tutorial for the second course APMA0340
Return to the main page for the first course APMA0330
Return to the main page for the second course APMA0340
Return to Part VI of the course APMA0340
Introduction to Linear Algebra with Mathematica
In this section, we consider boundary value problems for Laplace's and Helmholtz equations subject to the boundary condition of the third. This is a type of boundary condition that involve both the functions and its normal derivative in the boundary conditions:
where a and b are nonzero functions or constants, not simultaneously zero.
The third type boundary conditions are variously designated, but frequently are called Robin's boundary conditions, which
is mistakenly associated with the French mathematical analyst Victor Gustave Robin (1855--1897) from the Sorbonne in Paris. Actually, Robin never used this boundary condition as it follows from the historical research article:
Karl Gustafson and Takehisa Abe.
The third boundary condition—was it robin’s?
The Mathematical Intelligencer, March 1998, Volume 20, Issue 1, pp. 63--71.
Suppose we want to find the steady-state temperature u(x,y) in a rectangular plate with two insulated boundaries. When no heat escapes from the lateral faces of the plate, we solve Laplace's equation
\[
\frac{\partial^2 u }{\partial x^2} + \frac{\partial^2 u }{\partial y^2} =0 , \qquad 0 < x < a, \quad 0 < y < b ,
\]
subject to mixed boundary conditions
\[
\left. \frac{\partial u }{\partial x} \right\vert_{x=0} =0 , \qquad \left. \frac{\partial u }{\partial x} \right\vert_{x=a} =0 , \qquad 0 < y < b ,
\]
and
\[
u(x,0) = f_0 (x) , \qquad u(x,b) = f_b (x) , \qquad 0 < x < a.
\]
We seek partial nontrivial (= not identically zero) solutions of Laplace's equation subject to homogeneous boundary conditions in variable x (\( u_x (0,y) =0 \mbox{ and } u_x (a,) =0 \) ) and represented as \( u(x,y) = X(x)\,Y(y) . \) Substituting u = X Y into Laplace's equation, we get
Laplace's equation is a second-order
partial differential equation named after Pierre-Simon
Laplace who, beginning in 1782, studied its properties while investigating the gravitational attraction of arbitrary bodies in space. However, the equation first appeared in 1752 in a paper by
Euler on hydrodynamics. Laplace's equation is often written as:
where \( \Delta = \nabla^2 \) is the Laplace operator or Laplacian. Another very important version of the above equation is so called the Helmholtz equation
where f is a given smooth function, is called the
Poisson's equation. The equation is named after the French mathematician, geometer, and physicist Siméon Denis Poisson (1781--1840).
In two dimensions, the Laplace equation in rectangular coordinates becomes
Correspondingly, in three dimensions, the Poisson's equation is
\[
u_{xx} + u_{yy} + u_{zz} = f(x,y,z) ,
\]
where f is a given smooth function.
The Laplacian occurs in differential equations that describe many physical phenomena, such as electric and gravitational potentials, the diffusion equation for heat and fluid flow, wave propagation, and quantum mechanics. The Laplacian represents the flux density of the gradient flow of a function. For instance, the net rate at which a chemical dissolved in a fluid moves toward or away from some point is proportional to the Laplacian of the chemical concentration at that point.
Since there is no time dependence in the Laplace's equation or Poisson's equation, there is no initial conditions to be satisfied by their solutions. However, there should be certain boundary conditions on the boundary curve or surface \( \partial\Omega \) of the region Ω in which the differential equation is to be solved. Typically, there are known three types of boundary conditions.
The problem of finding a solution of Laplace's equation that takes on given boundary values is known as a Dirichlet problem. On the other hand, if the values of the normal derivative are prescribed on the boundary, the problem is said to be a Neumann problem. Physically, it is plausible to expect that three types of boundary conditions will be sufficient to determine the solution completely. Indeed, it is possible to establish the existence and uniqueness of the solution of Laplace's (and Poisson's) equation under the first and third type boundary conditions, provided that the boundary \( \partial\Omega \) of the domain Ω is smooth (have no corner or edge). However, we avoid explicit statements and their proofs because the material is beyond the scope of the tutorial. Instead, we concentrate our attention on some typical problems that could be solved by means of separation of variables.
Neumann Problem for a Rectangle
The general interior Neumann problem for Laplace's equation for rectangular domain \( [0,a] \times [0,b] , \) in Cartesian coordinates can be formulated as follows. Find solution of Laplace's equation
\[
\Delta u \equiv u_{xx} + u_{yy} =0 , \qquad 0 < x < a, \quad 0< y <b ;
\]
subject to the boundary conditions of the second kind
where f0, fb, g0, and
ga are give functions. Here we use the shortcut notation ux and uy for partial derivatives with respect to x and y, respectively.
Using superposition principle, we can break the given Neumann problems into four similar problems when flux source comes only from one side of the rectangle, and other three sides are isolated. Hence, we can represent the solution as the sum of four functions
each of them is a solution of Laplace's equation with insulated three sides. Therefore, we get four Neumann problems. (Be aware that you browser may not display the codes properly.) Note that problems A and B could be united into one, as well as problems C and D.
Problem A consists of the partial differential equation \( \Delta u =0 \) in the rectangle \( (0,a) \times (0,b) \) subject to the boundary conditions:
To solve problem A, we proceed in exactly the same as in the previous problem: set \( u(x,y) = X(x)\,Y(y) \) and substitute into the Laplace equation and homogeneous boundary conditions in y. This give the familiar Sturm--Liouville problem for Y:
where C is an arbitrary constant.
Since each term in the above sum satisfies the homogeneous boundary conditions
\( u_y (x,0) = u_y (x,b) =0 , \) we know that the sum has the same property (subject to uniform convergence, which is assumed). To satisfy the boundary conditions in variable x, we have to consider two equations
Problem B consists of the partial differential equation \( \Delta u =0 \) in the rectangle \( (0,a) \times (0,b) \) subject to the boundary conditions:
Note that it has homogeneous boundary conditions in variable y.
To solve problem B, we proceed in exactly the same as in the previous problem: set \( u(x,y) = X(x)\,Y(y) \) and substitute into the Laplace equation and homogeneous boundary conditions in y. This give the familiar Sturm--Liouville problem for Y:
where C is an arbitrary constant.
Since each term in the above sum satisfies the homogeneous boundary conditions
\( u_y (x,0) = u_y (x,b) =0 , \) we know that the sum has the same property (subject to uniform convergence, which is assumed). To satisfy the boundary conditions in variable x, we have to consider two equations
Therefore, if we set \( X'_n (0) =0 , \) which is equivalent to \( c_{2n} =0, \) it will guarantee that the first boundary condition holds. With this in hand, we obtain the general solution:
Since the constant term in cosine Fourier series is absent, the above expansion is valid only when
\[
\int_0^b g_a (y)\,{\text d}y =0.
\]
In this case, the Neumann problem has a solution up to arbitrary constant, so it is not unique.
■
Return to Mathematica page
Return to the main page (APMA0340)
Return to the Part 1 Matrix Algebra
Return to the Part 2 Linear Systems of Ordinary Differential Equations
Return to the Part 3 Non-linear Systems of Ordinary Differential Equations
Return to the Part 4 Numerical Methods
Return to the Part 5 Fourier Series
Return to the Part 6 Partial Differential Equations
Return to the Part 7 Special Functions