Numerical Solutions of The SCHR Odinger Equation: Kevin Giovanni Hern Andez Beltr An
Numerical Solutions of The SCHR Odinger Equation: Kevin Giovanni Hern Andez Beltr An
Kevin Giovanni Hernández Beltrán Universidad de El Salvador, Facultad de Ciencias Naturales y Matemática, Escuela de Fı́sica San Salvador, El Salvador
Computational physics
Cover Abstract Introduction Methodology Discussions. Conclusions. References.
1 Cover
2 Abstract
3 Introduction
4 Methodology
5 Discussions.
6 Conclusions.
7 References.
Kevin Giovanni Hernández Beltrán Universidad de El Salvador, Facultad de Ciencias Naturales y Matemática, Escuela de Fı́sica San Salvador, El Salvador
Computational physics
Cover Abstract Introduction Methodology Discussions. Conclusions. References.
Abstract
The Schrödinger equation is presented in this paper considering two ways
to solve. The numerical solution is obtained from centered finite difference
with different values of E, this case is the spatial Schrödinger equation.
Then use the centered finite difference in the spatial part and Euler method
in the temporal part to solve the time-spatial Schrödinger equation. The
quantum problems to solve are the Infinite well and quantum harmonic
oscillator. The python language provides a good way to program the
solutions for PDE in Landau (2010) and Langtanten (2016) develops a
complet theory so solve ODE, PDE and integral equations, via different
methods.
Keywords: Quantum harmonic oscillator, particle in a box, finite-difference
method, Schrodinger equation, Python.
Kevin Giovanni Hernández Beltrán Universidad de El Salvador, Facultad de Ciencias Naturales y Matemática, Escuela de Fı́sica San Salvador, El Salvador
Computational physics
Cover Abstract Introduction Methodology Discussions. Conclusions. References.
Introduction
Kevin Giovanni Hernández Beltrán Universidad de El Salvador, Facultad de Ciencias Naturales y Matemática, Escuela de Fı́sica San Salvador, El Salvador
Computational physics
Cover Abstract Introduction Methodology Discussions. Conclusions. References.
The choice of the numerical methods implies the convergence, error treat-
ment and a simple model. The finite difference method solve partial
differential equations like the heat flow, diffusion, Laplace equations and
others. The numerical scheme is simple for a one dimension but for more
dimension the scheme is more complicated by the loops presence. There
are some ways less complicated but that implies convergence treatment,
more error, and maybe the solution is far to be the real solution.
Kevin Giovanni Hernández Beltrán Universidad de El Salvador, Facultad de Ciencias Naturales y Matemática, Escuela de Fı́sica San Salvador, El Salvador
Computational physics
Cover Abstract Introduction Methodology Discussions. Conclusions. References.
Kevin Giovanni Hernández Beltrán Universidad de El Salvador, Facultad de Ciencias Naturales y Matemática, Escuela de Fı́sica San Salvador, El Salvador
Computational physics
Cover Abstract Introduction Methodology Discussions. Conclusions. References.
Kevin Giovanni Hernández Beltrán Universidad de El Salvador, Facultad de Ciencias Naturales y Matemática, Escuela de Fı́sica San Salvador, El Salvador
Computational physics
Cover Abstract Introduction Methodology Discussions. Conclusions. References.
Methodology
Procedure
h̄2 ∂2
− Ψ (x ) + V (x ) Ψ (x ) = E Ψ (x )
2m ∂x 2
For computational proposes we fix h̄ = 1, 2m = 1:
∂2
− Ψ (x ) + V (x ) Ψ (x ) = E Ψ (x ) (1)
∂x 2
So, this problem is solved when V (x ) and the boundary conditions are
chosen for the physical problem.
Kevin Giovanni Hernández Beltrán Universidad de El Salvador, Facultad de Ciencias Naturales y Matemática, Escuela de Fı́sica San Salvador, El Salvador
Computational physics
Cover Abstract Introduction Methodology Discussions. Conclusions. References.
Ψ (x ) = u (x )
∂2 u (x + h ) − 2u (x ) + u (x − h )
2
u (x ) = (2)
∂x h2
Discrete system
ui +1 − 2ui + ui −1
− = (E − Vi )ui
h2
ui +1 = 2ui − ui −1 + h2 (Vi − E )ui (3)
Kevin Giovanni Hernández Beltrán Universidad de El Salvador, Facultad de Ciencias Naturales y Matemática, Escuela de Fı́sica San Salvador, El Salvador
Computational physics
Cover Abstract Introduction Methodology Discussions. Conclusions. References.
Infinite well.
Kevin Giovanni Hernández Beltrán Universidad de El Salvador, Facultad de Ciencias Naturales y Matemática, Escuela de Fı́sica San Salvador, El Salvador
Computational physics
Cover Abstract Introduction Methodology Discussions. Conclusions. References.
V (x ) = 0.5mω 2 x 2 (6)
The parameters for solve the eq. 7 are the same for the infinite well.
Kevin Giovanni Hernández Beltrán Universidad de El Salvador, Facultad de Ciencias Naturales y Matemática, Escuela de Fı́sica San Salvador, El Salvador
Computational physics
Cover Abstract Introduction Methodology Discussions. Conclusions. References.
Kevin Giovanni Hernández Beltrán Universidad de El Salvador, Facultad de Ciencias Naturales y Matemática, Escuela de Fı́sica San Salvador, El Salvador
Computational physics
Cover Abstract Introduction Methodology Discussions. Conclusions. References.
Methodology
Procedure
∂ h̄ ∂2
i h̄ Ψ(x, t ) = − Ψ(x, t ) + V (x, t )Ψ(x, t ) (8)
∂t 2m ∂x 2
Fixing the constant to the unity and the solution is separable in real and
complex part (Landau, 2010):
Kevin Giovanni Hernández Beltrán Universidad de El Salvador, Facultad de Ciencias Naturales y Matemática, Escuela de Fı́sica San Salvador, El Salvador
Computational physics
Cover Abstract Introduction Methodology Discussions. Conclusions. References.
∂ ∂2
R (x, t ) = − 2 I (x, t ) + V (x, t )I (x, t )
∂t ∂x
∂ ∂2
I (x, t ) = 2 R (x, t ) − V (x, t )R (x, t )
∂t ∂x
(10)
The procedure is for solve the imaginary part. Approximating the imaginary
part:
Kevin Giovanni Hernández Beltrán Universidad de El Salvador, Facultad de Ciencias Naturales y Matemática, Escuela de Fı́sica San Salvador, El Salvador
Computational physics
Cover Abstract Introduction Methodology Discussions. Conclusions. References.
Assuming:
I (x, t ) = u (x, t )
!
1 (x − xmean )2
u (x, t0 ) = √ exp − (12)
σ 2π σ2
Then:
∂2
u (x, t0 ) − V (x, t0 )u (x, t0 )
g (x, t0 ) =
∂x 2
∂
u (x, t ) = g (x, t0 ) (13)
∂t
So, if we know g (x, t0 ) using equation 13 for find u (x, t1 ) as:
Kevin Giovanni Hernández Beltrán Universidad de El Salvador, Facultad de Ciencias Naturales y Matemática, Escuela de Fı́sica San Salvador, El Salvador
Computational physics
Cover Abstract Introduction Methodology Discussions. Conclusions. References.
Kevin Giovanni Hernández Beltrán Universidad de El Salvador, Facultad de Ciencias Naturales y Matemática, Escuela de Fı́sica San Salvador, El Salvador
Computational physics
Cover Abstract Introduction Methodology Discussions. Conclusions. References.
Methodology.
Error treatment.
Kevin Giovanni Hernández Beltrán Universidad de El Salvador, Facultad de Ciencias Naturales y Matemática, Escuela de Fı́sica San Salvador, El Salvador
Computational physics
Cover Abstract Introduction Methodology Discussions. Conclusions. References.
The Errorn represent the difference between the exact solution and the
numerical solution, point by point. The AErrorn represents the error in the
amplitudes of the solutions.
For the Quantum harmonic oscillator problem the error treatment to use is
the truncated error because the differential equations is of the form:
u 00 (x ) + u (x ) = f (x, u ) (16)
Where I is the discretized system for the left side of the equation 16.
Kevin Giovanni Hernández Beltrán Universidad de El Salvador, Facultad de Ciencias Naturales y Matemática, Escuela de Fı́sica San Salvador, El Salvador
Computational physics
Cover Abstract Introduction Methodology Discussions. Conclusions. References.
Results.
Implementation of python codes.
Kevin Giovanni Hernández Beltrán Universidad de El Salvador, Facultad de Ciencias Naturales y Matemática, Escuela de Fı́sica San Salvador, El Salvador
Computational physics
Cover Abstract Introduction Methodology Discussions. Conclusions. References.
The difference between the function for infinite well and the quantum
harmonic oscillator is the function computeg , so, the potential is non zero
in the quantum harmonic oscillator.
Kevin Giovanni Hernández Beltrán Universidad de El Salvador, Facultad de Ciencias Naturales y Matemática, Escuela de Fı́sica San Salvador, El Salvador
Computational physics
Cover Abstract Introduction Methodology Discussions. Conclusions. References.
Kevin Giovanni Hernández Beltrán Universidad de El Salvador, Facultad de Ciencias Naturales y Matemática, Escuela de Fı́sica San Salvador, El Salvador
Computational physics
Cover Abstract Introduction Methodology Discussions. Conclusions. References.
Kevin Giovanni Hernández Beltrán Universidad de El Salvador, Facultad de Ciencias Naturales y Matemática, Escuela de Fı́sica San Salvador, El Salvador
Computational physics
Cover Abstract Introduction Methodology Discussions. Conclusions. References.
For the time-spatial Schrödinger equation, the initial condition is in fig. ??. The
Gaussian distribution taken mean = 0, σ = 0.5, the interval of x is −5, 5, and
there are N = 51 points in this interval.
Kevin Giovanni Hernández Beltrán Universidad de El Salvador, Facultad de Ciencias Naturales y Matemática, Escuela de Fı́sica San Salvador, El Salvador
Computational physics
Numerical solution in the T-S Schrödinger equation.
Quantum harmonic oscillator.
The results for the quantum harmonic oscillator is plotted in the next figure.
Numerical solution of the quantum harmonic oscillator, for 0.02, 1.00, 2.00 seconds.
The main importance is the wave function is almost zero in t > 2.0s
Numerical solution in the T-S Schrödinger equation.
Quantum harmonic oscillator.
For the Infinite well the numerical solution as plotted in the next figure.
Numerical solution of the infinite well, for 0.02, 1.00, 2.00 seconds.
Cover Abstract Introduction Methodology Discussions. Conclusions. References.
Discussions.
Kevin Giovanni Hernández Beltrán Universidad de El Salvador, Facultad de Ciencias Naturales y Matemática, Escuela de Fı́sica San Salvador, El Salvador
Computational physics
Cover Abstract Introduction Methodology Discussions. Conclusions. References.
The finite difference and the Euler method in the problem time-spatial show
the iterations of the solution with time and space dependence, but the
truncation error is small comparing with the truncation error for the spatial
solutions. The stability of the system is determined when the solutions is
not noisy or the point to point separations is big. The instability of the
Kevin Giovanni Hernández Beltrán Universidad de El Salvador, Facultad de Ciencias Naturales y Matemática, Escuela de Fı́sica San Salvador, El Salvador
Computational physics
Cover Abstract Introduction Methodology Discussions. Conclusions. References.
Conclusions.
The numerical solution of the spatial Schrödinger equation with its
respective error, represents a good approximations in the chosen prob-
lems.
For the case of the time-spatial solutions the behavior is not clear
because the Euler method is sensitive to sinusoidal function, the
solution is partially good (spatial domain).
The next step is specify which values of E are physically acceptable
and admit congruents solution. In the spatial solution of the infinite
well the choose of E = 10 is because the minimum energy for this
system is π 2 factor which one is approximate to 10 so, the numerical
solution is a good approximation to the exact solution.
The stability and convergence are determined with the parameters of
the iterations, boundary conditions and E, for the spatial Schrödinger
equation.
For different u (x, t0 ) in the T-S Schrödinger equation the numerical
solutions are very different in the interval but the Gaussian distribution
is adequate in this problem.
Kevin Giovanni Hernández Beltrán Universidad de El Salvador, Facultad de Ciencias Naturales y Matemática, Escuela de Fı́sica San Salvador, El Salvador
Computational physics
Cover Abstract Introduction Methodology Discussions. Conclusions. References.
Kevin Giovanni Hernández Beltrán Universidad de El Salvador, Facultad de Ciencias Naturales y Matemática, Escuela de Fı́sica San Salvador, El Salvador
Computational physics
Cover Abstract Introduction Methodology Discussions. Conclusions. References.
Kevin Giovanni Hernández Beltrán Universidad de El Salvador, Facultad de Ciencias Naturales y Matemática, Escuela de Fı́sica San Salvador, El Salvador
Computational physics