my question is about solving an eigenvalue problem of the Helmholtz equation using sinc approximation
$\nabla^2E + V (x) = \lambda E$ and $V(x)= X^2 / 2$
I have a problem in calculating the eigenvalues of this system because the eigen values if this system is known to be $\lambda$=$ \{1/2 , 3/2 , 5/2\}$
my code is :
Nn = 8
h = \[Pi]π/Sqrt[2 Nn]
h1 = h
exactdelta2 = h1^2 D[S1[\[Phi]1[x]D[S1[ϕ1[x], j, h1], { \[Phi]1[x]ϕ1[x], 2}]
ex5 = exactdelta2 /. x -> \[Psi]1[x]ψ1[x] /. \[Phi]1[\[Psi]1[x_]]ϕ1[ψ1[x_]] :> x /.
x -> k h1
ex6 = ex5 /. S1 -> Function[{x, k, h}, Sinc[\[Pi]Sinc[π (x - k h)/h]]
nabla = Table[ex6, {k, -Nn, Nn}, {j, -Nn, Nn}] /.
Indeterminate :> Limit[ex6, k -> j]
vx[x_] = x^2/2 /. x -> k h
vx1 = Table[vx[x], {k, -Nn, Nn}]
vxmat = DiagonalMatrix[vx1]
A = nabla + vxmat // N
lamda = Eigenvalues[A]