1 00:00:00,000 --> 00:00:00,000 2 00:00:00,000 --> 00:00:08,960 CHRISTINE BREINER: Welcome back to recitation. 3 00:00:08,960 --> 00:00:12,430 In this video I want to explain to you where the 4 00:00:12,430 --> 00:00:14,310 coefficients we saw in Simpson's rule 5 00:00:14,310 --> 00:00:16,010 actually come from. 6 00:00:16,010 --> 00:00:19,620 So what I'm going to do is take this curve that I have 7 00:00:19,620 --> 00:00:22,970 and show you what the picture of Simpson's rule does. 8 00:00:22,970 --> 00:00:26,940 And then I'm actually going to determine explicitly where the 9 00:00:26,940 --> 00:00:28,300 coefficients come from. 10 00:00:28,300 --> 00:00:31,240 So let's look at this picture first. The picture I have 11 00:00:31,240 --> 00:00:35,585 here, the white curve is going to be my y 12 00:00:35,585 --> 00:00:39,600 equals f of x function. 13 00:00:39,600 --> 00:00:41,530 And so, if you remember, what Simpson's rule is saying, you 14 00:00:41,530 --> 00:00:45,270 have to have two delta x's. 15 00:00:45,270 --> 00:00:48,610 So in this case h is equal to delta x. 16 00:00:48,610 --> 00:00:50,870 So what Simpson's rule is saying is I can find, 17 00:00:50,870 --> 00:00:55,860 approximate, the area under this curve from minus h to h 18 00:00:55,860 --> 00:00:57,680 by a certain expression. 19 00:00:57,680 --> 00:01:01,820 And the expression is, I said delta x is equal to h, so let 20 00:01:01,820 --> 00:01:08,580 me write h over 3 times y0 plus 4 y1 plus y2-- oh, y2. 21 00:01:08,580 --> 00:01:15,110 22 00:01:15,110 --> 00:01:16,490 So that's what you got, that's what you saw in the lecture, 23 00:01:16,490 --> 00:01:18,850 that this is what the coefficients are. 24 00:01:18,850 --> 00:01:21,110 So I want to explain why this is a 1, why that's a 4, why 25 00:01:21,110 --> 00:01:23,140 that's a 1, and where that 3 comes from. 26 00:01:23,140 --> 00:01:25,060 The picture is not going to explain it, but the picture 27 00:01:25,060 --> 00:01:27,740 will help us understand how to go. 28 00:01:27,740 --> 00:01:34,530 So what Simpson's rule does is it takes those three points, 29 00:01:34,530 --> 00:01:41,035 so the x0, y0, the x1, y1 and x2, y2 that are on the curve y 30 00:01:41,035 --> 00:01:42,370 equals f of x. 31 00:01:42,370 --> 00:01:45,860 And it finds a parabola through those three points. 32 00:01:45,860 --> 00:01:48,990 So I'm going to do my best to draw what looks like a 33 00:01:48,990 --> 00:01:52,140 parabola through those three points. 34 00:01:52,140 --> 00:01:52,205 Something-- 35 00:01:52,205 --> 00:01:55,870 I'll draw it lightly first and then I'll fill it in. 36 00:01:55,870 --> 00:02:01,610 Something along these lines. 37 00:02:01,610 --> 00:02:02,560 Something like that. 38 00:02:02,560 --> 00:02:06,610 That's a sort of looks like a parabola. 39 00:02:06,610 --> 00:02:10,790 And os the idea is Simpson's rule is saying I can find the 40 00:02:10,790 --> 00:02:14,920 area under the blue curve. 41 00:02:14,920 --> 00:02:16,610 So I can find the area under the blue curve. 42 00:02:16,610 --> 00:02:19,950 43 00:02:19,950 --> 00:02:22,540 So this is a function, we'll call this y equal P of x. 44 00:02:22,540 --> 00:02:26,010 45 00:02:26,010 --> 00:02:27,370 And that's what you were actually 46 00:02:27,370 --> 00:02:29,130 told about in lecture. 47 00:02:29,130 --> 00:02:33,370 That you're approximating your function y equals f of x by a 48 00:02:33,370 --> 00:02:38,990 quadratic function that goes through the values x0, y0, x1, 49 00:02:38,990 --> 00:02:41,160 y1, and x2, y2. 50 00:02:41,160 --> 00:02:45,750 And then you find the area under that parabola. 51 00:02:45,750 --> 00:02:47,990 Between minus h and h. 52 00:02:47,990 --> 00:02:50,200 Now this picture, you might say, Christine, this looks 53 00:02:50,200 --> 00:02:51,830 really like a bad estimate. 54 00:02:51,830 --> 00:02:52,890 This looks kind of stupid. 55 00:02:52,890 --> 00:02:54,250 Maybe you should have picked a different 56 00:02:54,250 --> 00:02:56,790 function to estimate this. 57 00:02:56,790 --> 00:02:59,940 And I did this one because I wanted to be zoomed out far 58 00:02:59,940 --> 00:03:02,650 and to show you, to give you a little intuition about what 59 00:03:02,650 --> 00:03:05,190 happens when we make h smaller. 60 00:03:05,190 --> 00:03:08,100 Notice that if I cut the size of h in half, so if I started 61 00:03:08,100 --> 00:03:12,540 with here was minus h to h, what would my three points be? 62 00:03:12,540 --> 00:03:16,960 My three points would be this point, y1, and y2 would be 63 00:03:16,960 --> 00:03:17,920 right here. 64 00:03:17,920 --> 00:03:20,990 Well the quadratic through those points is much closer to 65 00:03:20,990 --> 00:03:22,870 the actual function. 66 00:03:22,870 --> 00:03:26,460 And if I cut that in half again, I'd have points here, 67 00:03:26,460 --> 00:03:27,890 here, and here. 68 00:03:27,890 --> 00:03:30,790 Something like that, and that starts to look almost exactly 69 00:03:30,790 --> 00:03:31,660 like a quadratic. 70 00:03:31,660 --> 00:03:35,270 So if I found the area under this-- 71 00:03:35,270 --> 00:03:37,650 or if I wanted to estimate the area under this piece of the 72 00:03:37,650 --> 00:03:41,170 curve using a quadratic through those three points, 73 00:03:41,170 --> 00:03:43,280 they would be very close. 74 00:03:43,280 --> 00:03:45,880 So don't be alarmed by Simpson's rule as an 75 00:03:45,880 --> 00:03:50,500 approximation based on this large picture. 76 00:03:50,500 --> 00:03:51,620 So now, what do we have to do? 77 00:03:51,620 --> 00:03:52,690 Remember, what's our goal? 78 00:03:52,690 --> 00:03:53,650 Our goal is to figure out where the 79 00:03:53,650 --> 00:03:55,280 coefficients come from. 80 00:03:55,280 --> 00:03:58,300 So what I actually need to do is I need to evaluate a 81 00:03:58,300 --> 00:03:59,870 certain integral. 82 00:03:59,870 --> 00:04:02,220 Or I need to integrate a certain function. 83 00:04:02,220 --> 00:04:04,650 I need to integrate P of x. 84 00:04:04,650 --> 00:04:06,320 So what I'm going to be finding through the rest of 85 00:04:06,320 --> 00:04:09,250 this video, is the integral from minus h 86 00:04:09,250 --> 00:04:13,310 to h of P of x dx. 87 00:04:13,310 --> 00:04:17,200 And my goal is to show that this integral is equal to this 88 00:04:17,200 --> 00:04:17,840 expression. 89 00:04:17,840 --> 00:04:20,390 I want to show that these are equal. 90 00:04:20,390 --> 00:04:21,640 That's my goal. 91 00:04:21,640 --> 00:04:24,270 92 00:04:24,270 --> 00:04:26,310 So let's get down to it. 93 00:04:26,310 --> 00:04:26,930 What do I know? 94 00:04:26,930 --> 00:04:29,780 What's the only thing I know right away about P of x? 95 00:04:29,780 --> 00:04:32,760 I know I'm choosing it to be a quadratic function and I know 96 00:04:32,760 --> 00:04:34,165 it goes through three certain points. 97 00:04:34,165 --> 00:04:35,390 Right? 98 00:04:35,390 --> 00:04:39,210 I'll write down what the three points are when we need them. 99 00:04:39,210 --> 00:04:43,070 But first let's just say, in general, let's take this 100 00:04:43,070 --> 00:04:45,710 integral for a general quadratic and see how much 101 00:04:45,710 --> 00:04:47,690 information we actually need. 102 00:04:47,690 --> 00:04:50,940 So let me come over here. 103 00:04:50,940 --> 00:04:52,870 Actually, let me say first, what do I 104 00:04:52,870 --> 00:04:55,400 mean my general quadratic? 105 00:04:55,400 --> 00:04:59,350 I mean something of the form big A, capital Ax squared plus 106 00:04:59,350 --> 00:05:03,910 Bx plus C. So I'm not filling in values for these 107 00:05:03,910 --> 00:05:04,950 coefficients yet. 108 00:05:04,950 --> 00:05:08,870 Those coefficients are coming exactly from my three points. 109 00:05:08,870 --> 00:05:13,400 x0, y0, x1, y1 and x2, y2. 110 00:05:13,400 --> 00:05:16,480 So let's just integrate that from minus h to h first and 111 00:05:16,480 --> 00:05:19,030 see what kind of information we need. 112 00:05:19,030 --> 00:05:19,770 So if I come over here. 113 00:05:19,770 --> 00:05:32,570 So what do I get when I actually integrate this? 114 00:05:32,570 --> 00:05:38,490 Well, I get Ax to the third over 3, plus Bx squared over 115 00:05:38,490 --> 00:05:42,640 2, plus Cx, and then I have to evaluate for minus h to h. 116 00:05:42,640 --> 00:05:47,370 117 00:05:47,370 --> 00:05:49,010 Well, if you were thinking about this, it shouldn't be 118 00:05:49,010 --> 00:05:51,370 surprising that when I do this, there's not 119 00:05:51,370 --> 00:05:53,080 going to be a B term. 120 00:05:53,080 --> 00:05:54,840 Why is that? 121 00:05:54,840 --> 00:05:56,790 Well, these two functions are even. 122 00:05:56,790 --> 00:05:59,350 Ax squared and C are even functions. 123 00:05:59,350 --> 00:06:01,360 And I'm integrating over something that's symmetric 124 00:06:01,360 --> 00:06:03,130 about the y-axis. 125 00:06:03,130 --> 00:06:05,420 I'm going from minus h to h. 126 00:06:05,420 --> 00:06:08,010 So if you think about Ax squared, and I'm going from 127 00:06:08,010 --> 00:06:11,510 minus h to h, I'm finding the area under a quadratic, from 128 00:06:11,510 --> 00:06:16,200 minus h to h, it's going to be twice the area from 0 to h. 129 00:06:16,200 --> 00:06:21,680 But Bx, that's a line with slope B. If I wanted to 130 00:06:21,680 --> 00:06:25,840 integrate Bx from minus h to h, that's the area, the signed 131 00:06:25,840 --> 00:06:29,770 area under the curve of a line Bx, from minus h to h. 132 00:06:29,770 --> 00:06:34,290 If I just draw a quick picture, what 133 00:06:34,290 --> 00:06:35,120 does that look like? 134 00:06:35,120 --> 00:06:39,970 It's symmetric with respect to a rotation there. 135 00:06:39,970 --> 00:06:41,210 I'd have this signed area. 136 00:06:41,210 --> 00:06:43,960 This is the curve y equals Bx. 137 00:06:43,960 --> 00:06:47,800 From minus h to h, I get this area is negative and this are 138 00:06:47,800 --> 00:06:51,030 is positive and they're equal. 139 00:06:51,030 --> 00:06:52,050 So, what I'm about to do, you shouldn't be surprised there 140 00:06:52,050 --> 00:06:54,100 won't be a B term. 141 00:06:54,100 --> 00:06:56,370 So what do we actually get when we evaluate this? 142 00:06:56,370 --> 00:07:03,470 We get 2A h cubed, over 3, plus 2C h. 143 00:07:03,470 --> 00:07:06,620 144 00:07:06,620 --> 00:07:07,390 That's what we get. 145 00:07:07,390 --> 00:07:09,560 You can actually work it all, put in and all the h's and see 146 00:07:09,560 --> 00:07:13,410 that, but I knew I was going to have double what was here 147 00:07:13,410 --> 00:07:17,870 when I evaluated at h, and nothing from the B term. 148 00:07:17,870 --> 00:07:20,400 So we're getting closer. 149 00:07:20,400 --> 00:07:21,280 We're getting closer. 150 00:07:21,280 --> 00:07:22,750 We might not look like we're getting closer, but we're 151 00:07:22,750 --> 00:07:24,320 getting closer. 152 00:07:24,320 --> 00:07:28,210 So let's simplify this expression a little bit. 153 00:07:28,210 --> 00:07:30,410 Actually, what I ultimately need to do is I need to figure 154 00:07:30,410 --> 00:07:33,870 out C and I need to figure out something over here. 155 00:07:33,870 --> 00:07:36,960 I need to actually figure out Ah squared. 156 00:07:36,960 --> 00:07:40,080 And let me explain why I need to figure out Ah squared. 157 00:07:40,080 --> 00:07:43,940 In the end, if I come over back to what I want to show-- 158 00:07:43,940 --> 00:07:45,620 let me even box it, so we see it-- 159 00:07:45,620 --> 00:07:49,830 I want to show that this integral, which I've started 160 00:07:49,830 --> 00:07:53,100 to calculate, is equal to h over 3 times this quantity. 161 00:07:53,100 --> 00:07:56,610 So I want to keep one around, but I want the other, any 162 00:07:56,610 --> 00:07:59,720 other powers of h to not be there when I'm done. 163 00:07:59,720 --> 00:07:59,940 Right? 164 00:07:59,940 --> 00:08:01,290 I need one power of h there. 165 00:08:01,290 --> 00:08:03,570 In fact I need an h over 3 there. 166 00:08:03,570 --> 00:08:06,750 So I think what I'll do is I'll start off and I'll pull 167 00:08:06,750 --> 00:08:09,710 out an h over 3, and then I'll try and figure out if I can 168 00:08:09,710 --> 00:08:12,050 get the rest of my expression to look like what's in the 169 00:08:12,050 --> 00:08:13,220 parentheses. 170 00:08:13,220 --> 00:08:16,140 That's really, ultimately, what I'd like to do. 171 00:08:16,140 --> 00:08:19,130 So let's come back over here. 172 00:08:19,130 --> 00:08:22,080 I'm going to pull out an h over 3 from both of these and 173 00:08:22,080 --> 00:08:23,146 we're going to see what we end up with. 174 00:08:23,146 --> 00:08:28,460 OK so if I pull out an h over 3 here, what do I end up with? 175 00:08:28,460 --> 00:08:28,900 This is easy. 176 00:08:28,900 --> 00:08:30,340 That's 2A h squared. 177 00:08:30,340 --> 00:08:33,660 178 00:08:33,660 --> 00:08:35,340 And this one's a little bit trickier. 179 00:08:35,340 --> 00:08:39,470 But I have to multiply by 3 over 3 to get a 3 there. 180 00:08:39,470 --> 00:08:40,720 So I end up with 6C. 181 00:08:40,720 --> 00:08:44,920 182 00:08:44,920 --> 00:08:45,250 OK. 183 00:08:45,250 --> 00:08:46,880 Let's make sure I didn't make any mistakes. 184 00:08:46,880 --> 00:08:50,660 If I multiply through here I get 2A h cubed over 3. 185 00:08:50,660 --> 00:08:56,790 If I multiply through here I get 2h C. Looking good so far. 186 00:08:56,790 --> 00:09:01,295 Now I have to figure out A and C, or Ah squared and C. Well, 187 00:09:01,295 --> 00:09:02,970 C is pretty easy to find. 188 00:09:02,970 --> 00:09:04,550 Let's think about why that is. 189 00:09:04,550 --> 00:09:06,200 I have this polynomial. 190 00:09:06,200 --> 00:09:08,680 The polynomial was equal to-- if we come over here and we 191 00:09:08,680 --> 00:09:13,050 look again, it's Ax squared plus Bx plus C. And the 192 00:09:13,050 --> 00:09:16,340 polynomial has to go through those three points I had. 193 00:09:16,340 --> 00:09:22,400 So when x is 0, P of 0 is C. So let's come back and look at 194 00:09:22,400 --> 00:09:23,190 our picture. 195 00:09:23,190 --> 00:09:28,240 When x is 0, what's the output on the white curve? 196 00:09:28,240 --> 00:09:29,640 It's y1. 197 00:09:29,640 --> 00:09:32,290 So C is exactly y1. 198 00:09:32,290 --> 00:09:33,910 How am I going to find Ah squared? 199 00:09:33,910 --> 00:09:36,940 Well, what I need to do is use these other two points. 200 00:09:36,940 --> 00:09:41,280 I'm going to evaluate the function P of x at minus h. 201 00:09:41,280 --> 00:09:43,510 And it's output has to be y0. 202 00:09:43,510 --> 00:09:47,780 And I'm going to evaluate the function P of x at h and it's 203 00:09:47,780 --> 00:09:50,590 output has to be y2. 204 00:09:50,590 --> 00:09:52,270 So we're going to come over to the other side, but that's 205 00:09:52,270 --> 00:09:53,780 really what we're doing next. 206 00:09:53,780 --> 00:09:59,900 So let's come over here and let's evaluate P of h 207 00:09:59,900 --> 00:10:03,590 and P of minus h. 208 00:10:03,590 --> 00:10:15,200 So P of h is Ah squared plus Bh plus C. And P of minus h is 209 00:10:15,200 --> 00:10:23,540 Ah squared minus Bh plus C. OK. 210 00:10:23,540 --> 00:10:23,740 What else? 211 00:10:23,740 --> 00:10:27,550 Again we said this one has to be y2, the output, and this 212 00:10:27,550 --> 00:10:29,300 one has to be y0. 213 00:10:29,300 --> 00:10:32,560 Because the output at h has to agree with the output of the 214 00:10:32,560 --> 00:10:33,530 function f of x. 215 00:10:33,530 --> 00:10:35,530 And its output at h was y2. 216 00:10:35,530 --> 00:10:40,070 The output at minus h of P has to be the same as the output 217 00:10:40,070 --> 00:10:41,490 at minus h of f. 218 00:10:41,490 --> 00:10:43,660 And that was y0. 219 00:10:43,660 --> 00:10:46,150 Now this might not look fun yet but what if I add these 220 00:10:46,150 --> 00:10:48,350 two things together. 221 00:10:48,350 --> 00:10:49,440 What happens? 222 00:10:49,440 --> 00:10:54,110 I get 2A h squared. 223 00:10:54,110 --> 00:10:56,270 These drop out. 224 00:10:56,270 --> 00:11:06,980 And then I get plus 2C is equal to y0 plus y2. 225 00:11:06,980 --> 00:11:08,060 I'm getting closer. 226 00:11:08,060 --> 00:11:09,610 I'm getting much closer. 227 00:11:09,610 --> 00:11:13,140 Because now notice what I have. I have 2A h squared, I 228 00:11:13,140 --> 00:11:14,490 can isolate that. 229 00:11:14,490 --> 00:11:16,370 And that's something that I want to figure out. 230 00:11:16,370 --> 00:11:17,750 I want to figure 2A h squared. 231 00:11:17,750 --> 00:11:20,620 So let's figure out what that is. 232 00:11:20,620 --> 00:11:29,400 2A h squared is equal to y0 plus y2 minus, well what did 233 00:11:29,400 --> 00:11:30,640 we say C was? 234 00:11:30,640 --> 00:11:34,210 C was the output at x equals 0. 235 00:11:34,210 --> 00:11:35,240 Which is y1. 236 00:11:35,240 --> 00:11:39,270 So it's minus 2C, which is minus 2 y1. 237 00:11:39,270 --> 00:11:41,640 So now we're very close, we're very close to 238 00:11:41,640 --> 00:11:42,740 getting what we want. 239 00:11:42,740 --> 00:11:45,740 And that's good, because I'm almost out of room. 240 00:11:45,740 --> 00:11:47,910 So let's take that expression, we were working on this 241 00:11:47,910 --> 00:11:50,060 expression right here, and let's start to 242 00:11:50,060 --> 00:11:51,930 fill in what we get. 243 00:11:51,930 --> 00:12:00,110 We get h over 3 times 2A h squared which is y0 plus y2 244 00:12:00,110 --> 00:12:03,980 minus 2 y1, and then I have to add 6C. 245 00:12:03,980 --> 00:12:05,010 Now what's C? 246 00:12:05,010 --> 00:12:06,970 C is y1. 247 00:12:06,970 --> 00:12:10,390 So I'm going to add 6 y1. 248 00:12:10,390 --> 00:12:15,950 And if I simplify that, I get y0-- 249 00:12:15,950 --> 00:12:16,840 bingo-- 250 00:12:16,840 --> 00:12:21,770 plus 4 y1 plus y2. 251 00:12:21,770 --> 00:12:23,290 And that's what we wanted. 252 00:12:23,290 --> 00:12:26,260 So let me take us through kind of where all this came from 253 00:12:26,260 --> 00:12:29,920 again, what the big pieces were and we'll see now we 254 00:12:29,920 --> 00:12:33,330 understand how we do Simpson's rule, and these small chunks 255 00:12:33,330 --> 00:12:34,680 of Simpson's rule. 256 00:12:34,680 --> 00:12:35,930 So let's come back to the very beginning. 257 00:12:35,930 --> 00:12:40,580 258 00:12:40,580 --> 00:12:43,690 OK, in the very beginning, what we had was a function f 259 00:12:43,690 --> 00:12:45,250 of x, that was the white curve. y equals f of x was the 260 00:12:45,250 --> 00:12:47,270 white curve. 261 00:12:47,270 --> 00:12:52,600 And then I found a quadratic that went through minus h, y0, 262 00:12:52,600 --> 00:12:54,900 0, y1, and h, y2. 263 00:12:54,900 --> 00:12:55,930 Went through those three points. 264 00:12:55,930 --> 00:12:59,340 And I called that quadratic P of x. 265 00:12:59,340 --> 00:13:02,200 And then what I was doing, we know Simpson's rule says find 266 00:13:02,200 --> 00:13:06,190 the area under the curve of P of x between minus h and h. 267 00:13:06,190 --> 00:13:10,110 So what I did was I came over here and I said OK, P of x, 268 00:13:10,110 --> 00:13:12,640 integral of P of x from minus h to h. 269 00:13:12,640 --> 00:13:16,200 I wrote P of x in a very general form. 270 00:13:16,200 --> 00:13:17,900 And then I actually found an integral. 271 00:13:17,900 --> 00:13:21,700 I came through and after writing it out, calculating 272 00:13:21,700 --> 00:13:23,400 the integral, I got to this expression. 273 00:13:23,400 --> 00:13:28,180 This is actually the integral of P of x from minus h to h. 274 00:13:28,180 --> 00:13:30,620 So it's the area under the curve of P of x from minus h 275 00:13:30,620 --> 00:13:32,270 to h is that. 276 00:13:32,270 --> 00:13:35,060 And now I had to figure this out, how to write this in 277 00:13:35,060 --> 00:13:38,250 terms of the outputs of f of x. 278 00:13:38,250 --> 00:13:40,340 Which were y0, y1, and y2. 279 00:13:40,340 --> 00:13:42,550 Those were the ones we were interested in. 280 00:13:42,550 --> 00:13:45,270 So I ultimately knew I wanted an h over three in front. 281 00:13:45,270 --> 00:13:48,800 I knew I wanted my integral in my quadratic to be h over 3 282 00:13:48,800 --> 00:13:53,330 times something, so I pulled out an h over 3, and then I 283 00:13:53,330 --> 00:13:55,340 looked at what this expression was. 284 00:13:55,340 --> 00:13:57,760 And if I could get this expression to look like the 285 00:13:57,760 --> 00:14:01,710 inside of what I wanted, which was y0 plus 4 y1 plus y2, I 286 00:14:01,710 --> 00:14:03,460 was in business. 287 00:14:03,460 --> 00:14:08,890 And so then I used outputs that I knew for p of x to find 288 00:14:08,890 --> 00:14:14,190 2A h squared and to find C. I know P of h is the output of 289 00:14:14,190 --> 00:14:17,560 the f of x function at the far right, which was y2. 290 00:14:17,560 --> 00:14:19,990 And I knew P of minus h was the output of the f of x 291 00:14:19,990 --> 00:14:21,070 function at the far left. 292 00:14:21,070 --> 00:14:22,500 That's y0. 293 00:14:22,500 --> 00:14:26,210 I actually then evaluate P at h and minus h, and when I add 294 00:14:26,210 --> 00:14:29,770 those together, I get my 2Ah squared in terms 295 00:14:29,770 --> 00:14:31,600 of y0, y1, and y2. 296 00:14:31,600 --> 00:14:34,320 Let me do this in terms of y0, y1, and y2. 297 00:14:34,320 --> 00:14:37,030 Because I also knew C was y1. 298 00:14:37,030 --> 00:14:38,180 We talked about that as well. 299 00:14:38,180 --> 00:14:39,820 C had to be y1. 300 00:14:39,820 --> 00:14:43,000 So I can then do the substitution I need right here 301 00:14:43,000 --> 00:14:44,380 and show where the coefficients in 302 00:14:44,380 --> 00:14:46,750 Simpson's rule come from. 303 00:14:46,750 --> 00:14:48,390 So hopefully that was informative for you. 304 00:14:48,390 --> 00:14:50,370 And I think I'll stop there. 305 00:14:50,370 --> 00:14:50,490