<< Chapter < Page | Chapter >> Page > |
In an effort to improve accuracy, Heun's method was implemented instead of forward Euler. In Heun's method, the formula for the numerical approximation to the solution of [link] is
where [link] . Additionally, RK4, the fourth order Runge-Kutta method, was implemented through "ode45" in MATLAB.However, these methods did not produce results that were much better than the simpler method of forward Euler (and in some cases, took much more time), so we left forward Euler in our code and reported those results in this paper.
To numerically compute the eigenvalues for the various operators resulting from the various and functions discussed in this paper, there are several techniques. One technique to approximate a second derivative is to use a uniform grid, with for , and a finite difference which leads to
for which is accurate. Another technique is spectral discretization. In this technique, instead of a uniform grid, Chebyshev points are used, which are given by
for . These points are clustered near the endpoints of the interval. These Chebyshev points are used to form a polynomial, , which is an interpolant of so that ” . The MATLAB program we used to create the matrix that approximates the differential operator and the Chebyshev grid for is based on "cheb.m" in [link] .
The advantage of spectral discretization over the finite difference technique is that with the same number of points in the grid, spectral discretization produces results that are much more accurate. Or, it is possible to achieve the same accuracy as finite difference with fewer points using spectral discretization. In [link] , spectral discretization was used with . Even though there are infinitely many eigenvalues, this technique's results only approximate the first eigenvalues. Since for this problem, it is known exactly what the eigenvalues should be, the error was plotted in [link] , and about the first 100 eigenvalues are accurate to or better. To compare, using finite difference with and a uniform grid, and accuracy means . Spectral discretization produces more digits of accuracy than finite difference with the same number of grid points.
In this paper, we started by describing Liouville's transformation to change the mass density of the wave equation to the potential of the Sturm-Liouville equation [link] . However, our intention was to study a specific from [link] , so it was necessary to reverse that transformation in order to arrive at the corresponding mass density, . In this paper we described our numerical methods to perform this reverse transform, and results are described for the specific from [link] including the computed , eigenvalues, and eigenfunctions for certain values of and chosen initial conditions. Since we know what the eigenvalues are supposed to be for this , an analysis of the error in computing the eigenvalues is included. For comparison, similar calculations were done for other or in closed form.
We would like to acknowledge the patience and guidance of Dr. Mark Embree and Dr. Steven Cox of Rice University. Many thanks are owed to Jeffrey Hokanson and our predecessors in the Physics of Strings PFUG, whose work made ours possible. This paper and the research herein conducted were made possible by grant funding from the National Science Foundation through Rice University's VIGRE program.
The codes used in this project are accessible through the featured link.
Notification Switch
Would you like to follow the 'The art of the pfug' conversation and receive update notifications?