1 00:00:07,280 --> 00:00:09,110 PROFESSOR: Welcome back to recitation. 2 00:00:09,110 --> 00:00:11,300 In this video what we'd like to do 3 00:00:11,300 --> 00:00:13,500 is to solve a certain differential equation. 4 00:00:13,500 --> 00:00:15,660 And I'm not even giving you initial condition. 5 00:00:15,660 --> 00:00:19,840 So we just want to find a y, such that x times dy/dx 6 00:00:19,840 --> 00:00:22,969 is equal to x squared plus x times y squared plus 1. 7 00:00:22,969 --> 00:00:24,760 So I'll give you a minute to think about it 8 00:00:24,760 --> 00:00:25,676 and then I'll be back. 9 00:00:34,120 --> 00:00:35,450 Welcome back. 10 00:00:35,450 --> 00:00:38,500 I'm going to use the technique of separation of variables 11 00:00:38,500 --> 00:00:40,512 to solve this differential equation problem. 12 00:00:40,512 --> 00:00:42,470 Hopefully you thought about doing that as well. 13 00:00:42,470 --> 00:00:44,090 Because it's really set up nicely 14 00:00:44,090 --> 00:00:45,930 for separation of variables. 15 00:00:45,930 --> 00:00:50,622 So let me let me first get all of the values, 16 00:00:50,622 --> 00:00:53,450 or terms that involve y on the left-hand side. 17 00:00:53,450 --> 00:00:56,420 And then I'm going to move the dx to the right-hand side 18 00:00:56,420 --> 00:00:58,730 and get all the terms that involve 19 00:00:58,730 --> 00:01:00,390 x to the right-hand side. 20 00:01:00,390 --> 00:01:04,130 So I'm going to write dy divided by y 21 00:01:04,130 --> 00:01:09,920 squared plus 1 is equal to-- so I'm going to multiply through 22 00:01:09,920 --> 00:01:11,800 by dx divided by x. 23 00:01:11,800 --> 00:01:16,200 So I'm going to get x squared plus x over x dx. 24 00:01:16,200 --> 00:01:18,624 Now if x is 0, I have a little problem 25 00:01:18,624 --> 00:01:20,540 but we're going to ignore that for the moment. 26 00:01:20,540 --> 00:01:27,420 So I can rewrite this as x plus 1 dx. 27 00:01:27,420 --> 00:01:31,040 And now I'm totally set up with my next step 28 00:01:31,040 --> 00:01:34,340 in separation of variables and so I can integrate both sides. 29 00:01:34,340 --> 00:01:37,710 So let's see what happens when I integrate the left-hand side. 30 00:01:37,710 --> 00:01:40,370 OK? 31 00:01:40,370 --> 00:01:44,020 What is an antiderivative to 1 over y squared plus 1? 32 00:01:44,020 --> 00:01:47,580 Well that's arctangent, that's arctangent of y. 33 00:01:47,580 --> 00:01:49,510 So the derivative of arctangent of y 34 00:01:49,510 --> 00:01:51,640 is 1 over y squared plus 1. 35 00:01:51,640 --> 00:01:54,110 And so on the left-hand side I get arctan y. 36 00:02:01,790 --> 00:02:05,680 If you wrote tangent to the minus 1 y, 37 00:02:05,680 --> 00:02:07,820 that's the same thing, the inverse tangent of y, 38 00:02:07,820 --> 00:02:09,570 that's the same thing. 39 00:02:09,570 --> 00:02:11,570 And on the right-hand side what do I get? 40 00:02:11,570 --> 00:02:15,360 Well this is a nice easy thing to integrate. 41 00:02:15,360 --> 00:02:17,960 When I integrate x, I get x squared over 2. 42 00:02:17,960 --> 00:02:19,320 And here I just get an x. 43 00:02:19,320 --> 00:02:22,610 And then I should add in my constants. 44 00:02:22,610 --> 00:02:27,780 So x squared over 2 plus x plus a constant. 45 00:02:27,780 --> 00:02:31,390 So this is, so far I'm doing everything OK. 46 00:02:31,390 --> 00:02:33,600 Now I need to figure out how to isolate the y. 47 00:02:33,600 --> 00:02:36,870 Well arctan y is the inverse of the tangent function. 48 00:02:36,870 --> 00:02:39,390 So if I want to isolate y I have to take 49 00:02:39,390 --> 00:02:40,950 the tangent of both sides. 50 00:02:40,950 --> 00:02:44,200 So when I take tangent of arctangent of y I just get y. 51 00:02:44,200 --> 00:02:52,056 Then over here, I get tangent of x squared over 2 plus x plus C. 52 00:02:52,056 --> 00:02:54,430 And now because I didn't give you any initial conditions, 53 00:02:54,430 --> 00:02:57,160 we can't say anything about C. But if I gave you 54 00:02:57,160 --> 00:03:00,510 some initial conditions then we could evaluate and solve for C. 55 00:03:00,510 --> 00:03:03,030 Now how do I go about checking to make sure that this works? 56 00:03:03,030 --> 00:03:05,330 Well, what I do is actually take the derivative. 57 00:03:05,330 --> 00:03:08,020 So you may want to take the derivative 58 00:03:08,020 --> 00:03:11,410 of the right-hand side, take dy/dx. 59 00:03:11,410 --> 00:03:14,630 Evaluate what that is when you have y 60 00:03:14,630 --> 00:03:17,300 equals tangent of x squared over 2 plus x plus C 61 00:03:17,300 --> 00:03:20,900 and see if you in fact get the relationship you're 62 00:03:20,900 --> 00:03:22,220 supposed to get. 63 00:03:22,220 --> 00:03:23,437 But I'll stop there.