1 00:00:00,000 --> 00:00:00,590 2 00:00:00,590 --> 00:00:03,599 OK, I filled your brain with a bunch of partial derivatives 3 00:00:03,600 --> 00:00:05,919 and psi's, with respect to x's and y's. 4 00:00:05,919 --> 00:00:09,820 I think now it's time to actually do it with a real 5 00:00:09,820 --> 00:00:11,400 differential equation, and make things a 6 00:00:11,400 --> 00:00:12,195 little bit more concrete. 7 00:00:12,195 --> 00:00:16,640 So let's say I have the differential, y, the 8 00:00:16,640 --> 00:00:24,570 differential equation, y cosine of x, plus 2xe to the 9 00:00:24,570 --> 00:00:34,359 y, plus sine of x, plus-- I'm already running out of space-- 10 00:00:34,359 --> 00:00:40,140 x squared, e to the y, minus 1, times y 11 00:00:40,140 --> 00:00:42,969 prime, is equal to 0. 12 00:00:42,969 --> 00:00:46,089 Well, your brain is already, hopefully, in exact 13 00:00:46,090 --> 00:00:47,310 differential equations mode. 14 00:00:47,310 --> 00:00:49,510 But if you were to see this pattern in general, where you 15 00:00:49,509 --> 00:00:53,689 see a function of x and y, here-- this is just some 16 00:00:53,689 --> 00:00:56,869 function of x and y-- and then you have another function of x 17 00:00:56,869 --> 00:01:00,439 and y, times y prime, or times dy, d of x, your brain should 18 00:01:00,439 --> 00:01:01,949 immediately say if this is inseparable. 19 00:01:01,950 --> 00:01:04,180 And I'm not going to try to make it separable, just 20 00:01:04,180 --> 00:01:05,530 because that'll take a lot of time. 21 00:01:05,530 --> 00:01:07,460 But if it's not separable, your brain said, oh, maybe 22 00:01:07,459 --> 00:01:08,849 this is an exact equation. 23 00:01:08,849 --> 00:01:11,349 And, you say, let me test whether 24 00:01:11,349 --> 00:01:13,039 this is an exact equation. 25 00:01:13,040 --> 00:01:16,300 So if this is an exact equation, this is our function 26 00:01:16,299 --> 00:01:19,159 M, which is a function of x and y. 27 00:01:19,159 --> 00:01:21,670 And this is our function N, which is a 28 00:01:21,670 --> 00:01:23,140 function of x and y. 29 00:01:23,140 --> 00:01:25,700 Now, the test is to see if the partial of this, with respect 30 00:01:25,700 --> 00:01:30,290 to y, is equal to the partial of this, with respect to x. 31 00:01:30,290 --> 00:01:31,420 So let's see. 32 00:01:31,420 --> 00:01:36,240 The partial of M, with respect to y, is equal to-- let's see, 33 00:01:36,239 --> 00:01:39,479 y is-- so this cosine of x is just a constant, so it's just 34 00:01:39,480 --> 00:01:42,460 cosine of x. 35 00:01:42,459 --> 00:01:47,609 Cosine of x plus-- now, what's the derivative? 36 00:01:47,609 --> 00:01:49,724 Well, 2x is just a constant, what's the derivative of e to 37 00:01:49,724 --> 00:01:50,819 the y, with respect to y? 38 00:01:50,819 --> 00:01:53,349 Well, it's just e to the y, right? 39 00:01:53,349 --> 00:01:56,109 So we have the constant on the outside, 2x times the 40 00:01:56,109 --> 00:01:58,810 derivative, with respect to y, so it's 2xe to the y. 41 00:01:58,810 --> 00:01:59,909 Fair enough. 42 00:01:59,909 --> 00:02:01,429 Now, what is the partial derivative of this, with 43 00:02:01,430 --> 00:02:02,950 respect to x? 44 00:02:02,950 --> 00:02:09,099 So N sub x, or the partial of N, with respect to x-- so 45 00:02:09,099 --> 00:02:11,359 what's the derivative of sine of x, with respect to x? 46 00:02:11,360 --> 00:02:17,630 Well, that's easy, that's cosine of x, plus 2x times e 47 00:02:17,629 --> 00:02:19,829 to the y, right? e and y is just a constant, because y is 48 00:02:19,830 --> 00:02:22,030 constant when we're taking the partial, with respect to x. 49 00:02:22,030 --> 00:02:26,550 So plus 2xe to the y. 50 00:02:26,550 --> 00:02:28,800 And then minus 1, the derivative of a constant, with 51 00:02:28,800 --> 00:02:31,450 respect to anything is going to be 0. 52 00:02:31,449 --> 00:02:34,310 So the derivative of N-- the partial of N, with respect to 53 00:02:34,310 --> 00:02:38,460 x, is cosine of x, plus 2xe to the y, which, lo and behold, 54 00:02:38,460 --> 00:02:41,000 is the same thing as the derivative, the partial of M, 55 00:02:41,000 --> 00:02:43,120 with respect to y. 56 00:02:43,120 --> 00:02:44,189 So there we have it. 57 00:02:44,189 --> 00:02:48,859 We've shown that M of y is equal to-- or the partial of 58 00:02:48,860 --> 00:02:52,230 M, with respect to y-- is equal to the partial of N, 59 00:02:52,229 --> 00:02:55,509 with respect to x, which tells us that 60 00:02:55,509 --> 00:02:59,039 this is an exact equation. 61 00:02:59,039 --> 00:03:06,379 Now, given that this is an exact equation-- oh, my wife 62 00:03:06,379 --> 00:03:08,120 snuck up behind me, I was wondering. 63 00:03:08,120 --> 00:03:09,150 I thought there was some critter in 64 00:03:09,150 --> 00:03:09,819 my house, or something. 65 00:03:09,819 --> 00:03:13,439 Anyway, so we know that this is an exact equation, so what 66 00:03:13,439 --> 00:03:14,020 does that tell us? 67 00:03:14,020 --> 00:03:17,990 Well, that tells us that there's some psi, where the 68 00:03:17,990 --> 00:03:22,060 partial derivative of psi, with respect to x, is equal to 69 00:03:22,060 --> 00:03:26,420 M, and the partial derivative of psi, with respect to y, is 70 00:03:26,419 --> 00:03:27,599 equal to N. 71 00:03:27,599 --> 00:03:30,799 And if we know that psi, then we can rewrite our 72 00:03:30,800 --> 00:03:35,090 differential equation as the derivative of psi, with 73 00:03:35,090 --> 00:03:38,450 respect to x, is equal to 0. 74 00:03:38,449 --> 00:03:40,789 So let's solve for psi. 75 00:03:40,789 --> 00:03:43,764 So we know that the partial of psi, with respect to x, is 76 00:03:43,764 --> 00:03:44,389 equal to M. 77 00:03:44,389 --> 00:03:45,159 So we could write that. 78 00:03:45,159 --> 00:03:50,819 We could write the partial of psi, with respect to x, is 79 00:03:50,819 --> 00:04:01,109 equal to M, which is y cosine of x, plus 2xe to the y. 80 00:04:01,110 --> 00:04:01,600 That's just here. 81 00:04:01,599 --> 00:04:02,569 That's my M of x. 82 00:04:02,569 --> 00:04:03,439 We could have done it the other way. 83 00:04:03,439 --> 00:04:06,159 We could have said the partial of y-- the partial of psi, 84 00:04:06,159 --> 00:04:08,219 with respect to y, is this thing over here. 85 00:04:08,219 --> 00:04:10,430 But let's just do it with x. 86 00:04:10,430 --> 00:04:14,909 Now, to at least get kind of a first approximation of what 87 00:04:14,909 --> 00:04:16,930 size-- not an approximation, but to start to get a sense of 88 00:04:16,930 --> 00:04:19,829 it-- let's take the derivative of both sides, with respect 89 00:04:19,829 --> 00:04:22,000 to-- sorry, take the antiderivative-- take the 90 00:04:22,000 --> 00:04:25,269 integral of both sides, with respect to x. 91 00:04:25,269 --> 00:04:28,279 So if you take the derivative of this, with respect to x, if 92 00:04:28,279 --> 00:04:30,799 you integrate-- sorry, if you were to take the 93 00:04:30,800 --> 00:04:34,220 antiderivative of this, with respect to x. 94 00:04:34,220 --> 00:04:36,836 So let me just write that down. 95 00:04:36,836 --> 00:04:38,520 The partial, with respect to x. 96 00:04:38,519 --> 00:04:39,359 We're going to [? integrate ?] 97 00:04:39,360 --> 00:04:40,819 it, with respect to x. 98 00:04:40,819 --> 00:04:45,029 That is going to be equal to the integral of this whole 99 00:04:45,029 --> 00:04:46,819 thing, with respect to x. 100 00:04:46,819 --> 00:04:51,939 Cosine of x plus 2xe to the y. 101 00:04:51,939 --> 00:04:53,870 We're integrating with respect to x. 102 00:04:53,870 --> 00:04:57,220 And normally when you integrate with respect to x, 103 00:04:57,220 --> 00:04:59,430 you'd say, OK, plus c, right? 104 00:04:59,430 --> 00:05:03,000 But it actually could be a plus-- since this is a 105 00:05:03,000 --> 00:05:05,740 partial, with respect to x, we could have had some function 106 00:05:05,740 --> 00:05:09,045 of y here in general, because y, we treat it 107 00:05:09,045 --> 00:05:10,730 as a constant, right? 108 00:05:10,730 --> 00:05:12,300 And that makes sense, because if you were to take the 109 00:05:12,300 --> 00:05:15,110 partial of both sides of this, with respect to x, if you were 110 00:05:15,110 --> 00:05:17,430 to take the partial of a function that is only a 111 00:05:17,430 --> 00:05:19,420 function of y, with respect to x, you would 112 00:05:19,420 --> 00:05:20,879 have gotten a 0 here. 113 00:05:20,879 --> 00:05:22,199 So when you take the antiderivative, you were, 114 00:05:22,199 --> 00:05:24,189 like, oh well, there might have been some function of y 115 00:05:24,189 --> 00:05:26,779 here that we lost when we took the partial, 116 00:05:26,779 --> 00:05:28,789 with respect to x. 117 00:05:28,790 --> 00:05:34,689 So anyway, this will simplify to psi. 118 00:05:34,689 --> 00:05:37,709 psi is going to be equal to the integral, with respect to 119 00:05:37,709 --> 00:05:40,339 x, or the antiderivative, with respect to x, here, plus some 120 00:05:40,339 --> 00:05:44,129 function of y that we might have lost when we took the 121 00:05:44,129 --> 00:05:46,519 partial, with respect to x. 122 00:05:46,519 --> 00:05:47,259 So let's do that. 123 00:05:47,259 --> 00:05:49,259 Let's figure out this integral. 124 00:05:49,259 --> 00:05:52,889 I'll do it in blue So y is just a constant. 125 00:05:52,889 --> 00:05:57,310 So the antiderivative of y cosine of x, is just y sine of 126 00:05:57,310 --> 00:06:04,019 x, plus-- either the y is constant, so 2x. 127 00:06:04,019 --> 00:06:06,060 The antiderivative of 2x, with respect to x, is x squared, so 128 00:06:06,060 --> 00:06:10,920 it's x squared e to the y. 129 00:06:10,920 --> 00:06:18,439 And then plus some function of y. 130 00:06:18,439 --> 00:06:20,540 And if you want to verify this, you should take the 131 00:06:20,540 --> 00:06:22,080 partial of this, with respect to x. 132 00:06:22,079 --> 00:06:24,199 If you take the partial of this, with respect to x, 133 00:06:24,199 --> 00:06:27,779 you're going to get this in here, which is our function, 134 00:06:27,779 --> 00:06:30,309 M, up here. 135 00:06:30,310 --> 00:06:32,189 And then when you take the partial of this, with respect 136 00:06:32,189 --> 00:06:34,719 to x, you'll get 0, and it'll get lost. OK, so 137 00:06:34,720 --> 00:06:35,430 we're almost there. 138 00:06:35,430 --> 00:06:38,269 We've almost figured out our psi, but we still need to 139 00:06:38,269 --> 00:06:42,029 figure out this function of y. 140 00:06:42,029 --> 00:06:43,879 Well, we know that if we take the partial of this, with 141 00:06:43,879 --> 00:06:47,339 respect to y, since this is an exact equation, 142 00:06:47,339 --> 00:06:48,209 we should get this. 143 00:06:48,209 --> 00:06:49,409 We should get our N function. 144 00:06:49,410 --> 00:06:51,150 So let's do that. 145 00:06:51,149 --> 00:06:55,539 So the partial-- I'll switch notation, just to expose you 146 00:06:55,540 --> 00:06:58,340 to it-- the partial psi, with respect to y, is going to be 147 00:06:58,339 --> 00:07:02,159 equal to-- so here, y sine of x, sine of x is just a 148 00:07:02,160 --> 00:07:04,420 constant. y is just y, so the derivative of this, with 149 00:07:04,420 --> 00:07:06,030 respect to y, is just sine of x. 150 00:07:06,029 --> 00:07:08,919 151 00:07:08,920 --> 00:07:12,300 Plus the derivative of e to the y is e to the y. x squared 152 00:07:12,300 --> 00:07:12,949 is just a constant. 153 00:07:12,949 --> 00:07:18,599 So it's just x squared e to the y, plus-- what's the 154 00:07:18,600 --> 00:07:21,120 partial of f of y, with respect to y? 155 00:07:21,120 --> 00:07:26,899 It's going to be f prime of y. 156 00:07:26,899 --> 00:07:27,529 Well, what did we do? 157 00:07:27,529 --> 00:07:31,229 We took M, we integrated with respect to x, and we said, 158 00:07:31,230 --> 00:07:33,270 well, we might have lost some function of y, so we added 159 00:07:33,269 --> 00:07:34,060 that to it. 160 00:07:34,060 --> 00:07:37,740 And then we took the partial of that side that we've almost 161 00:07:37,740 --> 00:07:40,470 constructed, and we took the partial of that, 162 00:07:40,470 --> 00:07:42,040 with respect to y. 163 00:07:42,040 --> 00:07:44,939 Now, we know, since this is exact, that that is going to 164 00:07:44,939 --> 00:07:46,959 equal our N. 165 00:07:46,959 --> 00:07:48,669 So our N is up there. 166 00:07:48,670 --> 00:07:52,585 Cosine of x plus-- So that's going to be equal to-- I want 167 00:07:52,584 --> 00:07:57,719 to make sure I can read it up there-- to our N, right? 168 00:07:57,720 --> 00:07:58,390 Oh no, sorry. 169 00:07:58,389 --> 00:07:59,930 N is up here. 170 00:07:59,930 --> 00:08:00,540 Our N is up here. 171 00:08:00,540 --> 00:08:03,150 Sine of x-- let me write that-- sine of x plus x 172 00:08:03,149 --> 00:08:05,449 squared, e to the y, minus 1. 173 00:08:05,449 --> 00:08:13,759 So sine of x plus x squared, e to the y, minus 1. 174 00:08:13,759 --> 00:08:17,819 175 00:08:17,819 --> 00:08:19,349 That was just our N, from our original 176 00:08:19,350 --> 00:08:21,470 differential equation. 177 00:08:21,470 --> 00:08:23,720 And now we can solve for f prime of y. 178 00:08:23,720 --> 00:08:31,010 So let's see, we get sine of x plus x squared, e to the y, 179 00:08:31,009 --> 00:08:39,364 plus f prime of y, is equal to sine of x plus x squared, e to 180 00:08:39,364 --> 00:08:42,149 the y, minus 1. 181 00:08:42,149 --> 00:08:45,600 So let's see, we can delete sine of x from both sides. 182 00:08:45,600 --> 00:08:48,639 We can delete x squared e to the y from both sides. 183 00:08:48,639 --> 00:08:49,740 And then what are we left with? 184 00:08:49,740 --> 00:08:55,750 We're left with f prime of y is equal to 1. 185 00:08:55,750 --> 00:09:03,610 And then we're left with f of y is equal to-- well, it 186 00:09:03,610 --> 00:09:11,720 equals y plus some constant, c, right? 187 00:09:11,720 --> 00:09:14,350 So what is our psi now? 188 00:09:14,350 --> 00:09:17,040 We wrote our psi up here, and we had this f of y here, so we 189 00:09:17,039 --> 00:09:17,599 can rewrite it now. 190 00:09:17,600 --> 00:09:20,639 So psi is a function of x and y-- we're actually pretty much 191 00:09:20,639 --> 00:09:24,240 almost done solving it-- psi is a function of x and y is 192 00:09:24,240 --> 00:09:41,009 equal to y sine of x, plus x squared, e to the y, plus y-- 193 00:09:41,009 --> 00:09:42,860 oh, sorry, this is f prime of y, minus 1. 194 00:09:42,860 --> 00:09:44,330 So this is a minus 1. 195 00:09:44,330 --> 00:09:46,350 So this is a minus y plus c. 196 00:09:46,350 --> 00:09:49,370 So this is going to be a minus y plus c. 197 00:09:49,370 --> 00:09:51,560 So we've solved for psi. 198 00:09:51,559 --> 00:09:52,799 And so what does that tell us? 199 00:09:52,799 --> 00:09:55,389 Well, we said that original differential equation, up 200 00:09:55,389 --> 00:09:59,389 here, using the partial derivative chain rule, that 201 00:09:59,389 --> 00:10:03,269 original differential equation, can be rewritten now 202 00:10:03,269 --> 00:10:10,740 as the derivative dx of psi is equal to-- psi is a function 203 00:10:10,740 --> 00:10:14,570 of x and y-- is equal to 0. 204 00:10:14,570 --> 00:10:17,560 Or if you were to integrate both sides of this, you would 205 00:10:17,559 --> 00:10:26,629 get that psi of xy is equal to c is a solution of that 206 00:10:26,629 --> 00:10:27,429 differential equation. 207 00:10:27,429 --> 00:10:30,019 So if we were to set this is equal to c, that's the 208 00:10:30,019 --> 00:10:30,699 differential equation. 209 00:10:30,700 --> 00:10:37,530 So we could say, y sine of x plus x squared, e to the y, 210 00:10:37,529 --> 00:10:42,889 minus y-- now we could say, plus this c-- plus this c, you 211 00:10:42,889 --> 00:10:44,990 call it c1, is equal to c2. 212 00:10:44,990 --> 00:10:47,143 Well, you could subtract the c's from both sides, and just 213 00:10:47,143 --> 00:10:48,519 be left with a c at the end. 214 00:10:48,519 --> 00:10:53,379 But anyway, we have solved this exact equation, one, 215 00:10:53,379 --> 00:10:57,220 first, by recognizing it was exact, by taking the partial 216 00:10:57,220 --> 00:11:01,670 of this, with respect to y, and seeing if that was equal 217 00:11:01,669 --> 00:11:04,110 to the partial of N, with respect to x. 218 00:11:04,110 --> 00:11:07,000 Once we saw that they were equal, we're like, OK, this is 219 00:11:07,000 --> 00:11:08,090 going to be exact. 220 00:11:08,090 --> 00:11:09,850 So let's figure out psi. 221 00:11:09,850 --> 00:11:13,340 Since this is exact, M is going to be the partial of 222 00:11:13,340 --> 00:11:15,000 psi, with respect to x. 223 00:11:15,000 --> 00:11:17,700 N is the partial of psi, with respect to y. 224 00:11:17,700 --> 00:11:21,570 Then to figure out y, we integrated M, with respect to 225 00:11:21,570 --> 00:11:25,129 x, and we got this. 226 00:11:25,129 --> 00:11:27,500 But since we said, oh, well, instead of a plus c, it could 227 00:11:27,500 --> 00:11:29,519 have been a function of y there, because we took the 228 00:11:29,519 --> 00:11:32,139 partial, with respect to x, so this might have been lost. To 229 00:11:32,139 --> 00:11:36,100 figure out the function of y, we then took our psi that we 230 00:11:36,100 --> 00:11:37,960 figured out, took the partial of that, with 231 00:11:37,960 --> 00:11:40,290 respect to y, got this. 232 00:11:40,289 --> 00:11:42,449 And we said, this was an exact equation, so this is going to 233 00:11:42,450 --> 00:11:45,710 equal our N of x y. 234 00:11:45,710 --> 00:11:47,750 We set those equal to each other, and then we 235 00:11:47,750 --> 00:11:50,419 solved for f of y. 236 00:11:50,419 --> 00:11:52,689 And then we had our final psi. 237 00:11:52,690 --> 00:11:54,320 Our final psi was this. 238 00:11:54,320 --> 00:11:58,500 And then the differential equation, because of the chain 239 00:11:58,500 --> 00:12:01,269 rule of partial derivatives, we could rewrite the 240 00:12:01,269 --> 00:12:02,329 differential equation as this. 241 00:12:02,330 --> 00:12:05,000 The solution is this, and so this is the solution to our 242 00:12:05,000 --> 00:12:06,509 differential equation. 243 00:12:06,509 --> 00:12:08,779 See you in the next video. 244 00:12:08,779 --> 00:12:09,000