1 00:00:04,370 --> 00:00:07,309 這支影片是我們會製造的一支影片 2 00:00:07,309 --> 00:00:08,910 有一個更新的表現 3 00:00:08,910 --> 00:00:11,050 想像過一個很重要的感覺 4 00:00:11,050 --> 00:00:13,210 例如Math,48的影片 5 00:00:13,210 --> 00:00:14,810 為其他人不太肯定 6 00:00:14,810 --> 00:00:16,190 我希望這支影片 7 00:00:16,190 --> 00:00:17,309 我的第一支影片 8 00:00:17,309 --> 00:00:18,329 就是為了這支影片 9 00:00:18,329 --> 00:00:20,289 有一個更新的影片 10 00:00:20,289 --> 00:00:21,530 但也有些人 11 00:00:21,530 --> 00:00:23,050 已經會否認識 12 00:00:23,050 --> 00:00:24,750 我還以為有些人有甚麼好 13 00:00:24,750 --> 00:00:27,649 在看見看見所有的音量 14 00:00:27,649 --> 00:00:28,870 其實會有些人 15 00:00:28,870 --> 00:00:31,370 這支影片的標準是要做的 16 00:00:31,370 --> 00:00:32,450 是比較高的 17 00:00:32,450 --> 00:00:34,689 D-composing frequencies from sound 18 00:00:34,689 --> 00:00:38,689 但 after that, I also really want to show a glimpse of how this idea extends 19 00:00:38,689 --> 00:00:40,850 well beyond sound and frequency 20 00:00:40,850 --> 00:00:44,850 into many seemingly disparate areas of math and even physics 21 00:00:44,850 --> 00:00:48,130 really, it is crazy just how ubiquitous this idea is 22 00:00:49,170 --> 00:00:49,810 Let's dive in 23 00:00:50,609 --> 00:00:53,090 This sound right here is a pure A 24 00:00:53,090 --> 00:00:55,170 440 beats per second 25 00:00:55,170 --> 00:00:57,649 meaning if you were to measure the air pressure 26 00:00:57,649 --> 00:00:59,969 right next to your headphones or your speaker 27 00:00:59,969 --> 00:01:03,329 as a function of time, it would oscillate up and down 28 00:01:03,329 --> 00:01:06,209 around its usual equilibrium in this wave 29 00:01:06,209 --> 00:01:09,890 making 440 oscillations each second 30 00:01:09,890 --> 00:01:13,010 a lower pitch note, like a D, has the same structure 31 00:01:13,010 --> 00:01:15,650 just fewer beats per second 32 00:01:15,650 --> 00:01:17,730 and when both of them are played at once, 33 00:01:17,730 --> 00:01:20,689 what do you think the resulting pressure versus time graph looks like? 34 00:01:22,290 --> 00:01:25,329 Well, at any point in time, this pressure difference 35 00:01:25,329 --> 00:01:28,609 is going to be the sum of what it would be for each of those notes 36 00:01:28,609 --> 00:01:32,769 individually which, let's face it, is kind of a complicated thing to think about 37 00:01:34,290 --> 00:01:36,609 At some points, the peaks match up with each other 38 00:01:36,609 --> 00:01:39,010 resulting in a really high pressure 39 00:01:39,010 --> 00:01:40,689 At other points, they tend to cancel out 40 00:01:41,489 --> 00:01:45,569 And all in all, what you get is a wave-ish pressure versus time graph 41 00:01:45,569 --> 00:01:48,769 that is not a pure sine wave, it's something more complicated 42 00:01:49,409 --> 00:01:53,250 And as you add in other notes, the wave gets more and more complicated 43 00:01:53,810 --> 00:01:58,209 But right now, all it is is a combination of four pure frequencies 44 00:01:58,290 --> 00:02:00,209 So it seems needlessly complicated 45 00:02:00,209 --> 00:02:02,209 given the low amount of information put into it 46 00:02:03,170 --> 00:02:05,250 A microphone recording any sound 47 00:02:05,250 --> 00:02:08,530 just picks up on the air pressure at many different points in time 48 00:02:08,530 --> 00:02:10,689 it only sees the final sum 49 00:02:10,689 --> 00:02:15,009 So our central question is going to be how you can take a signal like this 50 00:02:15,009 --> 00:02:18,050 and decompose it into the pure frequencies that make it up 51 00:02:18,770 --> 00:02:20,289 Pretty interesting, right? 52 00:02:20,289 --> 00:02:23,330 Adding up those signals really mixes them all together 53 00:02:23,330 --> 00:02:27,569 So pulling them back apart feels akin to unmixing multiple paint colors 54 00:02:27,569 --> 00:02:29,330 that have all been stirred up together 55 00:02:29,810 --> 00:02:34,610 The general strategy is going to be to build for ourselves a mathematical machine 56 00:02:34,610 --> 00:02:36,530 that treats signals with a given frequency 57 00:02:37,169 --> 00:02:39,409 differently from how it treats other signals 58 00:02:40,449 --> 00:02:43,729 To start, consider simply taking a pure signal 59 00:02:43,729 --> 00:02:45,889 say with a lowly 3 beats per second 60 00:02:45,889 --> 00:02:47,729 so that we can plot it easily 61 00:02:47,729 --> 00:02:51,250 And let's limit ourselves to looking at a finite portion of this graph 62 00:02:51,250 --> 00:02:54,930 in this case, the portion between 0 seconds and 4.5 seconds 63 00:02:55,569 --> 00:02:58,210 The key idea is going to be to take this graph 64 00:02:58,210 --> 00:03:01,090 and sort of wrap it up around a circle 65 00:03:04,800 --> 00:03:06,960 concretely, here's what I mean by that 66 00:03:06,960 --> 00:03:08,960 Imagine a little rotating vector 67 00:03:08,960 --> 00:03:10,560 where at each point in time 68 00:03:10,560 --> 00:03:14,639 its length is equal to the height of our graph for that time 69 00:03:14,639 --> 00:03:18,639 So high points of the graph correspond to a greater distance from the origin 70 00:03:18,639 --> 00:03:21,039 and low points end up closer to the origin 71 00:03:22,000 --> 00:03:23,840 And right now I'm drawing it in such a way 72 00:03:23,840 --> 00:03:26,400 that moving forward two seconds in time 73 00:03:26,479 --> 00:03:29,759 corresponds to a single rotation around the circle 74 00:03:29,759 --> 00:03:32,159 Our little vector drawing this one up graph 75 00:03:32,159 --> 00:03:34,479 is rotating at half a cycle per second 76 00:03:35,360 --> 00:03:36,400 So this is important 77 00:03:36,400 --> 00:03:38,879 There are two different frequencies that play here 78 00:03:38,879 --> 00:03:40,400 There's the frequency of our signal 79 00:03:40,400 --> 00:03:42,879 which goes up and down three times per second 80 00:03:42,879 --> 00:03:45,599 And then, separately, there's the frequency 81 00:03:45,599 --> 00:03:48,479 with which we're wrapping the graph around the circle 82 00:03:48,479 --> 00:03:50,960 which at the moment is half of the rotation per second 83 00:03:51,599 --> 00:03:54,719 But we can adjust that second frequency however we want 84 00:03:54,719 --> 00:03:56,479 maybe we want to wrap it around faster 85 00:03:58,819 --> 00:04:00,900 or maybe we go and wrap it around slower 86 00:04:03,650 --> 00:04:06,129 And that choice of winding frequency 87 00:04:06,129 --> 00:04:08,449 determines what the wound up graph looks like 88 00:04:09,009 --> 00:04:10,530 Some of the diagrams that come out of this 89 00:04:10,530 --> 00:04:11,889 can be pretty complicated 90 00:04:11,889 --> 00:04:13,569 although they are very pretty 91 00:04:13,569 --> 00:04:16,209 But it's important to keep in mind that all that's happening here 92 00:04:16,209 --> 00:04:18,449 is that we're wrapping the signal around a circle 93 00:04:21,170 --> 00:04:23,649 The vertical lines that I'm drawing up top by the way 94 00:04:23,649 --> 00:04:26,850 are just a way to keep track of the distance on the original graph 95 00:04:26,850 --> 00:04:29,569 that corresponds to a full rotation around the circle 96 00:04:30,769 --> 00:04:33,410 So lines spaced out by 1.5 seconds 97 00:04:33,410 --> 00:04:36,449 would mean it takes 1.5 seconds to make one full revolution 98 00:04:37,170 --> 00:04:40,129 And at this point, we might have some sort of vague sense 99 00:04:40,129 --> 00:04:41,730 that something special will happen 100 00:04:41,730 --> 00:04:45,250 when the winding frequency matches the frequency of our signal 101 00:04:45,250 --> 00:04:46,290 three beats per second 102 00:04:46,850 --> 00:04:49,889 All of the high points on the graph happen on the right side of the circle 103 00:04:49,889 --> 00:04:51,810 and all of the low points happen on the left 104 00:04:52,449 --> 00:04:55,009 But how precisely can we take advantage of that 105 00:04:55,009 --> 00:04:57,889 in our attempt to build a frequency on mixing machine 106 00:04:58,850 --> 00:05:02,129 Well, imagine this graph is having some kind of mass to it 107 00:05:02,129 --> 00:05:03,089 like a metal wire 108 00:05:04,290 --> 00:05:07,649 This little dot is going to represent the center of mass of that wire 109 00:05:08,209 --> 00:05:09,810 As we change the frequency 110 00:05:09,810 --> 00:05:11,730 and the graph winds up differently 111 00:05:11,730 --> 00:05:14,050 that center of mass kind of wobbles around a bit 112 00:05:16,399 --> 00:05:18,000 And for most of the winding frequencies 113 00:05:18,000 --> 00:05:20,480 the peaks and the valleys are all spaced out around the circle 114 00:05:20,480 --> 00:05:23,680 in such a way that the center of mass stays pretty close to the origin 115 00:05:26,129 --> 00:05:29,329 But when the winding frequency is the same 116 00:05:29,410 --> 00:05:31,250 as the frequency of our signal 117 00:05:31,250 --> 00:05:33,569 in this case three cycles per second 118 00:05:33,569 --> 00:05:34,930 All of the peaks are on the right 119 00:05:34,930 --> 00:05:36,689 and all of the valleys are on the left 120 00:05:36,689 --> 00:05:39,649 So the center of mass is unusually far to the right 121 00:05:42,540 --> 00:05:43,660 Here, to capture this 122 00:05:43,660 --> 00:05:45,100 let's draw some kind of plot 123 00:05:45,100 --> 00:05:47,339 that keeps track of where that center of mass is 124 00:05:47,339 --> 00:05:48,540 for each winding frequency 125 00:05:49,180 --> 00:05:51,339 Of course, the center of mass is a two-dimensional thing 126 00:05:51,339 --> 00:05:53,980 it requires two coordinates to fully keep track of 127 00:05:53,980 --> 00:05:56,779 But for the moment, let's only keep track of the x-coordinate 128 00:05:57,500 --> 00:05:59,180 So for a frequency of zero 129 00:05:59,180 --> 00:06:01,180 when everything is bunched up on the right 130 00:06:01,180 --> 00:06:03,019 this x-coordinate is relatively high 131 00:06:03,740 --> 00:06:06,540 and then as you increase that winding frequency 132 00:06:06,540 --> 00:06:08,540 and the graph balances out around the circle 133 00:06:09,100 --> 00:06:10,779 the x-coordinate of that center of mass 134 00:06:10,779 --> 00:06:11,980 goes closer to zero 135 00:06:11,980 --> 00:06:13,819 and it just kind of wobbles around a bit 136 00:06:27,279 --> 00:06:29,360 But then, at three beats per second 137 00:06:29,360 --> 00:06:30,319 there's a spike 138 00:06:30,319 --> 00:06:32,160 as everything lines up to the right 139 00:06:44,699 --> 00:06:46,379 This right here is the central construct 140 00:06:46,379 --> 00:06:48,220 so let's sum up what we have so far 141 00:06:48,220 --> 00:06:50,779 we have that original intensity versus time graph 142 00:06:51,339 --> 00:06:53,420 and then we have the wound up version of that 143 00:06:53,420 --> 00:06:54,860 in some two-dimensional plane 144 00:06:55,420 --> 00:06:56,860 and then as a third thing 145 00:06:56,860 --> 00:06:57,980 we have a plot 146 00:06:57,980 --> 00:06:59,899 for how the winding frequency 147 00:06:59,899 --> 00:07:02,540 influences the center of mass of that graph 148 00:07:03,819 --> 00:07:07,100 And by the way, let's look back at those really low frequencies near zero 149 00:07:07,740 --> 00:07:11,259 This big spike around zero in our new frequency plot 150 00:07:11,259 --> 00:07:12,699 just corresponds to the fact 151 00:07:12,699 --> 00:07:15,579 that the whole cosine wave is shifted up 152 00:07:16,699 --> 00:07:19,740 If I chose in a signal that oscillates around zero 153 00:07:19,740 --> 00:07:21,339 dipping into negative values 154 00:07:21,980 --> 00:07:25,420 then as we play around with various winding frequencies 155 00:07:25,420 --> 00:07:28,699 this plot of the winding frequency versus center of mass 156 00:07:28,699 --> 00:07:31,420 would only have a spike at the value of three 157 00:07:32,540 --> 00:07:35,819 But negative values are a little bit weird and messy to think about 158 00:07:35,819 --> 00:07:37,579 especially for a first example 159 00:07:37,579 --> 00:07:40,699 so let's just continue thinking in terms of the shifted up graph 160 00:07:41,259 --> 00:07:44,060 I just want you to understand that that spike around zero 161 00:07:44,060 --> 00:07:45,899 only corresponds to the shift 162 00:07:45,899 --> 00:07:49,100 Our main focus as far as frequency decomposition is concerned 163 00:07:49,100 --> 00:07:50,300 is that bump at three 164 00:07:51,420 --> 00:07:55,019 This whole plot is what I'll call the almost Fourier transform 165 00:07:55,019 --> 00:07:56,540 of the original signal 166 00:07:56,540 --> 00:07:58,779 There's a couple small distinctions between this 167 00:07:58,779 --> 00:08:00,379 and the actual Fourier transform 168 00:08:00,379 --> 00:08:02,220 which I'll get to in a couple minutes 169 00:08:02,220 --> 00:08:03,980 but already you might be able to see 170 00:08:03,980 --> 00:08:06,779 how this machine lets us pick out the frequency of a signal 171 00:08:07,819 --> 00:08:09,899 Just to play around with it a little bit more 172 00:08:09,899 --> 00:08:11,980 take a different pure signal 173 00:08:11,980 --> 00:08:14,699 let's say with a lower frequency of two beats per second 174 00:08:14,699 --> 00:08:15,660 and do the same thing 175 00:08:16,300 --> 00:08:17,579 Wind it around a circle 176 00:08:18,300 --> 00:08:20,699 Imagine different potential winding frequencies 177 00:08:20,699 --> 00:08:24,300 and as you do that keep track of where the center of mass of that graph is 178 00:08:25,019 --> 00:08:28,220 and then plot the X coordinate of that center of mass 179 00:08:28,220 --> 00:08:29,980 as you adjust the winding frequency 180 00:08:30,779 --> 00:08:31,819 Just like before 181 00:08:31,819 --> 00:08:35,980 we get a spike when the winding frequency is the same as the signal frequency 182 00:08:35,980 --> 00:08:38,620 which in this case is when it equals two cycles per second 183 00:08:39,580 --> 00:08:40,860 But the real key point 184 00:08:40,860 --> 00:08:43,019 the thing that makes this machine so delightful 185 00:08:43,019 --> 00:08:45,259 is how it enables us to take a signal 186 00:08:45,259 --> 00:08:47,179 consisting of multiple frequencies 187 00:08:47,179 --> 00:08:48,379 and pick out what they are 188 00:08:49,100 --> 00:08:51,259 Imagine taking the two signals we just looked at 189 00:08:51,259 --> 00:08:52,700 the wave with three beats per second 190 00:08:52,700 --> 00:08:54,620 and the wave with two beats per second 191 00:08:54,620 --> 00:08:55,659 and add them up 192 00:08:56,860 --> 00:08:57,659 Like I said earlier 193 00:08:57,659 --> 00:09:00,460 what you get is no longer a nice pure cosine wave 194 00:09:00,460 --> 00:09:02,379 it's something a little more complicated 195 00:09:02,379 --> 00:09:05,419 but imagine throwing this into our winding frequency machine 196 00:09:06,220 --> 00:09:09,100 it is certainly the case that as you wrap this thing around 197 00:09:09,100 --> 00:09:10,460 it looks a lot more complicated 198 00:09:10,460 --> 00:09:12,700 to have this chaos and chaos and chaos and chaos 199 00:09:12,700 --> 00:09:13,419 and then whoop 200 00:09:13,419 --> 00:09:16,620 things seem to line up really nicely at two cycles per second 201 00:09:16,700 --> 00:09:17,820 that as you continue on 202 00:09:17,820 --> 00:09:19,340 it's more chaos and more chaos 203 00:09:19,340 --> 00:09:20,700 more chaos 204 00:09:20,700 --> 00:09:23,820 things nicely align again at three cycles per second 205 00:09:23,820 --> 00:09:24,779 and like I said before 206 00:09:24,779 --> 00:09:27,419 the wound up graph can look kind of busy and complicated 207 00:09:27,419 --> 00:09:29,820 but all it is is the relatively simple idea 208 00:09:29,820 --> 00:09:31,820 of wrapping the graph around a circle 209 00:09:31,820 --> 00:09:33,419 it's just a more complicated graph 210 00:09:33,419 --> 00:09:35,179 and a pretty quick winding frequency 211 00:09:36,059 --> 00:09:38,460 Now what's going on here with the two different spikes 212 00:09:38,460 --> 00:09:40,860 is that if you were to take two signals 213 00:09:40,860 --> 00:09:43,340 and then apply this almost Fourier transform 214 00:09:43,340 --> 00:09:45,340 to each of them individually 215 00:09:45,419 --> 00:09:47,340 and then add up the results 216 00:09:47,340 --> 00:09:48,940 what you get is the same 217 00:09:48,940 --> 00:09:51,340 as if you first add it up the signals 218 00:09:51,340 --> 00:09:54,299 and then apply this almost Fourier transform 219 00:09:55,659 --> 00:09:58,700 and the attentive viewers among you might want to pause and ponder 220 00:09:58,700 --> 00:10:01,740 and convince yourself that what I just said is actually true 221 00:10:01,740 --> 00:10:03,899 it's a pretty good test to verify for yourself 222 00:10:03,899 --> 00:10:06,460 that it's clear what exactly is being measured 223 00:10:06,460 --> 00:10:07,980 inside this winding machine 224 00:10:08,940 --> 00:10:11,419 now this property makes things really useful to us 225 00:10:11,419 --> 00:10:14,059 because the transform of a pure frequency 226 00:10:14,059 --> 00:10:15,820 is close to zero everywhere 227 00:10:15,820 --> 00:10:18,539 except for a spike around that frequency 228 00:10:18,539 --> 00:10:21,259 so when you add together two pure frequencies 229 00:10:21,259 --> 00:10:23,740 the transform graph just has these little peaks 230 00:10:23,740 --> 00:10:25,500 above the frequencies that went into it 231 00:10:26,379 --> 00:10:28,139 so this little mathematical machine 232 00:10:28,139 --> 00:10:29,899 does exactly what we wanted 233 00:10:29,899 --> 00:10:31,899 it pulls out the original frequencies 234 00:10:31,899 --> 00:10:33,580 from their jumbled up sums 235 00:10:33,580 --> 00:10:35,580 unmixing the mixed bucket of paint 236 00:10:36,779 --> 00:10:38,700 and before continuing into the full math 237 00:10:38,700 --> 00:10:40,460 that describes this operation 238 00:10:40,460 --> 00:10:42,460 let's just get a quick glimpse of one context 239 00:10:42,460 --> 00:10:43,659 where this thing is useful 240 00:10:43,659 --> 00:10:44,779 sound editing 241 00:10:44,779 --> 00:10:46,460 let's say that you have some recording 242 00:10:46,460 --> 00:10:48,139 and it's got an annoying high pitch 243 00:10:48,139 --> 00:10:49,340 that you would like to filter out 244 00:10:50,700 --> 00:10:52,779 well at first your signal is coming in 245 00:10:52,779 --> 00:10:55,580 as a function of various intensities over time 246 00:10:55,580 --> 00:10:57,580 different voltages given to your speaker 247 00:10:57,580 --> 00:10:59,580 from one millisecond to the next 248 00:10:59,580 --> 00:11:02,620 but we want to think of this in terms of frequencies 249 00:11:02,620 --> 00:11:06,299 so when you take the Fourier transform of that signal 250 00:11:06,299 --> 00:11:08,460 the annoying high pitched is going to show up 251 00:11:08,460 --> 00:11:11,259 just as a spike at some high frequency 252 00:11:11,259 --> 00:11:13,820 filtering that out by just smushing this spike down 253 00:11:13,820 --> 00:11:16,460 what you'd be looking at is the Fourier transform 254 00:11:16,460 --> 00:11:18,860 of a sound that's just like your recording 255 00:11:18,860 --> 00:11:20,460 only without that high frequency 256 00:11:21,259 --> 00:11:24,539 luckily there's a notion of an inverse Fourier transform 257 00:11:24,539 --> 00:11:27,259 that tells you which signal would have produced this 258 00:11:27,259 --> 00:11:29,179 as its Fourier transform 259 00:11:29,179 --> 00:11:30,620 I'll be talking about that inverse 260 00:11:30,620 --> 00:11:32,379 much more fully in the next video 261 00:11:32,379 --> 00:11:33,659 but long story short 262 00:11:33,659 --> 00:11:35,419 applying the Fourier transform 263 00:11:35,419 --> 00:11:37,500 to the Fourier transform 264 00:11:37,500 --> 00:11:39,740 gives you back something close to the original function 265 00:11:40,539 --> 00:11:43,019 hmm kind of this is a little bit of a lie 266 00:11:43,019 --> 00:11:44,779 but it's in the direction of truth 267 00:11:44,779 --> 00:11:46,620 and most of the reason that it's a lie 268 00:11:46,620 --> 00:11:48,379 is that I still have yet to tell you 269 00:11:48,379 --> 00:11:50,620 what the actual Fourier transform is 270 00:11:50,620 --> 00:11:52,059 since it's a little more complex 271 00:11:52,059 --> 00:11:54,460 than this x-coordinate of the center of mass idea 272 00:11:55,259 --> 00:11:57,740 first off bringing back this wound up graph 273 00:11:57,740 --> 00:11:59,100 and looking at its center of mass 274 00:11:59,659 --> 00:12:02,220 the x-coordinate is really only half the story 275 00:12:02,220 --> 00:12:04,059 right I mean this thing is in two dimensions 276 00:12:04,059 --> 00:12:05,820 it's got a y-coordinate as well 277 00:12:05,820 --> 00:12:07,740 and as is typical in math 278 00:12:07,740 --> 00:12:08,940 whenever you're dealing with something 279 00:12:08,940 --> 00:12:10,220 too dimensional 280 00:12:10,220 --> 00:12:13,100 it's elegant to think of it as the complex plane 281 00:12:13,100 --> 00:12:15,659 where this center of mass is going to be a complex number 282 00:12:15,659 --> 00:12:17,980 it has both a real and an imaginary part 283 00:12:21,330 --> 00:12:23,649 and the reason for talking in terms of complex numbers 284 00:12:23,649 --> 00:12:26,129 rather than just saying it has two coordinates 285 00:12:26,129 --> 00:12:27,809 is the complex numbers lend themselves 286 00:12:27,809 --> 00:12:29,409 to really nice descriptions of things 287 00:12:29,409 --> 00:12:31,649 that have to do with winding and rotation 288 00:12:32,370 --> 00:12:33,250 for example 289 00:12:33,250 --> 00:12:35,490 Oilers formula famously tells us 290 00:12:35,490 --> 00:12:38,450 that if you take e to some number times i 291 00:12:38,450 --> 00:12:40,529 you're going to land on the point that you get 292 00:12:40,529 --> 00:12:42,850 if you were to walk that number of units 293 00:12:42,850 --> 00:12:45,009 around a circle with radius one 294 00:12:45,009 --> 00:12:47,009 counterclockwise starting on the right 295 00:12:47,889 --> 00:12:51,169 so imagine you wanted to describe rotating 296 00:12:51,169 --> 00:12:53,250 at a rate of one cycle per second 297 00:12:54,129 --> 00:12:55,330 one thing that you could do 298 00:12:55,330 --> 00:12:56,769 is take the expression 299 00:12:56,769 --> 00:13:00,529 e to the 2 pi times i times t 300 00:13:00,529 --> 00:13:03,090 where t is the amount of time that has passed 301 00:13:03,090 --> 00:13:05,090 since first circle with radius one 302 00:13:05,090 --> 00:13:07,889 2 pi describes the full length of its circumference 303 00:13:08,850 --> 00:13:11,090 and this is a little bit dizzying to look at 304 00:13:11,090 --> 00:13:13,250 so maybe you want to describe a different frequency 305 00:13:13,250 --> 00:13:15,330 something lower and more reasonable 306 00:13:15,330 --> 00:13:18,049 and for that you would just multiply that time t 307 00:13:18,049 --> 00:13:20,289 in the exponent by the frequency 308 00:13:20,289 --> 00:13:21,250 f 309 00:13:21,250 --> 00:13:23,809 for example if f was one tenth 310 00:13:23,809 --> 00:13:27,330 then this vector makes one full turn every ten seconds 311 00:13:27,330 --> 00:13:30,450 since the time t has to increase all the way to ten 312 00:13:30,450 --> 00:13:34,370 before the full exponent looks like two pi i 313 00:13:34,370 --> 00:13:36,450 i have another video giving some intuition 314 00:13:36,929 --> 00:13:40,289 why this is the behavior of e to the x for imaginary inputs 315 00:13:40,289 --> 00:13:41,409 if you're curious 316 00:13:41,409 --> 00:13:44,450 but for right now we're just going to take it as a given 317 00:13:44,450 --> 00:13:46,610 now why am i telling you this you might ask 318 00:13:46,610 --> 00:13:49,809 well it gives us a really nice way to write down the idea 319 00:13:49,809 --> 00:13:53,169 of winding up the graph into a single tight little formula 320 00:13:53,970 --> 00:13:57,409 first off the convention in the context of Fourier transforms 321 00:13:57,409 --> 00:14:00,450 is to think about rotating in the clockwise direction 322 00:14:00,450 --> 00:14:02,450 so let's go ahead and throw a negative sign 323 00:14:02,450 --> 00:14:04,370 up into that exponent 324 00:14:04,450 --> 00:14:08,210 now take some function describing a signal intensity versus time 325 00:14:08,210 --> 00:14:10,610 like this pure cosine wave we had before 326 00:14:10,610 --> 00:14:12,929 and call it g of t 327 00:14:12,929 --> 00:14:15,889 if you multiply this exponential expression 328 00:14:15,889 --> 00:14:17,490 times g of t 329 00:14:17,490 --> 00:14:21,649 it means that the rotating complex number is getting scaled up and down 330 00:14:21,649 --> 00:14:24,450 according to the value of this function 331 00:14:24,450 --> 00:14:28,129 so you can think of this little rotating vector with its changing length 332 00:14:28,129 --> 00:14:31,169 as drawing the wound up graph 333 00:14:31,169 --> 00:14:32,929 so think about it this is awesome 334 00:14:32,929 --> 00:14:37,409 this really small expression is a super elegant way to encapsulate 335 00:14:37,409 --> 00:14:42,210 the whole idea of winding a graph around a circle with a variable frequency 336 00:14:42,210 --> 00:14:46,690 f and remember the thing we want to do with this wound up graph 337 00:14:46,690 --> 00:14:48,610 is to track its center of mass 338 00:14:48,610 --> 00:14:51,970 so think about what formula is going to capture that 339 00:14:51,970 --> 00:14:54,129 well to approximate it at least 340 00:14:54,129 --> 00:14:57,809 you might sample a whole bunch of times from the original signal 341 00:14:57,809 --> 00:15:00,850 see where those points end up on the wound up graph 342 00:15:00,850 --> 00:15:02,450 and then just take an average 343 00:15:02,450 --> 00:15:05,570 that is add them all together as complex numbers 344 00:15:05,570 --> 00:15:09,090 and then divide by the number of points that you've sampled 345 00:15:09,090 --> 00:15:14,210 this will become more accurate if you sample more points which are closer together 346 00:15:14,210 --> 00:15:17,889 and in the limit rather than looking at the sum of a whole bunch of points 347 00:15:17,889 --> 00:15:19,570 divided by the number of points 348 00:15:19,570 --> 00:15:22,129 you take an integral of this function 349 00:15:22,129 --> 00:15:25,889 divided by the size of the time interval that we're looking at 350 00:15:25,889 --> 00:15:29,809 now the idea of integrating a complex valued function might seem weird 351 00:15:29,809 --> 00:15:33,250 and to anyone who's shaky with calculus maybe even intimidating 352 00:15:33,250 --> 00:15:36,850 but the underlying meaning here really doesn't require any calculus knowledge 353 00:15:36,850 --> 00:15:41,570 the whole expression is just the center of mass of the wound up graph 354 00:15:41,570 --> 00:15:46,929 so great step-by-step we have built up this kind of complicated but let's face it 355 00:15:46,929 --> 00:15:52,049 surprisingly small expression for the whole winding machine idea that i talked about 356 00:15:52,049 --> 00:15:55,889 and now there is only one final distinction to point out between this 357 00:15:55,889 --> 00:15:59,169 and the actual honest to goodness Fourier transform 358 00:15:59,169 --> 00:16:02,529 namely just don't divide out by the time interval 359 00:16:02,529 --> 00:16:06,289 the Fourier transform is just the integral part of this 360 00:16:06,289 --> 00:16:09,330 what that means is that instead of looking at the center of mass 361 00:16:09,330 --> 00:16:11,730 you would scale it up by some amount 362 00:16:11,730 --> 00:16:15,490 if the portion of the original graph you were using spanned three seconds 363 00:16:15,490 --> 00:16:19,620 you would multiply the center of mass by three 364 00:16:19,620 --> 00:16:25,059 if it was spanning six seconds you would multiply the center of mass by six 365 00:16:25,059 --> 00:16:28,899 physically this has the effect that when a certain frequency persists for a 366 00:16:28,899 --> 00:16:33,700 long time then the magnitude of the Fourier transform at that frequency 367 00:16:33,700 --> 00:16:38,340 is scaled up more and more for example what we're looking at right here 368 00:16:38,340 --> 00:16:42,019 is how when you have a pure frequency of two beats per second 369 00:16:42,019 --> 00:16:45,379 and you wind it around the graph at two cycles per second 370 00:16:45,379 --> 00:16:48,899 the center of mass stays in the same spot right it's just tracing out the same 371 00:16:48,899 --> 00:16:53,620 shape but the longer that signal persists the larger the value of the 372 00:16:53,620 --> 00:16:56,500 Fourier transform at that frequency 373 00:16:56,500 --> 00:16:59,860 for other frequencies though even if you just increase it by a bit 374 00:16:59,860 --> 00:17:03,139 this is cancelled out by the fact that for longer time intervals 375 00:17:03,139 --> 00:17:06,819 you're giving the wound up graph more of a chance to balance itself around 376 00:17:06,819 --> 00:17:11,460 the circle that is a lot of different moving parts 377 00:17:11,460 --> 00:17:14,740 so let's step back and summarize what we have so far 378 00:17:14,740 --> 00:17:19,779 the Fourier transform of an intensity versus time function like g of t 379 00:17:19,779 --> 00:17:22,980 is a new function which doesn't have time as an input 380 00:17:22,980 --> 00:17:28,579 but instead takes in a frequency what i've been calling the winding frequency 381 00:17:28,579 --> 00:17:32,099 in terms of notation by the way the common convention is to call this new 382 00:17:32,099 --> 00:17:35,779 function g hat with a little circumflex on top of it 383 00:17:35,779 --> 00:17:38,980 now the output of this function is a complex number 384 00:17:38,980 --> 00:17:43,220 some point in the 2d plane that corresponds to the strength of a given 385 00:17:43,220 --> 00:17:47,220 frequency in the original signal the plot that i've been graphing for the 386 00:17:47,220 --> 00:17:51,299 Fourier transform is just the real component of that output 387 00:17:51,299 --> 00:17:54,660 the x coordinate but you could also graph the imaginary component 388 00:17:54,660 --> 00:17:57,460 separately if you wanted a fuller description 389 00:17:57,460 --> 00:18:01,859 and all of this is encapsulated inside that formula that we built up 390 00:18:01,859 --> 00:18:05,059 and out of context you can imagine how seeing this formula would seem sort of 391 00:18:05,059 --> 00:18:10,259 daunting but if you understand how exponentials correspond to rotation 392 00:18:10,259 --> 00:18:13,619 how multiplying that by the function g of t means 393 00:18:13,619 --> 00:18:17,940 drawing a wound up version of the graph and how an integral of a complex 394 00:18:17,940 --> 00:18:22,420 valued function can be interpreted in terms of a center of mass idea 395 00:18:22,420 --> 00:18:27,460 you can see how this whole thing carries with it a very rich intuitive meaning 396 00:18:27,460 --> 00:18:30,980 and by the way one quick small note before we can call this wrapped up 397 00:18:30,980 --> 00:18:34,019 even though in practice with things like sound editing you'll be 398 00:18:34,019 --> 00:18:36,500 integrating over a finite time interval 399 00:18:36,500 --> 00:18:39,859 the theory of Fourier transforms is often phrased where the bounds of this 400 00:18:39,859 --> 00:18:42,980 integral are negative infinity and infinity 401 00:18:42,980 --> 00:18:46,259 concretely what that means is that you consider this expression 402 00:18:46,259 --> 00:18:51,140 for all possible finite time intervals and you just ask what is its limit 403 00:18:51,140 --> 00:18:54,660 has that time interval grows to infinity 404 00:18:54,660 --> 00:18:58,420 and man oh man there is so much more to say so much i don't want to call it 405 00:18:58,420 --> 00:19:02,099 down here this transform extends to corners of math well beyond the idea of 406 00:19:02,099 --> 00:19:06,500 extracting frequencies from signal so the next video i put out is going to go 407 00:19:06,500 --> 00:19:08,740 through a couple of these and that's really where things start getting 408 00:19:08,740 --> 00:19:12,259 interesting so stay subscribed for when that comes out 409 00:19:12,259 --> 00:19:15,619 or an alternate option is to just binge on a couple three blue on brown 410 00:19:15,619 --> 00:19:18,740 videos so that the youtube recommender is more inclined to show you new 411 00:19:18,740 --> 00:19:22,660 things that come out really the choice is yours 412 00:19:22,660 --> 00:19:26,180 and to close things off i have something pretty fun a mathematical puzzler from 413 00:19:26,180 --> 00:19:31,140 this video sponsor Jane street who's looking to recruit more technical talent 414 00:19:31,140 --> 00:19:37,059 so let's say that you have a closed bounded convex set c sitting in 3d space 415 00:19:37,059 --> 00:19:41,140 and then let b be the boundary of that space the surface of your complex 416 00:19:41,140 --> 00:19:46,259 blob now imagine taking every possible pair of points on that surface 417 00:19:46,259 --> 00:19:52,019 and adding them up doing a vector sum let's name this set of all possible sums d 418 00:19:52,019 --> 00:19:57,140 your task is to prove that d is also a convex set 419 00:19:57,140 --> 00:20:00,660 so Jane street is a quantitative trading firm and if you're the kind of 420 00:20:00,660 --> 00:20:04,420 person who enjoys math and solving puzzles like this the team there really 421 00:20:04,420 --> 00:20:08,259 values intellectual curiosity so they might be interested in hiring you 422 00:20:08,259 --> 00:20:11,059 and they're looking both for full-time employees and interns 423 00:20:11,059 --> 00:20:13,779 for my part i can say the couple of people i've interacted with there just 424 00:20:13,779 --> 00:20:17,859 seem to love math and sharing math and when they're hiring they look less at 425 00:20:17,859 --> 00:20:20,819 it background and finance than they do it how you think how you learn and 426 00:20:20,819 --> 00:20:24,980 how you solve problems hence the sponsorship of a three blue one brown video 427 00:20:24,980 --> 00:20:27,779 if you want the answer to that puzzler or to learn more about what they do 428 00:20:27,779 --> 00:20:35,380 or to apply for open positions go to jainstreet.com slash 3b1b