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
Let Ω be a domain in ℝn have a smooth boundary ∂Ω; then the outer unit normal vector n is defined for every point on the boundary ∂Ω. The Neumann boundary conditions,
are imposed on a function u(x) defined inside of Ω; here f(x) is a specified function on the boundary ∂Ω. This boundary conditions
are named after Carl Neumann
(1832–1925), a German mathematician who worked on infinite
series and developed an early model of electromagnetism.
The problem of finding a function u(x) harmonic inside a region Ω (Δu = 0) and whose normal derivative takes given values on its boundary ∂Ω is called the interior Neumann problem or second boundary value problem (inner) for Ω. If a harmonic function is seeking outside the region Ω, then we have the exterior Neumann problem.
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 = \nabla \cdot \nabla \) is the Laplace operator or Laplacian. Another very important version of Eq.\eqref{EqNeumann.1} is the 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 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:
Here f(P) is a prescribed function defined on the smooth boundary ∂Ω of the domain Ω; its integral over the boundary must be zero, otherwise, the Neumann boundary value problem has no solution.
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 in rectangular domain \( [0,a] \times [0,b] \) using Cartesian coordinates can be formulated as follows. Find the solution of Laplace's equation
\begin{equation} \label{EqNeumann.4}
\Delta u \equiv u_{xx} + u_{yy} =0 , \qquad 0 < x < a, \quad 0< y <b ;
\end{equation}
subject to the boundary conditions of the second kind
where f0, fb, g0, and
ga are given 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 the other three sides are isolated. Hence, we can represent the solution as the sum of four functions
Each function in the right-hand side is a solution of Laplace's equation with insulated three sides. Therefore, we get four Neumann problems. (Be aware that your 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 1A: 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 1B: consists of the partial differential equation \( \Delta u =0 \) in the rectangle \( (0,a) \times (0,b) \) subject to the boundary conditions:
Before solving the given boundary value problem, you need to check whether solvability condition holds:
\[
\int_0^b g_a (y)\,{\text d}y = 0.
\]
If this integral is not zero, the problem has no solution. Remember that if the interior Neumann problem has a solution, it is not unique and arbitrary constant can be added.
Note that it has homogeneous boundary conditions in variable y and one homogeneous boundary condition at x = 0.
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 variable y. This give the familiar Sturm--Liouville problem for Y:
The solution of the given Neumann problem B for Laplace's equation is assumed to be represented as the sum of all partial nontrivial solutions (subject that the series converges):
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:
Problem 1C: consists of the
partial differential equation \( \Delta u =0 \) in the rectangle \( (0,a) \times (0,b) \) subject to the boundary conditions:
Problem 1D: consists of the
partial differential equation \( \Delta u =0 \) in the rectangle \( (0,a) \times (0,b) \) subject to the boundary conditions:
Venttsel’, A.D., On boundary conditions for multi-dimensional diffusion processes (in Russian), Teoriya Veroyatnostei i ee Primeneniya, 4, 172-185, English Translation: Theory of Probability & Its Applications, 1959, Vol. 4, Issue 2, pp. 164–177; https://doi.org/10.1137/1104014
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