1 00:00:00,000 --> 00:00:00,720 2 00:00:00,720 --> 00:00:04,179 In the last video we had this second order linear 3 00:00:04,179 --> 00:00:06,320 homogeneous differential equation and we just tried it 4 00:00:06,320 --> 00:00:09,699 out the solution y is equal to e to the rx. 5 00:00:09,699 --> 00:00:14,719 And we figured out that if you try that out, that it works 6 00:00:14,720 --> 00:00:16,539 for particular r's. 7 00:00:16,539 --> 00:00:18,989 And those r's, we figured out in the last one, were minus 2 8 00:00:18,989 --> 00:00:19,489 and minus 3. 9 00:00:19,489 --> 00:00:22,879 But it came out of factoring this characteristic equation. 10 00:00:22,879 --> 00:00:25,059 And watch the last video if you forgot how we got that 11 00:00:25,059 --> 00:00:26,160 characteristic equation. 12 00:00:26,160 --> 00:00:30,310 And we ended up with this general solution for this 13 00:00:30,309 --> 00:00:31,339 differential equation. 14 00:00:31,339 --> 00:00:32,439 And you could try it out if you don't 15 00:00:32,439 --> 00:00:33,840 believe me that it works. 16 00:00:33,840 --> 00:00:37,150 But what if we don't want the general solution, we want to 17 00:00:37,149 --> 00:00:38,530 find the particular solution? 18 00:00:38,530 --> 00:00:40,120 Well then we need initial conditions. 19 00:00:40,119 --> 00:00:44,879 So let's do this differential equation with some initial 20 00:00:44,880 --> 00:00:45,359 conditions. 21 00:00:45,359 --> 00:00:49,609 So let's say the initial conditions are-- we have the 22 00:00:49,609 --> 00:00:52,560 solution that we figured out in the last video. 23 00:00:52,560 --> 00:00:54,330 Let me rewrite the differential equation. 24 00:00:54,329 --> 00:01:01,329 So it was the second derivative plus 5 times the 25 00:01:01,329 --> 00:01:07,459 first derivative plus 6 times the function, is equal to 0. 26 00:01:07,459 --> 00:01:12,769 And the initial conditions we're given is that y of 0 is 27 00:01:12,769 --> 00:01:15,009 equal to 2. 28 00:01:15,010 --> 00:01:18,120 And the first derivative at 0, or y prime at 29 00:01:18,120 --> 00:01:21,640 0, is equal to 3. 30 00:01:21,640 --> 00:01:26,460 What does y equal at the point 0, and what is the slope at 31 00:01:26,459 --> 00:01:28,989 0-- at x is equal to 0-- and the slope is 3. 32 00:01:28,989 --> 00:01:32,420 So how do we use these to solve for c1 and c2? 33 00:01:32,420 --> 00:01:36,549 Well, let's just use the first initial condition. y of 0 is 34 00:01:36,549 --> 00:01:44,530 equal to 2, which is equal to-- essentially just 35 00:01:44,530 --> 00:01:47,010 substitute 0 in into this equation. 36 00:01:47,010 --> 00:01:51,670 So it's c1 times e to the minus 2 times 0, that's 37 00:01:51,670 --> 00:01:53,969 essentially e to the 0, so that's just 1. 38 00:01:53,969 --> 00:01:59,760 So it's c1 times 1, which is c1, plus c2 times e to the 39 00:01:59,760 --> 00:02:00,960 minus 3 times 0. 40 00:02:00,959 --> 00:02:03,229 This is e to the 0, so it's just 1. 41 00:02:03,230 --> 00:02:05,410 So plus c2. 42 00:02:05,409 --> 00:02:08,978 So the first equation we get when we substitute our first 43 00:02:08,979 --> 00:02:11,590 initial condition is essentially c1 plus c2 is 44 00:02:11,590 --> 00:02:13,680 equal to 2. 45 00:02:13,680 --> 00:02:16,800 Now let's apply our second initial condition that tells 46 00:02:16,800 --> 00:02:19,620 us the slope at x is equal to 0. 47 00:02:19,620 --> 00:02:21,580 So y prime is 0. 48 00:02:21,580 --> 00:02:23,170 So this is our general solution, let's take its 49 00:02:23,169 --> 00:02:25,179 derivative, and then we can use this. 50 00:02:25,180 --> 00:02:30,590 So y prime of x is equal to what? 51 00:02:30,590 --> 00:02:39,360 The derivative of this is equal to minus 2 c1 times e to 52 00:02:39,360 --> 00:02:41,760 the minus 2x. 53 00:02:41,759 --> 00:02:43,060 And what's the derivative of this? 54 00:02:43,060 --> 00:02:51,710 It's minus 3 c2 times e to the minus 3x. 55 00:02:51,710 --> 00:02:54,969 And now we can use our initial condition, y prime at 0. 56 00:02:54,969 --> 00:02:56,620 So when x is equal to 0, what's the 57 00:02:56,620 --> 00:02:57,759 right-hand side equal? 58 00:02:57,759 --> 00:03:04,129 It's minus 2 times c1 and then e to the minus 0, e to the 0, 59 00:03:04,129 --> 00:03:05,389 that's just 1. 60 00:03:05,389 --> 00:03:10,359 Minus 3 c2, and then once again x is 0, so e to the 61 00:03:10,360 --> 00:03:12,350 minus 3 times 0, that's just 1. 62 00:03:12,349 --> 00:03:14,979 So it's just 1 times minus 3 c2. 63 00:03:14,979 --> 00:03:17,919 And it tells us that when x is equal to 0, what does this 64 00:03:17,919 --> 00:03:19,579 whole derivative equal? 65 00:03:19,580 --> 00:03:21,050 Well, it equals 3, right? 66 00:03:21,050 --> 00:03:22,939 Y prime of 0 is equal to 3. 67 00:03:22,939 --> 00:03:26,990 So now we go back into your first year of algebra. 68 00:03:26,990 --> 00:03:30,100 We have two equations-- two linear equations with two 69 00:03:30,099 --> 00:03:31,840 unknowns-- and we could solve. 70 00:03:31,840 --> 00:03:33,140 Let me write them in a form that you're 71 00:03:33,139 --> 00:03:34,969 probably more used to. 72 00:03:34,969 --> 00:03:42,979 So the first one is c1 plus c2 is equal to 2. 73 00:03:42,979 --> 00:03:52,634 And the second one is minus 2 c1 minus 3 c2 is equal to 3. 74 00:03:52,634 --> 00:03:55,669 75 00:03:55,669 --> 00:03:56,389 So what can we do? 76 00:03:56,389 --> 00:03:59,229 Let's multiply this top equation by 2. 77 00:03:59,229 --> 00:04:01,259 There's a ton of ways to solve this, but if you multiply the 78 00:04:01,259 --> 00:04:04,539 top equation times 2, you'll get-- and I'll do this is a 79 00:04:04,539 --> 00:04:07,129 different color, just so that it's changed-- I'm just 80 00:04:07,129 --> 00:04:12,569 multiplying the top one by 2, you get 2 c1 plus 2 c2 is 81 00:04:12,569 --> 00:04:14,560 equal to 4. 82 00:04:14,560 --> 00:04:18,230 And now we can add these two equations. 83 00:04:18,230 --> 00:04:20,360 Minus 2 c1 plus 2, those cancel out. 84 00:04:20,360 --> 00:04:27,139 So minus 3 plus 2, you get minus c2 is equal to 7. 85 00:04:27,139 --> 00:04:33,360 Or we could say that c2 is equal to minus 7. 86 00:04:33,360 --> 00:04:34,990 And now we can substitute back in here. 87 00:04:34,990 --> 00:04:41,949 We have c1 plus c2-- c2 is minus 7-- so minus 7, is equal 88 00:04:41,949 --> 00:04:49,500 to 9, or we know that c-- oh sorry, no I'm already 89 00:04:49,500 --> 00:04:50,310 confusing myself. 90 00:04:50,310 --> 00:04:51,949 My brain was getting ahead of myself. 91 00:04:51,949 --> 00:04:56,599 c1 plus c2, that's minus 7, is equal to 2, right? 92 00:04:56,600 --> 00:04:58,340 I'm just substituting back into this differential 93 00:04:58,339 --> 00:05:00,949 equation-- sorry, to this equation, not a differential 94 00:05:00,949 --> 00:05:04,579 it's just a simple linear equation-- and then we get c1 95 00:05:04,579 --> 00:05:07,289 is equal to 9. 96 00:05:07,290 --> 00:05:10,510 And now we have our particular solution to the 97 00:05:10,509 --> 00:05:11,789 differential equation. 98 00:05:11,790 --> 00:05:13,460 So this was our general solution. 99 00:05:13,459 --> 00:05:16,239 We can just substitute our c1's and our c2's back in. 100 00:05:16,240 --> 00:05:19,079 We have our particular solution for those initial 101 00:05:19,079 --> 00:05:19,500 conditions. 102 00:05:19,500 --> 00:05:21,439 And I think that warrants a different color. 103 00:05:21,439 --> 00:05:27,009 So our particular solution is y of x is equal to c1, which 104 00:05:27,009 --> 00:05:34,189 we figured out is 9e to the minus 2x, plus c2-- well, c2 105 00:05:34,189 --> 00:05:41,230 is minus 7-- minus 7e to the minus 3x. 106 00:05:41,230 --> 00:05:44,509 That is the particular solution to our original 107 00:05:44,509 --> 00:05:45,414 differential equation. 108 00:05:45,415 --> 00:05:48,230 And it might be a good exercise for you to actually 109 00:05:48,230 --> 00:05:48,975 test it out. 110 00:05:48,975 --> 00:05:53,439 This particular solution to this differential equation. 111 00:05:53,439 --> 00:05:56,160 I'll do another example in the next video. 112 00:05:56,160 --> 00:05:57,790 I'll see you soon. 113 00:05:57,790 --> 00:05:58,500