Eigenvalues and eigenvectors of the second derivative

From HandWiki

Explicit formulas for eigenvalues and eigenvectors of the second derivative with different boundary conditions are provided both for the continuous and discrete cases. In the discrete case, the standard central difference approximation of the second derivative is used on a uniform grid.

These formulas are used to derive the expressions for eigenfunctions of Laplacian in case of separation of variables, as well as to find eigenvalues and eigenvectors of multidimensional discrete Laplacian on a regular grid, which is presented as a Kronecker sum of discrete Laplacians in one-dimension.

The continuous case

The index j represents the jth eigenvalue or eigenvector and runs from 1 to [math]\displaystyle{ \infty }[/math]. Assuming the equation is defined on the domain [math]\displaystyle{ x \in [0,L] }[/math], the following are the eigenvalues and normalized eigenvectors. The eigenvalues are ordered in descending order.

Pure Dirichlet boundary conditions

[math]\displaystyle{ \lambda_j = -\frac{j^2 \pi^2}{L^2} }[/math]
[math]\displaystyle{ v_j(x) = \sqrt{\frac{2}{L}} \sin\left(\frac{j \pi x}{L}\right) }[/math]

Pure Neumann boundary conditions

[math]\displaystyle{ \lambda_j = -\frac{(j - 1)^2 \pi^2}{L^2} }[/math]
[math]\displaystyle{ v_j(x) = \left\{ \begin{array}{lr} L^{- \frac{1}{2}} & j = 1\\ \sqrt{\frac{2}{L}} \cos\left(\frac{(j - 1) \pi x}{L} \right) & \mbox{otherwise} \end{array} \right. }[/math]

Periodic boundary conditions

[math]\displaystyle{ \lambda_j = \left\{ \begin{array}{lr} -\frac{j^2 \pi^2}{L^2} & \mbox{j is even.}\\ -\frac{(j-1)^2 \pi^2}{L^2} & \mbox{j is odd.} \end{array} \right. }[/math]

(That is: [math]\displaystyle{ 0 }[/math] is a simple eigenvalue and all further eigenvalues are given by [math]\displaystyle{ \frac{j^2 \pi^2}{L^2} }[/math], [math]\displaystyle{ j=1,2,\ldots }[/math], each with multiplicity 2).

[math]\displaystyle{ v_j(x) = \begin{cases} L^{-\frac{1}{2}} & \mbox{if } j = 1.\\ \sqrt{\frac{2}{L}} \sin\left(\frac{j \pi x}{L}\right) & \mbox{ if j is even.}\\ \sqrt{\frac{2}{L}} \cos\left(\frac{(j-1) \pi x}{L}\right) & \mbox{ if j is odd.} \end{cases} }[/math]

Mixed Dirichlet-Neumann boundary conditions

[math]\displaystyle{ \lambda_j = -\frac{(2j - 1)^2 \pi^2}{4 L^2} }[/math]
[math]\displaystyle{ v_j(x) = \sqrt{\frac{2}{L}} \sin\left(\frac{(2j - 1) \pi x}{2 L}\right) }[/math]

Mixed Neumann-Dirichlet boundary conditions

[math]\displaystyle{ \lambda_j = -\frac{(2j - 1)^2 \pi^2}{4 L^2} }[/math]
[math]\displaystyle{ v_j(x) = \sqrt{\frac{2}{L}} \cos\left(\frac{(2j - 1) \pi x}{2 L}\right) }[/math]

The discrete case

Notation: The index j represents the jth eigenvalue or eigenvector. The index i represents the ith component of an eigenvector. Both i and j go from 1 to n, where the matrix is size n x n. Eigenvectors are normalized. The eigenvalues are ordered in descending order.

Pure Dirichlet boundary conditions

[math]\displaystyle{ \lambda_j = -\frac{4}{h^2} \sin^2\left(\frac{\pi j}{2(n + 1)}\right) }[/math]
[math]\displaystyle{ v_{i,j} = \sqrt{\frac{2}{n+1}} \sin\left(\frac{i j \pi}{n+1}\right) }[/math] [1]

Pure Neumann boundary conditions

[math]\displaystyle{ \lambda_j = -\frac{4}{h^2} \sin^2\left(\frac{\pi (j - 1)}{2n}\right) }[/math]
[math]\displaystyle{ v_{i,j} = \begin{cases} n^{- \frac{1}{2}} & \mbox{j = 1}\\ \sqrt{\frac{2}{n}} \cos\left(\frac{\pi (j - 1)(i - 0.5)}{n}\right) & \mbox{otherwise} \end{cases} }[/math]

Periodic boundary conditions

[math]\displaystyle{ \lambda_j = \begin{cases} -\frac{4}{h^2} \sin^2\left(\frac{\pi (j-1)}{2n}\right) & \mbox{ if j is odd.}\\ -\frac{4}{h^2} \sin^2\left(\frac{\pi j}{2n}\right) & \mbox{ if j is even.} \end{cases} }[/math]

(Note that eigenvalues are repeated except for 0 and the largest one if n is even.)

[math]\displaystyle{ v_{i,j} = \begin{cases} n^{-\frac{1}{2}} & \mbox{if } j = 1.\\ n^{-\frac{1}{2}} (-1)^i & \mbox{if } j = n \mbox{ and n is even.}\\ \sqrt{\frac{2}{n}} \sin\left(\frac{\pi (i-0.5) j}{n} \right) & \mbox{ otherwise if j is even.}\\ \sqrt{\frac{2}{n}} \cos\left(\frac{\pi (i-0.5) (j - 1)}{n}\right) & \mbox{ otherwise if j is odd.} \end{cases} }[/math]

Mixed Dirichlet-Neumann boundary conditions

[math]\displaystyle{ \lambda_j = -\frac{4}{h^2} \sin^2\left(\frac{\pi (j-\frac{1}{2})}{2n + 1}\right) }[/math]
[math]\displaystyle{ v_{i,j} = \sqrt{\frac{2}{n+0.5}} \sin\left(\frac{\pi i (2j - 1)}{2n + 1}\right) }[/math]

Mixed Neumann-Dirichlet boundary conditions

[math]\displaystyle{ \lambda_j = -\frac{4}{h^2} \sin^2\left(\frac{\pi (j-\frac{1}{2})}{2n + 1}\right) }[/math]
[math]\displaystyle{ v_{i,j} = \sqrt{\frac{2}{n+0.5}} \cos\left(\frac{\pi (i-0.5) (2j - 1)}{2n + 1}\right) }[/math]

Derivation of Eigenvalues and Eigenvectors in the Discrete Case

Dirichlet case

In the 1D discrete case with Dirichlet boundary conditions, we are solving

[math]\displaystyle{ \frac{v_{k+1} -2v_k + v_{k-1}}{h^2} = \lambda v_{k}, \ k=1,...,n, \ v_0 = v_{n+1} = 0. }[/math]

Rearranging terms, we get

[math]\displaystyle{ v_{k+1} = (2 + h^2 \lambda)v_k - v_{k-1}. \! }[/math]

Now let [math]\displaystyle{ 2 \alpha = (2 + h^2 \lambda) }[/math]. Also, assuming [math]\displaystyle{ v_1 \neq 0 }[/math], we can scale eigenvectors by any nonzero scalar, so scale [math]\displaystyle{ v }[/math] so that [math]\displaystyle{ v_1 = 1 }[/math].

Then we find the recurrence

[math]\displaystyle{ v_0 = 0 \,\! }[/math]
[math]\displaystyle{ v_1 = 1. \,\! }[/math]
[math]\displaystyle{ v_{k+1} = 2 \alpha v_{k} - v_{k-1} \,\! }[/math]

Considering [math]\displaystyle{ \alpha }[/math] as an indeterminate,

[math]\displaystyle{ v_{k+1} = U_k (\alpha) \,\! }[/math]

where [math]\displaystyle{ U_k }[/math] is the kth Chebyshev polynomial of the 2nd kind.

Since [math]\displaystyle{ v_{n+1} = 0 }[/math], we get that

[math]\displaystyle{ U_n (\alpha) = 0 \,\! }[/math].

It is clear that the eigenvalues of our problem will be the zeros of the nth Chebyshev polynomial of the second kind, with the relation [math]\displaystyle{ 2 \alpha = (2 + h^2 \lambda) }[/math].

These zeros are well known and are:

[math]\displaystyle{ \alpha_k = \cos\left(\frac{k \pi}{n+1}\right). \,\! }[/math]

Plugging these into the formula for [math]\displaystyle{ \lambda }[/math],

[math]\displaystyle{ 2 \cos\left(\frac{k \pi}{n+1}\right) = h^2 \lambda_k + 2 \,\! }[/math]
[math]\displaystyle{ \lambda_k = -\frac{2}{h^2}\left[1 - \cos\left(\frac{k \pi}{n+1}\right)\right]. \,\! }[/math]

And using a trig formula to simplify, we find

[math]\displaystyle{ \lambda_k = -\frac{4}{h^2}\sin^2\left(\frac{k \pi}{2(n+1)}\right). \,\! }[/math]

Neumann case

In the Neumann case, we are solving

[math]\displaystyle{ \frac{v_{k+1} -2v_k + v_{k-1}}{h^2} = \lambda v_{k}, \ k = 1,...,n, \ v'_{0.5} = v'_{n+0.5} = 0. \,\! }[/math]

In the standard discretization, we introduce [math]\displaystyle{ v_{0}\,\! }[/math] and [math]\displaystyle{ v_{n+1}\,\! }[/math] and define

[math]\displaystyle{ v'_{0.5} := \frac{v_1 - v_0}{h}, \ v'_{n+0.5} := \frac{v_{n+1} - v_n}{h} \,\! }[/math]

The boundary conditions are then equivalent to

[math]\displaystyle{ v_1 - v_0 = 0, \ v_{n+1} - v_n = 0. }[/math]

If we make a change of variables,

[math]\displaystyle{ w_k = v_{k+1} - v_k, \ k = 0,...,n \,\! }[/math]

we can derive the following:

[math]\displaystyle{ \begin{alignat}{2} \frac{v_{k+1} -2v_k + v_{k-1}}{h^2} & = \lambda v_{k} \\ v_{k+1} -2v_k + v_{k-1} & = h^2 \lambda v_{k} \\ (v_{k+1} - v_k) - (v_k - v_{k-1}) & = h^2 \lambda v_{k} \\ w_k - w_{k-1} & = h^2 \lambda v_{k} \\ & = h^2 \lambda w_{k-1} + h^2 \lambda v_{k-1} \\ & = h^2 \lambda w_{k-1} + w_{k-1} - w_{k-2} \\ w_{k} & = (2 + h^2 \lambda) w_{k-1} - w_{k-2} \\ w_{k+1} & = (2 + h^2 \lambda) w_{k} - w_{k-1} \\ & = 2 \alpha w_k - w_{k-1}. \end{alignat} }[/math]

with [math]\displaystyle{ w_{n} = w_{0} = 0 }[/math] being the boundary conditions.

This is precisely the Dirichlet formula with [math]\displaystyle{ n-1 }[/math] interior grid points and grid spacing [math]\displaystyle{ h }[/math]. Similar to what we saw in the above, assuming [math]\displaystyle{ w_{1} \neq 0 }[/math], we get

[math]\displaystyle{ \lambda_k = -\frac{4}{h^2}\sin^2\left(\frac{k \pi}{2n}\right), \ k = 1,...,n-1. }[/math]

This gives us [math]\displaystyle{ n-1 }[/math] eigenvalues and there are [math]\displaystyle{ n }[/math]. If we drop the assumption that [math]\displaystyle{ w_{1} \neq 0 }[/math], we find there is also a solution with [math]\displaystyle{ v_{k} = \mathrm{constant} \ \forall \ k=0,...,n+1, }[/math] and this corresponds to eigenvalue [math]\displaystyle{ 0 }[/math].

Relabeling the indices in the formula above and combining with the zero eigenvalue, we obtain,

[math]\displaystyle{ \lambda_k = -\frac{4}{h^2}\sin^2\left(\frac{(k-1) \pi}{2n}\right), \ k = 1,...,n. }[/math]

Dirichlet-Neumann Case

For the Dirichlet-Neumann case, we are solving

[math]\displaystyle{ \frac{v_{k+1} -2v_k + v_{k-1}}{h^2} = \lambda v_{k}, \ k=1,...,n, \ v_0 = v'_{n+0.5} = 0. }[/math],

where [math]\displaystyle{ v'_{n+0.5} := \frac{v_{n+1} - v_n}{h}. }[/math]

We need to introduce auxiliary variables [math]\displaystyle{ v_{j + 0.5}, \ j = 0,...,n. }[/math]

Consider the recurrence

[math]\displaystyle{ v_{k+0.5} = 2 \beta v_{k} - v_{k-0.5}, \text{ for some }\beta \,\! }[/math].

Also, we know [math]\displaystyle{ v_0 = 0 }[/math] and assuming [math]\displaystyle{ v_{0.5} \neq 0 }[/math], we can scale [math]\displaystyle{ v_{0.5} }[/math] so that [math]\displaystyle{ v_{0.5} = 1. }[/math]

We can also write

[math]\displaystyle{ v_{k} = 2 \beta v_{k-0.5} - v_{k-1} \,\! }[/math]
[math]\displaystyle{ v_{k+1} = 2 \beta v_{k+0.5} - v_{k}. \,\! }[/math]

Taking the correct combination of these three equations, we can obtain

[math]\displaystyle{ v_{k+1} = (4 \beta^2 - 2) v_{k} - v_{k-1}. \,\! }[/math]

And thus our new recurrence will solve our eigenvalue problem when

[math]\displaystyle{ h^2 \lambda + 2 = (4 \beta^2 - 2). \,\! }[/math]

Solving for [math]\displaystyle{ \lambda }[/math] we get

[math]\displaystyle{ \lambda = \frac{4 (\beta^2 - 1)}{h^2}. }[/math]

Our new recurrence gives

[math]\displaystyle{ v_{n+1} = U_{2n + 1}(\beta), \ v_{n} = U_{2n - 1}(\beta), \,\! }[/math]

where [math]\displaystyle{ U_{k}(\beta) }[/math] again is the kth Chebyshev polynomial of the 2nd kind.

And combining with our Neumann boundary condition, we have

[math]\displaystyle{ U_{2n + 1}(\beta) - U_{2n - 1}(\beta) = 0. \,\! }[/math]

A well-known formula relates the Chebyshev polynomials of the first kind, [math]\displaystyle{ T_k(\beta) }[/math], to those of the second kind by

[math]\displaystyle{ U_{k}(\beta) - U_{k - 2}(\beta) = T_k (\beta). \,\! }[/math]

Thus our eigenvalues solve

[math]\displaystyle{ T_{2n + 1} (\beta) = 0, \ \lambda = \frac{4 (\beta^2 - 1)}{h^2}. \,\! }[/math]

The zeros of this polynomial are also known to be

[math]\displaystyle{ \beta_{k} = \cos\left(\frac{\pi (k - 0.5)}{2n + 1}\right), \ k=1,...,2n + 1 \,\! }[/math]

And thus

[math]\displaystyle{ \begin{alignat}{2} \lambda_{k} & = \frac{4}{h^2}\left[\cos^2\left(\frac{\pi (k - 0.5)}{2n + 1}\right) - 1\right] \\ & = -\frac{4}{h^2}\sin^2\left(\frac{\pi (k - 0.5)}{2n + 1}\right). \end{alignat} }[/math]

Note that there are 2n + 1 of these values, but only the first n + 1 are unique. The (n + 1)th value gives us the zero vector as an eigenvector with eigenvalue 0, which is trivial. This can be seen by returning to the original recurrence. So we consider only the first n of these values to be the n eigenvalues of the Dirichlet - Neumann problem.

[math]\displaystyle{ \lambda_{k} = -\frac{4}{h^2}\sin^2\left(\frac{\pi (k - 0.5)}{2n + 1}\right), \ k = 1,...,n. }[/math]

References

  1. F. Chung, S.-T. Yau, Discrete Green's Functions, Journal of Combinatorial Theory A 91, 191-214 (2000).