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
Here \( \displaystyle \| {\bf x} \|^2 = x_1^2 + x_2^2 + \cdots + x_n^2 \) is the square of the the Euclidean norm.
In the space of continuous, but unbounded functions, the given boundary value problem has infinite many solutions.
Indeed, the following one-parameter family of functions satisfies all conditions of the given Dirichlet's problem:
where −∞ < λ < ∞. Note that eqch function vλ is neither bounded nor tends to zero at infinity.
■
In the n-dimensional space, for n ≥ 3, the uniqueness of the exterior problem does not valid even in the class of smooth functions bounded outside the given closed domain.
Example:
Consider teh harmonic function
\[
u = u(r) = r^{2-n} , \qquad n > 2.
\]
This bounded function is a solution of the homogebeous Dirichlet's problem:
also satisfies the Laplace equation Δu = 0 and is regular in the region E* obtained from E by inversion with respect to the unit sphere \( \| {\bf x} \| = 1 . \)
The harmonic function \eqref{EqSphere.4} is called regular in the exterior regionE*. That is, we define regularity in a domain E including the infinity as follows: we invert E with respect to sphere
\( \| {\bf x} \| = 1 , \) transfering it into a bounded domain G*.
The steady temperature distribution u(x) inside the sphere r = a, in spherical polar coordinates, satisfies \( \nabla^2 u =0 . \) If we heat the surface of the sphere so that \( u = f(\theta ) \) on r = a for some given function \( f(\theta ) , \) what is the temperature distribution within the sphere?
The equation and boundary conditions do not depend on φ, so we know that u is of the form
for some constants An and Bn. Furthermore we expect u to be finite at r = 0 so that \( B_n =0 . \) We find the coefficients An by evaluating the sum at r =a:
We can find An using the orthogonality of the Legendre polynomials. However, the integration is done with respect to x but not \( \cos ( \theta ) . \) Setting \( x= \cos ( \theta ) , \) we get \( {\text d}x= - \sin ( \theta ) \,{\text d} \theta . \) The interval of integration [-1,1] becomes \( [-\pi , 0 ] . \) Multiply through by
\( -\sin ( \theta ) \,P_m (\cos \theta ) \) and integrate in θ to obtain
Example: Consider Laplace's equation exterior to a sphere of radius a, subject to some boundary condition on the sphere. The full problem statement is given below
Because of the condition at \( \infty , \) only the negative powers of r may be used in this region exterior to a sphere. We superpose all of those solutions to get
Example: As our final example, we consider the region between two concentric spheres, with radii \( a \mbox{ and } b , \quad b > a. \) We solve the Laplace equation in the region between the spheres, subject to a boundary condition on each sphere. The problem statement is given below.
The coefficients cn and dn are known from the known boundary functions g and h. The separated solutions are \( r^n P_n \left( \cos\,\phi \right) \) and \( r^{-n-1} P_n \left( \cos\,\phi \right) . \) The domain of the present problem, \( r \in (a, b ) , \) does not include either the origin or the point at infinity. Thus there are no grounds for discarding any of the solutions and we keep them all. The solution for Φ is then obtained by superposition:
Now we will use our solution to calculate the potential on a sphere half way between our two boundary spheres. In addition, we will check our boundary conditions on r = a and r = b. We assign numerical values to the parameters:
a = 2; b = 5;
Next we define a function grapher[r,k] which uses the kth partial sum to construct a plot of potential versus φ on the sphere of radius r:
The first and last graphs verify the boundary conditions that we have imposed on the inner and outer sphere. The remaining graphs show how the solution of the Laplace equation interpolates smoothly between these. We can also use the Manipulate command. We will construct 21 graphs with r varying in equal increments from the inner to the outer boundary.
DynamicModule[{mangraph, i, rarg},
Do[rarg = a + ((b-a)/20)*i; mangraph[i] = grapher[rarg, 10], {i,0,20,1}];
Manupulate[mangraph[i], {i,0,20,1}]]
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