Analytical insight is obtained by considering the SVD , and from which it results that singular values of are square roots of the eigenvalues of . The eigenvalues of a symmetric matrix are real-valued.
Recall (see L14) that eigenvalues of
can be obtained by the correspondence between continuum and discrete operators. The matrix is a discrete version of the second-order differentiation operator obtained by centered finite differences
In the continuum case, the derivative at a point requires knowledge of values within a neighborhood, e.g., . The corresponding feature of the discrete case is that the differentiation operator is not square. Consider the vector obtained by sampling at nodes , , for , and the extended matrix
The finite difference approximation of the second derivative at interior points requires knowledge of function values, expressed in matrix form as
The eigensystem of the square matrix can however be obtained by noting that:
Eigenfunctions of are solutions of the ordinary differential equation , for .
Choosing boundary conditions on to recover the desired matrix .
Positing that eigenvectors of are obtaining by evaluating at , .
Verifying that is indeed verified with no dependence of on the component index .
For the matrix , the appropriate boundary conditions are and , such that
At the interval endpoints
Since the boundary value problem
has eigenfunctions , , posit that the eigenvectors of the matrix have components . Verify that is indeed an eigenvector by computing the component of
In the above calculation
does not depend on the component index , hence indeed it is an eigenvalue since is satisfied. Verify numerically:
∴ |
function D(m) spdiagm(0 => -2*ones(m), -1 => ones(m-1) , 1 => ones(m-1)) end; |
∴ |
m=10; num=eigen(collect(D(m))).values; |
∴ |
h=pi/(m+1); csi=m:-1:1; an=-(2*sin.(csi*h/2)).^2; |
∴ |
[num an] |
(1)
∴ |
From the above, the eigenvalues of can readily be found as
∴ |
The fact that the matrix differs from just through a rank-one update at the right endpoint,
suggests one of two approaches:
Define different boundary conditions for the ordinary differential equation .
Find the effect of a rank-one perturbation upon the eigenvalues of .
Consider the first approach, and require
The left end-condition remains the same . At the right obtain
In the continuum case the above is satisfied when
Carrying out a Taylor series expansion and truncating at first order gives the Robin boundary condition
This leads to consideration of the Sturm-Liouville problem
Let and obtain that a nontrivial solution is obtained for that satisfies the right end-condition
A numerical root-finding procedure determines solutions of the above equation.
∴ |
using Roots |
∴ |
f(x,m)=x+2*(m+1)*tan(x*pi)/pi; f10(x)=f(x,10); |
∴ |
csi=find_zero.(f10,1:10); |
∴ |
function C(m) d = -2*ones(m); d[m]=-3; h=pi/(m+1); s=1/h^2 spdiagm(0 => s*d, -1 => s*ones(m-1) , 1 => s*ones(m-1)) end; |
∴ |
num=eigen(collect(C(10))).values |
(2)
∴ |
collect(C(10)) |
(3)
∴ |
Verify whether is indeed an eigenvector of .
∴ |
∴ |
m=10; num=eigen(collect(D(m))).values; |
∴ |
h=pi/(m+1); csi=m:-1:1; an=-(2*sin.(csi*h/2)).^2; |
∴ |
[num an] |
(4)
∴ |
∴ |
C10=collect(C(10)) |
(5)
∴ |
For ,
are the roots. Since the smallest and largest eigenvalues of are
and the smallest, largest singular values of are
For the root-finding procedure gives
The extremal singular values are
However the matrix is a rank-one perturbation of , , . Numerical experimentation shows that eigenvalues of
From here there are two ways to proceed:
1) Eigenvalues of are roots of the characteristic polynomial
Use the factorization
and , , to obtain
From the SVD , deduce that singular values of are square roots of the eigenvalues of
The largest, smallest singular values , are obtained for , , respectively. This leads to
Verify the above numerical experiment.
∴ |
kappa(m)=cos(pi/2/(m+1))/cos(m*pi/2/(m+1)); |
∴ |
r=250:250:1000; num=cond.(Matrix.(S.(r))) ./ r; an=kappa.(r) ./ r; [num an] |
(6)