1 00:00:05,580 --> 00:00:07,170 PROFESSOR: Hi everyone. 2 00:00:07,170 --> 00:00:08,380 Welcome back. 3 00:00:08,380 --> 00:00:10,310 So today, I'd like to tackle a problem 4 00:00:10,310 --> 00:00:13,550 in undetermined coefficients, specifically 5 00:00:13,550 --> 00:00:15,190 find a particular solution to each 6 00:00:15,190 --> 00:00:18,220 of the following equations using undetermined coefficients. 7 00:00:18,220 --> 00:00:21,820 So for part A, we have x dot plus 3x equals 8 00:00:21,820 --> 00:00:23,760 t squared plus t. 9 00:00:23,760 --> 00:00:27,500 And for B, we have x dot dot plus x dot equals t 10 00:00:27,500 --> 00:00:28,857 to the four. 11 00:00:28,857 --> 00:00:30,440 So I'll let you work this problem out. 12 00:00:30,440 --> 00:00:31,731 And I'll come back in a minute. 13 00:00:42,386 --> 00:00:43,490 Hi Everyone. 14 00:00:43,490 --> 00:00:45,570 Welcome back. 15 00:00:45,570 --> 00:00:47,820 So we're asked to solve this problem using the method 16 00:00:47,820 --> 00:00:49,520 of undetermined coefficients. 17 00:00:49,520 --> 00:00:52,950 And specifically, the observation is if we have 18 00:00:52,950 --> 00:00:55,892 a differential equation with constant coefficients, 19 00:00:55,892 --> 00:00:58,100 and we have a forcing on the right-hand side which is 20 00:00:58,100 --> 00:01:02,110 a polynomial, then there's always going to be a particular 21 00:01:02,110 --> 00:01:07,260 solution, which is a polynomial, that has the form of some 22 00:01:07,260 --> 00:01:17,410 constant times t to the power of r plus constant t^(r-1) plus 23 00:01:17,410 --> 00:01:25,222 a constant c_(r-2) t^(r-2) plus dot, dot, dot, 24 00:01:25,222 --> 00:01:31,100 plus c_1*t and then possibly plus c_0. 25 00:01:31,100 --> 00:01:33,730 And typically, the problem is to find out 26 00:01:33,730 --> 00:01:36,560 what's the highest-order polynomial that we 27 00:01:36,560 --> 00:01:38,310 should guess. 28 00:01:38,310 --> 00:01:41,700 These constant c's, they're referred to as 29 00:01:41,700 --> 00:01:43,840 the undetermined coefficients. 30 00:01:43,840 --> 00:01:48,265 And these are the constants that we seek to solve. 31 00:01:48,265 --> 00:01:49,890 So for our first differential equation, 32 00:01:49,890 --> 00:01:59,040 we have x dot plus 3x equals t squared plus t. 33 00:01:59,040 --> 00:02:01,650 And the power that we should guess for a solution 34 00:02:01,650 --> 00:02:04,860 are, it's always going to be at least as high as the highest 35 00:02:04,860 --> 00:02:06,400 power on the right-hand side. 36 00:02:06,400 --> 00:02:09,259 So the right-hand side tells us at least the largest 37 00:02:09,259 --> 00:02:13,030 that we should at least start our guess at. 38 00:02:13,030 --> 00:02:16,536 And then, sometimes, we have to knock it up a few orders 39 00:02:16,536 --> 00:02:18,410 depending on what the lowest-order derivative 40 00:02:18,410 --> 00:02:20,470 on the left-hand side is. 41 00:02:20,470 --> 00:02:25,450 So in this case, the term on the left-hand side, 42 00:02:25,450 --> 00:02:27,722 there's no derivative term. 43 00:02:27,722 --> 00:02:29,180 And so what we can do for this case 44 00:02:29,180 --> 00:02:30,680 is we can just take r is equal to 2, 45 00:02:30,680 --> 00:02:34,120 the power of the polynomial on the right-hand side. 46 00:02:34,120 --> 00:02:38,640 So we're going to seek a guess or an ansatz, 47 00:02:38,640 --> 00:02:43,810 which is some constant A times t squared 48 00:02:43,810 --> 00:02:48,570 plus B times t plus some constant C. 49 00:02:48,570 --> 00:02:51,890 And again, I've taken the highest polynomial 50 00:02:51,890 --> 00:02:54,810 that we should guess to be 2, because the right-hand side is 51 00:02:54,810 --> 00:02:57,057 2 in this case. 52 00:02:57,057 --> 00:02:58,890 So now what we do is we just substitute this 53 00:02:58,890 --> 00:03:02,620 in into the differential equation. 54 00:03:02,620 --> 00:03:07,420 And we choose our A, B, and C to construct this as a solution. 55 00:03:07,420 --> 00:03:09,410 So let's go ahead and do that. 56 00:03:09,410 --> 00:03:17,310 So taking its derivative, we have 2A*t plus B. And then, 57 00:03:17,310 --> 00:03:25,190 we have 3 times A*t squared plus B*t plus C. 58 00:03:25,190 --> 00:03:29,015 And we want this to be equal to t squared plus t. 59 00:03:29,015 --> 00:03:30,890 And now, the only way that the left-hand side 60 00:03:30,890 --> 00:03:32,500 is going to equal the right-hand side 61 00:03:32,500 --> 00:03:34,960 is if the coefficients in front of each polynomial 62 00:03:34,960 --> 00:03:37,420 are the same. 63 00:03:37,420 --> 00:03:39,150 So in the left-hand side, we only 64 00:03:39,150 --> 00:03:42,660 have one term that has a t squared in it. 65 00:03:42,660 --> 00:03:44,850 And that must, therefore, equal the t squared term 66 00:03:44,850 --> 00:03:46,810 on the right-hand side. 67 00:03:46,810 --> 00:03:50,410 So these two terms have to be equal to each other. 68 00:03:50,410 --> 00:03:55,770 So we end up getting that 3A has to be equal 1. 69 00:03:55,770 --> 00:03:57,330 And so A is equal to one third. 70 00:04:01,060 --> 00:04:08,000 And now what we do is we collect terms with a power of t. 71 00:04:08,000 --> 00:04:14,790 This gives us 3B plus 2A on the left-hand side, 72 00:04:14,790 --> 00:04:19,300 so that's this term and this term. 73 00:04:19,300 --> 00:04:24,470 And we want that t equal t on the right-hand side or just 1. 74 00:04:24,470 --> 00:04:27,450 Now, we already know that A is equal to one third. 75 00:04:27,450 --> 00:04:34,500 So we end up getting that 3B is equal to 1 minus 2/3, 76 00:04:34,500 --> 00:04:38,880 which is equal to one third. 77 00:04:38,880 --> 00:04:42,800 Put 3B as one third, which means that B is equal to 1/9. 78 00:04:46,800 --> 00:04:49,800 And now lastly, to determine C, we 79 00:04:49,800 --> 00:04:54,410 see that B plus 3C must be 0. 80 00:04:54,410 --> 00:05:00,980 So B plus 3C is 0, or C is equal to negative 1/27. 81 00:05:03,700 --> 00:05:06,660 So notice how we always start with the highest power. 82 00:05:06,660 --> 00:05:08,640 In this case, A is the coefficient 83 00:05:08,640 --> 00:05:11,420 in front of t squared. 84 00:05:11,420 --> 00:05:12,940 That lets us solve for A. And then 85 00:05:12,940 --> 00:05:15,970 the rest of the undetermined coefficients, 86 00:05:15,970 --> 00:05:17,920 we can solve for, almost like a giant zipper. 87 00:05:22,000 --> 00:05:26,600 So the particular solution that we just constructed, 88 00:05:26,600 --> 00:05:37,065 when the dust settles is 1/3 t squared plus 1/9 t minus 1/27. 89 00:05:40,190 --> 00:05:42,770 So this concludes part A. 90 00:05:42,770 --> 00:05:46,250 For part B, we have the differential equation 91 00:05:46,250 --> 00:05:54,021 x dot dot plus x dot equals t to the four. 92 00:05:56,670 --> 00:05:59,360 And in this case, we know that the right-hand side 93 00:05:59,360 --> 00:06:02,080 is a power of four. 94 00:06:02,080 --> 00:06:04,840 So we should guess at least a fourth-order polynomial. 95 00:06:04,840 --> 00:06:09,290 However, we see that there's no constant multiple of x. 96 00:06:09,290 --> 00:06:12,074 In fact, the lowest-order derivative is 1. 97 00:06:12,074 --> 00:06:13,740 So what this means is we should actually 98 00:06:13,740 --> 00:06:18,040 knock the solution that we guess up one order polynomial. 99 00:06:18,040 --> 00:06:23,770 So we should try and guess x is equal to A t to the fifth plus 100 00:06:23,770 --> 00:06:34,540 B t to the four plus C t cubed plus D t squared plus E*t. 101 00:06:34,540 --> 00:06:36,340 And we can leave out an F term. 102 00:06:36,340 --> 00:06:38,065 We can leave out a constant. 103 00:06:38,065 --> 00:06:40,440 Because if we just substitute that in the left-hand side, 104 00:06:40,440 --> 00:06:44,630 we see that the x dot dot is going to vanish, and x dot 105 00:06:44,630 --> 00:06:45,650 is going to vanish. 106 00:06:45,650 --> 00:06:49,960 So we can omit any constant term. 107 00:06:49,960 --> 00:06:51,980 So let's seek this ansatz, and plug it 108 00:06:51,980 --> 00:06:54,520 into the differential equation. 109 00:06:54,520 --> 00:07:00,050 And if we do that, we get 20A t cubed. 110 00:07:00,050 --> 00:07:03,400 And this is plugging into the x dot dot term. 111 00:07:03,400 --> 00:07:21,190 This term is going to give us 12B t squared plus 6C*t plus D. 112 00:07:21,190 --> 00:07:28,550 And then the x dot term is going to give us 5A t to the four 113 00:07:28,550 --> 00:07:49,290 plus 4B t cubed plus 3C t squared plus 2D*t plus E. 114 00:07:49,290 --> 00:07:53,870 And we want the sum of these two terms to equal t to the four. 115 00:07:58,210 --> 00:08:01,004 So again, what we do is we start with the highest power. 116 00:08:01,004 --> 00:08:02,420 We see that on the left-hand side, 117 00:08:02,420 --> 00:08:07,380 we have 5A must be equated with just 1. 118 00:08:07,380 --> 00:08:12,190 So we have 5A is equal to 1, or A is equal to 1/5. 119 00:08:15,990 --> 00:08:21,860 Secondly, we're going to have 20A 120 00:08:21,860 --> 00:08:28,900 plus 4B equals the 0 polynomial, or the 0 which 121 00:08:28,900 --> 00:08:31,380 is the coefficient of t cubed. 122 00:08:31,380 --> 00:08:36,150 And this gives us B is equal to negative 5A, which 123 00:08:36,150 --> 00:08:36,890 is negative 1. 124 00:08:41,309 --> 00:08:50,150 And now for the quadratic terms, we have 12B plus 3C is 0. 125 00:08:50,150 --> 00:08:54,810 So C is going to equal negative 4B, which 126 00:08:54,810 --> 00:08:58,570 is negative 4 times negative 1, which just gives us 4. 127 00:09:04,890 --> 00:09:12,960 The linear term is going to give us 6C plus 2D 128 00:09:12,960 --> 00:09:20,860 equals 0, which gives us D is equal to negative 3C, 129 00:09:20,860 --> 00:09:23,880 which gives us negative 12. 130 00:09:23,880 --> 00:09:29,180 And then the last term is D plus E 131 00:09:29,180 --> 00:09:35,190 is 0, which gives us E is equal to 12. 132 00:09:35,190 --> 00:09:36,830 So at the end of the day, we end up 133 00:09:36,830 --> 00:09:41,260 with a particular solution, which 134 00:09:41,260 --> 00:09:50,210 is a polynomial of 1/5 t to the five minus 2 to the four 135 00:09:50,210 --> 00:09:56,190 plus C, which is 4, t cubed plus D, which is negative 12, 136 00:09:56,190 --> 00:10:03,870 t squared plus E, which is 12, times t. 137 00:10:03,870 --> 00:10:06,250 And by construction, this polynomial 138 00:10:06,250 --> 00:10:08,710 solves the differential equation with a forcing of t 139 00:10:08,710 --> 00:10:11,610 to the four on the right-hand side. 140 00:10:11,610 --> 00:10:15,330 So just to recap, when we're faced 141 00:10:15,330 --> 00:10:18,670 with an undetermined coefficient problem, what we have to do 142 00:10:18,670 --> 00:10:21,880 is we just guess a solution, which is a polynomial. 143 00:10:21,880 --> 00:10:24,370 And the main difficulty is just guessing the highest power 144 00:10:24,370 --> 00:10:26,100 of the polynomial. 145 00:10:26,100 --> 00:10:29,040 And that's always going to be at least as big as the polynomial 146 00:10:29,040 --> 00:10:30,420 on the right-hand side. 147 00:10:30,420 --> 00:10:32,360 But as we saw in part B, we sometimes 148 00:10:32,360 --> 00:10:35,480 have to knock it up a few orders depending 149 00:10:35,480 --> 00:10:38,610 on what the differential equation actually is. 150 00:10:38,610 --> 00:10:39,940 So I'd like to conclude here. 151 00:10:39,940 --> 00:10:42,240 And I'll see you next time.