SlideShare a Scribd company logo
Zewail city of science and Technology
Assignment 1
Numerical solution of the Schr¨odinger
equation
Author
Mohamed Ramadan
201400711
Supervisor
Dr. Amr Bayoumi
November 1, 2017
Assignment 1.
Numerical solution of the Schr¨odinger equation
The time-independent Schr¨odinger equation describing a particle of mass m constrained to motion
in a time-independent, one-dimensional potential V(x) is
−
¯h2
2m
ψ [x] + V [x]ψ[x] = Eψ[x] (1)
and it can be written in terms of the Hamiltonian operator as
ˆHψ[x] = Eψ[x] (2)
where
ˆH = −
¯h2
2m
d2
dx2
+ V [x] (3)
E are energy eigenvalues, and Ψ are time-independent stationary states.
To solve this equation numerically, one must first discretize the functions. A first approach sam-
ples the wave function and potential at a discrete set of N + 1 equally-spaced points in such a way
that position Xj = J × ∆, the index j = 0, 1, 2, 3, ..., N , and ∆ is the interval between adjacent
sampling points. Thus, one may define Xj+1 ≡ Xj + ∆. Such sampling of a particle wave function
and potential is illustrated Fig. 1.
The region in which we wish to solve the Schr¨odinger equation is of length L = N∆. At each
sampling point the wave function has value Ψj = Ψ(xj ). The potential Vj = V(xj ) = 0 for the infinite
potential well, for which we are solving the Schr¨odinger equation.
The first derivative of the discretized wave function Ψ(xj ) in the two-point finite-difference ap-
proximation is:
d
dx
Ψ(xj ) =
Ψ(xj ) − Ψ(xj−1)
∆
(4)
1
To find the second derivative of the discretized wave function, we use the three-point finite difference
approximation,which gives:
d2
dx2
Ψ(xj ) =
Ψ(xj−1) − 2Ψ(xj ) + Ψ(xj+1)
∆2
(5)
with boundary conditions Ψ(x0) = Ψ(xN ) = 0
The result is that the original PDE is replaced by a linear system for nodal values:
−¯h2
m∆2



j = 1 Ψ(x0)−2Ψ(x1)+Ψ(x2)
∆2 = EΨ(x1)
j = 2 Ψ(x1)−2Ψ(x2)+Ψ(x3)
∆2 = EΨ(x2)
j = 3 Ψ(x2)−2Ψ(x3)+Ψ(x4)
∆2 = EΨ(x3)
j = 4 Ψ(x3)−2Ψ(x4)+Ψ(x5)
∆2 = EΨ(x4)



In matrix form HΨ = EΨ, where:




d −u 0 0
−u d −u 0
0 −u d −u
0 0 −u d








Ψ1
Ψ2
Ψ3
Ψ4



 =




E1
E2
E3
E4








Ψ1
Ψ2
Ψ3
Ψ4




where d = ¯h2
m∆2 and u = ¯h2
2m∆2 .
We can use MATLAB to solve for the eigenvalues and eigenfunctions.
2
Solution
1) Using the method outlined, write a MATLAB program to solve the Schr¨odinger wave equation
for the first four eigenvalues and eigenstates of an electron confined to a rectangular potential well
of width L = 10nm bounded by infinite barrier potential energy. Plot the wavefunctions.
L = 10nm and N = 201 so ∆ = 0.04975nm
Firstly,we will calculate the values of d and u which will be :
d =
¯h2
m∆2
=
(1.05457 ∗ 10−34
)2
(9.10938 ∗ 10−31) ∗ (0.04975 ∗ 10−9)2
= 4.9326 ∗ 10−18 (J.S)2
rad2.Kg.m2
u =
¯h2
2m∆2
=
(1.05457 ∗ 10−34
)2
2 ∗ (9.10938 ∗ 10−31) ∗ (0.04975 ∗ 10−9)2
= 2.4663 ∗ 10−18 (J.S)2
rad2.Kg.m2
Substituting in the matrix form then:
H =








4.9326 ∗ 10−18
2.4663 ∗ 10−18
0 0 . .
2.4663 ∗ 10−18
4.9326 ∗ 10−18
2.4663 ∗ 10−18
0 . .
0 2.4663 ∗ 10−18
4.9326 ∗ 10−18
. .
. . . . . .
. . . . . .
. . . . 2.4663 ∗ 10−18
4.9326 ∗ 10−18








Using [V, D] = eigs(H), the eigenvalues,which are E, and eignvectors,which are Ψ can be calcu-
lated.
The eigenvalues are:
E1 E2 E3 E4
D =




0.9864 ∗ 10−17
0 0 0
0 0.9862 ∗ 10−17
0 0
0 0 0.9859 ∗ 10−17
0
0 0 0 0.9855 ∗ 10−17




The eigenvectors are:
Ψ1 Ψ2 Ψ3 Ψ4
V =








−0.0016 0.0031 −0.0047 −0.0062
0.0031 −0.0062 0.0093 0.0124
−0.0047 0.0093 −0.0140 −0.0186
0.0062 −0.0124 0.0186 0.0247
. . . .
. . . .








For plotting, each wavefunction [Ψ1Ψ2Ψ3Ψ4] should be plotted VS. the width of the infinite well,
considering that Ψ0 = Ψ201 = 0 and the step value of x is equal to 0.04975nm.
3
Using plot function in MATLAB,the wavefunction vector:
Ψ1 =












0
−0.0016
0.0031
−0.0047
0.0062
.
.
0












can be plotted VS. the well distance: X =












0
0.0498
0.0995
0.1493
0.1990
.
.
10












Considering that Ψ1(x=0)
= Ψ1(x=10)
= 0 ;as these two points are at the walls of the infinite well.
2) Plot the probability density for the obtained wavefunctions.
The plot of the wavefunction of the electron in the first orbital and it’s probability are:
repeating the same steps for [Ψ2Ψ3Ψ4] resulting these plots:
For Ψ2:
4
For Ψ3:
For Ψ4:
3) For the ground state (n=1), calculate the probability of finding the electron between 0.25 <
x < 0.75 nm.
The trapz MATLAB function can be used to calculate the probability of finding the electron
between 0.25 < x < 0.75 nm for (n = 1).
The probability (0.25 < x < 0.75) = 0.05
e = [0.2488 : 0.04975 : 0.75]
y = transpose(V (:, N))
z = [0 y 0]
q = 10. ∗ z.2
v = q(1, 6 : 16)
5
trapz(e, v) = 0.0026
This is the GUI which can implement all these solutions:
6

More Related Content

What's hot

Newton's Forward/Backward Difference Interpolation
Newton's Forward/Backward  Difference InterpolationNewton's Forward/Backward  Difference Interpolation
Newton's Forward/Backward Difference Interpolation
VARUN KUMAR
 
Point Collocation Method used in the solving of Differential Equations, parti...
Point Collocation Method used in the solving of Differential Equations, parti...Point Collocation Method used in the solving of Differential Equations, parti...
Point Collocation Method used in the solving of Differential Equations, parti...
Suddhasheel GHOSH, PhD
 
Solve ODE - BVP through the Least Squares Method
Solve ODE - BVP through the Least Squares MethodSolve ODE - BVP through the Least Squares Method
Solve ODE - BVP through the Least Squares Method
Suddhasheel GHOSH, PhD
 
FEM Introduction: Solving ODE-BVP using the Galerkin's Method
FEM Introduction: Solving ODE-BVP using the Galerkin's MethodFEM Introduction: Solving ODE-BVP using the Galerkin's Method
FEM Introduction: Solving ODE-BVP using the Galerkin's Method
Suddhasheel GHOSH, PhD
 
Newton’s Forward & backward interpolation
Newton’s Forward &  backward interpolation Newton’s Forward &  backward interpolation
Newton’s Forward & backward interpolation
Meet Patel
 
Interpolation with unequal interval
Interpolation with unequal intervalInterpolation with unequal interval
Interpolation with unequal interval
Dr. Nirav Vyas
 
Gaussian quadratures
Gaussian quadraturesGaussian quadratures
Gaussian quadratures
Tarun Gehlot
 
Conformal mapping
Conformal mappingConformal mapping
Gaussian Integration
Gaussian IntegrationGaussian Integration
Gaussian Integration
Reza Rahimi
 
Interpolation
InterpolationInterpolation
Interpolation
Dmytro Mitin
 
Integration
IntegrationIntegration
Integration
lecturer
 
Finite elements : basis functions
Finite elements : basis functionsFinite elements : basis functions
Finite elements : basis functions
Tarun Gehlot
 
11365.integral 2
11365.integral 211365.integral 2
11365.integral 2
Nidhu Sharma
 
Lecture 11 systems of nonlinear equations
Lecture 11 systems of nonlinear equationsLecture 11 systems of nonlinear equations
Lecture 11 systems of nonlinear equations
Hazel Joy Chong
 
Interpolation and Extrapolation
Interpolation and ExtrapolationInterpolation and Extrapolation
Interpolation and Extrapolation
VNRacademy
 
6.2 the indefinite integral
6.2 the indefinite integral 6.2 the indefinite integral
6.2 the indefinite integral
dicosmo178
 
Section5 stochastic
Section5 stochasticSection5 stochastic
Section5 stochastic
cairo university
 
Integration techniques
Integration techniquesIntegration techniques
Integration techniques
Krishna Gali
 
Jacobi and gauss-seidel
Jacobi and gauss-seidelJacobi and gauss-seidel
Jacobi and gauss-seidel
arunsmm
 

What's hot (19)

Newton's Forward/Backward Difference Interpolation
Newton's Forward/Backward  Difference InterpolationNewton's Forward/Backward  Difference Interpolation
Newton's Forward/Backward Difference Interpolation
 
Point Collocation Method used in the solving of Differential Equations, parti...
Point Collocation Method used in the solving of Differential Equations, parti...Point Collocation Method used in the solving of Differential Equations, parti...
Point Collocation Method used in the solving of Differential Equations, parti...
 
Solve ODE - BVP through the Least Squares Method
Solve ODE - BVP through the Least Squares MethodSolve ODE - BVP through the Least Squares Method
Solve ODE - BVP through the Least Squares Method
 
FEM Introduction: Solving ODE-BVP using the Galerkin's Method
FEM Introduction: Solving ODE-BVP using the Galerkin's MethodFEM Introduction: Solving ODE-BVP using the Galerkin's Method
FEM Introduction: Solving ODE-BVP using the Galerkin's Method
 
Newton’s Forward & backward interpolation
Newton’s Forward &  backward interpolation Newton’s Forward &  backward interpolation
Newton’s Forward & backward interpolation
 
Interpolation with unequal interval
Interpolation with unequal intervalInterpolation with unequal interval
Interpolation with unequal interval
 
Gaussian quadratures
Gaussian quadraturesGaussian quadratures
Gaussian quadratures
 
Conformal mapping
Conformal mappingConformal mapping
Conformal mapping
 
Gaussian Integration
Gaussian IntegrationGaussian Integration
Gaussian Integration
 
Interpolation
InterpolationInterpolation
Interpolation
 
Integration
IntegrationIntegration
Integration
 
Finite elements : basis functions
Finite elements : basis functionsFinite elements : basis functions
Finite elements : basis functions
 
11365.integral 2
11365.integral 211365.integral 2
11365.integral 2
 
Lecture 11 systems of nonlinear equations
Lecture 11 systems of nonlinear equationsLecture 11 systems of nonlinear equations
Lecture 11 systems of nonlinear equations
 
Interpolation and Extrapolation
Interpolation and ExtrapolationInterpolation and Extrapolation
Interpolation and Extrapolation
 
6.2 the indefinite integral
6.2 the indefinite integral 6.2 the indefinite integral
6.2 the indefinite integral
 
Section5 stochastic
Section5 stochasticSection5 stochastic
Section5 stochastic
 
Integration techniques
Integration techniquesIntegration techniques
Integration techniques
 
Jacobi and gauss-seidel
Jacobi and gauss-seidelJacobi and gauss-seidel
Jacobi and gauss-seidel
 

Similar to Numerical solution of the Schr¨odinger equation

Physical Chemistry Assignment Help
Physical Chemistry Assignment HelpPhysical Chemistry Assignment Help
Physical Chemistry Assignment Help
Edu Assignment Help
 
Applications of Differential Calculus in real life
Applications of Differential Calculus in real life Applications of Differential Calculus in real life
Applications of Differential Calculus in real life
OlooPundit
 
Multivriada ppt ms
Multivriada   ppt msMultivriada   ppt ms
Multivriada ppt ms
Faeco Bot
 
Litvinenko_RWTH_UQ_Seminar_talk.pdf
Litvinenko_RWTH_UQ_Seminar_talk.pdfLitvinenko_RWTH_UQ_Seminar_talk.pdf
Litvinenko_RWTH_UQ_Seminar_talk.pdf
Alexander Litvinenko
 
Ph 101-9 QUANTUM MACHANICS
Ph 101-9 QUANTUM MACHANICSPh 101-9 QUANTUM MACHANICS
Ph 101-9 QUANTUM MACHANICS
Chandan Singh
 
Section2 stochastic
Section2 stochasticSection2 stochastic
Section2 stochastic
cairo university
 
Statistical Method In Economics
Statistical Method In EconomicsStatistical Method In Economics
Statistical Method In Economics
Economics Homework Helper
 
Computer graphics LINE DRAWING algorithm.pptx
Computer graphics LINE DRAWING algorithm.pptxComputer graphics LINE DRAWING algorithm.pptx
Computer graphics LINE DRAWING algorithm.pptx
R S Anu Prabha
 
Calculo integral - Larson
Calculo integral - LarsonCalculo integral - Larson
Calculo integral - Larson
Juan Alejandro Alvarez Agudelo
 
Solution to schrodinger equation with dirac comb potential
Solution to schrodinger equation with dirac comb potential Solution to schrodinger equation with dirac comb potential
Solution to schrodinger equation with dirac comb potential
slides
 
2018 MUMS Fall Course - Statistical Representation of Model Input (EDITED) - ...
2018 MUMS Fall Course - Statistical Representation of Model Input (EDITED) - ...2018 MUMS Fall Course - Statistical Representation of Model Input (EDITED) - ...
2018 MUMS Fall Course - Statistical Representation of Model Input (EDITED) - ...
The Statistical and Applied Mathematical Sciences Institute
 
The Multivariate Gaussian Probability Distribution
The Multivariate Gaussian Probability DistributionThe Multivariate Gaussian Probability Distribution
The Multivariate Gaussian Probability Distribution
Pedro222284
 
1 hofstad
1 hofstad1 hofstad
1 hofstad
Yandex
 
Chapter 3
Chapter 3Chapter 3
Chapter 3
wraithxjmin
 
Section4 stochastic
Section4 stochasticSection4 stochastic
Section4 stochastic
cairo university
 
A series of maximum entropy upper bounds of the differential entropy
A series of maximum entropy upper bounds of the differential entropyA series of maximum entropy upper bounds of the differential entropy
A series of maximum entropy upper bounds of the differential entropy
Frank Nielsen
 
Quantitative Techniques random variables
Quantitative Techniques random variablesQuantitative Techniques random variables
Quantitative Techniques random variables
Rohan Bhatkar
 
Section3 stochastic
Section3 stochasticSection3 stochastic
Section3 stochastic
cairo university
 
Solution set 3
Solution set 3Solution set 3
Solution set 3
慧环 赵
 
Hierarchical matrices for approximating large covariance matries and computin...
Hierarchical matrices for approximating large covariance matries and computin...Hierarchical matrices for approximating large covariance matries and computin...
Hierarchical matrices for approximating large covariance matries and computin...
Alexander Litvinenko
 

Similar to Numerical solution of the Schr¨odinger equation (20)

Physical Chemistry Assignment Help
Physical Chemistry Assignment HelpPhysical Chemistry Assignment Help
Physical Chemistry Assignment Help
 
Applications of Differential Calculus in real life
Applications of Differential Calculus in real life Applications of Differential Calculus in real life
Applications of Differential Calculus in real life
 
Multivriada ppt ms
Multivriada   ppt msMultivriada   ppt ms
Multivriada ppt ms
 
Litvinenko_RWTH_UQ_Seminar_talk.pdf
Litvinenko_RWTH_UQ_Seminar_talk.pdfLitvinenko_RWTH_UQ_Seminar_talk.pdf
Litvinenko_RWTH_UQ_Seminar_talk.pdf
 
Ph 101-9 QUANTUM MACHANICS
Ph 101-9 QUANTUM MACHANICSPh 101-9 QUANTUM MACHANICS
Ph 101-9 QUANTUM MACHANICS
 
Section2 stochastic
Section2 stochasticSection2 stochastic
Section2 stochastic
 
Statistical Method In Economics
Statistical Method In EconomicsStatistical Method In Economics
Statistical Method In Economics
 
Computer graphics LINE DRAWING algorithm.pptx
Computer graphics LINE DRAWING algorithm.pptxComputer graphics LINE DRAWING algorithm.pptx
Computer graphics LINE DRAWING algorithm.pptx
 
Calculo integral - Larson
Calculo integral - LarsonCalculo integral - Larson
Calculo integral - Larson
 
Solution to schrodinger equation with dirac comb potential
Solution to schrodinger equation with dirac comb potential Solution to schrodinger equation with dirac comb potential
Solution to schrodinger equation with dirac comb potential
 
2018 MUMS Fall Course - Statistical Representation of Model Input (EDITED) - ...
2018 MUMS Fall Course - Statistical Representation of Model Input (EDITED) - ...2018 MUMS Fall Course - Statistical Representation of Model Input (EDITED) - ...
2018 MUMS Fall Course - Statistical Representation of Model Input (EDITED) - ...
 
The Multivariate Gaussian Probability Distribution
The Multivariate Gaussian Probability DistributionThe Multivariate Gaussian Probability Distribution
The Multivariate Gaussian Probability Distribution
 
1 hofstad
1 hofstad1 hofstad
1 hofstad
 
Chapter 3
Chapter 3Chapter 3
Chapter 3
 
Section4 stochastic
Section4 stochasticSection4 stochastic
Section4 stochastic
 
A series of maximum entropy upper bounds of the differential entropy
A series of maximum entropy upper bounds of the differential entropyA series of maximum entropy upper bounds of the differential entropy
A series of maximum entropy upper bounds of the differential entropy
 
Quantitative Techniques random variables
Quantitative Techniques random variablesQuantitative Techniques random variables
Quantitative Techniques random variables
 
Section3 stochastic
Section3 stochasticSection3 stochastic
Section3 stochastic
 
Solution set 3
Solution set 3Solution set 3
Solution set 3
 
Hierarchical matrices for approximating large covariance matries and computin...
Hierarchical matrices for approximating large covariance matries and computin...Hierarchical matrices for approximating large covariance matries and computin...
Hierarchical matrices for approximating large covariance matries and computin...
 

Recently uploaded

Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdfObservability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Paige Cruz
 
Introducing Milvus Lite: Easy-to-Install, Easy-to-Use vector database for you...
Introducing Milvus Lite: Easy-to-Install, Easy-to-Use vector database for you...Introducing Milvus Lite: Easy-to-Install, Easy-to-Use vector database for you...
Introducing Milvus Lite: Easy-to-Install, Easy-to-Use vector database for you...
Zilliz
 
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
Neo4j
 
Presentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of GermanyPresentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of Germany
innovationoecd
 
Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !
KatiaHIMEUR1
 
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
SOFTTECHHUB
 
Artificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopmentArtificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopment
Octavian Nadolu
 
UiPath Test Automation using UiPath Test Suite series, part 5
UiPath Test Automation using UiPath Test Suite series, part 5UiPath Test Automation using UiPath Test Suite series, part 5
UiPath Test Automation using UiPath Test Suite series, part 5
DianaGray10
 
Pushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 daysPushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 days
Adtran
 
Introduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - CybersecurityIntroduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - Cybersecurity
mikeeftimakis1
 
A tale of scale & speed: How the US Navy is enabling software delivery from l...
A tale of scale & speed: How the US Navy is enabling software delivery from l...A tale of scale & speed: How the US Navy is enabling software delivery from l...
A tale of scale & speed: How the US Navy is enabling software delivery from l...
sonjaschweigert1
 
TrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy SurveyTrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy Survey
TrustArc
 
20240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 202420240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 2024
Matthew Sinclair
 
How to use Firebase Data Connect For Flutter
How to use Firebase Data Connect For FlutterHow to use Firebase Data Connect For Flutter
How to use Firebase Data Connect For Flutter
Daiki Mogmet Ito
 
Uni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems Copilot event_05062024_C.Vlachos.pdfUni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems S.M.S.A.
 
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Albert Hoitingh
 
Enchancing adoption of Open Source Libraries. A case study on Albumentations.AI
Enchancing adoption of Open Source Libraries. A case study on Albumentations.AIEnchancing adoption of Open Source Libraries. A case study on Albumentations.AI
Enchancing adoption of Open Source Libraries. A case study on Albumentations.AI
Vladimir Iglovikov, Ph.D.
 
Large Language Model (LLM) and it’s Geospatial Applications
Large Language Model (LLM) and it’s Geospatial ApplicationsLarge Language Model (LLM) and it’s Geospatial Applications
Large Language Model (LLM) and it’s Geospatial Applications
Rohit Gautam
 
Building RAG with self-deployed Milvus vector database and Snowpark Container...
Building RAG with self-deployed Milvus vector database and Snowpark Container...Building RAG with self-deployed Milvus vector database and Snowpark Container...
Building RAG with self-deployed Milvus vector database and Snowpark Container...
Zilliz
 
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Speck&Tech
 

Recently uploaded (20)

Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdfObservability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
 
Introducing Milvus Lite: Easy-to-Install, Easy-to-Use vector database for you...
Introducing Milvus Lite: Easy-to-Install, Easy-to-Use vector database for you...Introducing Milvus Lite: Easy-to-Install, Easy-to-Use vector database for you...
Introducing Milvus Lite: Easy-to-Install, Easy-to-Use vector database for you...
 
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
 
Presentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of GermanyPresentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of Germany
 
Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !
 
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
 
Artificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopmentArtificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopment
 
UiPath Test Automation using UiPath Test Suite series, part 5
UiPath Test Automation using UiPath Test Suite series, part 5UiPath Test Automation using UiPath Test Suite series, part 5
UiPath Test Automation using UiPath Test Suite series, part 5
 
Pushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 daysPushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 days
 
Introduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - CybersecurityIntroduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - Cybersecurity
 
A tale of scale & speed: How the US Navy is enabling software delivery from l...
A tale of scale & speed: How the US Navy is enabling software delivery from l...A tale of scale & speed: How the US Navy is enabling software delivery from l...
A tale of scale & speed: How the US Navy is enabling software delivery from l...
 
TrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy SurveyTrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy Survey
 
20240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 202420240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 2024
 
How to use Firebase Data Connect For Flutter
How to use Firebase Data Connect For FlutterHow to use Firebase Data Connect For Flutter
How to use Firebase Data Connect For Flutter
 
Uni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems Copilot event_05062024_C.Vlachos.pdfUni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems Copilot event_05062024_C.Vlachos.pdf
 
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
 
Enchancing adoption of Open Source Libraries. A case study on Albumentations.AI
Enchancing adoption of Open Source Libraries. A case study on Albumentations.AIEnchancing adoption of Open Source Libraries. A case study on Albumentations.AI
Enchancing adoption of Open Source Libraries. A case study on Albumentations.AI
 
Large Language Model (LLM) and it’s Geospatial Applications
Large Language Model (LLM) and it’s Geospatial ApplicationsLarge Language Model (LLM) and it’s Geospatial Applications
Large Language Model (LLM) and it’s Geospatial Applications
 
Building RAG with self-deployed Milvus vector database and Snowpark Container...
Building RAG with self-deployed Milvus vector database and Snowpark Container...Building RAG with self-deployed Milvus vector database and Snowpark Container...
Building RAG with self-deployed Milvus vector database and Snowpark Container...
 
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
 

Numerical solution of the Schr¨odinger equation

  • 1. Zewail city of science and Technology Assignment 1 Numerical solution of the Schr¨odinger equation Author Mohamed Ramadan 201400711 Supervisor Dr. Amr Bayoumi November 1, 2017
  • 2. Assignment 1. Numerical solution of the Schr¨odinger equation The time-independent Schr¨odinger equation describing a particle of mass m constrained to motion in a time-independent, one-dimensional potential V(x) is − ¯h2 2m ψ [x] + V [x]ψ[x] = Eψ[x] (1) and it can be written in terms of the Hamiltonian operator as ˆHψ[x] = Eψ[x] (2) where ˆH = − ¯h2 2m d2 dx2 + V [x] (3) E are energy eigenvalues, and Ψ are time-independent stationary states. To solve this equation numerically, one must first discretize the functions. A first approach sam- ples the wave function and potential at a discrete set of N + 1 equally-spaced points in such a way that position Xj = J × ∆, the index j = 0, 1, 2, 3, ..., N , and ∆ is the interval between adjacent sampling points. Thus, one may define Xj+1 ≡ Xj + ∆. Such sampling of a particle wave function and potential is illustrated Fig. 1. The region in which we wish to solve the Schr¨odinger equation is of length L = N∆. At each sampling point the wave function has value Ψj = Ψ(xj ). The potential Vj = V(xj ) = 0 for the infinite potential well, for which we are solving the Schr¨odinger equation. The first derivative of the discretized wave function Ψ(xj ) in the two-point finite-difference ap- proximation is: d dx Ψ(xj ) = Ψ(xj ) − Ψ(xj−1) ∆ (4) 1
  • 3. To find the second derivative of the discretized wave function, we use the three-point finite difference approximation,which gives: d2 dx2 Ψ(xj ) = Ψ(xj−1) − 2Ψ(xj ) + Ψ(xj+1) ∆2 (5) with boundary conditions Ψ(x0) = Ψ(xN ) = 0 The result is that the original PDE is replaced by a linear system for nodal values: −¯h2 m∆2    j = 1 Ψ(x0)−2Ψ(x1)+Ψ(x2) ∆2 = EΨ(x1) j = 2 Ψ(x1)−2Ψ(x2)+Ψ(x3) ∆2 = EΨ(x2) j = 3 Ψ(x2)−2Ψ(x3)+Ψ(x4) ∆2 = EΨ(x3) j = 4 Ψ(x3)−2Ψ(x4)+Ψ(x5) ∆2 = EΨ(x4)    In matrix form HΨ = EΨ, where:     d −u 0 0 −u d −u 0 0 −u d −u 0 0 −u d         Ψ1 Ψ2 Ψ3 Ψ4     =     E1 E2 E3 E4         Ψ1 Ψ2 Ψ3 Ψ4     where d = ¯h2 m∆2 and u = ¯h2 2m∆2 . We can use MATLAB to solve for the eigenvalues and eigenfunctions. 2
  • 4. Solution 1) Using the method outlined, write a MATLAB program to solve the Schr¨odinger wave equation for the first four eigenvalues and eigenstates of an electron confined to a rectangular potential well of width L = 10nm bounded by infinite barrier potential energy. Plot the wavefunctions. L = 10nm and N = 201 so ∆ = 0.04975nm Firstly,we will calculate the values of d and u which will be : d = ¯h2 m∆2 = (1.05457 ∗ 10−34 )2 (9.10938 ∗ 10−31) ∗ (0.04975 ∗ 10−9)2 = 4.9326 ∗ 10−18 (J.S)2 rad2.Kg.m2 u = ¯h2 2m∆2 = (1.05457 ∗ 10−34 )2 2 ∗ (9.10938 ∗ 10−31) ∗ (0.04975 ∗ 10−9)2 = 2.4663 ∗ 10−18 (J.S)2 rad2.Kg.m2 Substituting in the matrix form then: H =         4.9326 ∗ 10−18 2.4663 ∗ 10−18 0 0 . . 2.4663 ∗ 10−18 4.9326 ∗ 10−18 2.4663 ∗ 10−18 0 . . 0 2.4663 ∗ 10−18 4.9326 ∗ 10−18 . . . . . . . . . . . . . . . . . . 2.4663 ∗ 10−18 4.9326 ∗ 10−18         Using [V, D] = eigs(H), the eigenvalues,which are E, and eignvectors,which are Ψ can be calcu- lated. The eigenvalues are: E1 E2 E3 E4 D =     0.9864 ∗ 10−17 0 0 0 0 0.9862 ∗ 10−17 0 0 0 0 0.9859 ∗ 10−17 0 0 0 0 0.9855 ∗ 10−17     The eigenvectors are: Ψ1 Ψ2 Ψ3 Ψ4 V =         −0.0016 0.0031 −0.0047 −0.0062 0.0031 −0.0062 0.0093 0.0124 −0.0047 0.0093 −0.0140 −0.0186 0.0062 −0.0124 0.0186 0.0247 . . . . . . . .         For plotting, each wavefunction [Ψ1Ψ2Ψ3Ψ4] should be plotted VS. the width of the infinite well, considering that Ψ0 = Ψ201 = 0 and the step value of x is equal to 0.04975nm. 3
  • 5. Using plot function in MATLAB,the wavefunction vector: Ψ1 =             0 −0.0016 0.0031 −0.0047 0.0062 . . 0             can be plotted VS. the well distance: X =             0 0.0498 0.0995 0.1493 0.1990 . . 10             Considering that Ψ1(x=0) = Ψ1(x=10) = 0 ;as these two points are at the walls of the infinite well. 2) Plot the probability density for the obtained wavefunctions. The plot of the wavefunction of the electron in the first orbital and it’s probability are: repeating the same steps for [Ψ2Ψ3Ψ4] resulting these plots: For Ψ2: 4
  • 6. For Ψ3: For Ψ4: 3) For the ground state (n=1), calculate the probability of finding the electron between 0.25 < x < 0.75 nm. The trapz MATLAB function can be used to calculate the probability of finding the electron between 0.25 < x < 0.75 nm for (n = 1). The probability (0.25 < x < 0.75) = 0.05 e = [0.2488 : 0.04975 : 0.75] y = transpose(V (:, N)) z = [0 y 0] q = 10. ∗ z.2 v = q(1, 6 : 16) 5
  • 7. trapz(e, v) = 0.0026 This is the GUI which can implement all these solutions: 6