
Part I
Numerical Techniques:
Differential Equations - Boundary
Value & Eigenvalue Problems
Choose only two questions.
A) Compute the following boundary value problems with the boundary
conditions given next to them, and Wr ite a program t ha t compares it
to analytical solutions:
y
′′
− xy
′
+ y = −x
2
with y(0) = −2, & y(1 ) = 1,
y
′′
= −(y
′
)
2
− y + lnx with y(1) = 0, & y(2) = ln2
The analytical solutions of these equations are:
y(x) = 1 + 2
e
2x
− e
x
e
2
− e
y(x) = lnx
B) Write a program that solve the following eigenvalue problems with the
given boundary conditions a nd find the smallest two eigenvalues:
y
′′
− 3y
′
+ 2k
2
y = 0 with y(0) = 0, y( 1) = 0,
y
′′
+ k
2
x
2
y = 0 with y(0) = 0, y( 1) = 0
C) Pöschl-Teller potential It is a widely used po t ential function used
for matter diffusion in modern optoelectronic devices:
V (x) = −
¯h
2
2m
α
2
cosh
2
αx
Where, α is a parameter that defines both the intensity and range of
the potential together. It would be α = 0.05 for typical devices. Take
the constants in the Schrödinger equation ¯h/2m = 7.62 eV Å
2
. Write
a program to find the ground state energy by solving the Schrödinger
equation with the bo undary conditions ψ(0) = ψ(100) = 0 in the in-
terval x : [0, 100 Å].
1