1 00:00:00,710 --> 00:00:04,770 I'm going to discuss the solution for differential equations in Matlab. 2 00:00:04,950 --> 00:00:10,150 The first code is you will die Sims d d solve and insert the parenthesis. 3 00:00:10,160 --> 00:00:14,570 You will write inside the double quotation marks okay. 4 00:00:14,880 --> 00:00:15,530 Due to y. 5 00:00:15,540 --> 00:00:22,020 Which means that it is second order differential equation plus Y is equal to ores instead apprentices 6 00:00:22,560 --> 00:00:28,190 will write to D to static T means to multiply by T. 7 00:00:28,290 --> 00:00:32,910 So after besting the intermittent you will get the required solution after differential allocation. 8 00:00:33,630 --> 00:00:39,640 Okay you can write it just like simplify answer means the answer that you will get. 9 00:00:39,670 --> 00:00:42,360 You will get that answer in simpler simplified form. 10 00:00:42,360 --> 00:00:46,790 Also you can get that answer and petty inside the plans to write on. 11 00:00:46,860 --> 00:00:51,060 Okay let me check it in MATLAB how this code works in Matlab. 12 00:00:52,050 --> 00:01:06,640 Similarly Sims dy and d solve inside the double quotation mark you will write these two y plus y is 13 00:01:06,640 --> 00:01:18,680 equal to cause and this is to D Okay and after best thing the interpreter you will get this solution 14 00:01:18,770 --> 00:01:23,880 and you can see that this solution is not in simplified form. 15 00:01:23,990 --> 00:01:31,690 You will just type all here simplify and inside the parenthesis you will write ons of the best in the 16 00:01:31,680 --> 00:01:34,670 interpreter button you will get the simplified answer. 17 00:01:34,670 --> 00:01:36,290 So this is simplified answer. 18 00:01:36,290 --> 00:01:44,180 You can also get the correct answer so you'll type already inside the parenthesis work by ons. 19 00:01:44,270 --> 00:01:46,270 So this is your pretty answer. 20 00:01:46,420 --> 00:01:52,790 Okay now we take another court and this is r same court not a different court. 21 00:01:53,120 --> 00:01:59,390 But here we are taking the initial conditions initial conditions R B Y at zero is equal to zero and 22 00:01:59,390 --> 00:02:01,970 y and zero is equal to 1. 23 00:02:02,660 --> 00:02:03,560 Okay. 24 00:02:03,710 --> 00:02:10,950 The same goal is and we will not check that how this could work in MATLAB that initial conditions. 25 00:02:10,970 --> 00:02:19,700 Okay so just like this all inside the parenthesis there would be two are you can see a number of additional 26 00:02:19,700 --> 00:02:28,530 LOC and inside the number additional light where I need two way plus Y is equal to class 2 to D and 27 00:02:29,220 --> 00:02:34,620 now you will type D Y at 0 is equal to zero. 28 00:02:36,240 --> 00:02:42,030 Yes this is initial condition and Y at zero is equal to 1. 29 00:02:42,320 --> 00:02:49,190 Yes best the interpreter you will get the right answer. 30 00:02:49,820 --> 00:02:50,040 Okay. 31 00:02:50,050 --> 00:02:54,170 Simplify answer I mean that your answer will be simplified on. 32 00:02:54,250 --> 00:02:58,990 Okay so this is your simplified answers with initial conditions. 33 00:02:58,990 --> 00:03:04,330 Remember that this answer is with initial conditions. 34 00:03:04,530 --> 00:03:07,230 Okay so this is your pretty answer. 35 00:03:09,610 --> 00:03:09,880 Okay. 36 00:03:09,890 --> 00:03:15,100 And our solution for differential equations with n and the core this is and record in this score he 37 00:03:15,100 --> 00:03:23,140 will type a physical to add a bit inside the parenthesis decode the way minus y plus two t to multiply 38 00:03:23,140 --> 00:03:32,050 by D and D F is equal to two why not is equal to 1 inside the scope record he will write D Y is equal 39 00:03:32,050 --> 00:03:33,310 to all 45. 40 00:03:33,460 --> 00:03:41,590 Remember this is all 45 not forty five and inside this parenthesis you will write f comma zero to F 41 00:03:41,620 --> 00:03:44,970 and zero G F will be in thus good because comma why is it. 42 00:03:45,010 --> 00:03:55,270 Why not blot d come away and X label y level you will just type as you can check this scored clearly 43 00:03:55,710 --> 00:03:59,890 okay no see that whole discord of work in Matlab. 44 00:04:00,220 --> 00:04:01,540 Okay let 45 00:04:08,330 --> 00:04:17,900 physical drama that it take them away minus a y plus two multiplied by D the same code you can paste 46 00:04:17,900 --> 00:04:19,310 over here. 47 00:04:19,310 --> 00:04:28,640 OK I will upload dot all the images and from that images you can copy and after copying you can paste 48 00:04:28,700 --> 00:04:35,690 in your Matlab software and then you can take that either this code work or not. 49 00:04:35,720 --> 00:04:45,630 If this could work then what you get OK so I am writing the same go that I have described in the previous 50 00:04:45,630 --> 00:04:47,330 slide. 51 00:04:47,760 --> 00:04:51,240 So this is D is equal to or. 52 00:04:51,300 --> 00:05:01,180 What if life OK so it is f comma yes. 53 00:05:01,430 --> 00:05:03,220 I will type 0. 54 00:05:03,260 --> 00:05:07,700 D F and no one right. 55 00:05:07,780 --> 00:05:09,520 Why not. 56 00:05:09,520 --> 00:05:24,010 Why 0 and semicolons blocked inside the parentheses you will right Dickerman y semicolon and X label 57 00:05:24,790 --> 00:05:35,720 inside the parenthesis with a double quotation marks you will write D and why label okay why label inside 58 00:05:35,750 --> 00:05:46,630 the apprentices you will write with the double quotation mark complaint of D Yes this is way off D and 59 00:05:46,670 --> 00:05:52,860 to no semicolon yes. 60 00:05:53,120 --> 00:06:02,020 On no run discord and benefit will run discord you will get this on set. 61 00:06:02,120 --> 00:06:12,170 Okay so since we would write plot so this is your plotting okay the required plotting of discord okay 62 00:06:12,670 --> 00:06:21,360 D and a way of D Okay horizontal and what it would take another record in this chord seems y affects 63 00:06:21,390 --> 00:06:29,810 these ways the control differential of like on my x fun is a to differentiate y x2 is equal to class 64 00:06:29,810 --> 00:06:36,710 to X minus Y solve is equal to be solved and so the points as you will write fun simplify answer and 65 00:06:36,710 --> 00:06:37,760 pretty answer the same. 66 00:06:38,180 --> 00:06:46,170 Okay so this is the court no we type this code are copy paste in the matlab and we check that what is 67 00:06:46,180 --> 00:06:48,580 the solution of this differential equation. 68 00:06:48,770 --> 00:07:02,150 Okay here we are writing the Sims Way of X and no you are type D Y just like dy ways equal to differential 69 00:07:02,150 --> 00:07:16,250 of y como X and yes no it is way X only okay y comics remember that this is like on X not why X label. 70 00:07:16,430 --> 00:07:20,260 Okay yes one is equal to differential. 71 00:07:20,320 --> 00:07:28,630 Okay I will make it correct in the next one is equal differential Viacom or X come comma to the same 72 00:07:28,630 --> 00:07:36,130 core we are typing over here that we have study in the previous lt is equal to is equal to two time 73 00:07:36,160 --> 00:07:47,980 who will write equal odds and inside the apprentices you will write to X to multiply by x yes and no 74 00:07:48,490 --> 00:07:58,330 you can solve is equal to dissolve instead of function simplify the function so this is your right answer 75 00:07:59,380 --> 00:08:01,610 another code for loop last transfer. 76 00:08:01,660 --> 00:08:12,820 Okay so this is simple D and LA plus of 10 plus two T plus five sine 40 pretty and so yeah of course 77 00:08:13,030 --> 00:08:19,750 it is right a simple chord OK you can see that you will just type LA plus an inside the parenthesis 78 00:08:19,750 --> 00:08:27,510 you will write the given functions that there are two you want to find the LA plus of there to LA plus. 79 00:08:27,610 --> 00:08:34,080 OK so then plus two two plus five sine 40 is the required functions on which you point to find that 80 00:08:34,080 --> 00:08:38,400 the plus which that hold this could work in MATLAB 81 00:08:42,470 --> 00:08:55,210 you can copy are based in MATLAB hard you can type this like since yes D and plus yes you will table 82 00:08:55,280 --> 00:09:13,700 here the same code then plus it will be to t yes 10 plus two multiplied by a D plus sign it is sign 83 00:09:15,950 --> 00:09:26,650 it is five sign five multiply by saying sorry five multiply by sign for T Yes. 84 00:09:26,880 --> 00:09:35,960 And after that press the enter button and you can find the solution. 85 00:09:36,080 --> 00:09:38,750 OK so this is the solutions. 86 00:09:38,750 --> 00:09:46,530 But before seeing the solution you'll write pretty pretty on OK and no press the enter button. 87 00:09:46,550 --> 00:09:47,930 Now we check that orders lancer. 88 00:09:48,040 --> 00:09:48,270 OK. 89 00:09:48,330 --> 00:09:51,180 So this is your set and it's called 90 00:09:54,710 --> 00:09:58,040 No we will change it. 91 00:09:58,040 --> 00:10:04,250 And now we find that in Wasilla plus this so this is the court father in Wasilla plus you will die. 92 00:10:04,280 --> 00:10:13,240 Same sex I I love plus a Law plus means that in Wasilla loss of 60 vote by X plus 2 Yes. 93 00:10:13,400 --> 00:10:18,340 You were my escape last sixteen minus four divided by Esquire. 94 00:10:18,500 --> 00:10:24,910 You will type these solve inside the parenthesis you will write D Y is equal to 1. 95 00:10:25,160 --> 00:10:27,180 Plus why a skier. 96 00:10:27,290 --> 00:10:28,870 Okay and why are it equal to one. 97 00:10:28,880 --> 00:10:31,980 So this is your initial condition. 98 00:10:32,120 --> 00:10:32,680 Okay. 99 00:10:32,780 --> 00:10:37,690 The same court we will table here to find out it was a plus. 100 00:10:37,700 --> 00:10:40,270 Seems s okay. 101 00:10:40,760 --> 00:10:41,130 Hi. 102 00:10:41,360 --> 00:10:44,510 Plus it was a plus it's Lake 103 00:10:47,630 --> 00:10:51,350 six divided by S and 104 00:10:54,980 --> 00:11:05,840 so six new whereby s plus your typo here the same court that we have study in the previous slight to 105 00:11:05,840 --> 00:11:15,020 s do a rabbi s squared plus 16 so this sort of built in sort of the Panthers. 106 00:11:15,170 --> 00:11:16,400 Yes. 107 00:11:16,560 --> 00:11:17,540 Okay. 108 00:11:17,740 --> 00:11:22,780 No the remaining part of this question is interdependencies. 109 00:11:22,790 --> 00:11:23,540 You will write 110 00:11:26,290 --> 00:11:28,130 okay so this is your answer. 111 00:11:28,280 --> 00:11:29,090 After typing. 112 00:11:30,440 --> 00:11:41,930 Okay so do dissolve is this lie again we are taking on the differential equations to check the solution 113 00:11:41,930 --> 00:11:48,970 of this differential equation D Y so it means that the Y plus do is equal to one plus y for starter 114 00:11:48,980 --> 00:11:49,960 differential equation. 115 00:11:50,720 --> 00:11:54,270 Okay and your type. 116 00:11:54,280 --> 00:12:08,380 These sort of do you y again sorry 1 plus y and then you drive y scared 1 plus y scare obviously Y is 117 00:12:08,380 --> 00:12:14,180 equal to one plus y skewered and with initial condition in a Y at zero. 118 00:12:15,010 --> 00:12:15,640 And. 119 00:12:15,850 --> 00:12:21,590 Why yes this is your required answer. 120 00:12:22,330 --> 00:12:22,710 Okay. 121 00:12:22,910 --> 00:12:26,640 So this is the code of another differential equation. 122 00:12:26,650 --> 00:12:31,050 The solution of the differential equations with initial conditions. 123 00:12:31,090 --> 00:12:31,800 Okay. 124 00:12:32,110 --> 00:12:39,880 Now will take and that differential equation D saw inside the apprentices inserted the double quotation 125 00:12:39,880 --> 00:12:55,900 mark you'll write D to wipe last three three multiply by D Y and plus two plus two Y is yes is equal 126 00:12:55,900 --> 00:13:10,180 to ten okay what is simple you just d y initial condition d why at zero a girl five and a Y at zero 127 00:13:11,860 --> 00:13:15,000 is equal to zero. 128 00:13:15,160 --> 00:13:17,770 So of the best land number and this is your quote answer.