1
00:00:00,150 --> 00:00:06,420
All right, so let us now come to multidimensional integrals, and before we start with that, let us

2
00:00:06,420 --> 00:00:10,090
review how integrals were introduced in one dimension.

3
00:00:11,160 --> 00:00:15,000
So, for example, consider this function here in one dimension.

4
00:00:15,450 --> 00:00:20,390
It's a function F of X and X is a scalar and F as a scalar.

5
00:00:21,390 --> 00:00:28,800
Then if we want to calculate the area under the curve with respect to this x axis here, then this area

6
00:00:28,800 --> 00:00:34,450
is a sum of rectangles, or at least roughly it is the sum of rectangles.

7
00:00:35,010 --> 00:00:36,620
So you can see there is some error.

8
00:00:36,630 --> 00:00:43,230
For example, we do not account for this wide region here and we overestimate this region here, but

9
00:00:43,230 --> 00:00:45,990
it's kind of an approximate value.

10
00:00:45,990 --> 00:00:51,900
And what we have to do is we have to add up these rectangles here where Delta X is the length of this

11
00:00:51,900 --> 00:00:58,020
red line and F of X one, for example, is the value of the function at this position.

12
00:00:59,580 --> 00:01:06,640
Now we can make our approximation better if we make these rectangles smaller, smaller or narrower.

13
00:01:07,620 --> 00:01:09,960
So this brings about more rectangles.

14
00:01:10,290 --> 00:01:13,680
So you can see this time we have 12 rectangles and they're smaller.

15
00:01:14,010 --> 00:01:21,280
And you can also see that the arrow decreases and still the area is a sum of rectangles.

16
00:01:21,300 --> 00:01:24,390
But this time it would be 12 terms instead of six.

17
00:01:25,640 --> 00:01:31,970
Now, of course, we can make this better and better if we take the limit of Delta X, that goes to

18
00:01:31,970 --> 00:01:39,410
zero so that we add up an infinite number of rectangles and what we end up with is our integral, where

19
00:01:39,410 --> 00:01:46,850
we take the function, we integrate it, and we use the boundaries from A to B, which in our case is

20
00:01:46,850 --> 00:01:47,870
from here to here.

21
00:01:49,590 --> 00:01:57,510
Now, what you also have to consider is that functions can have positive and negative values, and when

22
00:01:57,540 --> 00:02:03,690
you integrate, you do not simply add up these three areas, but you also have to account for the sign.

23
00:02:03,990 --> 00:02:07,000
For example, here the curve is below the x axis.

24
00:02:07,050 --> 00:02:10,380
So this area is accounted for with a negative sign.

25
00:02:12,260 --> 00:02:20,600
Now, one thing to also realize is what is dysfunction, capital F. So when we have our function F of

26
00:02:20,600 --> 00:02:28,220
X. So does is here a function F effects, then we integrates this function to get this function capital

27
00:02:28,220 --> 00:02:33,860
F of X, and also we get an integration constant and vice versa.

28
00:02:33,890 --> 00:02:40,100
We get when we differentiate this function, we go back to our function small F of X.

29
00:02:40,850 --> 00:02:47,240
So quite often when you want to solve integrals like this, you have to think about which function do

30
00:02:47,240 --> 00:02:48,380
I have to consider?

31
00:02:48,650 --> 00:02:51,950
So that it's integral is the initial function.

32
00:02:52,910 --> 00:02:54,380
So we can take an example here.

33
00:02:54,740 --> 00:03:01,550
We have this polynomial here X to the power of three to one zero and now we integrate.

34
00:03:02,150 --> 00:03:09,620
And what we get is we have to increase the power of X by one and we have to divide by this new number

35
00:03:09,620 --> 00:03:17,030
here, because then we take our one over eight X to the depart for if we differentiate it, we get four

36
00:03:17,030 --> 00:03:23,940
times four times one over eight times X to the power of four minus one, which is exactly this one here.

37
00:03:25,370 --> 00:03:33,020
So if you know about differentiation, quite often it's very easy to calculate integrals, but generally

38
00:03:33,020 --> 00:03:37,310
speaking, it's a bit more difficult to calculate integrals than derivatives.

39
00:03:38,180 --> 00:03:45,500
And in our case, when we want to calculate the area from some starting value to some end value, then

40
00:03:45,500 --> 00:03:50,120
we have to consider the boundaries and get this value here.

41
00:03:52,160 --> 00:03:59,060
All right, so this is integration in one dimension and in multiple dimensions, it's not really much

42
00:03:59,060 --> 00:03:59,730
more difficult.

43
00:04:00,380 --> 00:04:03,410
So, for example, here, let's consider an example in two dimensions.

44
00:04:03,740 --> 00:04:08,140
So we have a function F that is a function of two arguments.

45
00:04:08,570 --> 00:04:11,030
So we have X and Y in our function.

46
00:04:11,520 --> 00:04:18,860
And if we want to calculate the volume under this curve in a certain region, we have to integrate twice

47
00:04:19,250 --> 00:04:23,600
and we have to integrate with respect to both variables, X and Y.

48
00:04:24,740 --> 00:04:29,420
So in this example here, we have the function just polynomial.

49
00:04:29,840 --> 00:04:37,850
And what the integral means in this case is that we calculate the area or better to say, the volume

50
00:04:37,970 --> 00:04:41,070
of this whole gray shape here.

51
00:04:41,600 --> 00:04:46,820
So that is the volume under this two dimensional shape here in red.

52
00:04:47,330 --> 00:04:49,670
And the volume is then, of course, three dimensional.

53
00:04:50,780 --> 00:04:55,820
So if the function F would be constant, then it would just be a cube.

54
00:04:55,830 --> 00:05:00,800
For example, if we choose appropriate boundary boundary conditions and then it would be very easy to

55
00:05:00,800 --> 00:05:01,370
calculate.

56
00:05:02,150 --> 00:05:04,310
But even in this case, it's quite easy.

57
00:05:04,520 --> 00:05:11,300
So we just have to take the function of this of this blue curve here and then integrate it twice with

58
00:05:11,300 --> 00:05:17,480
respect to X and Y and then use the boundaries so that the boundary accounts for this red shape here.

59
00:05:18,500 --> 00:05:24,320
So in our case, this means we have to take our function, integrate twice and use these boundaries

60
00:05:24,320 --> 00:05:24,620
here.

61
00:05:25,730 --> 00:05:29,120
So what happens again, since we have a polynomial here?

62
00:05:29,360 --> 00:05:35,930
First we integrate with with respect to X, so we have to increase the power of all of the axis.

63
00:05:36,360 --> 00:05:42,140
So, for example, here we get extra power for here we get X, because here we did not have any X,

64
00:05:42,650 --> 00:05:47,210
he would get X squared instead of X, and here we get X instead of nothing.

65
00:05:48,990 --> 00:05:56,670
Then we have to use to boundaries, so we plug in to in all of these terms and then subtract all of

66
00:05:56,670 --> 00:06:02,700
these terms with X equal to minus two point five, which is the other boundary in the X direction.

67
00:06:03,270 --> 00:06:05,180
And this gives us this one here.

68
00:06:06,210 --> 00:06:11,040
And now we are left with a one dimensional problem and we have to integrate once more.

69
00:06:11,050 --> 00:06:12,740
So let's do it here.

70
00:06:12,750 --> 00:06:18,120
We get in y here we get Y Square and here we get Y to the power of three.

71
00:06:19,100 --> 00:06:24,350
And once again, we used to boundaries and get a value for our volume.

72
00:06:25,550 --> 00:06:31,100
So I think that's really straightforward and it's not at all more complicated than a one dimensional

73
00:06:31,100 --> 00:06:31,670
integral.

74
00:06:32,180 --> 00:06:36,110
So if you know, integration one dimension, you also note for these examples.

75
00:06:37,880 --> 00:06:44,930
Now, sometimes in multiple dimensions, um, things become a bit more tricky because here you can see

76
00:06:45,170 --> 00:06:49,280
we have chosen a rectangular shape over which we integrate.

77
00:06:49,520 --> 00:06:54,060
So here it's important to realize that our function is two dimensional.

78
00:06:54,230 --> 00:07:00,950
So in terms of its arguments, it has two arguments and the value itself provides the third dimension

79
00:07:01,190 --> 00:07:03,530
so that everything spends a volume.

80
00:07:04,670 --> 00:07:12,080
Now, the problem here is that in reality, most of our functions are three dimensional, so they depend

81
00:07:12,080 --> 00:07:13,970
on X, Y and Z.

82
00:07:15,020 --> 00:07:16,850
So here the problem arises.

83
00:07:16,850 --> 00:07:20,310
What happens if we integrate over a three dimensional function?

84
00:07:20,660 --> 00:07:22,070
How could we imagine that?

85
00:07:22,670 --> 00:07:28,780
Because here for two dimensional function, our integral in the end was a volume.

86
00:07:29,330 --> 00:07:37,060
If we integrate over a three dimensional function, we get a four dimensional result, so to say.

87
00:07:37,910 --> 00:07:39,600
So that is very hard to imagine.

88
00:07:40,430 --> 00:07:46,040
So from now on, I want you to think of integrals in a bit of a different way, which makes it a bit

89
00:07:46,040 --> 00:07:46,610
easier.

90
00:07:47,390 --> 00:07:54,380
So instead of thinking about this integral here as being the volume under this curve, you could also

91
00:07:54,380 --> 00:07:58,310
imagine it to be just this shape, just the area.

92
00:07:58,760 --> 00:08:02,990
And then the value of the function is not anymore this height here.

93
00:08:03,320 --> 00:08:06,660
But you could imagine it like some density, for example.

94
00:08:07,070 --> 00:08:13,700
So if the function has a large value, there is a high density and if the function has a low value,

95
00:08:13,700 --> 00:08:15,020
there is a low density.

96
00:08:15,680 --> 00:08:18,680
So what you're then calculating is the mass, for example.

97
00:08:20,060 --> 00:08:23,240
And in one dimension this works as well.

98
00:08:23,270 --> 00:08:29,150
So if we have a one dimensional curve, as you typically do have in school, then you calculate integrals.

99
00:08:29,540 --> 00:08:37,340
You could just imagine it as being just this line and then your you're well, you have to function is

100
00:08:37,340 --> 00:08:40,820
not the height of this line, but it is the density.

101
00:08:40,910 --> 00:08:45,590
For example, imagine a wire and then the density of this wire.

102
00:08:45,890 --> 00:08:50,630
So the mass of a very short element is then indicated by the value of the function.

103
00:08:51,320 --> 00:08:56,860
So then in one dimension, you can imagine it as a one dimensional problem in two dimensions.

104
00:08:56,870 --> 00:09:01,610
You can imagine it as a two dimensional problem instead of having here this three dimensional object.

105
00:09:02,180 --> 00:09:07,570
And this allows us finally to calculate also three dimensional problems on the next slide.

106
00:09:07,580 --> 00:09:10,070
I will show you exactly what I mean with that.

107
00:09:10,880 --> 00:09:14,170
But he has one more comment in one dimensions.

108
00:09:14,180 --> 00:09:22,870
We can just integrate over a line from A to B, but already in two dimensions we have more possibilities.

109
00:09:23,360 --> 00:09:26,240
So here we consider the most simple case.

110
00:09:26,510 --> 00:09:32,720
We consider a rectangle from X1 to X to and from Y one to Y two.

111
00:09:33,620 --> 00:09:40,070
But in principle, you could also ask the question, what is the the integral if you integrate not over

112
00:09:40,070 --> 00:09:45,980
this rectangular shape here, but for example, over this triangle here, or you could even make it

113
00:09:45,980 --> 00:09:49,650
more difficult, you could take a circle or just some random shape.

114
00:09:50,660 --> 00:09:57,470
So what would happen then is you would not integrate from constant values, from numbers number one

115
00:09:57,470 --> 00:10:00,920
to number B and number three to number four.

116
00:10:01,550 --> 00:10:08,000
But instead, your boundaries of these integrations would then depend on X and Y, so you would have

117
00:10:08,000 --> 00:10:13,970
to parameterize your boundaries or better to say you would have to parametrized your shape and then

118
00:10:13,970 --> 00:10:15,620
put this into the boundaries.

119
00:10:16,730 --> 00:10:21,260
So here on the next slide, I want to show you how this works in three dimensions.

120
00:10:22,460 --> 00:10:26,000
So first of all, our space is now three dimensional.

121
00:10:26,000 --> 00:10:30,770
So we have X, Y and Z, X, Y and then the Z components here.

122
00:10:31,580 --> 00:10:39,830
So now we cannot anymore think of integrals as being in the middle of the area or the volume under some

123
00:10:39,830 --> 00:10:43,510
curve, because this will lead us here into the fourth dimension.

124
00:10:43,880 --> 00:10:50,420
So instead, I want you to think that the value of our function is something like the density or like

125
00:10:50,880 --> 00:10:54,100
the mass of a very small volume element of this shape here.

126
00:10:54,860 --> 00:10:57,770
And also you can see here is a pyramid.

127
00:10:58,130 --> 00:11:00,940
So this is not any more something rectangular.

128
00:11:01,280 --> 00:11:04,910
This is not a cube, for example.

129
00:11:05,780 --> 00:11:13,070
It's what happens here is that our integration boundary in the X and in the Y direction changes when

130
00:11:13,070 --> 00:11:19,160
we go to different values of Z, for example, here for the equals zero, which is the square here,

131
00:11:19,460 --> 00:11:21,350
we get quite a large square.

132
00:11:21,980 --> 00:11:29,090
But then the other extreme case for the for the highest point here are integration and X and Y, it

133
00:11:29,450 --> 00:11:31,490
just condenses to a single point.

134
00:11:33,370 --> 00:11:40,300
So before we make things too difficult, let's take the most easy example of this problem in three dimensions

135
00:11:40,600 --> 00:11:45,740
where our function itself is just one, or it could be any other constant.

136
00:11:46,330 --> 00:11:53,290
So this would mean we would have to just calculate the mass of this object here with a constant density,

137
00:11:53,620 --> 00:12:00,040
or in other words, we pull this value off the function out of the integral and just calculate the volume.

138
00:12:01,000 --> 00:12:08,080
So what we integrate here is the volume where we integrate over the X divides and we have these boundaries

139
00:12:08,080 --> 00:12:11,350
that you can see here and here.

140
00:12:11,380 --> 00:12:14,250
I have already introduced what I have explained earlier.

141
00:12:14,800 --> 00:12:22,360
So the boundaries for the X and for the Y integration are not just some numbers anymore, but they depend

142
00:12:22,360 --> 00:12:28,900
on the on the other coordinate Z, because you can see that the area over which we integrate shrinks

143
00:12:28,900 --> 00:12:31,060
down as we go to a larger Z values.

144
00:12:31,480 --> 00:12:34,420
So what I have done here, I have parametrized, the pyramid.

145
00:12:35,140 --> 00:12:41,710
So quite often this is the most difficult step of the whole integration to find the correct parameterization

146
00:12:41,710 --> 00:12:43,000
of your shape.

147
00:12:43,900 --> 00:12:47,360
So here I want to show you how I have done it.

148
00:12:47,740 --> 00:12:55,600
So if we take a cut of this pyramid along this triangle here, so you can see, then it looks like this,

149
00:12:55,960 --> 00:13:02,750
then we have here here I put my zero coordinate and then we have here into the negative X direction

150
00:13:02,750 --> 00:13:05,610
the value of minus eight over to here we have over two.

151
00:13:05,620 --> 00:13:12,370
So that this length here's a and so that this area here at the bottom is A squared and the height of

152
00:13:12,370 --> 00:13:14,150
our pyramid is H.

153
00:13:15,280 --> 00:13:21,850
And now what we want to have is we want to parametrized this function here, which is a linear function.

154
00:13:22,570 --> 00:13:28,420
And if you post the video and do it yourself and determine the function for this linear function here,

155
00:13:28,660 --> 00:13:30,010
you will get this one.

156
00:13:31,420 --> 00:13:40,300
So what is important here to check is that if you use Z equal to zero, which is this one here, this

157
00:13:40,300 --> 00:13:46,120
line, then our value for the boundary must reach from minus Aoba two to over two.

158
00:13:46,630 --> 00:13:51,540
So if we put Z to zero, we get minus Aoba two and here we get plus A over two.

159
00:13:52,180 --> 00:13:58,900
And if we put Z equal to H just as one here, then both of the boundaries have to collapse to zero.

160
00:13:59,470 --> 00:14:03,310
So here we put a Z equal to aged and we get one.

161
00:14:03,310 --> 00:14:05,500
So we get to zero and here we get also zero.

162
00:14:05,920 --> 00:14:08,120
And overall it's a linear function in Z.

163
00:14:08,140 --> 00:14:08,920
So it's correct.

164
00:14:10,150 --> 00:14:10,540
All right.

165
00:14:10,570 --> 00:14:13,570
So this was already the most difficult step.

166
00:14:13,720 --> 00:14:20,490
We have parametrized of a pyramid and now we just go straight forward and solve this integral here.

167
00:14:20,890 --> 00:14:26,780
And this is now particularly easy because what we have to integrate over is the function one.

168
00:14:27,580 --> 00:14:33,910
So once the integral of one when reintegrates goes back to X, it's of course X because the derivative

169
00:14:33,910 --> 00:14:34,810
of X is one.

170
00:14:35,590 --> 00:14:37,570
So we have X with the boundaries.

171
00:14:37,570 --> 00:14:40,000
X is equal to this one and this one.

172
00:14:41,230 --> 00:14:46,780
Now, of course, we just take the distance or the difference of these two values, which is two times

173
00:14:46,780 --> 00:14:50,920
this value, which is eight times in brackets, one minus the of H.

174
00:14:53,170 --> 00:14:59,990
Now, you can see that this value here is indeed c dependent, but it is not my dependent.

175
00:15:00,640 --> 00:15:03,820
So this means we can pull this out of the integral right at here.

176
00:15:04,240 --> 00:15:09,220
And so, once again, we have to integrate with respect to y over the function one.

177
00:15:10,200 --> 00:15:15,160
So we do the whole thing once again, but instead we have no idea why, why, why.

178
00:15:15,490 --> 00:15:16,300
But it doesn't matter.

179
00:15:16,310 --> 00:15:21,940
It will once again give us to value eight times in brackets, one minus C of H.

180
00:15:22,480 --> 00:15:28,690
So this means that when we calculate this whole integral here, we get this expression here squared.

181
00:15:29,170 --> 00:15:31,260
So this means we have a square.

182
00:15:31,270 --> 00:15:38,290
And then here the binomial Formula One square minus two times, one times Z of H.

183
00:15:39,360 --> 00:15:42,630
Plus, the square of a square just as one.

184
00:15:43,620 --> 00:15:45,150
OK, now we have the final step.

185
00:15:45,150 --> 00:15:48,200
We have to integrate this function here with respect to Z.

186
00:15:49,050 --> 00:15:50,390
So that's yeah, that's right.

187
00:15:50,390 --> 00:15:52,760
I did like this and let's integrate over Z.

188
00:15:53,040 --> 00:15:56,640
So we just have to increase the power of all of these these here.

189
00:15:56,640 --> 00:16:03,800
So we get at term proportional to Z to the power of one to three, and we have to account for the three

190
00:16:03,810 --> 00:16:04,410
factors.

191
00:16:04,710 --> 00:16:07,080
So please check that this is really correct.

192
00:16:07,560 --> 00:16:10,440
And then we have to use the boundaries from zero to age.

193
00:16:10,890 --> 00:16:19,800
So we integrate, set Z from zero to H, and what we get is, yeah, for Z equal to zero we get zero.

194
00:16:20,040 --> 00:16:26,680
And for the equal H we get a square times H minus H plus one third a square H.

195
00:16:27,930 --> 00:16:34,740
So you see these two cancel out and we have our result that the volume of a pyramid is one of a three

196
00:16:35,460 --> 00:16:37,210
a square times H.

197
00:16:37,710 --> 00:16:41,880
And this is a formula that you learned very, very early in school.

198
00:16:42,270 --> 00:16:47,670
But it is not at all clear where this formula comes from at this point.

199
00:16:48,390 --> 00:16:54,540
So now, you know, now you know about multidimensional integrals and now you can calculate the volume

200
00:16:54,540 --> 00:16:55,200
of a pyramid.

201
00:16:55,600 --> 00:16:56,240
That's quite good.

202
00:16:57,150 --> 00:17:06,000
So earlier I told you that I I want you to think of this function as being something like a density.

203
00:17:06,720 --> 00:17:14,250
So what would happen if we would have a more complicated function where F would not be equal to one,

204
00:17:14,250 --> 00:17:20,130
but we have some X, Y and Z dependent's then in terms of physics, you know that the mass is equal

205
00:17:20,130 --> 00:17:22,440
to the density times, the volume.

206
00:17:22,890 --> 00:17:29,340
And if the density is a constant throughout your whole whole shape, then you can write it down like

207
00:17:29,340 --> 00:17:29,640
this.

208
00:17:29,940 --> 00:17:35,580
But if your density is X, Y, Z dependent, then you can see it becomes exactly what we had before

209
00:17:35,940 --> 00:17:37,570
where this one is now a function.

210
00:17:37,920 --> 00:17:44,520
So you can think of calculating the mass of this object where you have some some changing density inside

211
00:17:44,520 --> 00:17:45,420
of your object.

212
00:17:46,230 --> 00:17:48,570
So that's a way to think about it.
