1. Home
  2. Explore
  3. Mathematics
  4. Dynamical Systems Introduction

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Dynamical Systems Introduction

Transcript

hi everyone welcome to lecture one Oh what's my  personal favorite subject of all time yes you   heard that right differential equation is that  linear algebra you could call also call this   continuous and discrete dynamical systems we're  trying to describe systems that change over time   continuous refers to differential equations  where the system's changes in a continuous   way where the variable time say takes on say all  real numbers discrete dynamical systems refers to systems that change over time where time takes  on and say whole number values like 1 2 3 4 5 6   etc there is interplay between the two subjects  and that's another part of what makes it pretty   interesting currently this is early-summer 2020  the current a virus pandemic is going on this   class these lectures are meant from my class at  Buffalo University in fall 2020 talking to you my   students personally you know I don't know whether  we're gonna meet in person or not so I'm trying

to get a head start on things trying to make some  lectures to give us a flexibility to possibly meet   in person but also possibly meet online lecture  one is what is it all about we want to get the big   picture of things as well as some details ok and  in pretty much every lecture I'm gonna try to have   a time where you focus on working on a problem and  then also show you the solutions we'll try to make it as interactive as we possibly can all right  so what do you need for the textbook well the   main text that we use is a differential equations  book by Blanchard Devaney and Hall fourth edition   it looks like this ok this is a differential  equations textbook not a linear algebra textbook   but I will say there's plenty of linear algebra  in here ok so be aware of that do I like this   textbook yes I do like it otherwise I wouldn't  use it now you'll see online and some people don't

like it and it's true it's not the best reference  book if you're trying to find examples it can make   it difficult sometimes it is meant to be read  and I will tell you that I find that people who   actually read it do like it it's written in a  very conversational tone and the authors really   try to get across the main points in a very way in  fact okay and there even funny sometimes so try to   make sure you do that read there is some linear  algebra didn't but maybe not enough to call it a differential equations in linear algebra class  so I'm also gonna supplement with a book that I'm   writing at my blog my blog is infinity is really  big calm but linear algebra book that I'm writing   online is called visual linear algebra online  okay here's a picture of my blog let's actually   go there so you can see it my blog has got lots  of different things related to math but if you go

down far enough you'll find along the right side  a list of different topics and one of those topics   does include linear algebra I've got ten blog  posts which are essentially sections of my linear   algebra book on my blog right now I'm going to  write more over the coming months the last section   here which I wrote almost a year ago August  29th 2019 is about the determinant of a matrix   there's stuff about matrices and multimeters  multiplication high-dimensional linear algebra vectors something called linear transformations  as you keep going down down and in fact the very   first section of the book is about something that  seems pretty simple points coordinates something   called skew coordinates and their graphs when sons  like that way need to basic to even bother reading   but don't give in to the temptation to think that  you don't need to read it you should read it there

are a lot of subtleties with even basic things  that are worthwhile to learn in this subject   to really understand more fully what's going on  now these sections are not super short these are   pretty long blog posts and the reading will take a  while the reading is a big part of this course you   want to make sure you do it to really understand  these okay so that's something that you should do and I will continue writing and hopefully any more  sections here as the simmer moves on and into fall   2020 what is our main goal for the course okay  so this is a statement that you should keep in   mind as we go through the course as you know  our purpose this is like a purpose statement   and what is it mmm it's I'm describing it this way  to quantitatively and qualitatively model describe   hopefully understand and hopefully predict the  behavior of various quote unquote systems that

change over time time dynamical systems or  some people say dynamic systems our systems   that change the word dynamic means change we  want to quantitatively with numbers and with   formulas and qualitatively with graphs and save  verbal descriptions model something hopefully   accurately about the world describe it use  words to say what you see in the graphs for   example understand do we really understand well  we hopefully will at least understand the math even if we don't understand all the implications  for real life and then make predictions use the   formulas for example hopefully to make predictions  about the future for these systems that change   over time what are the typical kinds of behavior  that we're going to see in these systems well   one kind of behavior is actually very simple  you might call it static behavior essentially   it's something that doesn't change over time you  could represent that with say a horizontal graph

a horizontal line a function that doesn't change  over time that would be a one-dimensional way to   think of it we will also be talking about things  called phase lines feigns phase planes and phase   spaces and in that situation a static version of  this horizontal line is actually just a single   point when you think of that one point as a  constant parametric curve which is not really   a curve and if it's just one point but that's one  way to think of it other kinds of behavior will see our exponential growth for example exponential  decay oscillatory behavior maybe with the constant   amplitude maybe not maybe the amplitude decreases  over time and maybe chaotic behavior like with the   Lorenz attractor kind of unpredictable sort of  up and down for a while then maybe up and down   for a while over here things that can be pretty  hard to predict even within deterministic systems

like the Lorenz attractor that was the big reveal  that in deterministic systems unpredictable kinds   of things can happen chaotic things gonna happen  the butterfly effect it really is a real thing   how will we do this in a nutshell you could  describe it as saying by working from local   to global local to global what does that mean  in math it means think about the little pieces   local pieces like epigraph for example and piece  those things together to get a bigger graph or a

global graph that would be just a way of thinking  about local to global with graphing but we could   also think about integrating take the values  of the derivative integrate them you're going   to get the change in the original function that  for your essence of the fundamental theorem of   calculus there's something called the infinity  principle by Steven Strogatz from this book here   infinite powers which I highly recommend and in  fact I'm going to put an Amazon link to it in the description below that describes this you know  are way better than what I just said here it is to   shed light on any continuous shape object motions  gonna be a big one for us process or phenomenon   no matter how a while they're complicated it may  appear reimagine it as an infant series of simpler   parts analyze those and then add the results back  together to make sense of the original whole so

we're gonna see this come out in examples in a  word this is essentially integration however and   this is really good it does not always involve  actually doing integrals sometimes are will and   in fact here early in the course especially it  will but other times it won't actually involve   doing intervals and that's actually good things  that'll save us some time integrals in general   can be a pretty hard thing to do what are our  main applications of course on population growth

and decay including interacting species which  we'll talk about at the very end of lecture one   here briefly today projectile motion within  without air resistance the simplest form of   projectile motion is just up-down motion under the  influence of gravity a little bit more complicated   as two-dimensional motion like a projectile  following a parabola financial growth and fall   flows as we'll talk about compound interest and  you know what happens when you maybe do more than just let your money sit in the bank but you also  say continuously add money heating and cooling   we'll talk about the basics of that that's called  Newton's law of heating and cooling we could get   into more depth with something called the heat  equation maybe at the very end of the course   we'll have a little bit of time for that mixing  problems more officially called compartmental   analysis that says you know fancier essentially  we're talking about they're about say mixing some

salt water with some pure water to get some sort  of mixture and we're wondering what's the amount   of salt in the mixture as a function of time and  we'll make some simplifying assumptions there so   we don't have to worry about spatial effects big  thing though is actually harmonic oscillators in   various forms maybe you've heard that phrase  before harmonic oscillators essentially those   well in the simplest case are things that follow  oscillatory behavior like a sine wave or a cosine wave the general name for that is a sinusoidal  wave mechanical and electrical mechanical means   like a mass and a spring say moving up and down  electrical could mean say varying voltages or   currents undamped undamped on them means there's  no friction for example damped means there is   friction linear and non-linear linear' certainly  the simplest kind and when you think about saying   mass on a spring that does generally follow  a linear model as long as you don't yank the

spring too far at least nonlinear that comes up in  another very common situation to think about it's   called the pendulum something that swings back  and forth like this that's actually a nonlinear   system though it can be approximated by a linear  system and force an unforced so if you've got mass   on the springs are going up and down like this  and say it's attached to a piece of cardboard up here or something if you move the cardboard up and  down with your hands that's one way of reinforcing   it to the system and that will obviously affect  what happens and I'll enforce you not doing that   here's an example an unforced undamped harmonic  oscillator so what I'm going to show you here is   a graph and with the graph you're gonna see a dot  moving up and down what you should imagine is that

dot you say a mass hooked to a spring now I didn't  actually draw a spring in the picture it's just a   dot moving up and down but it's gonna follow a  cosine wave and that's an example of a harmonic   oscillator sometimes called simple harmonic  motion it's about as simple as it can be with   oscillatory behavior that's a solution actually of  a differential equation what is the differential   equation that this solution satisfies as well  as some initial conditions in other words an IVP

or initial value problem here it is the second  derivative of Y with respect to T twice equals   negative four times y that's the differential  equation these two equations are the two unknown   of the two initial conditions I should say Y of  zero equals one and y prime of zero equals zero   let's focus on the initial conditions first that's  easier to think about here Y of zero equals one   the value of this function this red graph that  you see here at T equals zero is one that point

right there is a point on this graph it satisfies  this image condition y prime of zero is zero the   initial slope rate of change of this red graph  at T equals zero is zero the tangent line at that   point right there is horizontal so it's fairly  easy to see that these two initial conditions   are satisfied what about the differential equation  what is that same it's saying that no matter where   you are no matter what time you're at now this  is moving here so we can't always focus on the

particular time in general and there's a reason  I wanted to move it here to show you the actual   motion again that of this up/down dot here at any  specific time you pick there's a certain point on   the graph you know this point looks like it has  coordinates maybe t is about 0.8 and Y is about   maybe about 0.18 or something like that the second  derivative which tells you about the concavity at   that point of this graph is equal to negative  4 times the y coordinate of the point negative

4 times 0.18 between negative 0.72 that is the  second derivative of this graph approximately at   that point now that's not such an easy thing to  be confident of in looking at the picture other   than to say it does seem reasonable that it should  be negative the graph in fact is you know concave   down from T equals 0 to T equals right about there  ok so other than the fact that it's negative it's   difficult to say that that really should be  the case that the second derivative of this

graph at this point should be negative 4 times  0.18 which again is negative point seven two but   that really is the case and that happens not just  at this point but at all the points how is this   related to a mass in a spring well essentially  if you may imagine the mass to have a mass of one   kilogram you can think of the second derivative  as say 1 times the acceleration of the object if   Y is the up/down position of that red dot over  there as time goes by which you can see in the

Meishan there that would be its acceleration when  the second derivative is negative when the graph   is concave down the acceleration is actually  negative which seems which can be confusing   here because it should seem like this Dottie is  speeding up as it's moving downward here and in   fact it is however it's speeding up in the  negative direction and that's enough to say   that the acceleration is negative where else is  the acceleration negative in here for example wait for it to come back around like that the  second derivative is also negative in this part   of it it's moving in the positive direction but  it really is slowing down in that case you know   in fact that at that point which evidently is  at PI the instantaneous velocity is zero the   slope of the tangent line is zero there so it's  really slowing down in that case it's moving in   the positive direction the negative acceleration  in that situation means that it truly is slowing

down so you can't make sense out of this as a mass  times acceleration what would this be and this is   essentially a force now it doesn't look like a  force does it or it's not written there's an F   how can negative 4y be a force we'll get into  that later okay I think I'll leave that for the   room what is the formula for this function in fact  it is cosine of 2t maybe you guessed that already   this is a cosine function 2t means the period of  this is pi comes back to where it started when

T is PI this indeed is PI right here how can you  check that this is a solution you can check that   it's satisfies the difference equation and the  initial conditions let me do that on the board   over here let's check the initial conditions for y  equals cosine of 2t Y of 0 by the way I am kind of   abusing notation here this is a common thing to do  in differential equations I'm using both Y for the dependent variable name in for the function name  essentially that's something that our textbook   does quite often I will make some distinctions  there humming lectures that emphasize that that's   actually a bad thing that we won't typically  worry about it but it's something that you should   be aware of why of zero is cosine of zero and  cosine of zero is indeed one so we satisfy this   energy condition what's Y prime the derivative  of cosine of 2t will be negative 2 sine two teens

right chain rule there what's Y prime of zero that  would be negative 2 sine of 0 but sine of zero is   zero we satisfy the initial condition as well what  about the differential equation this is the most   confusing thing for people how do you verify that  this satisfies the differential equation what you   need to do is you need to take this function and  substitute it into both the left-hand side and the right-hand side and in each case simplify and  see if you get the same answer listen and then so   the left-hand side LHS is the second derivative  I wrote it in wideness notation here for sure   I'll just write Y double prime I already know Y  prime is right there what's Y double prime take   the derivative of this you'll get another factor  of 2 you'll get negative 4 course 2 teeth that's

what the right-hand side simplified the left-hand  side simplifies what about the right-hand side of   the differential equation negative 4y what does  that simplify to when I plug in this function it simplifies to the exact same thing negative  4 goes to teams we have a match right here these   two functions of T are the same they are equal  for all values of T that is the thing that you   need for it to be a solution of the differential  equation this is a difficult thing for people when they're first learning about differential  equations trust me I've taught this course may   many times actually closely is just a plain  differential equations course and not linear   algebra this is a tough thing for people at first  if you're confused about what I did watch the last   couple minutes again or will some is it you take  the function that you think is a solution or you   hope as a solution you plug it into both the  left hand side and the right hand side of the

differential equation and in each case simplify  and see if you get the same function of T in the   end okay and if you do that means it's a solution  over whatever values of T it's defined for what are our main methods for this course our main  methods include some specialized techniques for   what are called separable and linear in ratings  and systems of equations pretty quickly here   intervene you know the beginning of the course  we're going to use something called a method

of integrating factors that's the main spot  where we'll be doing integrals in fact later   on in the semester we're going to be looking at  a method involving something called eigenvalues   and eigenvectors we'll do some educated guessing  seriously I'm not lying there we will and it will   be really useful and you will be able to do the  educated guessing once you practice enough it   also tends to work better for linear equations  is not only one big theme in the course linear equations are nice relatively simple nonlinear  equations are announced and is kind of hard   but sometimes we have to deal with them this  educated guessing definitely works better for   linear equations more efficiently the method they  are of educated guessing is called undetermined   coefficients here's the B okay this is something  that Blanchard Devaney in hall emphasized a lot   and I'm going to emphasize a lot we're going  to use what I called qualitative techniques

not quantity well though it will still involve  doing some calculations just not as many as you   could do if you were trying to literally solve the  solutions as formulas these qualitative techniques   can be described as phase plane analysis using  something called null Klein's and something else   called linearization now you probably have  no idea what that's about don't fear we're   gonna get into it plenty okay talk also about  numerical approximation in particular something

called Euler's method that is important there  are better approximation methods than or there's   nothing but it's not really going to be the  main focus of the course it's worth talking   about to some degree and lots of people need those  methods that sir they're really important but it's   not going to be our main focus our main focus  is going to be on the Biggie gear qualitative   techniques and mad at the end something called  Laplace transforms will be in another remaining method how does linear algebra play into  all this here's a big-picture description   linear algebra supplies both notation like for  vectors and matrices and methods like computing   eigenvalues and eigenvectors to conceptualize  represent solve and approximate differential   equations and their solutions that's was this  thorough one sentence description as I can   think of here conceptualized means that some  systems are linear it's a way to think about

them represent to okay that we're using the  symbols vectors and matrices there and when we   solve will use eigenvalues and eigenvectors and  we'll represent the solutions using vectors as   well approximate differential equations and their  solutions that's the linearization piece when I   mentioned the phase plane analysis with no claims  of linearization linearizing non-linear equations   is a way to approximate their solutions that's  a real big deal okay here's a summary of what

I just said vector matrix algebra to represent  systems of differential equations and difference   equations I don't want to forget about difference  equations the biggie linear transformations to   represent okay here's that here's the big  thing changes of coordinates you could also   call that changes of variables to facilitate  calculations and understand especially changes   of coordinates defined by special vectors called  eigenvectors in some numbers related to those like in thousands this is a real big deal  and it's the main thing I in my visual linear   algebra book on my blog Infiniti is really  big it's the main thing I emphasized overall   in chapter 1 again linearization of nonlinear  equations to approximate their solutions this   one sounds kind of weird differential linear  operators and spaces of solutions if you've   learned enough linear algebra in the past  to have learned about vector spaces that

might give you a little hint about what this is  and linear transformations essentially we want   to use some linear algebra tools to describe  solution spaces which essentially consists of   all possible solutions of certain differential  equation more detail about that later not sure   if we're gonna have time for this last bullet I'm  hoping to something called inner product spaces if   you've ever heard of dot products inner products  are a generalization of dot product least square solutions and their relationships to solutions of  what are called partial differential equations and   I'm not sure we're gonna have time for that I'm  hoping I will be able to fit it in it's doing   right now by November or December I'll be able to  make some videos about that partial differential   equations involve partial derivatives in the  set of ordinary derivatives they are harder to   understand than ordinary differential equations  some very famous ones we want to understand the

basics of something called the heat equation the  wave equation and Laplace equation hopefully we   can give a little glimmer of what those things are  about but we won't be able to get into much depth   they are related to linear algebra though all  right now we're going to talk about an example   ok so that's the summary of everything let's  get into an example here and for this example   I would go ahead and work on it on this particular  screen here and then I think I have the solution well I forget if it's on the screen or the next  screen then I'm gonna pause and let you work on   and while you should pause the video then here we  go modeling that by the way that says Louis Wylie   rabbits okay there's a little bit of relationship  to Elmer Fudd and Bugs Bunny there if you modeling the striving understanding and predicting  remember our big theme here's the situation in   unconstrained population of rabbits starts with  two young bunnies and doubles in size every month

does that really happen I don't know I just made  it up I say didn't do a little bit of looking   into how finance rabbits reproduce and this is  actually maybe not too far off the mark at least   in unconstrained situations our goal here is to  represent this mathematically and determine when   the population will reach 1 million rabbits but  that really happen would it really reach 1 million   rabbits probably not in real life okay this is  unconstrained so we're making an assumption here that's probably not realistic in real life there  are constraints constraints on food constraints on   space constraints on people who might put those  bunnies sorry so there are constraints so this   probably would not happen in the wild and this  is what happens with model building these you   start simple and see what happens and then you  say that's what that's probably not realistic   it might give us good approximations in the  short run but in the long run it's like you

tweak your model you try to make it better okay  that is the process of model building which is   a big thing to do in this course that's part of  our big so let's go ahead and start describing   this mathematically I'm going to go ahead and use  notation that you're going to see in later slides   here this is not obvious limitation to use but  I'm gonna go ahead and do it I'm gonna write P   initially here to represent population and I'm  gonna use a subscript n here and I'm gonna call

this P sub n when I look at P sub N and this  is common notation in math for what's called   a sequence in a sequence from one point of view  is just an infinite list of numbers that often   has a pattern like one 1/2 1/4 1/8 1/16 1/32 etc  that would be an example a sequence that goes on   forever with the pattern you keep multiplying by  1/2 to get the next term in the sequence all the   way these are courts that he can't tell it was  our P sub n and technically speaking sequences

are more than just a list of numbers they're  really functions in this notation the end the   subscript is the input for the function it's  the independent version it's the time variable   and the P you might say or maybe the entire  simple piece of n is the dependent variable   and this is where we get a little funny with our  abusing notation here is P sub n a variable or is   it a function we don't usually worry about the  distinctions the subtle distinctions between

those two things sometimes we will but not usually  what does it equal essentially pattern recognition   so there's two bunnies at time zero say we can  make a little table here at time zero we've got   two bunnies at time one month look at the unit's  here this is every month we're gonna have double   now we're gonna have four two months after the  beginning where they double again and get eight   three months after time zero we're going to  double again to get 16 etc essentially we're

after pattern recognition here the number of  bunnies is two at time zero for time one eight   at time two how these are powers of two - should  it is it two to the N you could try it and see if   it works it's that right when it is zero this is  time in here you get 2 to the 0 which is 1 not 2   okay this doesn't quite work mmm well but a little  adjustment will make it work I can multiply this

by 2 now at N equals 0 I'll have 2 to the 0 which  is 1 times 2 is 2 when n is 1 I'll have 2 to the   first which is two times two is four when n is  two well have two squared times two is two cubed   or eight this is looking like it's working and you  also could use rules of exponents since you write   this as 2 to the n plus 1 you add those exponents  there is a very succinct mathematical description of what's going on here with the bunny population  okay so we have done the describing mathematically   at least so other describing we could do yes we  could make a graph and we'll see a graph here soon are we understanding it yeah I mean this is  a pretty simple thing to understand can we   use it to predict that's what we want to do now  represent it mathematically and determine when a   population will reach 1 million rabbits now we're  doing the predicting doesn't mean the predicting

is accurate it just means we're doing predicting  so essentially it's just doing some algebra here   so I want to set P sub n equal to 1 million this  is a set e equal to I'm not saying this is true   for all in I'm saying it's true maybe for some  particular and I'd like to find it in and if you   think about it actually it probably not a whole  number here so I need to solve this equation for   n hopefully from your precalc days you know  I gotta use logarithms right doesn't matter

what log you use can I use common logarithm log  base 10 sure kind of use natural logarithm log   base E sure kind of use some other log log base  2 perhaps would that be a good idea well yeah   you could but most calculators don't have a log  base 2 button so what would you do in that case   hey well maybe you would figure it out in some  other way or maybe your calculator does have a   log base 2 button let's use Ln ok let's take  the natural log of both sides Ln that will be

the thing we typically do log base E that's  going to imply natural log of a million it   is natural log of 2 to the n plus 1 now you  remember all those rules of logarithms that   use back from precalc hopefully and you maybe  didn't like them very much well now they're   really useful ok you don't want to forget your  rules of logarithms in this case you can bring   that exponent down in front of the logarithm  you can write this as n plus 1 times natural

log of 2 I should I think in my written solution  I have the function like this and I divided both   sides by 2 first but we'll get the same answer  here in the end we'll see the written solution   soon here we want to solve for n even though  this equation looks complicated is actually   conceptually speaking a fairly simple equation  in n it's the leader in it I can sulphur in by   isolating first divide both sides by natural log  of 2 mmm that'll cancel the natural log of 2 over there and you'll be left with just an N plus 1  then subtract 1 looks like N and is natural log   of a million divided by natural log of 2 minus  1 you may want to get your calculator out your   site here but I do use my computer to do the  calculation here what is this approximately

I get approximately eighteen point nine by the  way I do make plenty of mistakes so I'll try to   catch them before I post it on YouTube here I'm  getting about 18.9 here maybe I made a mistake   but wait a minute and needs to be a whole number  when the population will reach 1 million or or   higher for the first time the first event so you  really should round this up to 19 and by the way   you would round that up to 19 even if this was  an 18 point one don't run down date you know I

mean you could say it's approximately a million  when there's 18 but just over a million we want   to go to 19 okay so we made a prediction again  it's not clear whether that's accurate cuz the   bar but that's 19 months that's just a year and  seven months little over a year and half yeah   just to go from two to a million bunnies oh you  better hope this is not accurate alright here   I'm gonna talk about that with some details that I  already had type ahead of time that by the way was

a difference equation not a differential equation  it was a difference equation it didn't involve   any derivatives differential equations involve  derivatives this equation right here P sub n plus   1 equals 2 times P sub n where n is 0 1 2 3 etc is  called a difference equation now you might scratch   your head and wonder why is called a difference  equation when there's no differences in it well sometimes people write it with the difference it's  equivalent to if you subtract 2 p.m. from both   sides you get this and there is a difference so  that might be one reason to call it a difference   equation and maybe it's not a good enough  reason but I'll go with it it's also known as   a recurrence relation with another the importance  pay attention to what I say in a somewhat indirect   or local way remember a theme of going from local  to global it describes the rabbit population Qian

as a function of a number of months again how it's  saying to get the population in the next month n   plus one is the next month after month in take  the population in month in and multiply by two   doubled this is a local thing because it's focused  on a particular value of n maybe and is 7 I know   piece of seven I multiply it by 2 to get piece  of eight look however we can pretty go easily   to a direct or global formula in fact I wrote  it on the previous slide piece of an e equals

p0 x to the n for n equals zero one two or three  this is supposed to be able done in going from a   Mac to a PC and sometimes grooves it up like that  I need to remember that that happens wait a minute   doesn't look what we were like when I wrote before  whatever it before I wrote a true there before p   0 is the initial population there were two bunnies  at time 0 there was a 2 here before but in general there might not be two bunnies there could be 8  bunnies for example at the starter 10 buddies even   not necessarily a power of 2 p 0 is the initial  population and you see how this is a global   formula it's going to give you the answer if you  know p 0 or P naught for short not meaning in a   ugh T is sort of shorthand for 0 if you know about  initial population for any and this will give you   the population you can play an N equals a million  to the million times feasor that's way too big

whereas if you're using this form you have to  use this equation over and over again a million   times to get P million this local equation can be  easily solve to a global equation that's a better   form of way to represent the solution represent  the population this has been the solution is   better than the difference equation likewise  for differential equations the solutions if we   can find them are better than the differential  equation in some ways at least okay here we come

back to verifying it remember when you did in the  board but they erased over there how do you verify   this is a solution of the difference equation just  like what there's a pretty differential equation   that was on the board we want to substitute it  into the left hand side belly chest and in the   right hand side RHS all the difference equation  to see if it's simplifies to the same thing and   a function of in for the differential equation  it was a function of T so what does that mean

here the left hand side is PN plus 1 this is the  difference equation up here PN plus 1 what is PN   plus 1 when we use this formula when we use this  proposed solution well just replace the N word   that was one that's what I did here I replaced  that n with n plus 1 because there's an N plus   1 that ok and what about the right hand side  oops there we go right hand side if this 2 PN   right there what's PN assuming if this plug that  in there it's right there simplify use rules of

exponents get this hey this thing and this thing  are the exact same function then done that's why   it's a solution of the difference between training  again I'll reinforce eyes this is something that   people often have a hard time with it in this  course reading about difference equations or   difference equations is realizing what you're  supposed to do to verify it's a solution by the   way write down some arbitrary function of n in  all likelihood it's not going to be a solution

in fact if you can't put it in this form you can  you prove it won't be a solution like I could   write p.m. it was N squared or something then PN  plus 1 would be the left hand side would be n plus   1 quantity squared whereas 2 PN is going to be  2 N squared and these are not the same function   of n not the same I mean they might be equal for  one or two values of n but they're not the same   function of n therefore that's not a solution  of the difference equation you should be able

to verify other functions are not solutions ok and  you think of some other function that can now be   put in this form it will not be a solution either  so that's really important keep emphasizing that   what it graphs is like technically speaking for  this difference equation and it's solution p.m.   and is a whole number starting with zero say  non-negative integer that's another way to set   up 0 1 2 3 4 etc technically speaking I do not  plug in fractional values of n like 1/2 or PI or

2.3 for something and so technically speaking I  should make just some points and not connect the   dots that's why I did here but I did add some  lines of the picture some vertical lines and   equals 0 1 2 3 and 4 and some horizontal lines  showing you the outputs of this function when   n is 0 the output there's that's a to this point  has coordinates 0 to this line is at an output of   4 this point has coordinates 1 4 this is an output  and a of 8 this is to 8 at this point here is 3 16

432 560 force 5 comma 64 there's a graph of  this and don't connect the nuts now it's real   tempting to connect the dots isn't it but  don't not further this kind of difference   equation because we're not imagining this is  necessarily accurate in between these whole   number always been even though the formula could  be accurate there and in fact when I think about   a differential equation that we will assume it is  accurate actually here's an autograph for me said

various graphs what I do there here I made the  scale in the vertical direction a lot different   and I also expand the scale the horizontal  direction I go up to N equals 20 here and   look by the time you get to N equals 20 the gal  put his up on Poppa million ten to the sixth year   that is a million and we are slightly slightly  above ugly in there okay here you can see more   of the exponential behavior this is an exponential  function of animus it's not so clear here other

than the fact that it's increasing and concave up  if you did connect the dots with this one curve   but with exponential functions when you graph on  a bigger scale like this you're often gonna see   this kind of behavior it seems almost horizontal  for a while and all of a sudden it goes way up   real fast now if I mean the scaling there'd be  even more pronounced same function different   labeling for the axes does result in a different  looking graph one more graph I'm going to make it is kind of weird this what am I doing here it's  the exact same function but what wait it doesn't   look exponential anymore that's because I've  essentially made the vertical scale logarithmic

before that's what I've essentially done here  although to technically make it logarithm   logarithmic do you focus along the the exponents  of these things 10 is 10 to the 1st 100 is 10   squared 1000 is 10 cubed etc and maybe label these  things with the exponents of the 10 instead but   essentially it's the logarithmic and this is  actually a pretty useful thing if you draw a   logarithmic scale and you get data that is linear  looking it's actually an exponential function okay

I'll let you maybe think about why that's the case  why am I doing this way other than justice to me   it's kind of fun um I'm trying to emphasize the  point I'm going to make real heavily in lecture   2 that graphs are not unique for one thing we  can wipe the window but for another thing we can   change how the scale happens and that is related  to changes of coordinates which I said was the big

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent