Differential Equations Overview
Transcript
So this is a review of our entire differential equation course in the undergraduate level so this is the part one of that so we can start with the basics so uh what we mean by a differential equation an equation an equation an equation with at least one derivative with at least at least one derivative at least one derivative ah is called a differential equation is called a differential equation is called a differential ah equation ah for example so these are two differential equations so d y over d x here x is the independent variable plus x equal y so y is the dependent variable so x is the independent variable so that is normally what is in the denominator ah and then y is the dependent variable what is the dependent variable
so when you have a ordinary differential equation there's only one independent variable if there are more than one independent if there are more than one independent variable we call it as a partial differential equation we can talk about that later but that's not the uh topic of this course good uh so another example uh so for example this one three 3 d squared y over dx squared plus 5 d y over dx minus y equal 3 so this is another differential equation ah because there are there are there's a
second derivative and the first derivative and then this is an equation so it's a differential equation okay and then the next thing is what we mean by an initial value problem so the next one is initial initial value problem so in short we call this is i v p so when you see ivp uh that means initial uh value problem so what's the initial problem initially problem is a differential equation and initial condition so initially problem means a differential equation
differential equation plus initial condition so if you are given ah these two information and ask you to solve the problem we call it initially problem so initial value uh it can be more than one value uh depending on the order of the differential equation if it is first order one initial condition so let's try that so if it is first order we need one initial condition and if it is second order we need two initial conditions
so initial means it given at the starting point so for example uh let's say there's a system that can start at t equals zero so if the information given at t equals zero we call it the initial condition so normally like it looks like y zero or x 0 if x is the dependent variable and then there's another type of problem what we call boundary value problem so what happened it can give you values not just at the beginning but some other point
so just write it just for completeness so what we call boundary value problem boundary value a problem uh in this course actually we did both so it's called b v p boundary value problem so it's a b v p ah that means uh so you can see the conditions not just at zero but at some other point like maybe like t equal b or something so you can say for example a y b equal something like why not so that is what we call a boundary value brown boundary condition boundary
condition so initial condition looks like y zero equal something like y one yeah that's not really the right notation but yeah something like that so if there is a case so if you get a boundary value then you we call it's a boundary value problem if you have an initial value equals initial value problem like that and then depending on the degree of the depending on the degree of the differential equation you need to give that many conditions all together so if it is first order you
need only one condition with second order you need i should say at least two currencies but two is like yeah two is the minimum so if the nth order differential equation you need in many conditions okay so that's that's throughout the course are we gonna use uh that fact good now let's uh focus on the topics so we're gonna go one by one and this can reflect the lectures so in the description you're gonna see link to the entire lecture so part by part so that if you have some trouble understanding certain topics you can uh refer the lecture okay so let's start with the first topic so we're gonna go with uh what we call the uh the first one what we did was like verifying solutions so let's start with that so the first topic is we're going to do verifying solutions
uh verifying solutions so what happened here we are not going to find the solution you are given some expression and you're going to check whether that is a solution so that's the idea and we're going to solve the problem later so let's look at a problem like this uh so um an example like that so let's say verify verify that so remember we say we are not say find we say verify so the solution is given okay so it's a different problem we are not going to find it
we just verify so we need to understand the wording verify that x equal c 1 e to the minus 3 t plus c 2 e to the 2 t is a solution is a solution of x double prime plus x prime minus 6 x equals 0. so first verify that that's a solution so what we normally do is we take the derivatives and plug into the left side and simplify and so that you get zero that means it satisfies the differential equation that means that it's a solution so that's so what you did was we verify
we did not find it actually we know how to find this one later when you talk about second order constant coefficient differential equation but that's not the point here we just verify that that's the solution okay because sometimes you can guess so that's the point especially when there are very difficult problems okay so find ah and then we can say find c1 and c2 such that such that normally we put s dot t dot but right now it's the first time
uh here so i'm going to write such that but later it's be s dot t dot okay such that um such that x 0 equals 0 and x prime 0 equal negative 10 it can be just some numbers it doesn't really matter how you do it but let's see how we can do this okay so the answer ah let ah x t it's a i'm going to exaggerate that as a function of t uh c 1 e to the negative 3 t plus c 2 e to the 2 t so we're going to use that and then what we can do are taking derivatives so taking derivatives
taking derivatives we have x prime t equal so we enter the derivative say e function what happened so let's recall the results from calc 1 if you take a derivative of an exponential function with the constant here what's going to happen the constant come out and nothing happens to the rest of the function so that's the result so k e k t so k has to be a constant okay if not then you have to use the chain rule okay so we can use that fact here so that means negative 3 c 1 e to the negative 3
t plus the same thing 2 going to come out so e to the 2 t we need the second derivative as well so let's find the second derivative as well so the second derivative is we multiply by another negative 3 that means become 9 c 1 e to the negative 3 t no change plus this become 4 or c 2 e to the 4 t oh see we can make mistakes very easy so be careful this is 2t no change good uh so now what we gonna do is we are going to substitute so we simply substitute that this in the difference liquidation by substituting by substituting ah into the equation so what we're going to do we're going to start with one side okay uh
into the equation x double prime plus x prime minus 6 x equals zero i think under we're gonna start with the left side and see what's gonna happen so let's start with the left side so x double prime plus x prime minus six x equals so let's substitute x prime x double prime which is 9 c1 e to the minus 3 t plus 4 c 2 e 3 t that's x double prime and x prime which is negative 3 c 1 e to the negative 3 t plus 2 c 2 e 2 t that's the uh x prime and then minus 6x so that means you have to multiply
x with the minus sign so that means a minus so let's multiply by minus 6 so it's minus 6 c 1 e to the negative 3 t and then minus 6 rc 2 e to the 2t now what we can do we're going to see whether you're going to get 0 so let's see so let's go with e to the negative 3 t terms if you look at e to the negative 3 t terms we have nine here we have nine and we have negative three and we have negative six and you can see that when you add them they cancel out so they all those three
cancel out now so that's gone and now ah actually there's a small mistake so this has to be uh 2 good now let's look at the two t terms so if you look at the two t terms and you can see that we have 4 we have 2 and we have negative 6 and you can see that they all get cancelled out so that's also cancelled but i'm going to cancel it in a in the other direction so that you know what you did so don't just cancel in the same direction one you cancel ah
this positive other one cancel negative negative you know with the slab slope so then you know what you did uh so that means they all cancel out so you simply get zero so it simply cancel out and you get 0 that means um your expression is actually a solution of the differential equation so we can write that so therefore so you can say that therefore that's how you're going to complete the argument so uh therefore ex like we're doing mathematics means we are making a logical
argument so it's an argument so like you saw the reasons and said conclusion the reason and the conclusions is like that so it's a nice argument okay um so let's try to do it like that it's like much better if you want to do that like okay so therefore x equal c 1 e to the minus 3 t uh plus c 2 e 2 t is a solution is a solution of the differential equation of x double prime plus x prime minus 6 x equal 0 so we prove that
yes is a solution now what we can do now we can use the initial conditions to find c1 c2 so using initial conditions using initial conditions using initial conditions so we have x 0 which is uh uh what what you do is you plug in to the independent variable you plug in 0 so that means see uh x0 so wherever you see t plug in 0 so c1 e to the negative 3 0 plus c 2 e to the 2 times 0 so that means we know that e to the 0 is 1 so we know that fact we know that e to the 0
is 1. so we can use that fact and then that means you simply get c1 plus c2 but we know that from the condition it is simply 0 it's given that x0 equal 0. so we um we use that condition here okay so this is given this equals 0 is given now what else we need is we're going to use derivative condition so we know that x prime 0 which is negative 3 c 1 e to the negative 3 0 plus 2 times c 2 e to the 2 0 now again same argument so you will get negative 3 c 1
plus 2 c 2 but we know that uh is given that this is equals to negative 10 again this is given okay so it's not our choice it's given okay now the goal is to solve these two equations okay so uh so we have these two equations c one plus c two equals zero negative three c one plus 2 c 2 equal negative 10 now i'm going to call these two equations are 1 and 2 because it's going to make it easy so maybe you learn how to solve these equations when you're in high school or
middle school so there are two methods to solve one is you're going to solve solve for one and substitute that in the other one i do not recommend that recommend that method because that's that's long pretty long for these kind of things we are not going to do that what we can do uh we gonna try to get matching coefficients but that's much faster and there's a video just to um learn like how to solve these kind of equations and you can learn more about that uh if you wanna watch that and even like how to go for two three like that so we can use that technique here the matching matching coefficients technique so what's the matching coefficients what we're gonna do and you can see that especially when you see positive or negative we try to go for that it's much quicker so you can see that in the bottom equations you're going to see negative 3 here so what you're going to do in the first one also you try to get a 3 but with opposite signs so for example you target 3 c 1.
so if you get 3 c 1 in the top one now what we can do we're going to simply add them once you add them you can see that c 1 term going to cancel out so you simply get c 2 so that is the fastest way to solve this one so that's what we're going to do what we call matching coefficient technique okay so what we're going to do by uh 3 times the first one plus the second one if you do that because if you multiply by 3 you get 3c 1 plus 3 c 2 when you add c 1 get cancel you simply get 3 c 2 plus 2 c
2 equal negative 10 and then this says that 5 c 2 equal negative 10 now what we can do we can divide both sides by 5 so you get negative 2. so you can see it's very easily okay you get the answer and then what we can do you can pick one of the equations by ah but the first one is easy so by 1 you can see that c 1 is simply negative c 2 so just plug in the c 2 value here so it is negative negative 2 that means 2. you don't want to show all these steps but since this
is the first example of this type i'm showing all these steps but later we can ignore uh some of them some obvious steps so we're done now we're going to complete that so someone make an order so you're gonna preserve your uh results in the best possible way okay that's how you're trying to do that's why we're writing all those words okay to make a good argument so therefore um therefore we can say the solution the solution to the initial value problem to the initial value
the initial value problem is is we can write that x t which is equals to 2 e negative 3 t minus 2 e to t so that is the uh final answer for that problem so what you can see that you know if you to do this it doesn't take much time so it's like maximum it would take like 10 minutes to do all of this but i'm doing it slowly just to explain everything but you know when you want to do that in exam or something you don't want to like we
don't explain like i mean we we explain but not like we are not going to take too much time just right fast okay so it will it won't take too much time you can see you can practice and see how long it takes for a problem like that okay good so that's the first problem uh and if you need more you can look at the first video about that to find more information and what else we did okay good so let's go to the next topic so the next topic is what we call the uh four fundamental equations
so when you talk about four fundamental models so let's talk about that for fundamental model equations for fundamental for fundamental model equations so we talk about four models and why we did that because we know that these models like appear pretty much everywhere in sciences so it's good to know those four separately ah okay so uh the first one uh what we did was the exponential growth model so exponential growth so that's pretty much every guys like
you know bacteria even like these days kovid all of them follow the exponential growth model um and then uh so the differential equation is d y over dt we can use the t as the uh independent variable as a time it's my more it's like kind of makes sense so k is a constant we assume k is positive so and then we know that the solution of this one is we can write as y t equal a constant times e to the k t so that's the solution and you can remember you can use this you know you know that even we can we can solve this very easily uh just uh this is like a separable differential equations or we can even use a simple coin technique to solve this one okay it's not a difficult uh difficult problem okay so now uh if you look at the uh the solution for the graph of this one so uh what is the graph of this exponential growth that means you can start at a value and then it's going to grow ah so this is what we call the exponential
growth model that's the starting value a okay and then it's going to grow so we assume that k is positive it's a growth okay that's the first case and then we talk about the uh what you call exponential decay ah so exponential decay exponential decay model source exponential decay is very similar d y over d t and then we assume that k is positive but with the negative sign in front like that so it's pretty much similar what's going to happen there's a negative sign in front so the e negative k t so that's what happened and uh so if you look at the graph uh very similar but what's going to happen now is it's going to decay so you can start with the value and go down so uh so like that you can see start with the value a and
then go down so you can see this exponential decay and we assume that k is positive again because that we put a negative sign in the equation so that's particularly exponential decay especially like if you look at radioactive material it's going to follow this kind of pattern uh there are a lot of other things like even bacteria if you kind of uh put like a disinfection there and those bacteria are gonna um kill and then uh if you look now if you try to count so it's gonna follow something like that so this this this models everywhere like you know if you get injection what's gonna happen so so those are the kind of models for that so it's very common situation it's called exponential decay and then we talk about the next most common one is what we call the simple harmonic motion so simple harmonic simple harmonic motion sometimes we call shm okay simple harmonic motion
uh so what is the differential equation there's a slight difference now this can be a second order difference frequency we have like d squared and then we that we're going to use the time variable is a time equal um so we can write negative there's a negative sign and a k squared y so remember earlier you had a t now this is y so that's the major difference here that's a dependent variable comes here and then we know the solution so the solution is with sine cosine
so some number and then we have cosine k t so k is the square root of that term so you see you take the square root of that and then another constant uh sign so one cosine it doesn't matter which one we write first uh so like that so that is the solution so it's a sine cosine we know the sine cosine are periodic functions so that means if you look at the graph it has a graph like this so it's going to be periodic and it's going to fluctuate
start with some value depending on the initial condition is gonna go in a uh sine curve or cosine curve because it's a mixture of that so yeah so that's what happened uh so this what we call a simple harmonic motion this is everywhere like all the atoms um in the body uh follow these kind of motions and if you have a mass and a spring uh it's gonna follow these kind of patterns so this is like kind of very common uh so it's called the simple harmonic motion and then uh the fourth one what we
normally call the hybrid model so we have a hybrid model uh what's a hybrid model is we have the experience of growth and the exponential decay you can combine them into one that's a hybrid model and you can see the interesting relation it is simply the same equation we just write above but with the plus sign so that's very interesting what happened there's no t here it's the plus sign the above one but with the plus sign we stick with the k squared so what's going to happen we can write the
solution of this one in two different ways uh the one way is using the hyperbolic cosine hydraulic sine functions of cos kt plus sin uh kt able h to mean that's a hyperbolic functions and then if you are not familiar with this you can look at the uh the video for that we explain that and we also talk about some other properties for example derivative one of the major thing is that when you take the derivative uh cost becomes shin and shim become cos there are no negative signs that's one
of the major difference between the regular sign in question also uh you can write this solution in different way uh i i'm gonna still use a b but those are not simply be some other constants but i'm still gonna say a b so uh e to the uh we can write one of them let's say k t as a k t and then plus b e to the negative kt that's why we call the hybrid model uh this is the exponential um growth model and that's the exponential decay model so you add the two and you get the
hybrid model so that's the hybrid model for uh when you have that different sequence that's hybrid so those are the four fundamental model equations and if you look at the graph uh so you're going to get like graphs like this which i'm going to put both together uh so you can get a graph like that so because it's a part sine part part of e to the kt part in the minus kd so whoever the win gonna get the uh formula so it's gonna be like that uh oh like you know it can be like that
okay because we know that uh if you hang a wire heavy wire it's gonna go in a uh equation like that uh so it's like in many situations and so uh yeah good now let's try to see how to solve a problem using uh these models so the goal is if you see one of them you can directly write the solution okay because these are familiar one remember this this is very useful for your other courses so you can directly use the results so let's look at a problem so let's solve this problem uh so we have
let's say solve the initial value problem d squared x over dt squared equal minus 4x along with x0 equal let's say 12 x prime 0 equals 0. uh why we need two conditions because this is a second order differential equation so you need two conditions now what we can do we're going to match this equation with one of those four models and you can see that this is the simple harmonic motion situation and you can see that uh in this problem k squared equal 4 this implies k equals 2 because we
consider only the positive value now we can write the general solution so the general solution is so the general solution is uh you can say x t equals you can directly write it it is a cos 2 t the 2 is t is the independent variable you have to be careful so the independent variable goes there okay and then also this x and this has to be x otherwise it is not this type of problem good um and then so we have uh plus plus b sine 2t so we have that so that's the it's
directly come from the four model equations now what we can do are we going to use the initial conditions but we can see that when you want to write in use the initial conditions that's a prime so that means let's take the derivative first so taking derivatives taking derivative so we can write x prime t equal so what's the derivative of this sum it's a cosine so derivative means the negative sign but there's a 2 here that means by the chain rule that 2 comes out so that's going to be negative 2 a sine 2 t plus same thing sine when you take the derivative it's going to be cosine so with me 2 b cosine 2t by the chain rule now we can use the initial conditions so um using initial conditions using initial condition uh we have uh x0 x0 that means plug in 0 for the t so you're going to get a cosine 0 plus b sine 0 which is equals to 12 this is given now we know that cosine 0 equals to 1
sine 0 equals 0. so because of that this simply implies that a times 1 that means a plus 0 equal 12 that means a equal 12. so we find one value now using the other condition we know that x prime 0 which is equals to the second one so negative 2 a you can actually put the value here so it is we already know the value so i'll put the value here just to make the calculation easier so 12 ah sine 0 plus 2 b cosine 0 which is equal to 0 so again we know that the sign 0 equals 0 uh cosine
0 equals to 1 so that means this says that so nothing comes from the first term this says that 2b equals 0 so this says that b equals zero that means the b term gonna go away that means that the solution is therefore the solution to the initial value problem is simply x t equal 12 cosine 2 t so that's the solution of the problem good um so let's go to the uh the next topic so what's the next topic so as we gonna do uh we're gonna talk about uh the classification of differential equations so um so number three are the classification of different equations
classification of differential equations so we talk about various types so we first start with what we mean by ordinary differential equation ordinary ah differential equation differential equation so we normally call this ode ah in this one what we have one independent variable one independent one independent a variable
so we have one independent variable so ah an example would be something like this dx over dt r plus 3 x equal t plus 1 you can see the independent variable is t and that's there are no more independent variables so these are ordinary differential equations o d e and then the next type is what we call the a partial differential equation so partial differential equations partial differential equations
partial difference equation or we call this is a p d e there's a certain form for that p d e partial differential equations so what we have more than one more than one ah independent variable more than one independent variable so there are more than one independent variable sometimes the space and time those are the two in two common independent variables so uh so such a differential equation have a kind of form like this so we can write let's say u is a function of x and y so then we can write it like this so if you use a function x and y if u uh is a function of x and y so that u is a function of x and y sorry right so then you can write a differential equation uh like this
uh you can see we can use the dava for that so double u over del by x plus three times w over double t equal we can say x uh plus t so this is a partial differential equation and you can do that there are two independent variables space and time so x and t are independent variables but that is a different course and we are not going to focus that in this course this is only for a partial differential this is only for ordinary differential equations except in few cases because we need uh
the idea of partial differential equation in in certain situations and other than that we are not going to focus on that okay that's about that so there are two uh independent variables so these are the uh independent variables independent okay so there are two in the first one you only have one okay um and then we talk about what we mean by a order of a differential equation so that's the next topic we talk about the order of a differential equation
so order so order means the highest derivative appear highest derivative highest derivative highest derivative is what we call the order so for example if you look at this differential equation d square d squared y over d x squared plus x equal three so you can see the highest derivative appear is two so we call this is a second order difference liquids we don't see the two order so we say this is a second order uh ode second order ode good uh that's the highest they really
appear the question why do you do that because you know that uh depending on the order we had to use different techniques that's just a major point here so the next important topic is what we mean by linear and non-linear equations so the next one is uh before a linear and non-linear so linear versus nonlinear ah so that means linear means no powers other than one of the dependent variable so you're going to see no powers no powers other than one other than one of the dependent variable
of the dependent variable so we don't worry about the independent variable so there can be only powers of one so that means there are no products okay in other words no products no products of uh the dependent variable dependent variable or its derivatives so let's talk about two examples uh if you say x is the dependent variable so we can write dx over dt plus t cube x equal t so you can see that there are no powers of x other than one so this is a linear equation t3 t is the independent variable that's okay so this is linear and if you look at this one x times d x over d t plus the same thing here t3x equal t this is non-linear
so those two equations make a big difference when you try to solve linear equations are easy to solve in equations are easily solved so that's the fact linear equations are easy to solve good ah so these are linear non-linear good and then talk about what we mean by the constant coefficient so number five constant coefficient constant coefficient constant coefficient uh equations so that means all the constants are coefficient all the constants all the um coefficients or i'm sorry all the coefficients are constants okay all the coefficients are constant so for example five x double prime minus three x prime plus x equals zero so this is a constant
coefficient differential equation you can see that all the coefficients are just numbers uh what we normally do is we consider a characteristic equation to solve okay so uh so use characteristic equation uh use a characteristic equation to solve which remember which which is in lambda so we write a lambda equation great um and there's a characteristic equation for uh matrices as well but here uh we call the characteristic equation for that because that can characterize the
difference equation okay that's a constant coefficient and then let's talk about homogeneous versus non-homogeneous so the next one so we have homogeneous uh versus non-homogeneous so be careful are the homogeneous and non-homogeneous has a different two different meaning in differential equations uh and then we can talk about the homogeneous and non-homogeneous again later so here um uh what we mean by the homogeneous is uh whether uh the difference equation equals zero or not so like uh it will be easier from an example so for example if you have five x double prime minus three x prime plus x equals zero you see that ah so you can see that
ah so you're gonna set the digital equation to 0 that means that side is not a function of the independent variable so all the dependent variable you can put it one side and then you can see that so we can write this one as a this is what you call a homogeneous equation so homogeneous so no functions of the independent variable okay so it's a homogeneous equation now you can say 5 x double prime minus 3 x prime plus x equal t this is non-homogeneous
because it's a function of ah the independent variable okay so if you have a function because you can always pull all the uh dependent variable terms to one side and then if you see a function of the independent variable alone that's going to be non-homogeneous okay you see a function of the independent variable alone a zero we just say other than zero okay because here is also a function but other than zero so this is what we call non-homogeneous because of that t term so this is non-homogeneous
good ah homogeneous and non-new so there are there's a function of the independent variable alone okay so that means uh let's write that so there is there is a function function of the independent variable only dependent variable only okay so if you see a function of independent variable only it is what we call non-homogeneous good ah and then we have what we call autonomous autonomous autonomous differential equations
so autonomous means if the differential equation does not depend on the independent variable we call it the autonomous differential equation the differential equation differential equation does not does not depend on the does not depend on the independent variable independently
ok if the difference does not depend on the independent variable we call it is a autonomous differential equations let's try this one so you can say dx over dt plus x squared equal 3 so you can see that this is this does not depend on the t variable so this is autonomous one okay so this is autonomous so if you had like a function of t somewhere so it is it is not autonomous it's autonomous okay and then the last topic of this is what we call system of worries
system of audis so a system of od so not just one equation but there are many equations so like for example x prime equal 2 y plus e to the t y prime equal let's say 3 x plus y sine t so this is what we call a system of orient ah so we discuss all of these types good uh so that's about that ah so i don't discuss any further examples of this one but if you need more examples you can look at the corresponding lecture for that but this is the kind of basic ideas we talk about let's go to the next topic uh so the next one is what we call the basic integration so number four basic integration
basic integration so this is the very simple thing that we did we did even this one in calc one ah so there are two types so let's go with the uh type one so what's the type one you have a differential equation which is just on the on the right side it is just a function of the independent variable so this is a function of the independent variable so this is a function of the independent variable only
independent variable so if this is a function of independent variable things are very easy just integrate the two sides so that means y is simply the derivative of a y simply the integral of the derivative okay we just gonna integrate with respect to x so that they cancel each other so that means simply become the integral of f x dx it's very simple just integrate uh that's gonna happen if the derivative is a function of the independent variable only so this is the easiest case you can simply integrate there gonna be careful uh because sometimes um it's not the case okay so let's talk about type two so what's the type two is
so type 2 ah we have d y over dx but it is a function of the dependent variable now okay so if you get the function of the dependent variable so let's write so what happen now is is a function of function of the dependent variable so what we can do in this case we can flip the equation over so we can write this on as dx over d y 1 over g y now you can see that this came back to the previous case because you can simply consider y as the dependent variable in this case so we can see consider
consider y as the independent variable so that's the whole point and then just indicate the two sides again with respect to y now so that means you're going to get x which is the integral of dx over d y with respect to y not x integral of g y d y so that's what's going to happen in that case we're going to get with respect to y okay those are the the the first type what we call the basic integration so you can just use a table of integrals for that
uh the common ones and you can do a lot of problems just in this these two equations so the first case is the uh derivative is a function of the independent variable second one is the derivative of the function of the dependent variable in the second case we're going to flip the equation over and integrate so let's do two examples from those two types so we have this first example so let's say uh solve
the initial value problem is say dy over dx equal 3 cosine x 3 cosine let's say 2x minus 8 e to the negative 4 x plus 5 along with y 0 equal negative 3. something like that and what do you notice you notice that this independent variable this is the independent variable and you can see that it's only a function of the independent variable so that means this is the case one that means you can simply integrate the two sides ok so you can see the function of
so this is a function of x okay x is the independent variable so that means we can have we can integrate so by integrating just integrate okay by integrating y equal just the integral so it is 3 cosine 2x minus 8 a to the negative 4x plus 5 dx so this is just very basic integrals and if you uh forget so these are the kind of formula that we're going to use here so if we have e to the k x dx the answer is simply 1 over k e to the k x plus c this only works when k is a constant and the second one if we have a cosine k x r d x and we know that it is simply 1 over k sine kx so just divide by k and the other one if you have a sine
kx k has to be a constant so this is simply negative 1 over k cosine kx plus c so those are the kind of three common ones and then also we have the power rule that everyone know and so this is what we're going to use now so that means in this case k equal 2 so simply divide by 2 this is a cosine that means it's a sine one so divided by 2 so that means it's going to be 3 halves sine 2 x minus ah you can see 8 you have to divide by negative 4 e to the negative kx plus
5 is a constant size of ix plus c so that's what you get and you can simplify this a little bit so you're going to get 3 halves sine 2 x simplify you get 2 e to the negative ah this k actually 2. okay actually 4. so you get 4 ah so e to the 4x plus 5x plus c now what we can do is we can use initial current condition so using the initial condition y 0 equal negative 3 you can see that negative 3 equal y 0 that means wherever you see the independent variable plug in 0
so you're going to get 3 halves sine 0 which is 0 plus 2 e to the 0 which is 1 plus 0 plus c so you can see that this is 0 and this is 1 so this tells you this tells you that negative 3 equal 2 plus c so in other words c equal negative 5 so you can plug in that so that means the solution is simply y equal three halves sine two x plus two e to the four x plus five x minus five so that's the solution so you can see that it's not difficult uh we just use the uh basic integration
technique because the right side is just a function of the independent variable now let's look at the other type so what's the other one this example so we have let's say solve the ivp the initial value problem e y over d x equal y plus 3 along with y 1 equal negative 2 something like that so if you see a equation like that now what we can do you can see uh this is a function of the dependent variable so this is a function of the dependent variable
so when you see function dependent variable what you do you're going to flip this over also you can do this problem using the separation of variable actually that's a separation of variable but you can see as a technique you can remember like that uh so we're gonna flip this over so we could write this on dx over d y equal one over y plus three now what we can do integrate with respect to y so integrate
integral with respect to y now so if you do that you get x here and it's simply the integral of 1 over y plus 3 d y so you can see there's a 1 over y plus 3 3 is just a constant so this is a log function so this simply becomes natural log five plus three we are not going to use the substitution here uh that's like long time ago okay so we have the solution now so what we're gonna do is uh we can find the uh constant and then uh so i mean there are two ways to do it first we can solve for y and then plug in the constant or we can plug in find the constant and then we can solve uh so so let's do that so we know the constant uh so what it says that so the using the initial condition
okay so there are two ways to do it either you can use the condition now and then go for the uh solve for y or solve for y and then find the constant so uh work both be be careful uh what do you get okay because sometimes when you try to uh write the log form with the exponential form remember you get plus or minus so be careful with that whether that is the case so let's solve for y first so what we're going to do now is you can write this one as ln y plus 3 equal x minus c
so this says that y plus 3 we have solved many problems like that so you can see that this is absolute sign so that means uh you're going to get the uh plus or minus here uh so we have uh it's a plus or minus ah you can see uh e to the x minus c so uh so now what we can do we can write this one as a to the uh like plus or minus e to the minus c and then a to the x what i'm going to do i'm going to call this whole thing just a c so if you do that or some other letter
if you want just what we normally call the by abusive notation i'm going to call this whole thing just c it's not the same c but another one okay like that so we can add it like that so in other words y equal c e x minus 3 now we're going to use the initial condition so using the initial condition we know that uh for the initial condition it's a negative 2 when you plug in x equal 1 so let's do that so that means negative 2 y equal negative 2 equals c e negative 1

Ask anything
We've read this whole study set, so questions about it get the best answers.