I'm going to discuss the solution for differential equations in Matlab.
The first code is you will die Sims d d solve and insert the parenthesis.
You will write inside the double quotation marks okay.
Due to y.
Which means that it is second order differential equation plus Y is equal to ores instead apprentices
will write to D to static T means to multiply by T.
So after besting the intermittent you will get the required solution after differential allocation.
Okay you can write it just like simplify answer means the answer that you will get.
You will get that answer in simpler simplified form.
Also you can get that answer and petty inside the plans to write on.
Okay let me check it in MATLAB how this code works in Matlab.
Similarly Sims dy and d solve inside the double quotation mark you will write these two y plus y is
equal to cause and this is to D Okay and after best thing the interpreter you will get this solution
and you can see that this solution is not in simplified form.
You will just type all here simplify and inside the parenthesis you will write ons of the best in the
interpreter button you will get the simplified answer.
So this is simplified answer.
You can also get the correct answer so you'll type already inside the parenthesis work by ons.
So this is your pretty answer.
Okay now we take another court and this is r same court not a different court.
But here we are taking the initial conditions initial conditions R B Y at zero is equal to zero and
y and zero is equal to 1.
Okay.
The same goal is and we will not check that how this could work in MATLAB that initial conditions.
Okay so just like this all inside the parenthesis there would be two are you can see a number of additional
LOC and inside the number additional light where I need two way plus Y is equal to class 2 to D and
now you will type D Y at 0 is equal to zero.
Yes this is initial condition and Y at zero is equal to 1.
Yes best the interpreter you will get the right answer.
Okay.
Simplify answer I mean that your answer will be simplified on.
Okay so this is your simplified answers with initial conditions.
Remember that this answer is with initial conditions.
Okay so this is your pretty answer.
Okay.
And our solution for differential equations with n and the core this is and record in this score he
will type a physical to add a bit inside the parenthesis decode the way minus y plus two t to multiply
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
to all 45.
Remember this is all 45 not forty five and inside this parenthesis you will write f comma zero to F
and zero G F will be in thus good because comma why is it.
Why not blot d come away and X label y level you will just type as you can check this scored clearly
okay no see that whole discord of work in Matlab.
Okay let
physical drama that it take them away minus a y plus two multiplied by D the same code you can paste
over here.
OK I will upload dot all the images and from that images you can copy and after copying you can paste
in your Matlab software and then you can take that either this code work or not.
If this could work then what you get OK so I am writing the same go that I have described in the previous
slide.
So this is D is equal to or.
What if life OK so it is f comma yes.
I will type 0.
D F and no one right.
Why not.
Why 0 and semicolons blocked inside the parentheses you will right Dickerman y semicolon and X label
inside the parenthesis with a double quotation marks you will write D and why label okay why label inside
the apprentices you will write with the double quotation mark complaint of D Yes this is way off D and
to no semicolon yes.
On no run discord and benefit will run discord you will get this on set.
Okay so since we would write plot so this is your plotting okay the required plotting of discord okay
D and a way of D Okay horizontal and what it would take another record in this chord seems y affects
these ways the control differential of like on my x fun is a to differentiate y x2 is equal to class
to X minus Y solve is equal to be solved and so the points as you will write fun simplify answer and
pretty answer the same.
Okay so this is the court no we type this code are copy paste in the matlab and we check that what is
the solution of this differential equation.
Okay here we are writing the Sims Way of X and no you are type D Y just like dy ways equal to differential
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.
Okay yes one is equal to differential.
Okay I will make it correct in the next one is equal differential Viacom or X come comma to the same
core we are typing over here that we have study in the previous lt is equal to is equal to two time
who will write equal odds and inside the apprentices you will write to X to multiply by x yes and no
you can solve is equal to dissolve instead of function simplify the function so this is your right answer
another code for loop last transfer.
Okay so this is simple D and LA plus of 10 plus two T plus five sine 40 pretty and so yeah of course
it is right a simple chord OK you can see that you will just type LA plus an inside the parenthesis
you will write the given functions that there are two you want to find the LA plus of there to LA plus.
OK so then plus two two plus five sine 40 is the required functions on which you point to find that
the plus which that hold this could work in MATLAB
you can copy are based in MATLAB hard you can type this like since yes D and plus yes you will table
here the same code then plus it will be to t yes 10 plus two multiplied by a D plus sign it is sign
it is five sign five multiply by saying sorry five multiply by sign for T Yes.
And after that press the enter button and you can find the solution.
OK so this is the solutions.
But before seeing the solution you'll write pretty pretty on OK and no press the enter button.
Now we check that orders lancer.
OK.
So this is your set and it's called
No we will change it.
And now we find that in Wasilla plus this so this is the court father in Wasilla plus you will die.
Same sex I I love plus a Law plus means that in Wasilla loss of 60 vote by X plus 2 Yes.
You were my escape last sixteen minus four divided by Esquire.
You will type these solve inside the parenthesis you will write D Y is equal to 1.
Plus why a skier.
Okay and why are it equal to one.
So this is your initial condition.
Okay.
The same court we will table here to find out it was a plus.
Seems s okay.
Hi.
Plus it was a plus it's Lake
six divided by S and
so six new whereby s plus your typo here the same court that we have study in the previous slight to
s do a rabbi s squared plus 16 so this sort of built in sort of the Panthers.
Yes.
Okay.
No the remaining part of this question is interdependencies.
You will write
okay so this is your answer.
After typing.
Okay so do dissolve is this lie again we are taking on the differential equations to check the solution
of this differential equation D Y so it means that the Y plus do is equal to one plus y for starter
differential equation.
Okay and your type.
These sort of do you y again sorry 1 plus y and then you drive y scared 1 plus y scare obviously Y is
equal to one plus y skewered and with initial condition in a Y at zero.
And.
Why yes this is your required answer.
Okay.
So this is the code of another differential equation.
The solution of the differential equations with initial conditions.
Okay.
Now will take and that differential equation D saw inside the apprentices inserted the double quotation
mark you'll write D to wipe last three three multiply by D Y and plus two plus two Y is yes is equal
to ten okay what is simple you just d y initial condition d why at zero a girl five and a Y at zero
is equal to zero.
So of the best land number and this is your quote answer.