1 00:00:00,792 --> 00:00:03,920 PROFESSOR: I want to use this applet, Amplitude and Phase: 2 00:00:03,920 --> 00:00:06,450 First Order, to show you some of the functionalities that 3 00:00:06,450 --> 00:00:10,790 are common to the MIT mathlets. 4 00:00:10,790 --> 00:00:14,870 First of all, if your browser window looks like this, 5 00:00:14,870 --> 00:00:18,600 so that the label at the top is too large, 6 00:00:18,600 --> 00:00:23,790 or like this, so that it's missing some of the window, 7 00:00:23,790 --> 00:00:26,300 it's because you have the zoom on your browser set wrong. 8 00:00:26,300 --> 00:00:29,250 And you can adjust it with command or control 9 00:00:29,250 --> 00:00:33,600 plus or minus keys, so that it looks correct. 10 00:00:33,600 --> 00:00:35,950 So let's see what we have in this applet. 11 00:00:35,950 --> 00:00:38,360 At the top, you can see the differential equation 12 00:00:38,360 --> 00:00:41,340 that this applet deals with. 13 00:00:41,340 --> 00:00:42,850 This differential equation models 14 00:00:42,850 --> 00:00:44,850 many different physical phenomena, 15 00:00:44,850 --> 00:00:47,850 and the story I want to tell you involves the ocean, measured 16 00:00:47,850 --> 00:00:51,780 by this blue level here, connected to a bay 17 00:00:51,780 --> 00:00:53,310 by this channel. 18 00:00:53,310 --> 00:00:57,420 And here's a measure of the water level in the bay. 19 00:00:57,420 --> 00:01:02,290 As time goes on, the level of water 20 00:01:02,290 --> 00:01:05,319 in the ocean changes because of tides, 21 00:01:05,319 --> 00:01:08,020 and the water level in the bay follows 22 00:01:08,020 --> 00:01:14,350 suit mediated by a slanting level in the channel. 23 00:01:14,350 --> 00:01:18,630 I'm dragging this time slider under the graphing window, 24 00:01:18,630 --> 00:01:20,240 and you can set it wherever you want. 25 00:01:20,240 --> 00:01:23,120 In fact, if you want to set it at exactly 12, 26 00:01:23,120 --> 00:01:26,135 because there's a hash mark here, I can click on this 12, 27 00:01:26,135 --> 00:01:29,470 and the time slider moves to that point. 28 00:01:29,470 --> 00:01:33,810 Or you can return time to time zero by this arrow key, 29 00:01:33,810 --> 00:01:37,820 and then animate by pushing this double right arrow key 30 00:01:37,820 --> 00:01:40,750 and watch the tide move up and down. 31 00:01:44,400 --> 00:01:46,400 There's very carefully designed color 32 00:01:46,400 --> 00:01:48,650 coding in all of these applets. 33 00:01:48,650 --> 00:01:50,980 In this case, blue represents the ocean, 34 00:01:50,980 --> 00:01:53,340 and you can see that it also represents 35 00:01:53,340 --> 00:01:56,490 the curve traced out by the height of the ocean 36 00:01:56,490 --> 00:01:58,030 as time increases. 37 00:01:58,030 --> 00:02:02,170 And yellow represents the water level in the bay. 38 00:02:02,170 --> 00:02:06,350 When I drag the cursor over this graphing window, 39 00:02:06,350 --> 00:02:09,470 you can see a crosshair forming, and below the window, 40 00:02:09,470 --> 00:02:13,430 you can see readout of time and the x variable, vertical 41 00:02:13,430 --> 00:02:14,720 direction. 42 00:02:14,720 --> 00:02:16,350 You can use this to make measurements. 43 00:02:16,350 --> 00:02:20,190 For example, I can see that the tide in the bay 44 00:02:20,190 --> 00:02:26,470 seems to have maximal height of 0.38. 45 00:02:26,470 --> 00:02:29,410 In many of these applets, you can make measurements 46 00:02:29,410 --> 00:02:33,490 by using a rollover over the graphing window. 47 00:02:33,490 --> 00:02:35,970 Let's see what else we have in this applet. 48 00:02:35,970 --> 00:02:38,650 Down here, there's a slider marked k. 49 00:02:38,650 --> 00:02:40,550 This is the coupling constant. 50 00:02:40,550 --> 00:02:43,190 It reflects the width of the channel in the story 51 00:02:43,190 --> 00:02:44,630 that I'm telling you. 52 00:02:44,630 --> 00:02:48,180 When k is small, the channel is very narrow 53 00:02:48,180 --> 00:02:51,090 and the ocean level has very little effect 54 00:02:51,090 --> 00:02:53,800 on the water level in the bay. 55 00:02:53,800 --> 00:02:58,480 In fact, when k is equal to zero, it has no effect at all. 56 00:02:58,480 --> 00:03:01,530 On the other hand, when k becomes larger, 57 00:03:01,530 --> 00:03:04,130 the water level in the bay tracks the ocean water level 58 00:03:04,130 --> 00:03:06,290 very closely. 59 00:03:06,290 --> 00:03:09,680 Let's set k to one, here. 60 00:03:09,680 --> 00:03:12,430 And think about another thing you can vary. 61 00:03:12,430 --> 00:03:18,150 In reality, you can't change the period of the tides. 62 00:03:18,150 --> 00:03:20,330 Even King Canute couldn't do that. 63 00:03:20,330 --> 00:03:21,790 But here in this tool, we can. 64 00:03:21,790 --> 00:03:25,520 And I can vary the circular frequency of this tidal input 65 00:03:25,520 --> 00:03:29,570 signal by changing the omega slider over here on the right. 66 00:03:29,570 --> 00:03:35,740 I can make it small, and so the period is very long, or larger 67 00:03:35,740 --> 00:03:38,910 and make the tides happen faster. 68 00:03:38,910 --> 00:03:40,840 So we can animate this again. 69 00:03:40,840 --> 00:03:42,780 You can see things happen faster. 70 00:03:42,780 --> 00:03:47,210 The curve is tighter, and the effect is different. 71 00:03:47,210 --> 00:03:50,820 In fact, if we watch what happens when I move omega 72 00:03:50,820 --> 00:03:55,570 from one down to a smaller number, 73 00:03:55,570 --> 00:03:59,410 you can see the maximum height of the tide changes. 74 00:03:59,410 --> 00:04:01,300 The amplitude of the tide changes. 75 00:04:01,300 --> 00:04:03,780 It depends upon omega. 76 00:04:03,780 --> 00:04:06,410 In fact, one of the nice things about these systems 77 00:04:06,410 --> 00:04:09,770 is that if you have a sinusoidal input-- as we do here, 78 00:04:09,770 --> 00:04:12,580 this blue curve-- then the output signal 79 00:04:12,580 --> 00:04:17,380 is also going to be sinusoidal and of the same frequency. 80 00:04:17,380 --> 00:04:19,010 So there's only two things we need 81 00:04:19,010 --> 00:04:22,960 to know about the output here, this yellow signal. 82 00:04:22,960 --> 00:04:25,530 Namely, the amplitude and the phase 83 00:04:25,530 --> 00:04:30,460 lag behind the input signal, the blue curve. 84 00:04:30,460 --> 00:04:34,560 And those two quantities can be measured, can be graphed, 85 00:04:34,560 --> 00:04:40,080 against the input frequency, and we can see those graphs 86 00:04:40,080 --> 00:04:44,320 by clicking on this check box called Bode Plots down here. 87 00:04:44,320 --> 00:04:46,090 So this opens two new windows. 88 00:04:46,090 --> 00:04:49,180 The upper one records the amplitude 89 00:04:49,180 --> 00:04:54,900 as a function of the angular input frequency, 90 00:04:54,900 --> 00:04:57,420 and the lower one records the number 91 00:04:57,420 --> 00:05:03,480 of degrees behind the input frequency that the bay falls. 92 00:05:03,480 --> 00:05:07,850 So as omega changes, you can see all these various things 93 00:05:07,850 --> 00:05:11,080 changing simultaneously. 94 00:05:11,080 --> 00:05:13,365 This is a characteristic feature of these applets. 95 00:05:13,365 --> 00:05:18,610 The same information is recorded in several different places 96 00:05:18,610 --> 00:05:24,990 and always connected visually by placement. 97 00:05:24,990 --> 00:05:27,970 So you can see the amplitude is 0.71 here. 98 00:05:27,970 --> 00:05:30,020 This yellow horizontal line connects it 99 00:05:30,020 --> 00:05:36,060 with the maxima of the output curve. 100 00:05:36,060 --> 00:05:38,870 And also by color. 101 00:05:38,870 --> 00:05:40,370 What else do we see here? 102 00:05:40,370 --> 00:05:45,350 There's a red line segment here on this curve, which 103 00:05:45,350 --> 00:05:52,432 I can make a little bit bigger if I decrease the k a bit 104 00:05:52,432 --> 00:05:55,630 and decrease the frequency a little bit. 105 00:05:55,630 --> 00:05:58,590 What is this red curve here, this red line here? 106 00:05:58,590 --> 00:06:02,140 Well, it connects to this vertical strut 107 00:06:02,140 --> 00:06:06,500 which goes up to the maximum of the output curve. 108 00:06:06,500 --> 00:06:10,390 And it begins at the maximum of the input curve. 109 00:06:10,390 --> 00:06:12,140 In other words, it's the amount of time 110 00:06:12,140 --> 00:06:14,590 that the output falls behind the input. 111 00:06:14,590 --> 00:06:17,160 It's the time lag, and that time lag 112 00:06:17,160 --> 00:06:19,800 is recorded numerically down here. 113 00:06:19,800 --> 00:06:24,270 It's 1.96 in this example. 114 00:06:24,270 --> 00:06:26,530 There's one more check box to explore 115 00:06:26,530 --> 00:06:28,330 called Nyquist Plot here. 116 00:06:28,330 --> 00:06:29,950 Let's click it and see what happens. 117 00:06:32,510 --> 00:06:36,540 This opens a window at the bottom here 118 00:06:36,540 --> 00:06:39,090 which records a complex number. 119 00:06:39,090 --> 00:06:45,310 That complex number contains a magnitude and an angle. 120 00:06:45,310 --> 00:06:50,870 And the magnitude is the amplitude of the system 121 00:06:50,870 --> 00:06:55,100 response, and the angle represents the phase lag 122 00:06:55,100 --> 00:06:56,200 of the system response. 123 00:06:56,200 --> 00:06:59,520 You can see these things changing together when 124 00:06:59,520 --> 00:07:01,620 I move the omega slider here. 125 00:07:01,620 --> 00:07:05,800 Watch both the windows above the slider and the window 126 00:07:05,800 --> 00:07:10,640 below the slider, and you can see that they change together. 127 00:07:10,640 --> 00:07:13,410 This bottom representation is a complex number. 128 00:07:13,410 --> 00:07:15,570 It's very useful in understanding the relationship 129 00:07:15,570 --> 00:07:18,750 between phase lag and amplitude, and it also 130 00:07:18,750 --> 00:07:21,710 represents the way we solve these differential 131 00:07:21,710 --> 00:07:27,070 equations in the Differential Equations course at MIT. 132 00:07:27,070 --> 00:07:30,040 This is just a beginning and indication 133 00:07:30,040 --> 00:07:34,170 of some of the functionalities of these MIT mathlets. 134 00:07:34,170 --> 00:07:36,450 If you want to see a list of them that 135 00:07:36,450 --> 00:07:38,770 are associated any one of the applets, 136 00:07:38,770 --> 00:07:41,790 there's always a Help key in the upper right hand corner which 137 00:07:41,790 --> 00:07:45,360 will open a page that simply describes 138 00:07:45,360 --> 00:07:50,180 the functionalities present in that particular applet. 139 00:07:50,180 --> 00:07:51,660 So have fun with these. 140 00:07:51,660 --> 00:07:52,910 You can play around with them. 141 00:07:52,910 --> 00:07:55,890 You can't break anything by clicking buttons 142 00:07:55,890 --> 00:08:01,020 and experimenting with rollovers and moving the sliders.