|
Posted: 11/30/22
Due: 12/03/22 11:55PM (First Draft), 12/07/22, 5:00PM (Final Draft)
Julia SpecialFunctions package installation (only needs to be invoked once, will be used in this assignment)
This serves both as your final project and final examination. The topic you are exploring is the use of problem-specific bases. In the project, an academic analytical cyclindrical function basis is used to exemplify the idea, but in practice bases are extracted from the problem itself. The monograph by Patera and Rozza in the MATH661/bibliography directory presents a full treatment. This final examination is meant to be completed in 3-9 hours. Read through the Introduction prior to December 3, add the SpecialFunctions package to your Julia environment, and complete a first draft during the regularly scheduled Final Examination time of on Saturday, Dec. 3. Comments on the first draft will be returned by 3:00PM on Monday Dec. 5. Address the comments and submit a second, final draft during the reading day, Dec. 7.
It is traditional to introduce the main concepts in operator approximation using the monomial basis in which integration and differentiation operations are simple to carry out. However, in numerical work algorithm conditioning, stability, and accuracy are more important than easy-to-use analytical formulas. This final project brings together all main course concepts to construct approximation procedures for problems that are naturally stated in the eigenfunctions of a Sturm-Liouville problem for an orthogonal, curvilinear coordinate system.
The regular Sturm-Liouville problem (SLP) is to find , twice differentiable that satisfies
(1) |
with the two-point boundary value conditions
The functions are continuous and is differentiable. The SLP is linear in operator and boundary conditions When and the SLP is said to be regular. A singular SLP results when for some .
The ubiquity of SLPs is due to physics being naturally expressed through a small set of conservation laws, e.g., mass, momentum, energy, and electrical charge in classical physics (additional quantum conservation laws arise from quantum mechanics). Consider the familiar statement from mechanics
more properly written as
stating that the rate of change of a point mass's momentum is due to the sum of applied forces . In the absence of any external forces the momentum is conserved
When applied to continua, conservation laws lead to PDEs, for example the motion of a drumhead membrane. An infinitesimal portion of membrane of area has mass and is brought out of its equilibrium position by small displacement along the -axis, such that the tangent makes angle . The membrane is stretched from its equilibrium position by tension , and the resultant force on the infinitesimal portion is
A similar argument along the -axis then gives the wave equation
with , etc., and .
For a square-shaped drumhead with edge-length that is pinned along its perimeter, separation of variables then leads to
and three SLPs, e.g., along
The eigenfunctions in this case are the familiar trig-functions . These eigenfunctions play a fundamental role in problems stated in Cartesian coordinates, as exemplified by Fourier transforms.
Consider now a circular-shaped of radius drum pinned along its perimeter, in which case it is convenient to carry out separation of variables in polar coordinates . The wave equation in polar coordinates
then leads to
and assuming rotational symmetry around the -axis, , gives two ODEs
for which initial conditions are given, and the SLP
(2) |
The ODE has general solution
and imposing boundary conditions leads to (to maintain finite ) and
(3) |
with a denumerable set of solutions , , the eigenvalues of the SLP, . The corressponding eigenfunctions are , and can be evaluated in Julia through the besselj0() function. SLP eigenfunctions are orthogonal with respect to the scalar product
i.e.
The Bessel function has an asymptotic approximation
useful in initial approximation of the eigenvalues from (3). Another useful result is
evaluated by the besselj1() Julia function.
In the following length units are chosen such that the drumhead has radius .
Use Newton's method to find the first eigenvalues by solving (3) numerically to six-digit accuracy (relative error ). Plot the eigenvalues. Plot the eigenfunctions . Comment on the basis functions by comparison, say, to the monomial basis .
Identify in (2) the functions from the general formulation of a SLP (1). Verify eigenfunction orthogonality numerically through the approximation
(4) |
where is a sampling of the eigenfunction at nodes
and the scalar product weight determines the diagonal matrix . The approximation (4) is a (right) Darboux sum, or approximation of the integral by a piecewise constant function. Plot the orthogonality error with increasing , in log coordinates.
3. Increase the accuracy of scalar product evaluation by replacing (4) by:
composite midpoint integration;
composite trapezoid integration;
composite Simpson integration.
For each of the above, plot the orthogonality error.
4. Determine the expansion of the initial condition on the Bessel function bases containing , vectors.
3. Increase the accuracy of scalar product evaluation by replacing (4) by composite Gauss-Legendre quadrature of with 2 and 3 points per subinterval. For each of the above, plot the orthogonality error.
4. Generate Gauss quadrature formulas over the entire interval of orders by orthogonalization of the monomial basis with respect to the scalar product (3), finding the roots of the polynomials of degree , and determining the appropriate quadrature coefficients