3) Program for finite square well potential (c++) :
clear all; close all;
a = 1; %% Length
M = 5.11; %% Mass
N = 512;
x = linspace(-a/2,a/2,N); x = x';
k = N*linspace(-1/2,1/2,N); k = k';
dt = 1e-3; %% Time step
%%% Potential
V0 = 3000;
V = zeros(length(x),1) - V0; % 1*((2*x).^2 - (0.6*a)^2); %
b = a/16;
V(x<-b) = 0;
V(x>+b) = 0;
Phi0 = exp(-(5*(x-0*a/128)).^2);
Phi0c = conj(Phi0); %% real(Phi0)- i*imag(Phi0);
%%
figure(1);set(gcf,'position',[37 208 538 732]);
plot(x,V,'r');hold on;plot(x,max(abs(real(V)))*abs(Phi0c));hold off; pause(1);
%%
GK = fftshift(exp(-(i*dt/(4*M))*((2*pi/a)^2)*(k.^2))); %% dt/2 kinetic energy propagator
GK2 = fftshift(exp(-(i*dt/(2*M))*((2*pi/a)^2)*(k.^2))); %% dt kinetic energy propagator
GV = exp(-i*dt*V); %% Potential spatial interaction
% plot((-(dt/(4*M))*((2*pi/a)^2)*(k.^2)));
% plot(-dt*V);
%%
iPhi = fft(Phi0);
Phi = ifft(iPhi.*GK);
Phi = GV.*Phi;
NPt = 50000;
Pt = zeros(1,NPt);
En = -105.99; %% Energy eigen value
T = dt*NPt;
t = linspace(0,T,NPt);
wt = (1-cos(2*pi*t/length(t)));
uns = 0;
for nrn = 1:NPt
iPhi = fft(Phi);
Pt(nrn) = trapz(x,Phi0c.*ifft(iPhi.*GK));
Phi = ifft(iPhi.*GK2);
%%
unl = Phi*wt(nrn)*exp(i*En*nrn*dt);
if nrn > 1
una = (unp + unl)*dt/2; %% Trapezoidal area
uns = uns + una; %% Explicit trapezoidal integration
if mod(nrn,1000) == 0
figure(1);
subplot(4,1,3);plot(x,abs(una));
title('int_t^{t+dt} Phi_x(t) w(t) exp(i*E_n*t) dt');
xlabel('x');axis tight;
subplot(4,1,4);plot(x,real(uns));
title('Eigen function @ E = -105.99');
xlabel('x');ylabel('Amp');axis tight;
end
end
unp = unl;
%%
if mod(nrn,1000) == 0
figure(1);
subplot(4,1,1);plot(x, real(Phi),'r');
title(['Phi_x t=',num2str(t(nrn))]);
xlabel('x');ylabel('Amp');axis tight;
subplot(4,1,2);plot(k,fftshift(real(iPhi)),'r-');
title('Phi_k');
xlabel('k');ylabel('k-space Amp');axis tight;
pause(0.2);
end
%%
Phi = GV.*Phi;
end
iPhi = fft(Phi);
Phi = ifft(iPhi.*GK);
%%
estep = 1; %% Sampling period
Po = Pt(1:estep:length(Pt));
T = dt*NPt;
t = linspace(0,T,length(Po));
E = (1/dt)*(linspace(-pi,pi,length(Po)));
%%
Pe = fftshift(fft(((1-cos(2*pi*t/T)).*Po/T)));
%%
figure(2);subplot(2,1,1);plot(t,real(Po));
title('Correlation Function ');xlabel('Time');
figure(2);subplot(2,1,2);plot(E,log(fliplr(abs(Pe))),'r');
title('Energy Spectrum');xlabel('Energy');ylabel('Power');
axis([-210 0 -17 5]);
pause(1);
%%-------------------------------------------------------------------------
%% Analytic method: For Even Solutions (Even Wave functions)
%%
z0 = b*sqrt(2*M*V0);
z = 0:0.01:20*pi;
y1 = tan(z);
y2 = sqrt((z0./z).^2 - 1);
figure(3);subplot(2,1,1);plot(z,y1,z,y2);
hold on;
plot(z,0*z,'r');
axis([0 45 0 35]);
title('tan(z) = [(z_0/z)^2 - 1]^{1/2}');
crss_n = [1.5 4.5 7.6 10.8 13.83 16.9 20.0 23.0 26.1 29.1 32.2 35.2 38.2 41.1];
%% ^-- get these values by looking at the graph (approx)
g = inline('tan(z) - sqrt((z0/z).^2 - 1)','z','z0');
for nrn = 1:14
zn(nrn) = fzero(@(z) g(z,z0),crss_n(nrn));
end
figure(3);subplot(2,1,1);hold on;plot(zn,tan(zn),'rx');
q = zn/b;
Em = ((q.^2)/(2*M))-V0;
%%
for nrn = 1:length(Em),
figure(3);subplot(2,1,2);hold on;
plot([Em(nrn),Em(nrn)],[-17,6]);
end
%%
figure(3);subplot(2,1,2);
plot(E,log(fliplr(abs(Pe))),'r');hold on;
title('Energy Spectrum (Blue: Even solutions)');
xlabel('Energy');ylabel('Power');
axis([-210 0 -17 5]);
d) If we add b
Here I type Mathematica code to find the energy eigenvalue E
b = 3;
v[x_] := If[Abs[x - b/2] < 0.5, 0, 50];
nMax = 50;
basis[n_, x_] := Sqrt[2/b]*Sin[n Pi x/b];
vMatrix = Table[NIntegrate[basis[n, x]*v[x]*basis[m, x],
{x, 0, b}], {n, 1, nMax}, {m, 1, nMax}];
h0Matrix = DiagonalMatrix[Table[n^2 Pi^2/(2*b^2), {n, 1, nMax}]];
{eValues, eVectors} = Eigensystem[h0Matrix + vMatrix]; eValues
For b value you can take anything, just, for example, I have taken 3.
1. Consider a 1D finite square well potential defined as follows. Vo-a<x<a V(x) = 0otherwise a)...
Q1) Consider 2.dimensional infinite "well" with the potential otherwise The stationary states are ny = (a) sin ( x) sin (y,) The corresponding energies are n) , 123 Note that the ground state, ?11 is nondegenerate with the energy E00)-E1)-' r' Now introduce the perturbation, given by the shaded region in the figure ma AH,-{Vo, if 0<x otherwise y<a/2 (a) What is the energy of the 1.st excited state of the unperturbed system? What is its degree of degeneracy,v? (b)...
Consider a particle of mass m in an infinite spherical potential well of radius a For write down the energies and corresponding eigen functions ψ--(r,0.9). (3 pt) a) ne that at t-o the wave function is given by o)-A. Find the normalization constant A function in this basis. Solve for the coeffici You may find useful the integrals in the front of the (6 pt) d) Now consider the finite potential spherical well with V(r)- ing only the radial part...
Consider an infinite well for which the boltom is not lat, as sketched here. I the slope is small, the potential V = er/a may be considered as a per- turbation on the square-well potential over-a/2 < x < a/2. vox) a/2 -a/2 (a) Calculate the ground-state energy, correct to first order in perturbation theory. (b) Calculate the energy of the first excited state, correct to first order in perturbation theory. (c) Calculate the wave function in the ground state,...
Quantum Mechanics Problem 1. (25) Consider an infinite potential well with the following shape: 0 a/4 3al4 a h2 where 4 Using the ground state wavefunction of the original infinite potential well as a trial function, 2πχ trial = 1-sin- find the approximation of the ground state energy for this system with the variational method. (Note, this question is simplified by considering the two components of the Hamiltonian, and V, on their own) b) If we had used the 1st...
Parity (please answer from part a to part d) Consider Infinite Square Well Potential, V(x) = 0 for |x| < 1/2a and V(x) = infinity for |x| > 1/2a a) Find energy eigenstates and eigenvalues by solving eigenvalue equation using appropriate boundary conditions. And show orthogonality of eigenstates. For rest of part b to part d please look at the image below: Problem 1 . Parity Consider an infinite square well potential, V(x) = 0 for lxl 〈 a and...
1. Consider a charged particle bound in the harmonic oscillator potential V(x) = mw x2. A weak electric field is applied to the system such that the potential energy, U(X), now has an extra term: V(x) = -qEx. We write the full Hamiltonian as H = Ho +V(x) where Ho = Px +mw x2 V(x) = –qEx. (a) Write down the unperturbed energies, EO. (b) Find the first-order correction to E . (c) Calculate the second-order correction to E ....
There is a 1-d infinite square well of width a, between x = 0 and a. We also know that V(x) = 0 for 0<x<a and +∞ elsewhere. Then we add a perturbation to it so that V(x) = ?_0 for 0 < x < a/2, and the same as before elsewhere. That is, a flat bump of width a/2 and height ?_0 in the left half of the well. Please answer following 3 questions. 1) Sketch the potential and...
1. (50 points) Consider the particle in a one-dimensional box (0 s x S L). Assume a term is added to the Hamiltonian of the form: πχ V(x)g sin Sketch the potential and the expected eigenfunction (small g). In the limit of small g, find the second order correction to the ground state energy 2. (50 points) For a diatomic molecule rotating in free space, the Hamiltonian may be written: 12 21 Where L is the total angular momentum operator,...
4. A particle moves in a periodic one-dimensional potential, V(x a)-V(x); physically, this may represent the motion of non-interacting electrons in a crys- tal lattice. Let us call n), n - 0, +1, t2, particle located at site n, with (n'In) -Sn,Let H be the system Hamiltonian and U(a) the discrete translation operator: U(a)|n) - [n +1). In the tight- binding approximation, one neglects the overlap of electron states separated by a distance larger than a, so that where is...
A NON stationary state A particle of mass m is in an infinite square well potential of width L, as in McIntyre's section 5.4. Suppose we have an initial state vector lv(t -0) results from Mclntrye without re-deriving them, and you may use a computer for your math as long as you include your code in your solution A(3E1) 4iE2)). You may use E. (4 pts) Use a computer to plot this probability density at 4 times: t 0, t2...