Professional Documents
Culture Documents
Assignment
Schrodinger’s wave equation for the given infinite potential well is solved by the mean of finite
difference method.
Result:
Discussion:
For ground state it is more probable to find the electron in the mid region
For first excited state the red curve shows the probability density function. It is
evident that it is not likely to find the electron in the mid region
Second excited state curve (yellow) shows the probability density function of the
electron in the second excited state
Linear potential well:
The linear potential well is plotted with the help of Matlab. We need to solve schrodinger’s
wave equation in this region.
Result:
Discussion:
It is evident from the graph that probability to find the electron in the region with potential
energy is more unlikely.
Notch potential:
Schrodinger’s wave equation for the given notch potential is solved by the mean of finite
difference method.
Result:
Discussion:
The probability of finding the electron is rare in the potential region.
Codes:
Infinite well:
clc
clear all
close all
step_size = 5;
data_points = 1000;
KE(1,1)=2;
KE (n,n) = 2;
KE(n,n-1)= -1;
KE(n-1,n)=-1;
end
k=(hbar^2)/(2*mass*step_size^2);
Potential_Energy = zeros(data_points);
for i=1:200
end
for i=data_points-200:data_points
end
[eigenvectors,eigenvalues] = eig(hamiltonian);
x= linspace(0,step_size*data_points,data_points);
ground = eigenvectors(:,1)+ eigenvalues(1,1)*ones(data_points,1);%sum of eigenvalue and eigenvectors give wave
fuction
hold on
plot(x,ground_state,'g','LineWidth',2)
hold on
plot(x,first_state,'r','LineWidth',2)
hold on
plot(x,second_state,'y','LineWidth',2)
legend('Potential Energy', 'Ground State', 'First Excited State', 'Second Excited State')
xlabel('Position in nm')
clear all
close all
step_size = .005;
data_points = 50;
KE(1,1)= 2;
KE (n,n) = 2;
KE(n,n-1)= -1;
KE(n-1,n)=-1;
end
k=(hbar^2)/(2*mass*step_size^2);
Potential_Energy = zeros(data_points);
c=.0000001;
for i=1:data_points
Potential_Energy (i,i)= c ;
c=c+.01;
end
[eigenvectors,eigenvalues] = eig(hamiltonian);
x= linspace(0,step_size*data_points,data_points);
first_state = first.^2 ;
area(x,diag (Potential_Energy))
hold on
plot(x,ground_state,'g','LineWidth',2)
hold on
plot(x,first_state,'r','LineWidth',2)
hold on
plot(x,second_state,'y','LineWidth',2)
legend('Potential Energy', 'Ground State', 'First Excited State', 'Second Excited State')
Notch potential:
clc
clear all
close all
step_size = .05;
data_points = 500;
KE(1,1)= 2;
KE (n,n) = 2;
KE(n,n-1)= -1;
KE(n-1,n)=-1;
end
k=(hbar^2)/(2*mass*step_size^2);
Potential_Energy = zeros(data_points);
for i=200:data_points-200
end
[eigenvectors,eigenvalues] = eig(hamiltonian);
x= linspace(0,step_size*data_points,data_points);
area(x,diag (Potential_Energy))
hold on
plot(x,ground_state,'g','LineWidth',2)
hold on
plot(x,first_state,'r','LineWidth',2)
hold on
plot(x,second_state,'y','LineWidth',2)
legend('Potential Energy', 'Ground State', 'First Excited State', 'Second Excited State')
xlabel('Position')