1
00:00:00,480 --> 00:00:06,420
So welcome back to this lecture about the harmonic oscillator in the previous lecture, we have determined

2
00:00:06,420 --> 00:00:10,290
the first ion energy and the first ion function.

3
00:00:11,040 --> 00:00:18,270
And also, we have realized that the methods that we are using to so-called shooting methods is quite

4
00:00:19,110 --> 00:00:23,020
unstable in terms of the starting conditions.

5
00:00:23,020 --> 00:00:28,980
So here we have to find some value a which we use as the starting point.

6
00:00:29,010 --> 00:00:37,170
We will start from minus three in this case, and we have seen that when we go to even even smaller

7
00:00:37,170 --> 00:00:41,100
values or even larger values in absolute value, let's say eight.

8
00:00:42,890 --> 00:00:48,110
We can see that the wave function just explodes due to this exponential behavior here.

9
00:00:49,070 --> 00:00:51,500
So that's something we definitely have to avoid.

10
00:00:51,500 --> 00:00:54,660
So we make we have to make a sufficiently small.

11
00:00:55,190 --> 00:01:02,360
But then there is another problem because when our energy is very large, then our parabola for the

12
00:01:02,360 --> 00:01:06,380
potential will be larger and x direction as well.

13
00:01:06,830 --> 00:01:12,140
So then maybe it is a is equal to three will be way too low or for the higher energies.

14
00:01:13,280 --> 00:01:22,450
So what I found out, what I just want to tell you here is that we want to use a certain conditions

15
00:01:22,460 --> 00:01:26,000
that we want to make this value of a energy dependent.

16
00:01:26,780 --> 00:01:39,260
So we want to say that our parabola f potential is equal to be times x squared is supposed to be the

17
00:01:39,470 --> 00:01:41,550
or is equal to the energy.

18
00:01:41,570 --> 00:01:47,120
But what we want is actually that the energy is much, much smaller than this value.

19
00:01:47,120 --> 00:01:54,500
So let's say, yeah, let's say you buy such a factor of 10 in terms of the size of this B.

20
00:01:55,340 --> 00:02:07,910
So now if we solve this with respect to A, we get to square root piece square root 10 plus he will

21
00:02:08,020 --> 00:02:10,090
v OK.

22
00:02:10,220 --> 00:02:12,770
So this is now our energy dependent value for.

23
00:02:13,310 --> 00:02:14,750
So of course, we need to

24
00:02:18,830 --> 00:02:19,510
do it like this.

25
00:02:19,520 --> 00:02:21,770
OK, so this I tested before that it works.

26
00:02:22,940 --> 00:02:24,730
OK, so we still get our same value.

27
00:02:24,730 --> 00:02:31,070
You can see for the energy of zero point five, the value is just slightly larger than this three that

28
00:02:31,070 --> 00:02:31,880
we had previously.

29
00:02:32,600 --> 00:02:39,500
But if we do something like this, you can see now the value is quite different.

30
00:02:40,800 --> 00:02:47,610
So, yeah, OK, and actually, it turns out that we have found already here another I function.

31
00:02:49,030 --> 00:02:51,230
OK, but what do you want to do next?

32
00:02:51,280 --> 00:02:57,370
Like we did previously is we want to find this eigenvalues and eigen functions automatically.

33
00:02:58,270 --> 00:03:07,300
So again, we are going to use a loop as we had before, and this time since it's basically exactly

34
00:03:07,300 --> 00:03:09,130
the same thing as we had before.

35
00:03:09,640 --> 00:03:11,410
I will just copy some code.

36
00:03:11,590 --> 00:03:16,930
So this is exactly the same thing we had in the previous example where we had the particle inside of

37
00:03:16,930 --> 00:03:17,410
the box.

38
00:03:17,830 --> 00:03:27,850
But here with this modified potential and also with this modified a border, and then we have to increase

39
00:03:27,850 --> 00:03:28,210
here.

40
00:03:28,210 --> 00:03:38,800
Our energy by D, E and D and D is equal to zero point zero five.

41
00:03:39,130 --> 00:03:47,410
So as it turns out, this solution here is much slower because we are integrating starting from much

42
00:03:47,410 --> 00:03:48,250
larger values.

43
00:03:49,180 --> 00:03:53,620
So here we have to integrate four minus three to three, and previously in the box, we only had to

44
00:03:53,620 --> 00:03:55,180
integrate from zero to one.

45
00:03:56,110 --> 00:04:02,320
So I will make the energy steps a bit larger this time so that it doesn't take forever.

46
00:04:03,850 --> 00:04:07,270
So let's see what comes out.

47
00:04:08,380 --> 00:04:14,350
The energy value is basically zero point five and we get the same wave function as here.

48
00:04:15,040 --> 00:04:17,019
So it works very well.

49
00:04:17,769 --> 00:04:20,130
So it's the same algorithm as before.

50
00:04:20,140 --> 00:04:27,430
The only thing that is changed is the potential this value for a and of course, here this condition,

51
00:04:27,850 --> 00:04:37,600
um, we had to make this this critical value here a bit larger because actually our wave function will

52
00:04:37,600 --> 00:04:41,350
never go back to zero, even in the ideal analytical case.

53
00:04:42,010 --> 00:04:46,600
But since we are inside of the potential here, it will be quite small.

54
00:04:46,990 --> 00:04:49,660
But I gave it here some tolerance and made it a bit larger.

55
00:04:49,660 --> 00:04:51,070
0.02.

56
00:04:52,540 --> 00:05:01,030
OK, now and the next step, we want to go one step further and want to determine the some more eigenvalues

57
00:05:01,030 --> 00:05:02,140
and ion energies.

58
00:05:03,130 --> 00:05:05,800
So I will copy again the code from before.

59
00:05:06,580 --> 00:05:15,040
And so this is again the same principle procedure as we had in the end, the example for the particle

60
00:05:15,040 --> 00:05:15,580
in the box.

61
00:05:15,580 --> 00:05:18,210
So we have here three while loops.

62
00:05:18,220 --> 00:05:26,050
So basically what was added here is this while loop where we add where we loop over a counter and then

63
00:05:26,050 --> 00:05:33,460
whenever we found an eigen system, we will add we will save it here and this list ion functions and

64
00:05:33,760 --> 00:05:37,180
eigen energies and in the X values list as before.

65
00:05:38,170 --> 00:05:45,760
And we also use here this trick, which avoids double counting of the same eigenvalue so we can now

66
00:05:45,760 --> 00:05:46,330
run this.

67
00:05:48,890 --> 00:05:50,120
I was really fast, actually.

68
00:05:50,480 --> 00:05:54,680
And now we can look at the eye and energies.

69
00:05:56,300 --> 00:06:03,500
OK, so that's actually really interesting and you can see here the iron values, the iron energies

70
00:06:03,500 --> 00:06:05,990
of 0.5 1.5 2.5.

71
00:06:06,290 --> 00:06:11,030
So we have equidistant energy levels and this is in fact true.

72
00:06:11,420 --> 00:06:17,570
We will see this and one of the following sections where we will dissolve the system analytically.

73
00:06:18,050 --> 00:06:24,610
Maybe we will have spent quite some time achieving this result that the energy level is actually one

74
00:06:24,620 --> 00:06:31,340
half plus and where end starts from zero to one, two, three to four and so on.

75
00:06:32,000 --> 00:06:38,450
And of course, we will have done the prefecture, but because we will determine in the analytical case.

76
00:06:39,200 --> 00:06:42,410
So now let's look at the eigen functions.

77
00:06:43,730 --> 00:06:52,220
So let us loop over the counter and plot every single X value list versus the EIGEN function list.

78
00:06:54,560 --> 00:06:56,970
So this is what it looks like here.

79
00:06:56,990 --> 00:07:00,290
Actually, I have used and max equal to 10.

80
00:07:00,300 --> 00:07:02,060
Maybe that's a bit extreme.

81
00:07:02,330 --> 00:07:04,520
Let's use five so that we can see something.

82
00:07:06,880 --> 00:07:12,640
OK, so we have here our lowest energy level and blue, which does not have a zero.

83
00:07:13,120 --> 00:07:16,360
Then the next one will be the orange one with one zero.

84
00:07:16,870 --> 00:07:24,670
Then there will be the green one and the red one and then the purple one with one two three four zeros.

85
00:07:25,010 --> 00:07:26,770
That's the fifth eigenvalue.

86
00:07:27,220 --> 00:07:31,510
So this is, as I told you in general statement, that's always gonna be true.

87
00:07:32,980 --> 00:07:36,550
Now we will normalize our way function as we did previously.

88
00:07:37,120 --> 00:07:38,260
So let's test again.

89
00:07:38,950 --> 00:07:39,240
OK.

90
00:07:39,280 --> 00:07:41,530
Different from different from one.

91
00:07:42,100 --> 00:07:50,110
So this is because basically, yeah, we have just assumed some value for the wave function at some

92
00:07:50,110 --> 00:07:51,730
position here at the very left.

93
00:07:52,480 --> 00:07:54,550
And of course, this value is not correct.

94
00:07:55,030 --> 00:08:04,210
So we have to find the correct amplitude in order to make the statement true that the absolute screw

95
00:08:04,220 --> 00:08:10,480
after wave function represents the probability density for the electron and it has to integrate to one

96
00:08:10,840 --> 00:08:13,660
because the electron has to be somewhere.

97
00:08:14,290 --> 00:08:20,200
So what we are going to do is we are going to loop over a counter of all of our away functions.

98
00:08:20,650 --> 00:08:27,340
So now we determine norm for each of the wave functions and we will divide divide each value in the

99
00:08:27,340 --> 00:08:32,140
list of design functions by the square root of the norm.

100
00:08:33,820 --> 00:08:35,080
And then we can check again.

101
00:08:37,330 --> 00:08:38,919
Yes, no, it's normalized to one.

102
00:08:39,669 --> 00:08:48,070
And we can plot everything again, and you can see now they will have different amplitudes.

103
00:08:49,150 --> 00:08:52,030
And this is not released.

104
00:08:52,270 --> 00:08:56,980
Or it could be surprising for you because in the previous example, all of the way functions had the

105
00:08:56,980 --> 00:08:57,790
same amplitude.

106
00:08:57,790 --> 00:09:01,090
But as I told you already there, this is not a general statement.

107
00:09:01,420 --> 00:09:04,980
So in general, the amplitudes for the wave functions can be different.

108
00:09:04,990 --> 00:09:07,630
And as you see, here, they are, in fact different.

109
00:09:09,040 --> 00:09:19,320
So now another thing that we want to do is we want to look at the absolute square plotted over X.

110
00:09:19,330 --> 00:09:21,220
So this is the probability density.

111
00:09:22,060 --> 00:09:31,870
So we will plot now the X values of the wave function versus the absolute square, which we have used

112
00:09:31,870 --> 00:09:40,150
some non pi and p square squares every single element in this list so we can plot this now.

113
00:09:40,750 --> 00:09:42,850
And so, yeah, this is what it is.

114
00:09:42,850 --> 00:09:47,080
What you can see is the yeah, the probability density.

115
00:09:49,400 --> 00:09:57,200
So basically, you can estimate here for this blue curve, it goes up to zero point five or something,

116
00:09:57,200 --> 00:09:59,180
and here it goes from minus two to two.

117
00:09:59,690 --> 00:10:01,760
So it really has the area of one.

118
00:10:03,080 --> 00:10:08,960
Now, before we use this alternative way of plotting the wave functions, I want to show you something

119
00:10:08,960 --> 00:10:11,660
pretty cool that I really liked.

120
00:10:11,690 --> 00:10:16,280
So first of all, let's calculate a few more energy levels.

121
00:10:16,830 --> 00:10:18,200
So let's go to 10.

122
00:10:19,970 --> 00:10:22,490
OK, now we have your 10 eigen functions.

123
00:10:23,180 --> 00:10:25,820
Um, let's normalize them again.

124
00:10:26,360 --> 00:10:28,640
OK, so now we have here.

125
00:10:30,190 --> 00:10:35,690
Ten functions, and we can also plot this one.

126
00:10:35,710 --> 00:10:36,070
OK.

127
00:10:37,520 --> 00:10:37,790
Good.

128
00:10:40,160 --> 00:10:45,240
Now what I want to show you is that we can actually compare this.

129
00:10:47,090 --> 00:10:56,240
This probability density, let's say off the level, the highest level that we have calculated so and

130
00:10:56,240 --> 00:11:04,380
maximum minus one which looks like this, we can actually compare this to the to the classical case.

131
00:11:04,430 --> 00:11:08,930
So this is quantum mechanics and the probability here.

132
00:11:11,150 --> 00:11:18,220
And we can compare this to the classical probability.

133
00:11:24,170 --> 00:11:34,790
OK, so classically when you have a harmonic oscillator, for example, you have a pendulum, then you

134
00:11:34,790 --> 00:11:39,380
will have as a solution something like this.

135
00:11:39,380 --> 00:11:45,740
You will have, for example, a cosine or a sign function of T times some frequency band that say,

136
00:11:45,950 --> 00:11:46,940
we have cosine of two.

137
00:11:46,940 --> 00:11:47,090
You

138
00:11:50,570 --> 00:11:58,640
know, the classical probability is actually one over the velocity, because if you think about it,

139
00:12:00,050 --> 00:12:08,690
when our pendulum spins or when your pendulum has the highest velocity, it will spend the least amount

140
00:12:08,690 --> 00:12:10,460
of time at a certain position.

141
00:12:11,210 --> 00:12:19,280
So when we look at the pendulum at a random point of time, it will be what the other, the possibility

142
00:12:19,280 --> 00:12:25,250
of finding the pendulum in a certain state will be largest when the velocity is zero.

143
00:12:25,340 --> 00:12:31,490
So I think to extrema and in the middle, where the velocity is highest, the probability is smallest

144
00:12:31,490 --> 00:12:33,350
for finding the pendulum in this state.

145
00:12:34,370 --> 00:12:43,040
So we can now use this equation to determine the the velocity.

146
00:12:43,340 --> 00:12:50,330
So this is actually the of T is equal to minus sine of T.

147
00:12:52,490 --> 00:12:59,240
And also, we want to express this velocity not in terms of T, but in terms of X.

148
00:12:59,600 --> 00:13:02,840
So actually, we want to have this one here.

149
00:13:03,860 --> 00:13:13,980
So what we use here is T of X is the inverse function, of course.

150
00:13:13,980 --> 00:13:17,780
So we have our cosine of X.

151
00:13:18,170 --> 00:13:32,030
So we can just write minus sine or we can can do it like this or the of X is equal to minus sign of

152
00:13:33,020 --> 00:13:37,670
Orcus cosine of X.

153
00:13:40,700 --> 00:13:45,530
So this is now the classical solution for the velocity.

154
00:13:46,310 --> 00:13:51,020
And now we calculate this probability.

155
00:13:52,190 --> 00:13:57,560
So P of X is one over the velocity, so it's basically a minus one.

156
00:13:58,010 --> 00:14:07,640
We have X is minus one over the sign of the R because cosine of X.

157
00:14:09,650 --> 00:14:18,110
And actually, when you use some, some basic trigonometry, you can find that this is actually equal

158
00:14:18,110 --> 00:14:18,680
to.

159
00:14:21,960 --> 00:14:29,470
Two minus one over the square root of one minus x squared.

160
00:14:31,590 --> 00:14:38,250
And now for the probability since it's always the absolute value, we can just do it like this.

161
00:14:40,860 --> 00:14:41,790
What's happening here?

162
00:14:41,800 --> 00:14:42,020
OK?

163
00:14:42,750 --> 00:14:46,410
Um, so we will get this one here.

164
00:14:46,800 --> 00:14:51,720
So this is the equation for the classical probability that we are now going to plot.

165
00:14:52,200 --> 00:14:53,070
So let us do this.

166
00:14:53,070 --> 00:14:58,480
No, let's plot this classical equation on top of this quantum mechanical result.

167
00:14:59,220 --> 00:15:04,860
First of all, we need some X values for this plot.

168
00:15:05,520 --> 00:15:08,820
So we have it and p range.

169
00:15:09,690 --> 00:15:19,980
Um, let's say, you know, let's let's let's we scale it later minus one to one, and we use 100 points.

170
00:15:20,640 --> 00:15:25,780
Now let's let's just plot it pretty plots.

171
00:15:28,980 --> 00:15:33,390
And we start with this x one.

172
00:15:34,050 --> 00:15:38,700
That's for a moment not care about the scaling on the x axis.

173
00:15:39,420 --> 00:15:41,730
We just write down what we had here.

174
00:15:42,030 --> 00:15:48,450
So this is one minus x one squared.

175
00:15:50,070 --> 00:15:50,610
OK.

176
00:15:53,160 --> 00:15:56,130
OK, this looks pretty large, let's.

177
00:15:58,510 --> 00:15:58,990
OK.

178
00:15:59,540 --> 00:16:01,210
Still pretty large, 20.

179
00:16:01,930 --> 00:16:02,290
Mm hmm.

180
00:16:03,010 --> 00:16:03,460
OK.

181
00:16:03,580 --> 00:16:08,160
And now we can scale the X coordinate properly, probably.

182
00:16:10,480 --> 00:16:23,200
So he we need to square roots of the energy that we are using and then G's.

183
00:16:24,770 --> 00:16:30,280
And yes, this is the eigenen energy that we're using, and we just divide it by the value of the potential

184
00:16:30,910 --> 00:16:33,730
because then we get our proper X value.

185
00:16:34,270 --> 00:16:41,980
OK, so we have no wind blew the probability of finding the particle in the quantum mechanical case

186
00:16:42,790 --> 00:16:47,080
and in orange, we have to probability for finding the classical particle.

187
00:16:47,800 --> 00:16:55,030
Actually, I would have to normalize this function here because yeah, if just arbitrarily divided by

188
00:16:55,030 --> 00:16:55,460
20.

189
00:16:55,480 --> 00:16:58,150
But that's that's not so important, I would say for the moment.

190
00:16:59,020 --> 00:17:00,730
Let's see.

191
00:17:01,510 --> 00:17:11,200
You can you can really see how the classical distribution resembles the quantum mechanical distribution

192
00:17:11,200 --> 00:17:11,500
here.

193
00:17:11,920 --> 00:17:18,430
So you can see how similar quantum mechanics is to classical mechanics in a way.

194
00:17:18,940 --> 00:17:25,720
So these maxima really follow the same curve, but additionally, you will have these quantum oscillations.

195
00:17:26,500 --> 00:17:35,140
And this is again very typical, very typical observation on how classical physics and quantum physics

196
00:17:35,140 --> 00:17:36,250
relate to each other.

197
00:17:36,880 --> 00:17:43,390
And especially, you will notice that this will become more and more similar when you go to larger length

198
00:17:43,390 --> 00:17:47,440
scales so that quantum effects are not that relevant anymore.

199
00:17:49,540 --> 00:17:57,130
OK, so this was just a short course that we will also discuss later again when we will solve the harmonic

200
00:17:57,130 --> 00:17:59,440
oscillator analytically.

201
00:18:00,040 --> 00:18:06,040
But now the only thing that's left to do is we use our alternative plotting scheme.

202
00:18:06,610 --> 00:18:15,280
So as before we used wave function, it is already normalized and now we add on top our energy will

203
00:18:15,280 --> 00:18:16,570
use the ion energies.

204
00:18:17,440 --> 00:18:24,250
So this will just shift these functions a year or better, say these functions here away from each other.

205
00:18:24,970 --> 00:18:32,140
So let's do this and then let's just re plot these functions.

206
00:18:35,290 --> 00:18:35,770
OK.

207
00:18:36,370 --> 00:18:37,990
So that looks pretty cool.

208
00:18:38,350 --> 00:18:43,600
Now, additionally, what I want to do is I want to plot the potential

209
00:18:46,240 --> 00:18:47,920
just to show you some things.

210
00:18:47,920 --> 00:18:52,990
So we have again our X1 range and this time we plot

211
00:18:55,570 --> 00:18:59,380
this is X range over just about potential.

212
00:18:59,390 --> 00:19:02,710
So that's just three times x squared.

213
00:19:06,720 --> 00:19:07,110
OK.

214
00:19:07,170 --> 00:19:07,410
Yeah.

215
00:19:07,440 --> 00:19:14,310
Of course, we have to plot from minus eight to a because otherwise it will just give this.

216
00:19:16,860 --> 00:19:24,990
OK, so here you can really see how use you get such an oscillating behavior inside of the potential.

217
00:19:25,260 --> 00:19:32,420
So basically, strictly speaking, in a physical sense, this means that when the energy is larger than

218
00:19:32,430 --> 00:19:39,240
your potential, then our electrons behave a bit like free electrons, so they start to oscillate.

219
00:19:39,240 --> 00:19:42,450
So we will get some cosine like function.

220
00:19:42,450 --> 00:19:48,360
We will see later in the analytical case that it's not actually a sign or co-sign, but it's much,

221
00:19:48,450 --> 00:19:50,010
much more difficult solution.

222
00:19:50,460 --> 00:19:54,420
But here, especially in the middle, it looks like just a sign function.

223
00:19:55,050 --> 00:20:00,720
And then when we come close to the case where the energy is equal to the potential, or even when the

224
00:20:00,720 --> 00:20:07,260
energy is lowered and the potential, then we will again see our decaying exponential function.

225
00:20:08,160 --> 00:20:14,880
So this is because, classically speaking, the particle would be forbidden to be in such a state.

226
00:20:15,180 --> 00:20:21,570
But quantum mechanically, the particle can tunnel or it can penetrate into this potential barrier,

227
00:20:21,990 --> 00:20:27,270
and therefore we will have a very small probability density inside of two potential.

