Fill This Form To Receive Instant Help

Help in Homework
trustpilot ratings
google ratings


Homework answers / question archive / MATH 266: FINAL Name: SHOW ALL YOUR WORK √ 1

MATH 266: FINAL Name: SHOW ALL YOUR WORK √ 1

Math

MATH 266: FINAL Name: SHOW ALL YOUR WORK √ 1. [20 pts.] Find the general solution of t cos(y) + y0 1 + t sin(y) = 0. y 2. [20 pts.] Find the general solution of y0 = − + 2. t 3. [20 pts.] Find the general solution of (y2 − 3ty − 2t 2 ) + (ty − t 2 )y0 = 0. 4. [20 pts.] Find the general solution of and sketch the phase portrait for the linear system ! −3 −2 dY = Y. dt 3 1 5. [20 pts.] Find the general solution of and sketch the phase portrait for the linear system ! 2 4 dY = Y. dt 3 6 6. [20 pts.] Find the general solution of dY = dt 2 ! 4 3 6 Y+ 1 1 ! . 7. [20 pts.] Find the general solution of y00 + 6y0 + 8y = t + e−2t + sin(t). 8. [20 pts.] Verify that y1 (t) = t 2 and y2 (t) = t −2 are solutions of t 2 y00 + ty0 − 4y = 0 and find the general solution of t 2 y00 + ty0 − 4y = t 3 . 9. [20 pts.] Solve the initial-value problem: y00 + y = δ1 (t) + u2 (t)t, y(0) = y0 (0) = 0. 10. [20 pts.] Find the first 5 terms of the power series solution of y00 + 3ty0 + et y = 2t, y(0) = 1, y0 (0) = −1. Notes on Diffy Qs Differential Equations for Engineers by Ji?í Lebl July 21, 2020 (version 6.1) 2 Typeset in LATEX. Copyright ©2008–2020 Ji?í Lebl This work is dual licensed under the Creative Commons Attribution-Noncommercial-Share Alike 4.0 International License and the Creative Commons Attribution-Share Alike 4.0 International License. To view a copy of these licenses, visit https://creativecommons.org/licenses/by-nc-sa/4.0/ or https://creativecommons.org/licenses/by-sa/4.0/ or send a letter to Creative Commons PO Box 1866, Mountain View, CA 94042, USA. You can use, print, duplicate, share this book as much as you want. You can base your own notes on it and reuse parts if you keep the license the same. You can assume the license is either the CC-BY-NC-SA or CC-BY-SA, whichever is compatible with what you wish to do, your derivative works must use at least one of the licenses. Derivative works must be prominently marked as such. During the writing of this book, the author was in part supported by NSF grant DMS-0900885 and DMS-1362337. The date is the main identifier of version. The major version / edition number is raised only if there have been substantial changes. Edition number started at 5, that is, version 5.0, as it was not kept track of before. See https://www.jirka.org/diffyqs/ for more information (including contact information). The LATEX source for the book is available for possible modification and customization at github: https://github.com/jirilebl/diffyqs Contents Introduction 7 0.1 Notes about these notes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 0.2 Introduction to differential equations . . . . . . . . . . . . . . . . . . . . . . . 10 0.3 Classification of differential equations . . . . . . . . . . . . . . . . . . . . . . 17 1 2 3 First order equations 1.1 Integrals as solutions . . . . . . . . . . . . . 1.2 Slope fields . . . . . . . . . . . . . . . . . . . 1.3 Separable equations . . . . . . . . . . . . . . 1.4 Linear equations and the integrating factor 1.5 Substitution . . . . . . . . . . . . . . . . . . 1.6 Autonomous equations . . . . . . . . . . . . 1.7 Numerical methods: Euler’s method . . . . 1.8 Exact equations . . . . . . . . . . . . . . . . 1.9 First order linear PDE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Higher order linear ODEs 2.1 Second order linear ODEs . . . . . . . . . . . . 2.2 Constant coefficient second order linear ODEs 2.3 Higher order linear ODEs . . . . . . . . . . . . 2.4 Mechanical vibrations . . . . . . . . . . . . . . 2.5 Nonhomogeneous equations . . . . . . . . . . . 2.6 Forced oscillations and resonance . . . . . . . . . . . . . . . . . . . . . . . Systems of ODEs 3.1 Introduction to systems of ODEs . . . . . . . . . 3.2 Matrices and linear systems . . . . . . . . . . . . 3.3 Linear systems of ODEs . . . . . . . . . . . . . . 3.4 Eigenvalue method . . . . . . . . . . . . . . . . . 3.5 Two-dimensional systems and their vector fields 3.6 Second order systems and applications . . . . . . 3.7 Multiple eigenvalues . . . . . . . . . . . . . . . . 3.8 Matrix exponentials . . . . . . . . . . . . . . . . . 3.9 Nonhomogeneous systems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 21 27 33 40 46 51 57 63 72 . . . . . . 79 79 84 90 96 104 111 . . . . . . . . . 119 119 127 136 140 147 152 162 169 177 4 4 CONTENTS Fourier series and PDEs 4.1 Boundary value problems . . . . . . . . . . . . . . . . 4.2 The trigonometric series . . . . . . . . . . . . . . . . . 4.3 More on the Fourier series . . . . . . . . . . . . . . . . 4.4 Sine and cosine series . . . . . . . . . . . . . . . . . . . 4.5 Applications of Fourier series . . . . . . . . . . . . . . 4.6 PDEs, separation of variables, and the heat equation . 4.7 One-dimensional wave equation . . . . . . . . . . . . 4.8 D’Alembert solution of the wave equation . . . . . . . 4.9 Steady state temperature and the Laplacian . . . . . . 4.10 Dirichlet problem in the circle and the Poisson kernel . . . . . . . . . . 189 189 198 208 218 226 232 243 252 258 264 5 More on eigenvalue problems 5.1 Sturm–Liouville problems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5.2 Higher order eigenvalue problems . . . . . . . . . . . . . . . . . . . . . . . . 5.3 Steady periodic solutions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 273 273 282 286 6 The Laplace transform 6.1 The Laplace transform . . . . . . . . . . . 6.2 Transforms of derivatives and ODEs . . . 6.3 Convolution . . . . . . . . . . . . . . . . . 6.4 Dirac delta and impulse response . . . . . 6.5 Solving PDEs with the Laplace transform . . . . . 293 293 300 308 313 320 7 Power series methods 7.1 Power series . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7.2 Series solutions of linear second order ODEs . . . . . . . . . . . . . . . . . . 7.3 Singular points and the method of Frobenius . . . . . . . . . . . . . . . . . . 327 327 335 342 8 Nonlinear systems 8.1 Linearization, critical points, and equilibria . . . . . 8.2 Stability and classification of isolated critical points 8.3 Applications of nonlinear systems . . . . . . . . . . 8.4 Limit cycles . . . . . . . . . . . . . . . . . . . . . . . 8.5 Chaos . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 351 351 357 364 373 378 . . . . . . 385 385 396 407 421 428 436 A Linear algebra A.1 Vectors, mappings, and matrices . . . A.2 Matrix algebra . . . . . . . . . . . . . . A.3 Elimination . . . . . . . . . . . . . . . . A.4 Subspaces, dimension, and the kernel A.5 Inner product and projections . . . . . A.6 Determinant . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . CONTENTS 5 B Table of Laplace Transforms 443 Further Reading 445 Solutions to Selected Exercises 447 Index 461 6 CONTENTS Introduction 0.1 Notes about these notes Note: A section for the instructor. This book originated from my class notes for Math 286 at the University of Illinois at Urbana-Champaign (UIUC) in Fall 2008 and Spring 2009. It is a first course on differential equations for engineers. Using this book, I also taught Math 285 at UIUC, Math 20D at University of California, San Diego (UCSD), and Math 4233 at Oklahoma State University (OSU). Normally these courses are taught with Edwards and Penney, Differential Equations and Boundary Value Problems: Computing and Modeling [EP], or Boyce and DiPrima’s Elementary Differential Equations and Boundary Value Problems [BD], and this book aims to be more or less a drop-in replacement. Other books I used as sources of information and inspiration are E.L. Ince’s classic (and inexpensive) Ordinary Differential Equations [I], Stanley Farlow’s Differential Equations and Their Applications [F], now available from Dover, Berg and McGregor’s Elementary Partial Differential Equations [BM], and William Trench’s free book Elementary Differential Equations with Boundary Value Problems [T]. See the Further Reading chapter at the end of the book. 0.1.1 Organization The organization of this book to some degree requires chapters be done in order. Later chapters can be dropped. The dependence of the material covered is roughly: Introduction Appendix A Chapter 1 Chapter 2 Chapter 3 Chapter 8 Chapter 7 Chapter 4 Chapter 5 Chapter 6 8 INTRODUCTION There are a few references in chapters 4 and 5 to chapter 3 (some linear algebra), but these references are not essential and can be skimmed over, so chapter 3 can safely be dropped, while still covering chapters 4 and 5. Chapter 6 does not depend on chapter 4 except that the PDE section 6.5 makes a few references to chapter 4, although it could, in theory, be covered separately. The more in-depth appendix A on linear algebra can replace the short review § 3.2 for a course that combines linear algebra and ODE. 0.1.2 Typical types of courses Several typical types of courses can be run with the book. There are the two original courses at UIUC, both cover ODE as well some PDE. Either, there is the 4 hours-a-week for a semester (Math 286 at UIUC): Introduction (0.2), chapter 1 (1.1–1.7), chapter 2, chapter 3, chapter 4 (4.1–4.9), chapter 5 (or 6 or 7 or 8). Or, the second course at UIUC is at 3 hours-a-week (Math 285 at UIUC): Introduction (0.2), chapter 1 (1.1–1.7), chapter 2, chapter 4 (4.1–4.9), (and maybe chapter 5, 6, or 7). A semester-long course at 3 hours a week that doesn’t cover either systems or PDE will cover, beyond the introduction, chapter 1, chapter 2, chapter 6, and chapter 7, (with sections skipped as above). On the other hand, a typical course that covers systems will probably need to skip Laplace and power series and cover chapter 1, chapter 2, chapter 3, and chapter 8. If sections need to be skipped in the beginning, a good core of the sections on single ODE is: 0.2, 1.1–1.4, 1.6, 2.1, 2.2, 2.4–2.6. The complete book can be covered at a reasonably fast pace at approximately 76 lectures (without appendix A) or 86 lectures (with appendix A replacing § 3.2). This is not accounting for exams, review, or time spent in a computer lab. A two-quarter or a two-semester course can be easily run with the material. For example (with some sections perhaps strategically skipped): Semester 1: Introduction, chapter 1, chapter 2, chapter 6, chapter 7. Semester 2: Chapter 3, chapter 8, chapter 4, chapter 5. A combined course on ODE with linear algebra can run as: Introduction, chapter 1 (1.1–1.7), chapter 2, appendix A, chapter 3 (w/o § 3.2), (possibly chapter 8). The chapter on the Laplace transform (chapter 6), the chapter on Sturm–Liouville (chapter 5), the chapter on power series (chapter 7), and the chapter on nonlinear systems (chapter 8), are more or less interchangeable and can be treated as “topics”. If chapter 8 is covered, it may be best to place it right after chapter 3, and chapter 5 is best covered right after chapter 4. If time is short, the first two sections of chapter 7 make a reasonable self-contained unit. 0.1. NOTES ABOUT THESE NOTES 0.1.3 9 Computer resources The book’s website https://www.jirka.org/diffyqs/ contains the following resources: 1. Interactive SAGE demos. 2. Online WeBWorK homeworks (using either your own WeBWorK installation or Edfinity) for most sections, customized for this book. 3. The PDFs of the figures used in this book. I taught the UIUC courses using IODE (https://faculty.math.illinois.edu/iode/). IODE is a free software package that works with Matlab (proprietary) or Octave (free software). The graphs in the book were made with the Genius software (see https: //www.jirka.org/genius.html). I use Genius in class to show these (and other) graphs. The LATEX source of the book is also available for possible modification and customization at github (https://github.com/jirilebl/diffyqs). 0.1.4 Acknowledgments Firstly, I would like to acknowledge Rick Laugesen. I used his handwritten class notes the first time I taught Math 286. My organization of this book through chapter 5, and the choice of material covered, is heavily influenced by his notes. Many examples and computations are taken from his notes. I am also heavily indebted to Rick for all the advice he has given me, not just on teaching Math 286. For spotting errors and other suggestions, I would also like to acknowledge (in no particular order): John P. D’Angelo, Sean Raleigh, Jessica Robinson, Michael Angelini, Leonardo Gomes, Jeff Winegar, Ian Simon, Thomas Wicklund, Eliot Brenner, Sean Robinson, Jannett Susberry, Dana Al-Quadi, Cesar Alvarez, Cem Bagdatlioglu, Nathan Wong, Alison Shive, Shawn White, Wing Yip Ho, Joanne Shin, Gladys Cruz, Jonathan Gomez, Janelle Louie, Navid Froutan, Grace Victorine, Paul Pearson, Jared Teague, Ziad Adwan, Martin Weilandt, Sönmez ?ahuto?lu, Pete Peterson, Thomas Gresham, Prentiss Hyde, Jai Welch, Simon Tse, Andrew Browning, James Choi, Dusty Grundmeier, John Marriott, Jim Kruidenier, Barry Conrad, Wesley Snider, Colton Koop, Sarah Morse, Erik Boczko, Asif Shakeel, Chris Peterson, Nicholas Hu, Paul Seeburger, Jonathan McCormick, David Leep, William Meisel, Shishir Agrawal, Tom Wan, Andres Valloud, and probably others I have forgotten. Finally, I would like to acknowledge NSF grants DMS-0900885 and DMS-1362337. 10 0.2 INTRODUCTION Introduction to differential equations Note: more than 1 lecture, §1.1 in [EP], chapter 1 in [BD] 0.2.1 Differential equations The laws of physics are generally written down as differential equations. Therefore, all of science and engineering use differential equations to some degree. Understanding differential equations is essential to understanding almost anything you will study in your science and engineering classes. You can think of mathematics as the language of science, and differential equations are one of the most important parts of this language as far as science and engineering are concerned. As an analogy, suppose all your classes from now on were given in Swahili. It would be important to first learn Swahili, or you would have a very tough time getting a good grade in your classes. You saw many differential equations already without perhaps knowing about it. And you even solved simple differential equations when you took calculus. Let us see an example you may not have seen: ?? + ? = 2 cos ?. (1) ?? Here ? is the dependent variable and ? is the independent variable. Equation (1) is a basic example of a differential equation. It is an example of a first order differential equation, since it involves only the first derivative of the dependent variable. This equation arises from Newton’s law of cooling where the ambient temperature oscillates with time. 0.2.2 Solutions of differential equations Solving the differential equation means finding ? in terms of ?. That is, we want to find a function of ?, which we call ?, such that when we plug ?, ?, and ?? ?? into (1), the equation holds; that is, the left hand side equals the right hand side. It is the same idea as it would be for a normal (algebraic) equation of just ? and ?. We claim that ? = ?(?) = cos ? + sin ? is a solution. How do we check? We simply plug ? into equation (1)! First we need to ?? compute ?? ?? . We find that ?? = − sin ? + cos ?. Now let us compute the left-hand side of (1). ?? + ? = (− sin ? + cos ?) + (cos ? + sin ?) = 2 cos ?. ?? | {z } | {z } ?? ?? ? Yay! We got precisely the right-hand side. But there is more! We claim ? = cos ? + sin ? + ? −? is also a solution. Let us try, ?? = − sin ? + cos ? − ? −? . ?? 11 0.2. INTRODUCTION TO DIFFERENTIAL EQUATIONS We plug into the left-hand side of (1) ?? + ? = (− sin ? + cos ? − ? −? ) + (cos ? + sin ? + ? −? ) = 2 cos ?. ?? {z } | {z } | ? ?? ?? And it works yet again! So there can be many different solutions. For this equation all solutions can be written in the form ? = cos ? + sin ? + ?? −? , for some constant ?. Different constants ? will give different solutions, so there are really infinitely many possible solutions. See Figure 1 for the graph of a few of these solutions. We will see how we find these solutions a few lectures from now. Solving differential equations can be quite hard. There is no general method that solves every differential equation. We will generally focus on how to get exact formulas for solutions of certain differential equations, but we will also spend a little bit of time on getting approximate solutions. And we will spend some time on understanding the equations without solving them. Most of this book is dedicated to ordinary differential equations or ODEs, that is, equations with only one independent variable, Figure 1: Few solutions of ?? ?? + ? = 2 cos ?. where derivatives are only with respect to this one variable. If there are several independent variables, we get partial differential equations or PDEs. Even for ODEs, which are very well understood, it is not a simple question of turning a crank to get answers. When you can find exact solutions, they are usually preferable to approximate solutions. It is important to understand how such solutions are found. Although in real applications you will leave much of the actual calculations to computers, you need to understand what they are doing. It is often necessary to simplify or transform your equations into something that a computer can understand and solve. You may even need to make certain assumptions and changes in your model to achieve this. To be a successful engineer or scientist, you will be required to solve problems in your job that you never saw before. It is important to learn problem solving techniques, so that you may apply those techniques to new problems. A common mistake is to expect to learn some prescription for solving all the problems you will encounter in your later career. This course is no exception. 0 1 2 3 4 5 3 3 2 2 1 1 0 0 -1 -1 0 1 2 3 4 5 12 0.2.3 INTRODUCTION Differential equations in practice So how do we use differential equations in Real-world problem science and engineering? First, we have some real-world problem we wish to understand. We abstract interpret make some simplifying assumptions and cresolve ate a mathematical model. That is, we translate Mathematical Mathematical the real-world situation into a set of differential model solution equations. Then we apply mathematics to get some sort of a mathematical solution. There is still something left to do. We have to interpret the results. We have to figure out what the mathematical solution says about the real-world problem we started with. Learning how to formulate the mathematical model and how to interpret the results is what your physics and engineering classes do. In this course, we will focus mostly on the mathematical analysis. Sometimes we will work with simple real-world examples so that we have some intuition and motivation about what we are doing. Let us look at an example of this process. One of the most basic differential equations is the standard exponential growth model. Let ? denote the population of some bacteria on a Petri dish. We assume that there is enough food and enough space. Then the rate of growth of bacteria is proportional to the population—a large population grows quicker. Let ? denote time (say in seconds) and ? the population. Our model is ?? = ??, ?? for some positive constant ? > 0. Example 0.2.1: Suppose there are 100 bacteria at time 0 and 200 bacteria 10 seconds later. How many bacteria will there be 1 minute from time 0 (in 60 seconds)? First we need to solve the equation. We claim that a solution is given by 0 10 20 30 40 50 60 6000 6000 5000 5000 4000 4000 3000 3000 2000 2000 1000 1000 ?? ?(?) = ?? , where ? is a constant. Let us try: ?? = ? ?? ?? = ??. ?? And it really is a solution. OK, now what? We do not know ?, and we do not know ?. But we know something. We know ?(0) = 100, and we know ?(10) = 200. Let us plug these conditions in and see what happens. 0 0 0 10 20 30 40 50 60 Figure 2: Bacteria growth in the first 60 seconds. 100 = ?(0) = ?? ?0 = ?, 200 = ?(10) = 100 ? ?10 . 0.2. INTRODUCTION TO DIFFERENTIAL EQUATIONS Therefore, 2 = ? 10? or ln 2 10 13 = ? ≈ 0.069. So ?(?) = 100 ? (ln 2)?/10 ≈ 100 ? 0.069? . At one minute, ? = 60, the population is ?(60) = 6400. See Figure 2 on the preceding page. Let us talk about the interpretation of the results. Does our solution mean that there must be exactly 6400 bacteria on the plate at 60s? No! We made assumptions that might not be true exactly, just approximately. If our assumptions are reasonable, then there will be approximately 6400 bacteria. Also, in real life ? is a discrete quantity, not a real number. However, our model has no problem saying that for example at 61 seconds, ?(61) ≈ 6859.35. Normally, the ? in ? 0 = ?? is known, and we want to solve the equation for different initial conditions. What does that mean? Take ? = 1 for simplicity. Suppose we want to solve the equation ?? ?? = ? subject to ?(0) = 1000 (the initial condition). Then the solution turns out to be (exercise) ?(?) = 1000 ? ? . We call ?(?) = ?? ? the general solution, as every solution of the equation can be written in this form for some constant ?. We need an initial condition to find out what ? is, in order to find the particular solution we are looking for. Generally, when we say “particular solution,” we just mean some solution. 0.2.4 Four fundamental equations A few equations appear often and it is useful to just memorize what their solutions are. Let us call them the four fundamental equations. Their solutions are reasonably easy to guess by recalling properties of exponentials, sines, and cosines. They are also simple to check, which is something that you should always do. No need to wonder if you remembered the solution correctly. First such equation is ?? = ? ?, ?? for some constant ? > 0. Here ? is the dependent and ? the independent variable. The general solution for this equation is ?(?) = ?? ?? . We saw above that this function is a solution, although we used different variable names. Next, ?? = −? ?, ?? for some constant ? > 0. The general solution for this equation is ?(?) = ?? −?? . 14 INTRODUCTION Exercise 0.2.1: Check that the ? given is really a solution to the equation. Next, take the second order differential equation ?2 ? 2 = −? 2 ?, ?? for some constant ? > 0. The general solution for this equation is ?(?) = ?1 cos(??) + ?2 sin(??). Since the equation is a second order differential equation, we have two constants in our general solution. Exercise 0.2.2: Check that the ? given is really a solution to the equation. Finally, consider the second order differential equation ?2 ? 2 = ? 2 ?, ?? for some constant ? > 0. The general solution for this equation is ?(?) = ?1 ? ?? + ?2 ? −?? , or ?(?) = ?1 cosh(??) + ?2 sinh(??). For those that do not know, cosh and sinh are defined by ? ? − ? −? ? ? + ? −? , sinh ? = . 2 2 They are called the hyperbolic cosine and hyperbolic sine. These functions are sometimes easier to work with than exponentials. They have some nice familiar properties such as ? ? cosh 0 = 1, sinh 0 = 0, and ?? cosh ? = sinh ? (no that is not a typo) and ?? sinh ? = cosh ?. cosh ? = Exercise 0.2.3: Check that both forms of the ? given are really solutions to the equation. Example 0.2.2: In equations of higher order, you get more constants you must solve for ?2 ? to get a particular solution. The equation ?? 2 = 0 has the general solution ? = ?1 ? + ?2 ; simply integrate twice and don’t forget about the constant of integration. Consider the initial conditions ?(0) = 2 and ? 0(0) = 3. We plug in our general solution and solve for the constants: 2 = ?(0) = ?1 · 0 + ?2 = ?2 , 3 = ? 0(0) = ?1 . In other words, ? = 3? + 2 is the particular solution we seek. An interesting note about cosh: The graph of cosh is the exact shape of a hanging chain. This shape is called a catenary. Contrary to popular belief this is not a parabola. If you invert the graph of cosh, it is also the ideal arch for supporting its weight. For example, the gateway arch in Saint Louis is an inverted graph of cosh—if it were just a parabola it might fall. The formula used in the design is inscribed inside the arch: ? = −127.7 ft · cosh(?/127.7 ft) + 757.7 ft. 15 0.2. INTRODUCTION TO DIFFERENTIAL EQUATIONS 0.2.5 Exercises Exercise 0.2.4: Show that ? = ? 4? is a solution to ? 000 − 12? 00 + 48? 0 − 64? = 0. Exercise 0.2.5: Show that ? = ? ? is not a solution to ? 000 − 12? 00 + 48? 0 − 64? = 0. Exercise 0.2.6: Is ? = sin ? a solution to 2 ?? ?? = 1 − ? 2 ? Justify. Exercise 0.2.7: Let ? 00 + 2? 0 − 8? = 0. Now try a solution of the form ? = ? ?? for some (unknown) constant ?. Is this a solution for some ?? If so, find all such ?. Exercise 0.2.8: Verify that ? = ?? −2? is a solution to ? 0 = −2?. Find ? to solve for the initial condition ?(0) = 100. Exercise 0.2.9: Verify that ? = ?1 ? −? + ?2 ? 2? is a solution to ? 00 − ? 0 − 2? = 0. Find ?1 and ?2 to solve for the initial conditions ?(0) = 10 and ? 0(0) = 0. Exercise 0.2.10: Find a solution to (? 0)2 + ? 2 = 4 using your knowledge of derivatives of functions that you know from basic calculus. Exercise 0.2.11: Solve: a) ?? = −10?, ?? ?2 ? c) = 4?, ?? 2 ?(0) = 5 ?(0) = 0, b) ? 0(0) =1 ?? = 3?, ?? ?(0) = 1 ?2 ? d) = −9?, ?? 2 ?(0) = 1, ? 0(0) = 0 Exercise 0.2.12: Is there a solution to ? 0 = ?, such that ?(0) = ?(1)? Exercise 0.2.13: The population of city X was 100 thousand 20 years ago, and the population of city X was 120 thousand 10 years ago. Assuming constant growth, you can use the exponential population model (like for the bacteria). What do you estimate the population is now? Exercise 0.2.14: Suppose that a football coach gets a salary of one million dollars now, and a raise of 10% every year (so exponential model, like population of bacteria). Let ? be the salary in millions of dollars, and ? is time in years. a) What is ?(0) and ?(1). b) Approximately how many years will it take for the salary to be 10 million. c) Approximately how many years will it take for the salary to be 20 million. d) Approximately how many years will it take for the salary to be 30 million. Note: Exercises with numbers 101 and higher have solutions in the back of the book. Exercise 0.2.101: Show that ? = ? −2? is a solution to ? 00 + 4? 0 + 4? = 0. Exercise 0.2.102: Is ? = ? 2 a solution to ? 2 ? 00 − 2? = 0? Justify. 16 INTRODUCTION Exercise 0.2.103: Let ?? 00 − ? 0 = 0. Try a solution of the form ? = ? ? . Is this a solution for some ?? If so, find all such ?. Exercise 0.2.104: Verify that ? = ?1 ? ? + ?2 is a solution to ? 00 − ? 0 = 0. Find ?1 and ?2 so that ? satisfies ?(0) = 10 and ? 0(0) = 100. Exercise 0.2.105: Solve ?? ?? = 8? and ?(0) = −9. Exercise 0.2.106: Solve: a) ?? = −4?, ?? c) ?? = 3?, ?? ?(0) = 9 ?(0) = 4 b) ?2 ? = −4?, ?? 2 d) ? 2? = 4?, ?? 2 ?(0) = 1, ?(0) = 0, ? 0(0) = 2 ? 0(0) = 6 0.3. CLASSIFICATION OF DIFFERENTIAL EQUATIONS 0.3 17 Classification of differential equations Note: less than 1 lecture or left as reading, §1.3 in [BD] There are many types of differential equations, and we classify them into different categories based on their properties. Let us quickly go over the most basic classification. We already saw the distinction between ordinary and partial differential equations: • Ordinary differential equations or (ODE) are equations where the derivatives are taken with respect to only one variable. That is, there is only one independent variable. • Partial differential equations or (PDE) are equations that depend on partial derivatives of several variables. That is, there are several independent variables. Let us see some examples of ordinary differential equations: ?? = ? ?, ?? ?? = ?(? − ?), ?? ?2 ? ?? ? 2 +? + ?? = ? (?). ?? ?? (Exponential growth) (Newton’s law of cooling) (Mechanical vibrations) And of partial differential equations: ?? ?? +? = 0, ?? ?? ?? ?2 ? = , ?? ?? 2 ?2 ? ?2 ? ?2 ? = + . ?? 2 ?? 2 ?? 2 (Transport equation) (Heat equation) (Wave equation in 2 dimensions) If there are several equations working together, we have a so-called system of differential equations. For example, ? 0 = ?, ?0 = ? is a simple system of ordinary differential equations. Maxwell’s equations for electromagnetics, ® = ?, ∇·? ∇ · ?® = 0, ? ?® ∇ × ?® = − , ?? ® ® = ®? + ? ? , ∇×? ?? are a system of partial differential equations. The divergence operator ∇· and the curl operator ∇× can be written out in partial derivatives of the functions involved in the ?, ?, and ? variables. 18 INTRODUCTION The next bit of information is the order of the equation (or system). The order is simply the order of the largest derivative that appears. If the highest derivative that appears is the first derivative, the equation is of first order. If the highest derivative that appears is the second derivative, then the equation is of second order. For example, Newton’s law of cooling above is a first order equation, while the mechanical vibrations equation is a second order equation. The equation governing transversal vibrations in a beam, ?2 ? + = 0, ? ?? 4 ?? 2 4? 4? is a fourth order partial differential equation. It is fourth order as at least one derivative is the fourth derivative. It does not matter that the derivative in ? is only of second order. In the first chapter, we will start attacking first order ordinary differential equations, ?? that is, equations of the form ?? = ? (?, ?). In general, lower order equations are easier to work with and have simpler behavior, which is why we start with them. We also distinguish how the dependent variables appear in the equation (or system). In particular, we say an equation is linear if the dependent variable (or variables) and their derivatives appear linearly, that is only as first powers, they are not multiplied together, and no other functions of the dependent variables appear. In other words, the equation is a sum of terms, where each term is some function of the independent variables or some function of the independent variables multiplied by a dependent variable or its derivative. Otherwise, the equation is called nonlinear. For example, an ordinary differential equation is linear if it can be put into the form ?? ? ? ?−1 ? ?? + ? 0 (?)? = ?(?). ? ? (?) ? + ? ?−1 (?) ?−1 + · · · + ? 1 (?) ?? ?? ?? (2) The functions ? 0 , ? 1 , . . . , ? ? are called the coefficients. The equation is allowed to depend arbitrarily on the independent variable. So ?? ?2 ? ?? 1 2 + sin(?) + ? ? = ?? ? ?? 2 (3) is still a linear equation as ? and its derivatives only appear linearly. All the equations and systems above as examples are linear. It may not be immediately obvious for Maxwell’s equations unless you write out the divergence and curl in terms of partial derivatives. Let us see some nonlinear equations. For example Burger’s equation, ?? ?? ?2 ? +? = ? 2, ?? ?? ?? is a nonlinear second order partial differential equation. It is nonlinear because ? and are multiplied together. The equation ?? = ?2 ?? ?? ?? (4) 0.3. CLASSIFICATION OF DIFFERENTIAL EQUATIONS 19 is a nonlinear first order differential equation as there is a second power of the dependent variable ?. A linear equation may further be called homogeneous if all terms depend on the dependent variable. That is, if no term is a function of the independent variables alone. Otherwise, the equation is called nonhomogeneous or inhomogeneous. For example, the exponential growth equation, the wave equation, or the transport equation above are homogeneous. The mechanical vibrations equation above is nonhomogeneous as long as ? (?) is not the zero function. Similarly, if the ambient temperature ? is nonzero, Newton’s law of cooling is nonhomogeneous. A homogeneous linear ODE can be put into the form ? ?−1 ? ?? ?? ? ? ? (?) ? + ? ?−1 (?) ?−1 + · · · + ? 1 (?) + ? 0 (?)? = 0. ?? ?? ?? Compare to (2) and notice there is no function ?(?). If the coefficients of a linear equation are actually constant functions, then the equation is said to have constant coefficients. The coefficients are the functions multiplying the dependent variable(s) or one of its derivatives, not the function ?(?) standing alone. A constant coefficient nonhomogeneous ODE is an equation of the form ?? ?? ? ? ?−1 ? ?? + ? 0 ? = ?(?), + ? + · · · + ?1 ?−1 ? ?−1 ?? ?? ?? where ? 0 , ?1 , . . . , ? ? are all constants, but ? may depend on the independent variable ?. The mechanical vibrations equation above is a constant coefficient nonhomogeneous second order ODE. The same nomenclature applies to PDEs, so the transport equation, heat equation and wave equation are all examples of constant coefficient linear PDEs. Finally, an equation (or system) is called autonomous if the equation does not depend on the independent variable. For autonomous ordinary differential equations, the independent variable is then thought of as time. Autonomous equation means an equation that does not change with time. For example, Newton’s law of cooling is autonomous, so is equation (4). On the other hand, mechanical vibrations or (3) are not autonomous. 0.3.1 Exercises Exercise 0.3.1: Classify the following equations. Are they ODE or PDE? Is it an equation or a system? What is the order? Is it linear or nonlinear, and if it is linear, is it homogeneous, constant coefficient? If it is an ODE, is it autonomous? a) sin(?) ?2 ? + cos(?)? = ? 2 ?? 2 c) ? 00 + 3? + 5? = 0, e) ? 00 + ?? 2 = ? ? 00 + ? − ? = 0 b) ?? ?? +3 = ?? ?? ?? d) ?2 ? ?2 ? + ? =0 ?? 2 ?? 2 f) ?4 ? =0 ?? 4 20 INTRODUCTION Exercise 0.3.2: If ?® = (?1 , ?2 , ?3 ) is a vector, we have the divergence ∇ · ?® = ??1 ?? + ??2 ?? + ??3 ?? and 3 3 2 1 2 1 curl ∇ × ?® = ?? − ?? , ?? − ?? , ?? − ?? . Notice that curl of a vector is still a vector. Write ?? ?? ?? ?? ?? ?? out Maxwell’s equations in terms of partial derivatives and classify the system. Exercise 0.3.3: Suppose ? is a linear function, that is, ?(?, ?) = ?? + ?? for constants ? and ?. What is the classification of equations of the form ?(? 0 , ?) = 0. Exercise 0.3.4: Write down an explicit example of a third order, linear, nonconstant coefficient, nonautonomous, nonhomogeneous system of two ODE such that every derivative that could appear, does appear. Exercise 0.3.101: Classify the following equations. Are they ODE or PDE? Is it an equation or a system? What is the order? Is it linear or nonlinear, and if it is linear, is it homogeneous, constant coefficient? If it is an ODE, is it autonomous? a) ?2 ? ?2 ? + 3 = sin(?) ?? 2 ?? 2 b) c) ?7 ? = 3?(?) ?? 7 d) ? 00 + 8? 0 = 1 e) ? 00 + ? ?? 0 = 0, ? 00 + ??? = 0 f) ?? + cos(?)? = ? 2 + ? + 1 ?? ?? ?2 ? = 2 + ?2 ?? ?? Exercise 0.3.102: Write down the general zeroth order linear ordinary differential equation. Write down the general solution. Exercise 0.3.103: For which ? is ?? ?? + ? ? = ? ?+2 linear. Hint: there are two answers. Chapter 1 First order equations 1.1 Integrals as solutions Note: 1 lecture (or less), §1.2 in [EP], covered in §1.2 and §2.1 in [BD] A first order ODE is an equation of the form ?? = ? (?, ?), ?? or just ? 0 = ? (?, ?). In general, there is no simple formula or procedure one can follow to find solutions. In the next few lectures we will look at special cases where solutions are not difficult to obtain. In this section, let us assume that ? is a function of ? alone, that is, the equation is ? 0 = ? (?). (1.1) We could just integrate (antidifferentiate) both sides with respect to ?. ∫ 0 ? (?) ?? = that is ?(?) = ∫ ∫ ? (?) ?? + ?, ? (?) ?? + ?. This ?(?) is actually the general solution. So to solve (1.1), we find some antiderivative of ? (?) and then we add an arbitrary constant to get the general solution. Now is a good time to discuss a point about calculus notation and terminology. Calculus textbooks muddy the waters by talking about the integral as primarily the so-called indefinite integral. The indefinite integral is really the antiderivative (in fact the whole one-parameter family of antiderivatives). There really exists only one integral and that is the definite integral. The only reason for the indefinite integral notation is that we 22 CHAPTER 1. FIRST ORDER EQUATIONS can always write an antiderivative as a (definite) integral. That is, by the fundamental ∫ theorem of calculus we can always write ? (?) ?? + ? as ∫ ? ? (?) ?? + ?. ?0 Hence the terminology to integrate when we may really mean to antidifferentiate. Integration is just one way to compute the antiderivative (and it is a way that always works, see the following examples). Integration is defined as the area under the graph, it only happens to also compute antiderivatives. For sake of consistency, we will keep using the indefinite integral notation when we want an antiderivative, and you should always think of the definite integral as a way to write it. Example 1.1.1: Find the general solution of ? 0 = 3? 2 . Elementary calculus tells us that the general solution must be ? = ? 3 + ?. Let us check by differentiating: ? 0 = 3? 2 . We got precisely our equation back. Normally, we also have an initial condition such as ?(?0 ) = ?0 for some two numbers ?0 and ?0 (?0 is usually 0, but not always). We can then write the solution as a definite integral in a nice way. Suppose our problem is ? 0 = ? (?), ?(?0 ) = ?0 . Then the solution is ?(?) = ? ∫ ? (?) ?? + ?0 . ?0 (1.2) Let us check! We compute ? 0 = ? (?), via the fundamental theorem of calculus, and ∫by?0 Jupiter, ? is a solution. Is it the one satisfying the initial condition? Well, ?(?0 ) = ? (?) ?? + ?0 = ?0 . It is! ?0 Do note that the definite integral and the indefinite integral (antidifferentiation) are completely different beasts. The definite integral always evaluates to a number. Therefore, (1.2) is a formula we can plug into the calculator or a computer, and it will be happy to calculate specific values for us. We will easily be able to plot the solution and work with it just like with any other function. It is not so crucial to always find a closed form for the antiderivative. Example 1.1.2: Solve 2 ? 0 = ? −? , ?(0) = 1. By the preceding discussion, the solution must be ?(?) = ∫ ? 2 ? −? ?? + 1. 0 Here is a good way to make fun of your friends taking second semester calculus. Tell them to find the closed form solution. Ha ha ha (bad math joke). It is not possible (in closed form). There is absolutely nothing wrong with writing the solution as a definite integral. This particular integral is in fact very important in statistics. 23 1.1. INTEGRALS AS SOLUTIONS Using this method, we can also solve equations of the form ? 0 = ? (?). Let us write the equation in Leibniz notation. ?? = ? (?). ?? Now we use the inverse function theorem from calculus to switch the roles of ? and ? to obtain ?? 1 = . ?? ? (?) What we are doing seems like algebra with ?? and ??. It is tempting to just do algebra with ?? and ?? as if they were numbers. And in this case it does work. Be careful, however, as this sort of hand-waving calculation can lead to trouble, especially when more than one independent variable is involved. At this point, we can simply integrate, ?(?) = ∫ 1 ?? + ?. ? (?) Finally, we try to solve for ?. Example 1.1.3: Previously, we guessed ? 0 = ? ? (for some ? > 0) has the solution ? = ?? ?? . We can now find the solution without guessing. First we note that ? = 0 is a solution. Henceforth, we assume ? ≠ 0. We write 1 ?? = . ?? ?? We integrate to obtain 1 ln |?| + ?, ? where ? is an arbitrary constant. Now we solve for ? (actually for |?|). ?(?) = ? = |?| = ? ??−?? = ? −?? ? ?? . If we replace ? −?? with an arbitrary constant ?, we can get rid of the absolute value bars (which we can do as ? was arbitrary). In this way, we also incorporate the solution ? = 0. We get the same general solution as we guessed before, ? = ?? ?? . Example 1.1.4: Find the general solution of ? 0 = ? 2 . First we note that ? = 0 is a solution. We can now assume that ? ≠ 0. Write ?? 1 = 2. ?? ? 24 CHAPTER 1. FIRST ORDER EQUATIONS We integrate to get ?= We solve for ? = 1 ?−? . −1 + ?. ? So the general solution is ?= 1 ?−? ? = 0. or Note the singularities of the solution. If for example ? = 1, then the solution “blows up” as we approach ? = 1. See Figure 1.1. Generally, it is hard to tell from just looking at the equation itself how the solution is going to behave. The equation ? 0 = ? 2 is very nice and defined everywhere, but the solution is only defined on some interval (−∞, ?) or (?, ∞). Usually when this happens we only consider one of these the solution. For example if 1 we impose a condition ?(0) = 1, then the solution is ? = 1−? , and we would consider this solution only for ? on the interval (−∞, 1). In the figure, it is the left side of the graph. -3 -2 -1 0 1 2 3 3 3 2 2 1 1 0 0 -1 -1 -2 -2 -3 -3 -3 -2 -1 0 1 Figure 1.1: Plot of ? = 2 3 1 1−? . Classical problems leading to differential equations solvable by integration are problems dealing with velocity, acceleration and distance. You have surely seen these problems before in your calculus class. Example 1.1.5: Suppose a car drives at a speed ? ?/2 meters per second, where ? is time in seconds. How far did the car get in 2 seconds (starting at ? = 0)? How far in 10 seconds? Let ? denote the distance the car traveled. The equation is ? 0 = ? ?/2 . We just integrate this equation to get that ?(?) = 2? ?/2 + ?. 25 1.1. INTEGRALS AS SOLUTIONS We still need to figure out ?. We know that when ? = 0, then ? = 0. That is, ?(0) = 0. So 0 = ?(0) = 2? 0/2 + ? = 2 + ?. Thus ? = −2 and ?(?) = 2? ?/2 − 2. Now we just plug in to get where the car is at 2 and at 10 seconds. We obtain ?(2) = 2? 2/2 − 2 ≈ 3.44 meters, ?(10) = 2? 10/2 − 2 ≈ 294 meters. Example 1.1.6: Suppose that the car accelerates at a rate of ? 2 m/s2 . At time ? = 0 the car is at the 1 meter mark and is traveling at 10 m/s. Where is the car at time ? = 10? Well this is actually a second order problem. If ? is the distance traveled, then ? 0 is the velocity, and ? 00 is the acceleration. The equation with initial conditions is ? 00 = ? 2 , ?(0) = 1, ? 0(0) = 10. What if we say ? 0 = ?. Then we have the problem ?0 = ? 2 , ?(0) = 10. Once we solve for ?, we can integrate and find ?. Exercise 1.1.1: Solve for ?, and then solve for ?. Find ?(10) to answer the question. 1.1.1 Exercises Exercise 1.1.2: Solve ?? ?? = ? 2 + ? for ?(1) = 3. Exercise 1.1.3: Solve ?? ?? = sin(5?) for ?(0) = 2. Exercise 1.1.4: Solve ?? ?? = 1 ? 2 −1 for ?(0) = 0. Exercise 1.1.5: Solve ? 0 = ? 3 for ?(0) = 1. Exercise 1.1.6 (little harder): Solve ? 0 = (? − 1)(? + 1) for ?(0) = 3. Exercise 1.1.7: Solve ?? ?? = 1 ?+1 for ?(0) = 0. Exercise 1.1.8 (harder): Solve ? 00 = sin ? for ?(0) = 0, ? 0(0) = 2. Exercise 1.1.9: A spaceship is traveling at the speed 2? 2 + 1 km/s (? is time in seconds). It is pointing directly away from earth and at time ? = 0 it is 1000 kilometers from earth. How far from earth is it at one minute from time ? = 0? Exercise 1.1.10: Solve integral. ?? ?? = sin(? 2 ) + ?, ?(0) = 20. It is OK to leave your answer as a definite 26 CHAPTER 1. FIRST ORDER EQUATIONS Exercise 1.1.11: A dropped ball accelerates downwards at a constant rate 9.8 meters per second squared. Set up the differential equation for the height above ground ? in meters. Then supposing ?(0) = 100 meters, how long does it take for the ball to hit the ground. Exercise 1.1.12: Find the general solution of ? 0 = ? ? , and then ? 0 = ? ? . Exercise 1.1.101: Solve ?? ?? = ? ? + ? and ?(0) = 10. ?(1) = 1. Exercise 1.1.102: Solve ? 0 = 1 , ?2 Exercise 1.1.103: Solve ? 0 = 1 , cos(?) ?(0) = ?2 . Exercise 1.1.104: Sid is in a car traveling at speed 10? + 70 miles per hour away from Las Vegas, where ? is in hours. At ? = 0, Sid is 10 miles away from Vegas. How far from Vegas is Sid 2 hours later? Exercise 1.1.105: Solve ? 0 = ? ? , ?(0) = 1, where ? is a positive integer. Hint: You have to consider different cases. Exercise 1.1.106: The rate of change of the volume of a snowball that is melting is proportional to the surface area of the snowball. Suppose the snowball is perfectly spherical. Then the volume (in centimeters cubed) of a ball of radius ? centimeters is 4/3 ?? 3 . The surface area is 4?? 2 . Set up the differential equation for how ? is changing. Then, suppose that at time ? = 0 minutes, the radius is 10 centimeters. After 5 minutes, the radius is 8 centimeters. At what time ? will the snowball be completely melted? Exercise 1.1.107: Find the general solution to ? 0000 = 0. How many distinct constants do you need? 27 1.2. SLOPE FIELDS 1.2 Slope fields Note: 1 lecture, §1.3 in [EP], §1.1 in [BD] As we said, the general first order equation we are studying looks like ? 0 = ? (?, ?). A lot of the time, we cannot simply solve these kinds of equations explicitly. It would be nice if we could at least figure out the shape and behavior of the solutions, or find approximate solutions. 1.2.1 Slope fields The equation ? 0 = ? (?, ?) gives you a slope at each point in the (?, ?)-plane. And this is the slope a solution ?(?) would have at ? if its value was ?. In other words, ? (?, ?) is the slope of a solution whose graph runs through the point (?, ?). At a point (?, ?), we plot a short line with the slope ? (?, ?). For example, if ? (?, ?) = ??, then at point (2, 1.5) we draw a short line of slope ?? = 2 × 1.5 = 3. So, if ?(?) is a solution and ?(2) = 1.5, then the equation mandates that ? 0(2) = 3. See Figure 1.2. -3 -2 -1 0 1 2 3 3 3 2 2 1 1 0 0 -1 -1 -2 -2 -3 -3 -3 -2 -1 0 1 2 3 Figure 1.2: The slope ? 0 = ? ? at (2, 1.5). To get an idea of how solutions behave, we draw such lines at lots of points in the plane, not just the point (2, 1.5). We would ideally want to see the slope at every point, but that is just not possible. Usually we pick a grid of points fine enough so that it shows the behavior, but not too fine so that we can still recognize the individual lines. We call this picture the slope field of the equation. See Figure 1.3 on the following page for the slope field of the equation ? 0 = ??. Usually in practice, one does not do this by hand, but has a computer do the drawing. 28 CHAPTER 1. FIRST ORDER EQUATIONS Suppose we are given a specific initial condition ?(?0 ) = ?0 . A solution, that is, the graph of the solution, would be a curve that follows the slopes we drew. For a few sample solutions, see Figure 1.4. It is easy to roughly sketch (or at least imagine) possible solutions in the slope field, just from looking at the slope field itself. You simply sketch a line that roughly fits the little line segments and goes through your initial condition. -3 -2 -1 0 1 2 3 -3 -2 -1 0 1 2 3 3 3 3 3 2 2 2 2 1 1 1 1 0 0 0 0 -1 -1 -1 -1 -2 -2 -2 -2 -3 -3 -3 -3 -2 -1 0 1 2 3 Figure 1.3: Slope field of ? 0 = ??. -3 -3 -2 -1 0 1 2 3 Figure 1.4: Slope field of ? 0 = ? ? with a graph of solutions satisfying ?(0) = 0.2, ?(0) = 0, and ?(0) = −0.2. By looking at the slope field we get a lot of information about the behavior of solutions without having to solve the equation. For example, in Figure 1.4 we see what the solutions do when the initial conditions are ?(0) > 0, ?(0) = 0 and ?(0) < 0. A small change in the initial condition causes quite different behavior. We see this behavior just from the slope field and imagining what solutions ought to do. We see a different behavior for the equation ? 0 = −?. The slope field and a few solutions is in see Figure 1.5 on the next page. If we think of moving from left to right (perhaps ? is time and time is usually increasing), then we see that no matter what ?(0) is, all solutions tend to zero as ? tends to infinity. Again that behavior is clear from simply looking at the slope field itself. 1.2.2 Existence and uniqueness We wish to ask two fundamental questions about the problem ? 0 = ? (?, ?), (i) Does a solution exist? (ii) Is the solution unique (if it exists)? ?(?0 ) = ?0 . 29 1.2. SLOPE FIELDS -3 -2 -1 0 1 2 3 3 3 2 2 1 1 0 0 -1 -1 -2 -2 -3 -3 -3 -2 -1 0 1 2 3 Figure 1.5: Slope field of ? 0 = −? with a graph of a few solutions. What do you think is the answer? The answer seems to be yes to both does it not? Well, pretty much. But there are cases when the answer to either question can be no. Since generally the equations we encounter in applications come from real life situations, it seems logical that a solution always exists. It also has to be unique if we believe our universe is deterministic. If the solution does not exist, or if it is not unique, we have probably not devised the correct model. Hence, it is good to know when things go wrong and why. Example 1.2.1: Attempt to solve: ?0 = 1 , ? ?(0) = 0. Integrate to find the general solution ? = ln |?| + ?. The solution does not exist at ? = 0. See Figure 1.6 on the following page. The equation may have been written as the seemingly harmless ?? 0 = 1. Example 1.2.2: Solve: 0 q ? = 2 |?|, ?(0) = 0. See Figure 1.7 on the next page. Note that ? = 0 is a solution. But another solution is the function ( ?2 if ? ≥ 0, ?(?) = 2 −? if ? < 0. It is hard to tell by staring at the slope field that the solution is not unique. Is there any hope? Of course there is. We have the following theorem, known as Picard’s theorem∗ . ∗ Named after the French mathematician Charles Émile Picard (1856–1941) 30 CHAPTER 1. FIRST ORDER EQUATIONS -3 -2 -1 0 1 2 3 -3 -2 -1 0 1 2 3 3 3 3 3 2 2 2 2 1 1 1 1 0 0 0 0 -1 -1 -1 -1 -2 -2 -2 -2 -3 -3 -3 -3 -2 -1 0 1 2 3 -3 -3 Figure 1.6: Slope field of ? 0 = 1/? . -2 -1 0 1 2 3 Figure 1.7: Slope field of ? 0 = 2 |?| with two solutions satisfying ?(0) = 0. p Theorem 1.2.1 (Picard’s theorem on existence and uniqueness). If ? (?, ?) is continuous (as a ?? function of two variables) and ?? exists and is continuous near some (?0 , ?0 ), then a solution to ? 0 = ? (?, ?), ?(?0 ) = ?0 , exists (at least for some small interval of ?’s) and is unique. Note that the problems ? 0 = 1/? , ?(0) = 0 and ? 0 = 2 |?|, ?(0) = 0 do not satisfy the hypothesis of the theorem. Even if we can use the theorem, we ought to be careful about this existence business. It is quite possible that the solution only exists for a short while. p Example 1.2.3: For some constant ?, solve: ?0 = ? 2 , ?(0) = ?. We know how to solve this equation. First assume that ? ≠ 0, so ? is not equal to zero at 1 least for some ? near 0. So ? 0 = 1/? 2 , so ? = −1/? + ?, so ? = ?−? . If ?(0) = ?, then ? = 1/? so ?= 1 . 1/? − ? If ? = 0, then ? = 0 is a solution. For example, when ? = 1 the solution “blows up” at ? = 1. Hence, the solution does not exist for all ? even if the equation is nice everywhere. The equation ? 0 = ? 2 certainly looks nice. For most of this course we will be interested in equations where existence and uniqueness holds, and in fact holds “globally” unlike for the equation ? 0 = ? 2 . 31 1.2. SLOPE FIELDS 1.2.3 Exercises Exercise 1.2.1: Sketch slope field for ? 0 = ? ?−? . How do the solutions behave as ? grows? Can you guess a particular solution by looking at the slope field? Exercise 1.2.2: Sketch slope field for ? 0 = ? 2 . Exercise 1.2.3: Sketch slope field for ? 0 = ? 2 . Exercise 1.2.4: Is it possible to solve the equation ? 0 = ?? cos ? for ?(0) = 1? Justify. p Exercise 1.2.5: Is it possible to solve the equation ? 0 = ? |?| for ?(0) = 0? Is the solution unique? Justify. Exercise 1.2.6: Match equations ? 0 = 1 − ?, ? 0 = ? − 2?, ? 0 = ?(1 − ?) to slope fields. Justify. a) b) c) Exercise 1.2.7 (challenging): Take ? 0 = ? (?, ?), ?(0) = 0, where ? (?, ?) > 1 for all ? and ?. If the solution exists for all ?, can you say what happens to ?(?) as ? goes to positive infinity? Explain. Exercise 1.2.8 (challenging): Take (? − ?)? 0 = 0, ?(0) = 0. a) Find two distinct solutions. b) Explain why this does not violate Picard’s theorem. Exercise 1.2.9: Suppose ? 0 = ? (?, ?). What will the slope field look like, explain and sketch an example, if you know the following about ? (?, ?): a) ? does not depend on ?. b) ? does not depend on ?. c) ? (?, ?) = 0 for any number ?. d) ? (?, 0) = 0 and ? (?, 1) = 1 for all ?. Exercise 1.2.10: Find a solution to ? 0 = |?|, ?(0) = 0. Does Picard’s theorem apply? Exercise 1.2.11: Take an equation ? 0 = (? − 2?)?(?, ?) + 2 for some function ?(?, ?). Can you solve the problem for the initial condition ?(0) = 0, and if so what is the solution? 32 CHAPTER 1. FIRST ORDER EQUATIONS Exercise 1.2.12 (challenging): Suppose ? 0 = ? (?, ?) is such that ? (?, 1) = 0 for every ?, ? is ?? continuous and ?? exists and is continuous for every ? and ?. a) Guess a solution given the initial condition ?(0) = 1. b) Can graphs of two solutions of the equation for different initial conditions ever intersect? c) Given ?(0) = 0, what can you say about the solution. In particular, can ?(?) > 1 for any ?? Can ?(?) = 1 for any ?? Why or why not? Exercise 1.2.101: Sketch the slope field of ? 0 = ? 3 . Can you visually find the solution that satisfies ?(0) = 0? Exercise 1.2.102: Is it possible to solve ? 0 = ?? for ?(0) = 0? Is the solution unique? Exercise 1.2.103: Is it possible to solve ? 0 = ? ? 2 −1 for ?(1) = 0? Exercise 1.2.104: Match equations ? 0 = sin ?, ? 0 = cos ?, ? 0 = ? cos(?) to slope fields. Justify. a) b) c) Exercise 1.2.105 (tricky): Suppose ( ? (?) = 0 if ? > 0, 1 if ? ≤ 0. Does ? 0 = ? (?), ?(0) = 0 have a continuously differentiable solution? Does Picard apply? Why, or why not? Exercise 1.2.106: Consider an equation of the form ? 0 = ? (?) for some continuous function ? , and an initial condition ?(?0 ) = ?0 . Does a solution exist for all ?? Why or why not? 33 1.3. SEPARABLE EQUATIONS 1.3 Separable equations Note: 1 lecture, §1.4 in [EP], §2.2 in [BD] 0 ∫ When a differential equation is of the form ? = ? (?), we can just integrate: ? = ? (?) ?? + ?. Unfortunately this method no longer works for the general form of the equation ? 0 = ? (?, ?). Integrating both sides yields ∫ ?= ? (?, ?) ?? + ?. Notice the dependence on ? in the integral. 1.3.1 Separable equations We say a differential equation is separable if we can write it as ? 0 = ? (?)?(?), for some functions ? (?) and ?(?). Let us write the equation in the Leibniz notation ?? = ? (?)?(?). ?? Then we rewrite the equation as ?? = ? (?) ??. ?(?) Both sides look like something we can integrate. We obtain ∫ ?? = ?(?) ∫ ? (?) ?? + ?. If we can find closed form expressions for these two integrals, we can, perhaps, solve for ?. Example 1.3.1: Take the equation ? 0 = ??. Note that ? = 0 is a solution. We will remember that fact and assume ? ≠ 0 from now on, ?? so that we can divide by ?. Write the equation as ?? = ??. Then ∫ ?? = ? ∫ ? ?? + ?. We compute the antiderivatives to get ln |?| = ?2 + ?, 2 34 CHAPTER 1. FIRST ORDER EQUATIONS or |?| = ? ?2 2 +? ?2 ?2 = ? 2 ? ? = ?? 2 , where ? > 0 is some constant. Because ? = 0 is also a solution and because of the absolute value we can write: ?2 ? = ?? 2 , for any number ? (including zero or negative). We check: ?2 ?2 ? 0 = ??? 2 = ? ?? 2 = ??. Yay! We should be a little bit more careful with this method. You may be worried that we integrated in two different variables. We seemingly did a different operation to each side. Let us work through this method more rigorously. Take ?? = ? (?)?(?). ?? We rewrite the equation as follows. Note that ? = ?(?) is a function of ? and so is ?? ?? ! 1 ?? = ? (?). ?(?) ?? We integrate both sides with respect to ?: 1 ?? ?? = ?(?) ?? ∫ ∫ ? (?) ?? + ?. We use the change of variables formula (substitution) on the left hand side: ∫ 1 ?? = ?(?) ∫ ? (?) ?? + ?. And we are done. 1.3.2 Implicit solutions We sometimes get stuck even if we can do the integration. Consider the separable equation ?0 = ?? . +1 ?2 We separate variables, ?2 + 1 1 ?? = ? + ? ? ?? = ? ??. 35 1.3. SEPARABLE EQUATIONS We integrate to get ?2 ?2 + ln |?| = + ?, 2 2 or perhaps the easier looking expression (where ? = 2?) ? 2 + 2 ln |?| = ? 2 + ?. It is not easy to find the solution explicitly as it is hard to solve for ?. We, therefore, leave the solution in this form and call it an implicit solution. It is still easy to check that an implicit solution satisfies the differential equation. In this case, we differentiate with respect to ?, and remember that ? is a function of ?, to get 2 ? 0 2? + = 2?. ? Multiply both sides by ? and divide by 2(? 2 + 1) and you will get exactly the differential equation. We leave this computation to the reader. If you have an implicit solution, and you want to compute values for ?, you might have to be tricky. You might get multiple solutions ? for each ?, so you have to pick one. Sometimes you can graph ? as a function of ?, and then flip your paper. Sometimes you have to do more. Computers are also good at some of these tricks. More advanced mathematical software usually has some way of plotting solutions to implicit equations. For example, for ? = 0 if you plot all the points (?, ?) that are solutions to ? 2 + 2 ln |?| = ? 2 , you find the two curves in Figure 1.8 on the following page. This is not quite a graph of a function. For each ? there are two choices of ?. To find a function you would have to pick one of these two curves. You pick the one that satisfies your initial condition if you have one. For example, the top curve satisfies the condition ?(1) = 1. So for each ? we really got two solutions. As you can see, computing values from an implicit solution can be somewhat tricky. But sometimes, an implicit solution is the best we can do. The equation above also has the solution ? = 0. So the general solution is ? 2 + 2 ln |?| = ? 2 + ?, and ? = 0. These outlying solutions such as ? = 0 are sometimes called singular solutions. 1.3.3 Examples of separable equations Example 1.3.2: Solve ? 2 ? 0 = 1 − ? 2 + ? 2 − ? 2 ? 2 , ?(1) = 0. Factor the right-hand side ? 2 ? 0 = (1 − ? 2 )(1 + ? 2 ). 36 CHAPTER 1. FIRST ORDER EQUATIONS -5.0 5.0 -2.5 0.0 2.5 5.0 5.0 2.5 2.5 0.0 0.0 -2.5 -2.5 -5.0 -5.0 -5.0 -2.5 0.0 2.5 5.0 Figure 1.8: The implicit solution ? 2 + 2 ln |?| = ? 2 to ? 0 = ?? . ? 2 +1 Separate variables, integrate, and solve for ?: ?0 1 − ?2 = , 1 + ?2 ?2 ?0 1 = 2 − 1, 2 1+? ? −1 − ? + ?, arctan(?) = ? −1 ? = tan −?+? . ? Solve for the initial condition, 0 = tan(−2 + ?) to get ? = 2 (or ? = 2 + ?, or ? = 2 + 2?, etc.). The particular solution we seek is, therefore, −1 ? = tan −?+2 . ? Example 1.3.3: Bob made a cup of coffee, and Bob likes to drink coffee only once reaches 60 degrees Celsius and will not burn him. Initially at time ? = 0 minutes, Bob measured the temperature and the coffee was 89 degrees Celsius. One minute later, Bob measured the coffee again and it had 85 degrees. The temperature of the room (the ambient temperature) is 22 degrees. When should Bob start drinking? Let ? be the temperature of the coffee in degrees Celsius, and let ? be the ambient (room) temperature, also in degrees Celsius. Newton’s law of cooling states that the rate at which the temperature of the coffee is changing is proportional to the difference between the ambient temperature and the temperature of the coffee. That is, ?? = ?(? − ?), ?? 37 1.3. SEPARABLE EQUATIONS for some constant ?. For our setup ? = 22, ?(0) = 89, ?(1) = 85. We separate variables and integrate (let ? and ? denote arbitrary constants): 1 ?? = −?, ? − ? ?? ln(? − ?) = −?? + ?, (note that ? − ? > 0) ? − ? = ? ? −?? , ? = ? + ? ? −?? . That is, ? = 22 + ? ? −?? . We plug in the first condition: 89 = ?(0) = 22 + ?, and hence ? = 67. So ? = 22 + 67 ? −?? . The second condition says 85 = ?(1) = 22 + 67 ? −? . Solving for ? we get ? = − ln 85−22 67 ≈ 0.0616. Now we solve for the time ? that gives us a temperature of 60 degrees. Namely, we solve 60 = 22 + 67? −0.0616? ln 60−22 67 to get ? = − 0.0616 ≈ 9.21 minutes. So Bob can begin to drink the coffee at just over 9 minutes from the time Bob made it. That is probably about the amount of time it took us to calculate how long it would take. See Figure 1.9. 0.0 2.5 5.0 7.5 10.0 90 80 12.5 90 0 20 40 60 80 80 80 60 60 40 40 80 70 70 60 60 20 0.0 2.5 5.0 7.5 10.0 12.5 20 0 20 40 60 80 Figure 1.9: Graphs of the coffee temperature function ?(?). On the left, horizontal lines are drawn at temperatures 60, 85, and 89. Vertical lines are drawn at ? = 1 and ? = 9.21. Notice that the temperature of the coffee hits 85 at ? = 1, and 60 at ? ≈ 9.21. On the right, the graph is over a longer period of time, with a horizontal line at the ambient temperature 22. −? ? 2 Example 1.3.4: Find the general solution to ? 0 = 3 (including singular solutions). First note that ? = 0 is a solution (a singular solution). Now assume that ? ≠ 0. −3 0 ? = ?, ?2 3 ?2 = + ?, ? 2 38 CHAPTER 1. FIRST ORDER EQUATIONS ?= 3 6 = 2 . ? + 2? /2 + ? ?2 So the general solution is, ?= 1.3.4 ?2 6 , + 2? ? = 0. and Exercises Exercise 1.3.1: Solve ? 0 = ?/? . Exercise 1.3.2: Solve ? 0 = ? 2 ?. Exercise 1.3.3: Solve ?? = (? 2 − 1) ?, for ?(0) = 0. ?? Exercise 1.3.4: Solve ?? = ? sin(?), for ?(0) = 1. ?? Exercise 1.3.5: Solve ?? = ?? + ? + ? + 1. Hint: Factor the right-hand side. ?? Exercise 1.3.6: Solve ?? 0 = ? + 2? 2 ?, where ?(1) = 1. Exercise 1.3.7: Solve ?? ?2 + 1 , for ?(0) = 1. = 2 ?? ? +1 Exercise 1.3.8: Find an implicit solution for ?? ?2 + 1 = 2 , for ?(0) = 1. ?? ? +1 Exercise 1.3.9: Find an explicit solution for ? 0 = ?? −? , ?(0) = 1. Exercise 1.3.10: Find an explicit solution for ?? 0 = ? −? , for ?(1) = 1. 2 Exercise 1.3.11: Find an explicit solution for ? 0 = ?? −? , ?(0) = 1. It is alright to leave a definite integral in your answer. Exercise 1.3.12: Suppose a cup of coffee is at 100 degrees Celsius at time ? = 0, it is at 70 degrees at ? = 10 minutes, and it is at 50 degrees at ? = 20 minutes. Compute the ambient temperature. Exercise 1.3.101: Solve ? 0 = 2??. Exercise 1.3.102: Solve ? 0 = 3?? 2 − 3? 2 , ?(0) = 2. Exercise 1.3.103: Find an implicit solution for ? 0 = 1 , 3? 2 +1 ?(0) = 1. Exercise 1.3.104: Find an explicit solution to ?? 0 = ? 2 , ?(1) = 1. Exercise 1.3.105: Find an implicit solution to ? 0 = sin(?) . cos(?) 39 1.3. SEPARABLE EQUATIONS Exercise 1.3.106: Take Example 1.3.3 with the same numbers: 89 degrees at ? = 0, 85 degrees at ? = 1, and ambient temperature of 22 degrees. Suppose these temperatures were measured with precision of ±0.5 degrees. Given this imprecision, the time it takes the coffee to cool to (exactly) 60 degrees is also only known in a certain range. Find this range. Hint: Think about what kind of error makes the cooling time longer and what shorter. Exercise 1.3.107: A population ? of rabbits on an island is modeled by ? 0 = ? − 1/1000 ? 2 , where the independent variable is time in months. At time ? = 0, there are 40 rabbits on the island. a) Find the solution to the equation with the initial condition. b) How many rabbits are on the island in 1 month, 5 months, 10 months, 15 months (round to the nearest integer). 40 1.4 CHAPTER 1. FIRST ORDER EQUATIONS Linear equations and the integrating factor Note: 1 lecture, §1.5 in [EP], §2.1 in [BD] One of the most important types of equations we will learn how to solve are the so-called linear equations. In fact, the majority of the course is about linear equations. In this section we focus on the first order linear equation. A first order equation is linear if we can put it into the form: ? 0 + ?(?)? = ? (?). (1.3) The word “linear” means linear in ? and ? 0; no higher powers nor functions of ? or ? 0 appear. The dependence on ? can be more complicated. Solutions of linear equations have nice properties. For example, the solution exists wherever ?(?) and ? (?) are defined, and has the same regularity (read: it is just as nice). But most importantly for us right now, there is a method for solving linear first order equations. The trick is to rewrite the left-hand side of (1.3) as a derivative of a product of ? with another function. To this end we find a function ?(?) such that ?(?)? 0 + ?(?)?(?)? = i ? h ?(?)? . ?? This is the left-hand side of (1.3) multiplied by ?(?). So if we multiply (1.3) by ?(?), we obtain i ? h ?(?)? = ?(?) ? (?). ?? Now we integrate both sides. The right-hand side does not depend on ? and the left-hand side is written as a derivative of a function. Afterwards, we solve for ?. The function ?(?) is called the integrating factor and the method is called the integrating factor method. We are looking for a function ?(?), such that if we differentiate it, we get the same function back multiplied by ?(?). That seems like a job for the exponential function! Let ?(?) = ? ∫ ?(?) ?? . We compute: ? 0 + ?(?)? = ? (?), ? ∫ ?(?) ?? 0 ∫ ∫ ? + ? ?(?) ?? ?(?)? = ? ∫ ? h ∫ ?(?) ?? i ? ? =? ?? ∫ ? ∫ ?(?) ?? ?= ?=? − ?(?) ?? ? (?), ?(?) ?? ? (?), ? ∫ ∫ ?(?) ?? ?(?) ?? ? (?) ?? + ?, ∫ ? ∫ ?(?) ?? ? (?) ?? + ? . 41 1.4. LINEAR EQUATIONS AND THE INTEGRATING FACTOR Of course, to get a closed form formula for ?, we need to be able to find a closed form formula for the integrals appearing above. Example 1.4.1: Solve ? 0 + 2?? = ? ?−? , 2 ?(0) = −1. 2 ? ?−? . First note that ?(?) = 2? and ? (?) = The integrating factor is ?(?) = ? We multiply both sides of the equation by ?(?) to get ∫ ?(?) ?? = ?? . 2 ? ? ? 0 + 2?? ? ? = ? ?−? ? ? , ? h ?2 i ? ? = ??. ?? 2 2 2 2 We integrate ? ? ? = ? ? + ?, 2 ? = ? ?−? + ?? −? . 2 2 Next, we solve for the initial condition −1 = ?(0) = 1 + ?, so ? = −2. The solution is ? = ? ?−? − 2? −? . 2 2 ∫ Note that we do not care which antiderivative we take when computing ? ?(?)?? . You can always add a constant of integration, but those constants will not matter in the end. Exercise 1.4.1: Try it! Add a constant of integration to the integral in the integrating factor and show that the solution you get in the end is the same as what we got above. Advice: Do not try to remember the formula itself, that is way too hard. It is easier to remember the process and repeat it. Since we cannot always evaluate the integrals in closed form, it is useful to know how to write the solution in definite integral form. A definite integral is something that you can plug into a computer or a calculator. Suppose we are given ? 0 + ?(?)? = ? (?), ?(? 0 ) = ?0 . Look at the solution and write the integrals as definite integrals. ?(?) = ? − ∫? ?0 ?(?) ?? ∫ ? ? ∫? ?0 ?(?) ?? ?0 ? (?) ?? + ?0 . (1.4) You should be careful to properly use dummy variables here. If you now plug such a formula into a computer or a calculator, it will be happy to give you numerical answers. Exercise 1.4.2: Check that ?(?0 ) = ?0 in formula (1.4). 42 CHAPTER 1. FIRST ORDER EQUATIONS Exercise 1.4.3: Write the solution of the following problem as a definite integral, but try to simplify as far as you can. You will not be able to find the solution in closed form. ?0 + ? = ? ? 2 −? , ?(0) = 10. Remark 1.4.1: Before we move on, we should note some interesting properties of linear equations. First, for the linear initial value problem ? 0 + ?(?)? = ? (?), ?(? 0 ) = ?0 , there is always an explicit formula (1.4) for the solution. Second, it follows from the formula (1.4) that if ?(?) and ? (?) are continuous on some interval (?, ?), then the solution ?(?) exists and is differentiable on (?, ?). Compare with the simple nonlinear example we have seen previously, ? 0 = ? 2 , and compare to Theorem 1.2.1. Example 1.4.2: Let us discuss a common simple application of linear equations. This type of problem is used often in real life. For example, linear equations are used in figuring out the concentration of chemicals in bodies of water (rivers and lakes). A 100 liter tank contains 10 kilograms of salt dissolved in 60 5 L/min, 0.1 kg/L liters of water. Solution of water and salt (brine) with concentration of 0.1 kilograms per liter is flowing in at the rate of 5 liters a minute. The solution in the tank is well stirred and flows out at a rate of 3 liters a minute. How much salt is in the tank when the tank is full? Let us come up with the equation. Let ? denote the kilograms 60 L of salt in the tank, let ? denote the time in minutes. For a small 10 kg salt change Δ? in time, the change in ? (denoted Δ?) is approximately 3 L/min Δ? ≈ (rate in × concentration in)Δ? − (rate out × concentration out)Δ?. Dividing through by Δ? and taking the limit Δ? → 0 we see that ?? = (rate in × concentration in) − (rate out × concentration out). ?? In our example, we have rate in = 5, concentration in = 0.1, rate out = 3, concentration out = ? ? = . volume 60 + (5 − 3)? Our equation is, therefore, ? ?? = (5 × 0.1) − 3 . ?? 60 + 2? Or in the form (1.3) ?? 3 + ? = 0.5. ?? 60 + 2? 43 1.4. LINEAR EQUATIONS AND THE INTEGRATING FACTOR Let us solve. The integrating factor is ?(?) = exp ∫ 3 3 ?? = exp ln(60 + 2?) = (60 + 2?)3/2 . 60 + 2? 2 We multiply both sides of the equation to get (60 + 2?)3/2 3 ?? + (60 + 2?)3/2 ? = 0.5(60 + 2?)3/2 , ?? 60 + 2? i ? h (60 + 2?)3/2 ? = 0.5(60 + 2?)3/2 , ?? ∫ (60 + 2?)3/2 ? = 0.5(60 + 2?)3/2 ?? + ?, −3/2 ? = (60 + 2?) ? = (60 + 2?)−3/2 ?= (60 + 2?)3/2 ?? + ?(60 + 2?)−3/2 , 2 1 (60 + 2?)5/2 + ?(60 + 2?)−3/2 , 10 60 + 2? + ?(60 + 2?)−3/2 . 10 We need to find ?. We know that at ? = 0, ? = 10. So 10 = ?(0) = ∫ 60 + ?(60)−3/2 = 6 + ?(60)−3/2 , 10 or ? = 4(603/2 ) ≈ 1859.03. We are interested in ? when the tank is full. The tank is full when 60 + 2? = 100, or when ? = 20. So 0 5 10 15 20 11.5 11.5 11.0 11.0 10.5 10.5 10.0 60 + 40 ?(20) = + ?(60 + 40)−3/2 10 ≈ 10 + 1859.03(100)−3/2 ≈ 11.86. 10.0 0 5 10 15 20 Figure 1.10: Graph of the solution ? kilograms of salt in the tank at time ?. See Figure 1.10 for the graph of ? over ?. The concentration when the tank is full is approximately 0.1186 kg/liter, and we started with 1/6 or 0.167 kg/liter. 1.4.1 Exercises In the exercises, feel free to leave answer as a definite integral if a closed form solution cannot be found. If you can find a closed form solution, you should give that. Exercise 1.4.4: Solve ? 0 + ?? = ?. 44 CHAPTER 1. FIRST ORDER EQUATIONS Exercise 1.4.5: Solve ? 0 + 6? = ? ? . 3 Exercise 1.4.6: Solve ? 0 + 3? 2 ? = sin(?) ? −? , with ?(0) = 1. Exercise 1.4.7: Solve ? 0 + cos(?)? = cos(?). Exercise 1.4.8: Solve 1 ? 2 +1 ? 0 + ?? = 3, with ?(0) = 0. Exercise 1.4.9: Suppose there are two lakes located on a stream. Clean water flows into the first lake, then the water from the first lake flows into the second lake, and then water from the second lake flows further downstream. The in and out flow from each lake is 500 liters per hour. The first lake contains 100 thousand liters of water and the second lake contains 200 thousand liters of water. A truck with 500 kg of toxic substance crashes into the first lake. Assume that the water is being continually mixed perfectly by the stream. a) Find the concentration of toxic substance as a function of time in both lakes. b) When will the concentration in the first lake be below 0.001 kg per liter? c) When will the concentration in the second lake be maximal? Exercise 1.4.10: Newton’s law of cooling states that ?? ?? = −?(? − ?) where ? is the temperature, ? is time, ? is the ambient temperature, and ? > 0 is a constant. Suppose that ? = ?0 cos(??) for some constants ?0 and ?. That is, the ambient temperature oscillates (for example night and day temperatures). a) Find the general solution. b) In the long term, will the initial conditions make much of a difference? Why or why not? Exercise 1.4.11: Initially 5 grams of salt are dissolved in 20 liters of water. Brine with concentration of salt 2 grams of salt per liter is added at a rate of 3 liters a minute. The tank is mixed well and is drained at 3 liters a minute. How long does the process have to continue until there are 20 grams of salt in the tank? Exercise 1.4.12: Initially a tank contains 10 liters of pure water. Brine of unknown (but constant) concentration of salt is flowing in at 1 liter per minute. The water is mixed well and drained at 1 liter per minute. In 20 minutes there are 15 grams of salt in the tank. What is the concentration of salt in the incoming brine? Exercise 1.4.101: Solve ? 0 + 3? 2 ? = ? 2 . Exercise 1.4.102: Solve ? 0 + 2 sin(2?)? = 2 sin(2?), ?(?/2) = 3. Exercise 1.4.103: Suppose a water tank is being pumped out at 3 L/min. The water tank starts at 10 L of clean water. Water with toxic substance is flowing into the tank at 2 L/min, with concentration 20? g/L at time ?. When the tank is half empty, how many grams of toxic substance are in the tank (assuming perfect mixing)? 1.4. LINEAR EQUATIONS AND THE INTEGRATING FACTOR 45 Exercise 1.4.104: Suppose we have bacteria on a plate and suppose that we are slowly adding a toxic substance such that the rate of growth is slowing down. That is, suppose that ?? ?? = (2 − 0.1 ?)?. If ?(0) = 1000, find the population at ? = 5. Exercise 1.4.105: A cylindrical water tank has water flowing in at ? cubic meters per second. Let ? be the area of the cross section of the tank in meters. Suppose water is flowing from the bottom of the tank at a rate proportional to the height of the water level. Set up the differential equation for ?, the height of the water, introducing and naming constants that you need. You should also give the units for your constants. 46 1.5 CHAPTER 1. FIRST ORDER EQUATIONS Substitution Note: 1 lecture, can safely be skipped, §1.6 in [EP], not in [BD] Just as when solving integrals, one method to try is to change variables to end up with a simpler equation to solve. 1.5.1 Substitution The equation ? 0 = (? − ? + 1)2 is neither separable nor linear. What can we do? How about trying to change variables, so that in the new variables the equation is simpler. We use another variable ?, which we treat as a function of ?. Let us try ? = ? − ? + 1. We need to figure out ? 0 in terms of ? 0, ? and ?. We differentiate (in ?) to obtain ? 0 = 1 − ? 0. So ? 0 = 1 − ? 0. We plug this into the equation to get 1 − ?0 = ? 2 . In other words, ? 0 = 1 − ? 2 . Such an equation we know how to solve by separating variables: 1 ?? = ??. 1 − ?2 So 1 ?+1 ln = ? + ?, 2 ?−1 or ?+1 = ? 2?+2? , ?−1 or ?+1 = ?? 2? , ?−1 for some constant ?. Note that ? = 1 and ? = −1 are also solutions. Now we need to “unsubstitute” to obtain ?−?+2 = ?? 2? , ?−? and also the two solutions ? − ? + 1 = 1 or ? = ?, and ? − ? + 1 = −1 or ? = ? + 2. We solve the first equation for ?. ? − ? + 2 = (? − ?)?? 2? , ? − ? + 2 = ??? 2? − ??? 2? , −? + ??? 2? = ??? 2? − ? − 2, ? (−1 + ?? 2? ) = ??? 2? − ? − 2, ?= ??? 2? − ? − 2 . ?? 2? − 1 47 1.5. SUBSTITUTION Note that ? = 0 gives ? = ? + 2, but no value of ? gives the solution ? = ?. Substitution in differential equations is applied in much the same way that it is applied in calculus. You guess. Several different substitutions might work. There are some general patterns to look for. We summarize a few of these in a table. When you see Try substituting ?? 0 ? 2 ?0 (cos ?)? 0 (sin ?)? 0 ?0 ? ? ? ? ? ? ? = ?2 = ?3 = sin ? = cos ? = ?? Usually you try to substitute in the “most complicated” part of the equation with the hopes of simplifying it. The table above is just a rule of thumb. You might have to modify your guesses. If a substitution does not work (it does not make the equation any simpler), try a different one. 1.5.2 Bernoulli equations There are some forms of equations where there is a general rule for substitution that always works. One such example is the so-called Bernoulli equation∗ : ? 0 + ?(?)? = ?(?)? ? . This equation looks a lot like a linear equation except for the ? ? . If ? = 0 or ? = 1, then the equation is linear and we can solve it. Otherwise, the substitution ? = ? 1−? transforms the Bernoulli equation into a linear equation. Note that ? need not be an integer. Example 1.5.1: Solve ?? 0 + ?(? + 1) + ?? 5 = 0, ?(1) = 1. First, the equation is Bernoulli (?(?) = (? + 1)/? and ?(?) = −1). We substitute ? = ? 1−5 = ? −4 , ? 0 = −4? −5 ? 0 . In other words, (−1/4) ? 5 ? 0 = ? 0. So ?? 0 + ?(? + 1) + ?? 5 = 0, −?? 5 0 ? + ?(? + 1) + ?? 5 = 0, 4 ∗ There are several things called Bernoulli equations, this is just one of them. The Bernoullis were a prominent Swiss family of mathematicians. These particular equations are named for Jacob Bernoulli (1654–1705). 48 CHAPTER 1. FIRST ORDER EQUATIONS −? 0 ? + ? −4 (? + 1) + ? = 0, 4 −? 0 ? + ?(? + 1) + ? = 0, 4 and finally 4(? + 1) ? = 4. ? The equation is now linear. We can use the integrating factor method. In particular, we use formula (1.4). Let us assume that ? > 0 so |?| = ?. This assumption is OK, as our initial condition is ? = 1. Let us compute the integrating factor. Here ?(?) from formula (1.4) is −4(?+1) . ? ?0 − ? ?− ∫? 1 ∫? 1 ?(?) ?? ? ∫ = exp 1 ?(?) ?? −4(? + 1) ? −4?+4 −4?−4 ln(?)+4 −4?+4 −4 ?? = ? =? ? = , ? ?4 = ? 4?+4 ln(?)−4 = ? 4?−4 ? 4 . We now plug in to (1.4) ?(?) = ? =? − ∫? 1 ? 4?−4 4 ? ∫ ?(?) ?? ∫ 1 ? ? ∫? 1 ?(?) ?? 4 ?? + 1 1 ? −4?+4 4 4 ?? + 1 . ? The integral in this expression is not possible to find in closed form. As we said before, it is perfectly fine to have a definite integral in our solution. Now “unsubstitute” ? ∫ ? −4 = ? 4?−4 ? 4 4 1 ?= ? −?+1 ∫? ? 4 1.5.3 ? −4?+4 ?? + 1 , ?4 ? −4?+4 ?4 1 ?? + 1 1/4 . Homogeneous equations Another type of equations we can solve by substitution are the so-called homogeneous equations. Suppose that we can write the differential equation as 0 ? =? ? ? . Here we try the substitutions ?= ? ? and therefore ? 0 = ? + ?? 0 . 49 1.5. SUBSTITUTION We note that the equation is transformed into ? + ?? 0 = ?(?) ?? 0 = ?(?) − ? or or ?0 1 = . ? ?(?) − ? Hence an implicit solution is ∫ 1 ?? = ln |?| + ?. ?(?) − ? Example 1.5.2: Solve ? 2 ? 0 = ? 2 + ??, ?(1) = 1. We put the equation into the form ? 0 = ( ?/? )2 + ?/? . We substitute ? = ?/? to get the separable equation ?? 0 = ? 2 + ? − ? = ? 2 , which has a solution ∫ 1 ?? = ln |?| + ?, ?2 −1 = ln |?| + ?, ? −1 ?= . ln |?| + ? We unsubstitute ? −1 = , ? ln |?| + ? −? . ?= ln |?| + ? We want ?(1) = 1, so 1 = ?(1) = −1 −1 = . ? ln |1| + ? Thus ? = −1 and the solution we are looking for is ?= 1.5.4 −? . ln |?| − 1 Exercises Hint: Answers need not always be in closed form. Exercise 1.5.1: Solve ? 0 + ?(? 2 − 1) + ?? 6 = 0, with ?(1) = 1. Exercise 1.5.2: Solve 2?? 0 + 1 = ? 2 + ?, with ?(0) = 1. 50 CHAPTER 1. FIRST ORDER EQUATIONS Exercise 1.5.3: Solve ? 0 + ?? = ? 4 , with ?(0) = 1. Exercise 1.5.4: Solve ?? 0 + ? = p ?2 + ?2. Exercise 1.5.5: Solve ? 0 = (? + ? − 1)2 . Exercise 1.5.6: Solve ? 0 = ? 2 −? 2 ?? , with ?(1) = 2. Exercise 1.5.101: Solve ?? 0 + ? + ? 2 = 0, ?(1) = 2. Exercise 1.5.102: Solve ?? 0 + ? + ? = 0, ?(1) = 1. Exercise 1.5.103: Solve ? 2 ? 0 = ? 3 − 3?, ?(0) = 2. Exercise 1.5.104: Solve 2?? 0 = ? ? 2 −? 2 + 2?. 51 1.6. AUTONOMOUS EQUATIONS 1.6 Autonomous equations Note: 1 lecture, §2.2 in [EP], §2.5 in [BD] Consider problems of the form ?? = ? (?), ?? where the derivative of solutions depends only on ? (the dependent variable). Such equations are called autonomous equations. If we think of ? as time, the naming comes from the fact that the equation is independent of time. We return to the cooling coffee problem (Example 1.3.3). Newton’s law of cooling says ?? = ?(? − ?), ?? where ? is the temperature, ? is time, ? is some positive constant, and ? is the ambient temperature. See Figure 1.11 for an example with ? = 0.3 and ? = 5. Note the solution ? = ? (in the figure ? = 5). We call these constant solutions the equilibrium solutions. The points on the ?-axis where ? (?) = 0 are called critical points. The point ? = ? is a critical point. In fact, each critical point corresponds to an equilibrium solution. Note also, by looking at the graph, that the solution ? = ? is “stable” in that small perturbations in ? do not lead to substantially different solutions as ? grows. If we change the initial condition a little bit, then as ? → ∞ we get ?(?) → ?. We call such a critical point stable. In this simple example it turns out that all solutions in fact go to ? as ? → ∞. If a critical point is not stable, we say it is unstable. 0 5 10 15 20 0 10 10 5 5 0 0 -5 -5 -10 -10 0 5 10 15 20 Figure 1.11: The slope field and some solutions of ? 0 = 0.3 (5 − ?). 5 10 15 20 10.0 10.0 7.5 7.5 5.0 5.0 2.5 2.5 0.0 0.0 -2.5 -2.5 -5.0 -5.0 0 5 10 15 20 Figure 1.12: The slope field and some solutions of ? 0 = 0.1 ? (5 − ?). Consider now the logistic equation ?? = ??(? − ?), ?? 52 CHAPTER 1. FIRST ORDER EQUATIONS for some positive ? and ?. This equation is commonly used to model population if we know the limiting population ?, that is the maximum sustainable population. The logistic equation leads to less catastrophic predictions on world population than ? 0 = ??. In the real world there is no such thing as negative population, but we will still consider negative ? for the purposes of the math. See Figure 1.12 on the preceding page for an example, ? 0 = 0.1?(5 − ?). There are two critical points, ? = 0 and ? = 5. The critical point at ? = 5 is stable, while the critical point at ? = 0 is unstable. It is not necessary to find the exact solutions to talk about the long term behavior of the solutions. From the slope field above of ? 0 = 0.1?(5 − ?), we see that if ?(0) > 0, ? ? 5 ? ? ? lim ?(?) = 0 ?→∞ if ?(0) = 0, ? ? ? DNE or −∞ if ?(0) < 0. ? Here DNE means “does not exist.” From just looking at the slope field we cannot quite decide what happens if ?(0) < 0. It could be that the solution does not exist for ? all the way to ∞. Think of the equation ? 0 = ? 2 ; we have seen that solutions only exist for some finite period of time. Same can happen here. In our example equation above it turns out that the solution does not exist for all time, but to see that we would have to solve the equation. In any case, the solution does go to −∞, but it may get there rather quickly. If we are interested only in the long term behavior of the solution, we would be doing unnecessary work if we solved the equation exactly. We could draw the slope field, but it is easier to just look at the phase diagram or phase portrait, which is a simple way to visualize the behavior of autonomous equations. In this case there is one dependent variable ?. We draw the ?-axis, we mark all the critical points, and then we draw arrows in between. Since ? is the dependent variable we draw the axis vertically, as it appears in the slope field diagrams above. If ? (?) > 0, we draw an up arrow. If ? (?) < 0, we draw a down arrow. To figure this out, we could just plug in some ? between the critical points, ? (?) will have the same sign at all ? between two critical points as long ? (?) is continuous. For example, ? (6) = −0.6 < 0, so ? (?) < 0 for ? > 5, and the arrow above ? = 5 is a down arrow. Next, ? (1) = 0.4 > 0, so ? (?) > 0 whenever 0 < ? < 5, and the arrow points up. Finally, ? (−1) = −0.6 < 0 so ? (?) < 0 when ? < 0, and the arrow points down. ?=5 ?=0 53 1.6. AUTONOMOUS EQUATIONS Armed with the phase diagram, it is easy to sketch the solutions approximately: As time ? moves from left to right, the graph of a solution goes up if the arrow is up, and it goes down if the arrow is down. Exercise 1.6.1: Try sketching a few solutions simply from looking at the phase diagram. Check with the preceding graphs if you are getting the type of curves. Once we draw the phase diagram, we classify critical points as stable or unstable∗ . unstable stable Since any mathematical model we cook up will only be an approximation to the real world, unstable points are generally bad news. Let us think about the logistic equation with harvesting. Suppose an alien race really likes to eat humans. They keep a planet with humans on it and harvest the humans at a rate of ? million humans per year. Suppose ? is the number of humans in millions on the planet and ? is time in years. Let ? be the limiting population when no harvesting is done. The number ? > 0 is a constant depending on how fast humans multiply. Our equation becomes ?? = ??(? − ?) − ?. ?? We expand the right-hand side and set it to zero. ??(? − ?) − ? = −?? 2 + ??? − ? = 0. Solving for the critical points, let us call them ? and ?, we get ?? + ?= q 2 (??) − 4?? 2? ?? − , ?= q (??)2 − 4?? 2? . Exercise 1.6.2: Sketch a phase diagram for different possibilities. Note that these possibilities are ? > ?, or ? = ?, or ? and ? both complex (i.e. no real solutions). Hint: Fix some simple ? and ? and then vary ?. For example, let ? = 8 and ? = 0.1. When ? = 1, then ? and ? are distinct and positive. The slope field we get is in Figure 1.13 on the next page. As long as the population starts above ?, which is approximately 1.55 million, then the population will not die out. It will in fact tend towards ? ≈ 6.45 million. If ever some catastrophe happens and the population drops below ?, humans will die out, and the fast food restaurant serving them will go out of business. ∗ Unstable points with one of the arrows pointing towards the critical point are sometimes called semistable. 54 CHAPTER 1. FIRST ORDER EQUATIONS 0 5 10 15 0 20 5 10 15 20 10.0 10.0 10.0 10.0 7.5 7.5 7.5 7.5 5.0 5.0 5.0 5.0 2.5 2.5 2.5 2.5 0.0 0.0 0.0 0 5 10 15 0.0 0 20 Figure 1.13: The slope field and some solutions of ? 0 = 0.1 ? (8 − ?) − 1. 5 10 15 20 Figure 1.14: The slope field and some solutions of ? 0 = 0.1 ? (8 − ?) − 1.6. When ? = 1.6, then ? = ? = 4. There is only one critical point and it is unstable. When the population starts above 4 million it will tend towards 4 million. If it ever drops below 4 million, humans will die out on the planet. This scenario is not one that we (as the human fast food proprietor) want to be in. A small perturbation of the equilibrium state and we are out of business. There is no room for error. See Figure 1.14. Finally if we are harvesting at 2 million humans per year, there are no critical points. The population will always plummet towards zero, no matter how well stocked the planet starts. See Figure 1.15. 0 5 10 15 20 10.0 10.0 7.5 7.5 5.0 5.0 2.5 2.5 0.0 0.0 0 5 10 15 20 Figure 1.15: The slope field and some solutions of ? 0 = 0.1 ? (8 − ?) − 2. 55 1.6. AUTONOMOUS EQUATIONS 1.6.1 Exercises Exercise 1.6.3: Consider ? 0 = ? 2 . a) Draw the phase diagram, find the critical points, and mark them stable or unstable. b) Sketch typical solutions of the equation. c) Find lim ?(?) for the solution with the initial condition ?(0) = −1. ?→∞ Exercise 1.6.4: Consider ? 0 = sin ?. a) Draw the phase diagram for −4? ≤ ? ≤ 4?. On this interval mark the critical points stable or unstable. b) Sketch typical solutions of the equation. c) Find lim ?(?) for the solution with the initial condition ?(0) = 1. ?→∞ Exercise 1.6.5: Suppose ? (?) is positive for 0 < ? < 1, it is zero when ? = 0 and ? = 1, and it is negative for all other ?. a) Draw the phase diagram for ? 0 = ? (?), find the critical points, and mark them stable or unstable. b) Sketch typical solutions of the equation. c) Find lim ?(?) for the solution with the initial condition ?(0) = 0.5. ?→∞ Exercise 1.6.6: Start with the logistic equation ?? ?? = ??(? − ?). Suppose we modify our harvesting. That is we will only harvest an amount proportional to current population. In other words, we harvest ?? per unit of time for some ? > 0 (Similar to earlier example with ? replaced with ??). a) Construct the differential equation. b) Show that if ?? > ?, then the equation is still logistic. c) What happens when ?? < ?? Exercise 1.6.7: A disease is spreading through the country. Let ? be the number of people infected. Let the constant ? be the number of people susceptible to inf...

Option 1

Low Cost Option
Download this past answer in few clicks

18.89 USD

PURCHASE SOLUTION

Already member?


Option 2

Custom new solution created by our subject matter experts

GET A QUOTE