# Pseudo-spectral method

Missing image
Pseudo-spectral.PNG
Gaussian wavepacket scattering off square well — simulation using pseudo-spectral method

The pseudo-spectral method is a method in computational physics used for direct simulation of a particle with an arbitrary wavefunction interacting with an arbitrary potential.

 Contents

## Background

The Schrödinger wave equation,

[itex]H \psi(\mathbf{r},t) = i \hbar \frac{\partial}{\partial t} \psi(\mathbf{r},t) [itex]

can be written

[itex]\frac{H}{i \hbar} \psi(\mathbf{r},t) = \frac{\partial}{\partial t} \psi(\mathbf{r},t) [itex]

which bears remarkable resemblance to the linear ordinary differential equation

[itex]r f(t) = \frac{d}{dt} f(t) [itex]

with solution

[itex]f(t) = A e^{r t} \,\![itex]

In fact, using the theory of linear operators, it can be shown that the general solution to the Schrödinger wave equation is

[itex] \psi(\mathbf{r},t) = e^{-i H t / \hbar} \psi(\mathbf{r},0) [itex]

where exponentiation of operators is defined using power series. Now remember that

[itex]H = T + V \,\![itex]

where the kinetic energy, [itex]T[itex] , is given by

[itex] T = \frac{p^2}{2 m} = - \frac{\hbar^2}{2m} \nabla^2 [itex]

and the potential energy, [itex]V[itex] often depends only on position, written [itex]V(\mathbf{r})[itex]. We can write

[itex] \psi(\mathbf{r},t) = e^{-i (T + V(\mathbf{r})) t / \hbar} \psi(\mathbf{r},0) [itex]

It is tempting to write

[itex] \psi(\mathbf{r},t) = e^{-i T t / \hbar} e^{-i V(\mathbf{r}) t / \hbar}\psi(\mathbf{r},0) [itex]

so that we may treat each factor separately. However, this is only true if the operators [itex]T[itex] and [itex]V(\mathbf{r})[itex] commute, which is not true in general. Luckily, it turns out that

[itex] \psi(\mathbf{r},t) \approx e^{-i V(\mathbf{r}) t / 2 \hbar} e^{-i T t / \hbar} e^{-i V(\mathbf{r}) t / 2 \hbar}\psi(\mathbf{r},0) [itex]

is a good approximation for small values of [itex]t[itex]. This is known as the symmetric decomposition. The heart of the pseudo-spectral method is using this approximation iteratively to calculate the wavefunction [itex]\psi(\mathbf{r},t) [itex] for arbitrary values of [itex]t[itex].

## The method

For simplicity, we will consider the one-dimensional case. The method is readily extended to multiple dimensions.

Given [itex]\psi(x,t) [itex], we wish to find [itex]\psi(x,t + \Delta t) [itex] where [itex]\Delta t[itex] is small. The first step is to calculate an intermediate value [itex]\phi_{1}(x)[itex] by applying the rightmost operator in the symmetric decomposition,

[itex] \phi_{1}(x) = e^{-i V(\mathbf{r}) \Delta t / 2 \hbar}\psi(x,t) [itex]

This requires only a pointwise multiplication. The next step is to apply the middle operator,

[itex] \phi_{2}(x) = e^{-i T \Delta t / \hbar} \phi_{1}(x) [itex]

This is an infeasible calculation to make in configuration space. Fortunately, in momentum space, the calculation is greatly simplified. If [itex] \Phi_{1}(k)[itex] is the momentum space representation of [itex]\phi_{1}(x)[itex], then

[itex] \Phi_{2}(k) = e^{i \hbar k^{2} \Delta t / 2 m} \Phi_{1}(k) [itex]

which also requires only a pointwise multiplication. Numerically, [itex]\Phi_{1}(k)[itex] is obtained from [itex] \phi_{1}(x) [itex] using the Fast Fourier transform (FFT) and [itex] \phi_{2}(x) [itex] is obtained from [itex] \Phi_{2}(k) [itex] using the inverse FFT.

The final calculation is

[itex]\psi(x,t + \Delta t) = e^{-i V(\mathbf{r}) \Delta t / 2 \hbar}\phi_{2}(x) [itex]

This sequence can be summarized as

[itex]\psi(x,t + \Delta t) = e^{-i V(\mathbf{r}) \Delta t / 2 \hbar} \mathcal{F}^{-1} [e^{i \hbar k^{2} \Delta t / 2 m} \mathcal{F} [e^{-i V(\mathbf{r}) \Delta t / 2 \hbar}\psi(x,t)] ] [itex]

## Analysis of algorithm

If the wavefunction is approximated by its value at [itex]n[itex] distinct points, each iteration requires 3 pointwise multiplications, one FFT, and one inverse FFT. The pointwise multiplications each require [itex]O(n)[itex] effort, and the FFT and inverse FFT each require [itex]O(n \lg n)[itex] effort. The total computational effort is therefore determined largely by the FFT steps, so it is imperative to use an efficient (and accurate) implementation of the FFT. Fortunately, many are freely available.

## Error analysis

The error in the pseudo-spectral method is overwhelmingly due to discretization error.

Needed: a more in-depth error analysis

• Art and Cultures
• Countries of the World (http://www.academickids.com/encyclopedia/index.php/Countries)
• Space and Astronomy