Introduction to Differential Equations
Transcript
differential equations is a subject that most people have a hard time with when they first encounter it let's help you understand it by considering some pretty basic examples we will also look at some applications to motion number one says in part a first find what's called a general solution of this differential equation when you look at that equation that says d y d x equals 4X and we're also going to find a unique solution of What's called the corresponding initial value problem or ivp for short where not only do we have the differential equation d y d x equals 4X we also have what's called an initial condition of Y of 0 equals seven in Part B we're going to do the same things for a different example all right so the hard first thing that's difficult for people when they look at a different differential equation like this d y d x equals 4X is understanding what in the world it's about what do they say
supposed to do what does it mean I find it helpful to imagine the differential equation is actually talking to it's saying Y is a function of X first of all in part A here it's a function whose derivative derivative d y d x is always equal to 4X that's just an indefinite integral problem an antiderivative if the right hand side were more complicated perhaps involving both X and Y the independent and dependent variables then it becomes a harder question but for the right hand side only depending on the independent variable it's fairly simple we're seeking a function that is an antiderivative of 4X so to find it we do an indefinite integral we do an indefinite integral initially because we are after a general solution
all possible functions that solve the differential equation this is easy enough of an indefinite integral that you can do it pretty quickly without any fancy techniques 2x squared plus C by a little bit of experimentation is seen to be a general solution y equals 2x squared plus C this represents infinitely many functions one function for each of the infinitely many possible values of c you can always check that this satisfies the differential equation its derivative with respect
to X is always no matter what C is 4X plus 0 or just 4X it satisfies the differential equation if the right hand side had been say 4y instead this would not work because then you would be after a function whose derivative d y d x is always 4 times the function itself y represents the function itself and well I'll give you a hint that that's an exponential function but that's not one of our topics for this particular video I'll let you think about that if you want you should also realize that differential equations often have different notation this is called leibniz notation you'll also see the differential equation written with just a plain prime notation y Prime equals 4X it's understood when you write this that Y is a function of whatever the independent variable is in this case X so once again it can be solved by direct integration and you get the same answer it probably would be less confusing if the differential equation was written with
function notation say as F Prime of x equals 4X and then when you integrate you'd be finding f of x that would be fine and probably less confusing but it's not traditional it's more traditional to either use leibness notation or just a plain prime notation with no function f that's specified so let's now also solve this initial value problem where we add this initial condition y of zero equals seven what does this mean it's understood that when I use parentheses like this it's kind of like function notation Y is represent it's kind of abusive notation actually Y is representing both the dependent variable and the function name here it's saying y of zero when x is 0 you get an output of 7. so that means you need to replace in the general solution Y is 7 and x with zero
to help you solve for C of course 0 squared is zero two times zero is zero zero plus C is C therefore this is saying C must be seven the same as the initial value of y that's happening here in part A it actually won't happen in Part B that's C equals the same thing as the initial value of y but it does here so our unique solution all the initial value problem takes the general solution and replaces C in this case with 7 to get y equals 2x squared plus 7.
this function has a derivative always equal to 4X and when x is 0 the output of this function is seven so it satisfies the initial value problem again General solution represents infinitely many functions unique solution for an initial value problem represents just one function let's go on to Part B the first thing you notice in Part B is that the independent variable name has changed from X to T is that okay sure it's fine which variable should be used in general it kind of depends on your application if your independent variable represents say a distance it's probably better to use x not that you have to but more traditional to use X on the other hand if your independent variable represents time then it's more natural to use a t so again you don't have to technically speaking so the differential equation is d y DT equals sine of T over 2
all right the right hand side just depends on the independent variable T where after a function whose derivative with respect to T is always equal to sine of T over 2. once again this is really a pure antiderivative problem again if a y had been on the right side it would be more complicated there are techniques in special situations to solve such equations but that's not our Focus here so just do an indefinite integral of sine of T over 2 that can be done by substitution for example you could let U equal T over 2 d u would then be one half DT DT would be two d u I won't bother through a little bit of guesswork I just realized the answer is going to be negative 2 cosine of T over 2 plus C perhaps the most common mistake here is to forget that negative sign the derivative of sine of T is cosine of T but the derivative of cosine of T is negative sine of t because you have a positive sign of something here you need a negative sign there you also
need the two to compensate for the fact that when you use the chain rule in differentiating this you'll get an extra factor of one half check it on your own you'll see that in bright the derivative of this is always equal to sine of T over 2. so there's a general solution y equals negative 2 cosine of T over 2 plus C where C can be any constant all functions like this solve the differential equation and in fact any solution of the differential equation also can be written in this form now we also once again solve the initial value problem now y of zero equals negative three replace y with negative three this is saying when the input T is zero the output Y is negative three replace t with zero get negative two cosine of zero over two plus c 0 over 2 is 0 cosine of zero is one not zero so this becomes negative two plus c now C is not the same as the initial value negative three when I solve for C by adding 2
to both sides negative three plus two is negative one and the unique solution of the initial value problem then becomes negative two cosine of T over 2 minus one and indeed when you plug in t equals zero you get negative two times cosine of zeros one is negative two minus one is negative three we are satisfying this initial condition problem two is somewhat similar to problem one but with some twists in part A we are to show that this function of X is a solution of the initial value problem d y d x equals first of all one minus X in parentheses times e to the negative X and initial condition y of zero equals two part B we're doing something similar for a function involving sine notice in Part B the right hand side doesn't depend on the independent variable T it depends on the dependent variable y so it's a little trickier let's start with part a we're
trying to show this is a solution this solution could be found by integrating this function but we're given this possibility so we don't actually have to do the integral we just need to check that the derivative of this function always equals this so go ahead and take the derivative of this for x times e to the negative X first we need the product rule we will also need the chain rule x times e to the negative X is a product the first function or left function is X the second function or right function is e to the negative X the product rule Can Be Imagined either as the derivative of the first times the second plus the first function times the derivative of the second or if you prefer Lefty right plus right d left where d means derivative left x d
right the derivative of e to the negative X by the chain rule is e to the negative x times negative 1 right because the derivative of negative X is negative one plus right e to the negative x d left the derivative of x is one that is the derivative of x e to the negative X the derivative of 2 is 0. and pretty quickly we see by a little simplification and factoring out the common factor of e to the negative X that I will get 1 minus x times e to the negative x i factored out the e to the negative X and I switch the order of these things this negative 1 goes in front of the x negative 1 times x becomes minus X and that is the same as the right hand side 1 minus X in parenthesis 10 D to the negative X
we're done we didn't have to actually do an integral now if you're going to do an integral of this you could do some guessing to get this ultimately maybe with a plus c there or at least for the general solution or you might use integration by parts but it'd be a little tricky so it's kind of nice to be told what the answer is ahead of time we also want to satisfy the initial condition we should check that as well plug x equals 0 into this equation get zero times e to the negative 0 plus 2 e to the negative zero is one but that doesn't matter because zero times one is still zero and yes we are satisfying the initial condition when x is 0 Y is 2. Part B do the same kind of thing for y equals sine of three T once again I've gone to T as the independent variable this initial value problem with this differential equation in that initial condition is also a little extra funny thing here we're
saying the interval specified is 0 to pi over six that seems kind of strange like why would you have to do that we will see why this is one good choice it's not the only choice that could have been made for the interval let's see what happens so what do I need to do I need to first of all find the derivative of this proposed solution d y DT that's the left hand side of the differential equation the derivative of sine of 3T by the chain rule is positive 3 cosine of three t but wait a minute that doesn't look like that does it yeah it doesn't but that's because you're misunderstanding what you're supposed to do you need to imagine the differential equation talking to you and saying I'm after a function d y is a function of T whose derivative is always equal to 3 times the square root of 1 minus the function y squared where the function y is a function of T ultimately even though you don't see a t there it's okay this is the
way this kind of thing is done so we need to take that right hand side 3 times the square root of 1 minus y squared and replace y with the proposed solution sine of 3T like this of course it's more traditional to write that Square as sine squared 3T but you do need to understand what's going on there you are really taking sine of three T first and then squaring it and I hope this makes you want to use a trigonometric identity cos squared theta plus sine squared theta equals one no matter what Theta is so in particular 1 minus sine squared theta always equals cos squared theta no matter what Theta is in particular
of theta is three T So this becomes 3 square root of cos squared Theta is 3T so I replace the input there by 3T and now it's tempting to say hey the square root of cos squared 3T is cos 3T well careful it's really the absolute value of cos 3T the square root of a number squared is not the number itself unless the numbers greater than or equal to zero but the number could be negative so in general you need absolute value signs check that with negative values of a so in general I
need absolute value signs here the cosine of 3T is playing the role of the a H that's not quite the same as this because there's no absolute value signs up here oh unless cosine of 3T happens to be non-negative in value greater than or equal to zero which will be true when T is between 0 and pi over 6 the cosine graph starts up at 1 and goes down to zero when the input is pi over 2 T being pi over six we'll make this input 3 times T be pi over 2. so this will equal three COS of three t went for T between 0 and pi over 6. now that's not the only interval that I could have chosen here it just is one example one interval so we have that the left hand side the Y DT simplifies to three cos 3T and the right hand side three times square root of 1 minus y squared when y gets replaced by the function ultimately simplifies to coercive 3 times cosine three t as well this does
satisfy the differential equation what about the initial condition y of zero equals zero that's easy again here's your proposed solution y of 0 is going to be sine of three times zero sine of 0 is 0 it does satisfy this initial condition number three starts our application section it says a rock is thrown upwards from the top of a 200 meter tall Cliff above a beach at 15 meters per second I don't recommend doing this because he might hurt someone including yourself falling under the influence of gravity but no other forces is that re realistic well no technically there's air resistance and there really is always air resistance when you've got you're not in a vacuum but maybe with a rock it's negligible maybe or else not quite true but it's going to be our model the acceleration due to gravity near the surface of the Earth is 9.8 meters per second per second
that is the units also called meters per second squared it's in the downward Direction number of things to do here part a how long does the rock take to reach its highest point Part B what is its maximum height part C how long before the rock hits the beach and Part D what is the velocity of the rock on impact we will need some technology here to help us get approximate answers all right so do we need to draw a picture well you sure you could you don't have to really so you're standing on top of a really tall cliff and down is the cliff here and the beach is way down here
and I guess that since it's a beach there's also water over here you're throwing it straight up pretty much well okay better not throw it truly exactly straight up because you do want it to fall to the beach instead of right on top of your head so um it's not really straight up but it's it'll simplify things if we pretend it's going straight up so we don't have to think about moving horizontally um how do you solve this well there's a couple ways you can approach it one way is to not think about differential equations at all and just to use equations you may have learned in a physics class but those equations themselves do depend on differential equations n Newton's laws in particular first of all f equals equals ma that's an f equals m a that's Newton's second law
am is the mass a is the acceleration f is really the sum of all the forces but we're only assuming there's a force due to gravity but what is f in this case what's that force due to gravity this takes a little bit of extra knowledge it's proportional to the acceleration due to gravity and the constant of proportionality happens to be the mass and since I'm going to go ahead and take the upward direction to be the positive y direction say um the force would actually
have a negative sign since it points in the downward Direction so it would be negative M times G that's proportional to the gravitation acceleration constant of proportionality M or maybe really negative M because we want the downward direction to be the negative Direction this equals m a a is the acceleration that is a derivative that is the derivative of the velocity it's also the second derivative of the height you could write this ultimately differential equation
in a few different ways either as What's called the first order differential equation involving the first derivative for the velocity or a second order differential equation involving the second derivative of the height either way is okay for the way we're going to ultimately solve this for the height is going to be a two-step process so it's going to be simpler to focus on this equality first it does simplify a little bit the M's cancel the mass itself doesn't matter it could be a small rock it could be a big rock actually when you consider errors that since the mass does matter but we are ignoring air resistance so we get ultimately DV DT
the derivative of the Velocity which is the acceleration is negative g g is the acceleration due to gravity it's 9.8 meters per second squared on some other planet or the moon for example G could be different and in fact technically even G is different on the earth if you go to the top of a very large mountain for example G would be slightly smaller in magnitude it turns out but for the purposes of approximation it's go good to go ahead and assume this is constant this is you don't see T's or V's on the right hand side you see a constant well you could think of that as a function of T this can be solved by just doing an indefinite integral with respect to T T is time here so I'm using that for the independent variable V is going to be negative GT plus c
what is C I need initial conditions do I have initial conditions do I have an initial velocity yeah I do it's thrown upward thrown Upward at 50 meters per second that's a velocity and initial velocity by the way we are ignoring the height of the person here and you could take that into consideration but for simplification we will not bother when T is 0 V is 50 . so we get 50 is negative G times 0 plus C which is 0 plus C which is C C does end up being the initial velocity so V is negative GT plus 50. notice I haven't replaced G with 9.8 yet I will do that but I'm solving the more General case first so that's the velocity that can be used to figure out the answer to part A how long does the rock take to reach its highest
point it's going to reach its highest point when the velocity is zero you throw it up 50 meters per second straight in the air and when it reaches the peak at that moment in time the velocity is going to be zero so to solve part A I'm going to set this equation equal to zero and solve for t subtract 50 from both sides then divide both sides by negative G and you'll get this the negative signs cancel you get 50 over G which is 50 over 9.8 if you prefer that as an exact fraction you could also write that as 500 over 98 or 250 over 49 any of those are fine this would be in seconds let's go ahead and approximate this as well so we have 50 over 9.8
you could also check 250 over 49 is the same thing this is approximately 5.1 seconds maybe you could say 5.0102 seconds that's probably too many significant figures for the fact that we also have some air resistance I'll just leave our approximate answer as 5.1 with this how do you do Part B what is the maximum height now we need the height as a function of t as well so I need to solve another differential equation the other being differential equation being this one that V equals negative GT plus 50. well where's the derivative well it's V is the derivative it's the derivative of the height with respect to T it is the Y DT
the right hand side just depends on T it can be solved by integration Y is the indefinite integral of negative GT Plus 50. integrate that get Negative G over 2 t squared maybe this is feeling familiar now if you know the equation for the height from your physics teacher negative G over two t squared which will be negative 4.9 t squared plus 50 t plus c C does turn out to be the initial height which is the height of the cliff itself
Y is 200 when T is zero so I get this and ultimately C does equal the initial height C is 200. so Y is negative I'll go ahead and replace G with 4 9.8 to get Negative 4.9 t squared plus 50 t plus 200 to figure out when it reaches the highest point plug in t equals 5.1 let's go ahead and use the technology to approximate that in fact I'll just use more decimal places there negative 4.9 times the previous answer squared Plus 50 times the previous answer from this
plus 50 times the previous answer plus 200 you get about 327.55 meters maybe I should round that to just 327.6 or maybe even just 3.328 let's go ahead and leave it like that part C how long before the rock hits the beach find a value of T when Y is zero this is our height above the beach not above the cliff
so I need to set that equal to zero set y equal to 0 and solve for t use this equation negative 4.9 t squared plus 50 t plus 200 equals zero this is tailor made for the quadratic formula T is negative 50 plus or minus square root of 50 squared's 2500 minus 4 times negative 4.9 times 200 right for a C I'm using the quadratic formula over 2 times a is negative 4.9 so we get negative 50 over negative 9.8 which you already know is 5.1 uh go ahead and put that in there five point positive 5.1 plus or minus 1 over 9.8 the I could write minus or plus because that negative sign there but it's the same thing anyway
square root of what's all this user technology again 2500 ultimately plus because the two negative signs cancel plus four times four point nine times two hundred square root of 6420 that square root is approximately raise it to the point five the power of 80.125 divide by 9.8 get about 8.2 so we get 5.1 plus or minus 8.2 one of those is negative ones positive we want the positive one so add 5.1 to this T is approximately 13.3 seconds for how long it takes to hit the ground there we're almost done what is the velocity of the rock on impact it's going downward so it's technically a negative velocity
at this particular Moment In Time V of 13.3 use the equation for the velocity which is this replacing from G with 9.8 to get approximately negative 9.8 times 13.3 Plus 50. I will go ahead and use more decimal places from the calculator negative 9.8 times previous answer plus 50. gives you negative about negative 80.1
meters per second when it hits the ground it's a negative velocity because it's going downward if you asked after the speed you take the absolute value of this and get positive 80.1 meters per second pretty fast you get hit with a rock going that fast it might kill you okay that's pretty bad number four is kind of a fun applied problem a 727 jet needs to attain a speed of 200 mph which means miles per hour to take off if it can accelerate from rest 0 miles per hour to 200 miles per hour in 30 seconds half a minute how long must the runway be yikes we got to figure out how long the runway is going to be this sounds impossible well it is possible if we assume a constant acceleration but is that true is the acceleration really constant I'm sure it's not constant but we hope it's close enough to to constant to give us a decent answer and then in real
life you always give yourself some extra cushion anyway just to play it safe so this is still a good problem solving technique should we draw a picture it doesn't matter we can I won't attempt to draw a plane I'll just draw a DOT for the plane it's starting to say at position zero at Time Zero with zero velocity and moving to the right we could let for example X be how far it's gone though X would be a function of time we are dealing with functions of time here
the acceleration would be the second derivative of x with respect to time that by definition is the acceleration it's also the first derivative of the Velocity because the velocity is the first derivative of the distance traveled and that's a constant but what is the constant it's going to be the change in velocity divided by the change in time or time elapsed 200 minus 0 is 200 miles per hour which I'll write like this divided by 30 seconds elapsed
this is the same as 20 over 3 or 6.6 repeating miles per hour per second but that's going to make more sense to convert to miles per hour per hour say miles per hour squared so I should convert 30 seconds to how many hours it would be 1 120th of an of an hour right because 60 seconds or one minute would be 1 60th of an hour 30 seconds is half of that 1 over 120 hours dividing by 1 over 120 is the same as multiplying by 120. 200 times 120 is 24 000
miles per hour per hour or miles per hour squared that is our constant acceleration where the units are consistent as far as time being always an hour so we get miles per hour squared here and it's a differential equation and we can integrate once to find the velocity the velocity is going to be the integral of 24 000. DT that'll be 24 000 t plus C but we are starting from rest V of zero is zero so we get zero is zero plus C is C so C must be zero in fact V is 24 000. times t okay so that's the velocity how is this helpful we need to figure out how far we're going to go
before we reach a velocity of 200 miles per hour at T equals 1 120th of an hour yeah I mean if you divide 240 000 is 24 000 by 101 over 120 you will get 200 miles per hour it's all consistent this is still a differential equation too that we can once again integrate X is going to be the integral of 24 000 T DT that'll be 12 000 t squared plus C at times zero you haven't traveled any distance X of 0 is 0. that'll be zero plus C so C is zero here X is going to be 12 000 t squared so the answer to the problem will be How Far We've gone
in 1 120th of an hour 12 000 times 1 120th squared which is the same as 12 000 over 120 squared 120 squared is 14 400. 12 000 divided by fourteen thousand four hundred is point eight three repeating which is 5 6 what are the units this is a unit of distance this is going to be miles so 5 6 of a mile is how long the runway would need to be but of course you want to give yourself extra cushion so make it at least a mile long or maybe even a little longer in our final problem the acceleration is not constant a car starts from rest at time T equals zero and accelerates according to this function of t in meters per second squared for 12 seconds
how long does it take the car to go 100 meters the previous question was you know how far long does the runway need to be this is a little different we need to solve for T instead of a length x but the picture is the same this is now your car here you're traveling to the right X is a function of T the acceleration second derivative of x with respect to T which is the same as the derivative of the Velocity is now not a constant it's negative 0.6 t plus four
that function of t for the acceleration looks like this and I believe when T is 12 it would be about here so you're accelerating with a positive acceleration first meaning you're speeding up as you move to the right then the acceleration becomes negative meaning you're slowing down not that you're you've turned around yet but you're just slowing down okay so that is going to be what the acceleration is to find the velocity we just integrate negative 0.6 t plus 4 DT that will give us negative 0.3 t squared plus four t plus c
uh it is starting from rest so at time 0 the initial velocity is zero so zero is zero plus zero plus C so C is zero and we get a velocity of negative 0.3 t squared plus four t we want to go 100 meters we want X to be 100 and solve for t we still need to solve for x so once again integrate X is the integral of negative 0.3 t squared plus four T DT that'll be negative 0.1 T cubed I don't know we're getting a cubic function it's okay it's okay we'll still solve it plus 2T squared plus C uh we are taking the initial position to be zero which is a natural thing to
do could we pick something else besides zero yeah but you're after really a distance traveled so it um you have to have time to go a certain distance traveled so it's best to take the position to be zero at Time Zero that ultimately gives this C to also be zero so your position as a function of time is X is negative 0.1 T cubed plus two t squared we want to go 100 meters find T so we need to set this equal to 100 and solve that cubic equation yikes
how can I solve a cubic equation and well I could maybe write it in standard form first I could write negative 0.1 T cubed plus 2T squared minus 100 equals zero I could maybe multiply everything by negative 10 this is equivalent to T cubed minus 20 t squared plus a thousand solve that equation okay there is there are things you can do to solve cubic equations even without technology but let's just use technology here so I'm going to go ahead and graph this cubic equation of course in this calculator it's got to use an X I plug the function into the calculator here x cubed minus 20 x squared plus one thousand pick a window
this seems like it might be a decent window to start with let's go ahead and see the graph here there's the graph we see it's got actually two two t intercepts here we would Abby after the first one when T goes between 0 and 12 let's go ahead and calculate that zero left bound I'm going to write them and I guess in fact T must be 10. it turns out to be a nice number 10 seconds you could always double check that maybe in this equation here let's just double check it even in our heads 10 cubed is a thousand times negative 0.1 is negative 100 10 squared is 100 times 2 is 200 negative 100 plus 200 is positive 100 yes this works 10 seconds is the answer that is how long it takes for the car to go 100 meters

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