<< Chapter < Page | Chapter >> Page > |
A short description of spectral discretization is in "Numerical Methods" .
For the specific in [link] , we know what the eigenvalues are supposed to be, so we can calculate them and analyze the error. Before doing so, it is interesting to consider the eigenfunctions for several obtained from different values. [link] shows the first two eigenfunctions obtained from the numerically calculated mass density functions. When , we see that the first two eigenfunctions resemble and . This is to be expected because is fairly close to . (When , we obtain from [link] and therefore a string of uniform mass density, which has as its first two eigenfunctions and .) Equivalently, potentials with farthest from show eigenfunction behavior most deviant from and . Interested readers can view a movie of the eigenfunctions changing as changes from 1 to 37.4 by tenths. The behavior of the eigenfunctions as increases changes drastically when due to the first and second eigenvalues becoming close. In the following section, we discuss the error in numerically calculating the eigenvalues.
The sources of error in our numerical scheme arise in part because of the highly constrained nature of the ODEs. Unless otherwise specified, the integration was completed with step size . In addition to this error, we are required to interpolate between nodes to obtain the values of at the points in the Chebyshev grid. (Unless otherwise specified, all computations were executed on a Chebyshev grid of size .) However, it should be noted that in all runs, we have a minimum of nodes between 0 and 1. With a grid so fine, even linear interpolation to the Chebyshev points yields results with tolerable error. Because, in our case, the potential function was originally specified by its Dirichlet spectrum, we know the exact eigenvalues that the numerical solver should return. [link] shows the first five expected eigenvalues alongside those we recovered numerically. The error is visibly small, but indistinguishable from case to case. [link] shows the error in the first eigenvalue recovered from transformations of potential functions specified by various . The error is smallest near , which is to be expected because this is the simplest case. As gets further away from , the error increases. We also see that decreasing the time step in the ODE solver by a single order of magnitude reduces the error by a single order of magnitude. In this way, we have verified first-order convergence, which is consistent with the expected results of the forward Euler scheme used.
Notification Switch
Would you like to follow the 'The art of the pfug' conversation and receive update notifications?