Differential Equations: A Visual Introduction For Beginners

3y ago
115 Views
10 Downloads
5.08 MB
55 Pages
Last View : 1m ago
Last Download : 3m ago
Upload by : Fiona Harless
Transcription

Differential Equations:A Visual Introductionfor BeginnersFirst printingBy Dan Umbargerwww.mathlogarithms.comIllustrations by Al Diaz and Mark Lewkowicz

ContentsForeword . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .v0Equations and Differentials, Review of Differential Calculus . . . . . . . . . . . . . . . . . . . . . . . .11Getting Started . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .152Using Discrete Math to Solve Growth and Decay Problems . . . . . . . . . . . . . . . . . . . . . . . . .253Using Continuous Math to Solve Growth and Decay Problems; Introduction to Separable DifferentialEquations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .334Solving Separable Differential Equations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .435More Applied Separable Differential Equations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .556Solving Separable Logistic Equations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .677Predator–Prey: Introduction to Systems of Differential Equations . . . . . . . . . . . . . . . . . . . . . .838Solving “Linear” Differential Equations Using an Integrating Factor . . . . . . . . . . . . . . . . . . . .899Differential Equations in Physics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10110 Bernoulli Equations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10711 Review of Partial Derivatives and Integrals: Getting Ready for Exact Differential Equations . . . . . . . . 11312 Exact Differential Equations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12113 Homogeneous First-Order Substitution Technique . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13914 Homogeneous Second-Order Linear O.D.E. Solution Technique with Constant Coefficients . . . . . . . . 14515 Hooke’s Law and Homogeneous Differential Equations . . . . . . . . . . . . . . . . . . . . . . . . . . . 15716 Predator–Pursuit Problems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16717 Review of Algebraic Systems of Equations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17318 Epistemology: Axioms (Postulates) vs. Theorems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18319 Eigenvalues, Eigenvectors, and Mat ε λ ε . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18520 Solving Systems of Differential Equations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 189iii

ivDifferential Equations: A Visual Introduction for Beginners21 Phase-Plane Portraits for Two-by-Two Systems of Linear Homogeneous Differential Equations . . . . . . 20322 Background Necessary to Understand the Laplace Transform . . . . . . . . . . . . . . . . . . . . . . . . 21523 The Laplace Transform . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22124 Applications of the Laplace Transform . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22925 Reteaching, Reinforcing, Reviewing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 237Glossary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 249A MATLAB Scripts by Chapter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 255B Converting a Logistic Differential Equation into Its Algebraic (Integrated) Equivalent . . . . . . . . . . . 285C ProofThat the Integrating Factor for a First-Order Differential Expression of the form y0 (x) P(x)y(x) IsRe P(x) dx . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 289D Justifying the Algebraic Technique for Solving Second-Order, Linear Homogeneous Differential Equations with Imaginary Characteristic-Equation Solutions (B2 4AC 0) . . . . . . . . . . . . . . . . . . 2912.71828 Euler’s Equation, an Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 293F Solving for the Integrated Solution of a Two-by-Two System of Differential Equations . . . . . . . . . . . 295G Analyzing a Generic Two-by-Two System of Ordinary Differential Equations . . . . . . . . . . . . . . . 299H Solving for the Integrated Solution of an n-by-n System of Differential Equations . . . . . . . . . . . . . 305ICalculate the Laplace Transform of sin(at) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 309

Chapter 1Getting StartedA differential equation is an equation in one or more variables involving one or more of its own derivatives. Amajor goal of taking a class in differential equations is to solve for f (x) if given f (x), f (x), etc. That is, somehowwork backward and find the function whose derivative is given. For example, given f (x) 2x, what is f (x)?f (x) outf ′(x) inOnce we obtain the mystery f (x), we can evaluate it for any desired x. What would be the function whosedydy, is 2x? We know from differential calculus that the derivative of y x2 would be 2x. Hence, if dx 2xderivative, dx22then y x . (This can also be stated as: if f (x) 2x, then f (x) x .)But wait! A vertical shift of a44function does not impact the slopeof tangent lines! In the figure at33right, the tangent slopes to the22curves y x2 1 (green), y 1x2 2 (red), and y x2 3 (blue)1are all equal when x a, when1234 3 2 1123x 0, and when x b. There is 4 3 2 1 1 1not a single functional solution (oneFamily of solutionsunique function whose derivative is 2 2for dydx 2x2x), but a set or family of them. We 3x a 3x bwould indicate this by stating thatdy 2x the set or family of function solutions is x2 c, where c represents any constant. The vertical lines here,for dxx a, x 0, and x b are called isoclines. An isocline is notable because the slope of each function at each pointon the isocline is the same. Hence, the goal of solving a differential equation is to solve for a function or family offunctions which, when substituted into the original equation, will balance the two sides or make them equal.15

16Differential Equations: A Visual Introduction for BeginnersFrom that family of function solutions we often, using information given us, will identify the particular one thatis appropriate to our situation and use it to evaluate for specific values of x. That is called solving an initial valueproblem (IVP). In differential calculus, we studied how to obtain a derivative function from a given function. Indifferential equations, we study how to obtain a function from a given differential.In a famous French play Le Bourgeois Gentilhomme by Molière, a comicalbut buffoonish character, Monsieur Jourdain, is amazed to learn that he had beenspeaking prose all his life and didn’t even know it.“Par ma foi! Il y a plus de quarante ans que je dis de la prose sans que j’ensusse rien, et je vous suis le plus obligé du monde de m’avoir appris cela.”As Monsieur Jourdain demonstrates, it is quite possible to speak prose without knowing that you are doing it. However, it is very, very difficult to learnabstract skills and abstractions without, at some conscious or unconscious level,building upon earlier more primitive ones. Differential-equations teachers willnot tell you the information that follows because they are so smart and they haveinternalized it so deeply that they assume that you have too. To be fair to them,the university curriculum requires that they move at a very fast pace, chop-chop.Nevertheless, it is a truism that mathematicians are not always “math educators.”Be grateful if you have a teacher who can move comfortably between the twoworlds. Thank him or her.It turns out that you have been practicing many of the necessary skills to workwith and solve differential equation problems since algebra and you did not evenknow it. Making the connections shown in the following page or so of text will level the steep learning curve leadingto differential equations and perhaps give you the confidence to say, “Wow! I have been doing much of this worksince algebra and I did not even know it!”

Chapter 1Getting StartedThere are many, many coplanar lines that can be drawnwith the same linear slope. Lines that have the sameslope are said to be parallel. They do not intersect.17There are many, many quadratic equations that can bedrawn each with the same function slope. For example,dydx 2x. Coplanar curves with the same slope can besaid to be “parallel.” They do not intersect.6y x2 b5y mx b4321 3 2 1123 1 2 3Euclid’s famous fifth postulate suggests that only oneof a set of parallel lines can pass through a given point.The “Theorem of Uniqueness” says that only one ofa family of “parallel” curves can pass through a givenpoint.6y x2 b5y mx b432(2, 1)(2, 1)1 3 2 1123 1 2 3We use the above assumption to identify one of a familyof parallel lines. Find the equation of a line, y mx b,that has a slope of 2 and passes through the point (2, 1).1 1121110987654321(2, 1)m 21We use the above theorem to identify one of a family of“parallel” parabolas. Find the equation of the parabola,y x2 b, that passes through the point (2, 1). Here thed(x2 b) 2x.slope of y x2 b is 2x because dx23y 2x 3 2 4 3y mx b 1 2(2) b b 3The line passing through (2, 1) with a slope of 2 isf (x) 2x 3. 3 2 1 1y x2 3(2, 1)1234 2 3y x2 b 1 22 b b 3The parabola passing through (2, 1) with a slope of 2 isf (x) x2 3.

18Differential Equations: A Visual Introduction for BeginnersIt is possible to find the equation of the line with givenslope and passing through a given point. You could thenfind the value of y for any given x on that line: y f (x).It may be possible to find a specific function from adyfamily of solutions to dxthat passes through a specificpoint. This is called solving an initial value problem(IVP). You could then find the y for any given x on thatfunction, y x2 3.34323028262422201816141210864211109(6, ?)876y 2x 354m 2321(2, 1)123456 6 5 4 3 2 1 27(6, ?)y x2 3(2, 1)123456y 2x 3 y 2(6) 3 y 12 3 y 9y x2 3 y 62 3 y 36 3 y 33The line with slope 2 passing through (2, 1) also passesthrough (6, 9). Only one straight line does this.The parabola with slope 2x passing through (2, 1) alsopasses through (6, 33). Only one parabola does this.The complicated existence and uniqueness theorem addresses this in a real differential-equations class.Math is easier if you can make connections to previous topics! Differential equationscan be seen as a curvilinear version of work done previously with linear functions.Or, as Monsieur Jourdain would have said, “Par ma foi! Il y a plus de quarante ans que je dis de la prose sansque j’en susse rien, et je vous suis le plus obligé du monde de m’avoir appris cela.”dy 2x (or f 0 (x) 2x). For that simple equationIn Chapter 1, the differential equation we have been using was dxit was intuitive from beginning calculus that f (x) x2 . Any differential equation of any consequence will not besolved by inspection. It is good to understand that working with differential equations is kind of a reverse processdyof differential calculus. Since the differential equation ( f 0 (x) or dx 2x) was obtained by differentiating f (x), thenperhaps you can anticipate that f (x) will be obtained by integrating f 0 (x).For f (x) x2 3 the derivative f 0 (x) 2x.If it is given that the function y x2 c passes through thepoint (2, 1), thenTherefore it follows that:dygiven differential equationdx 2x1 22 cc 3Rdy 2xRdxdy 2x dxRRy0 dy 2 x1 dxmultiply by dxintegrate both sidesy x2 cy x2 3 equation of the parabola of form y x2 bintegration continuedand passing through (2, 1)integration continuedcheck:y 22simplifyWhen x 6, y x2 3 33.y x2y x2 csimplify againThere are many functionsdywith dx 2x.dyOf all the functions whose derivative is dx 2x, onlyone passes through the point (2, 1). That function also passesthrough the point (6, 33).y0 10 1x1 1 2 1 1x2d2dx (x 3) 2x!

Chapter 1Getting Started19We are used to working with functions and function notation from both algebra and calculus. We have seen bothdy. However, up to now, that notation has mostly been used to evaluate a scalar or to indicate asymbols f (x) and dxfunction. For example, for f (x) x2 , we have f (x) 2x or f (5) 10. In differential equations, it will often bedy, as an infinite set of tiny tangent segments, so tiny that each line segment is the lengthhelpful to think of f (x), dxof a point. (Points don’t have length . . . use your imagination . . . think of a computer screen pixel.) Commercialcomputer software is available to create slope fields. Because the brain has a tendency to “fill in” gaps, you can, withimagination, “see” a finite representation of that desired set of functions that results from solving the “differentialfunction.” The following is a progression of slope fields with x 1, 0.6, 0.3, and 0.1.33221100 1 1 2 2 3 3 20dydx2 2dydx 2x, x 133221100 1 1 2 2 3 3 20dydx 2x, x 0.302 2 2x, x 0.60dydx2 2x, x 0.12

20Differential Equations: A Visual Introduction for BeginnersPutting all these ideas together into one marvelous MATLAB screen we see the slope field family prescribeddy f (x) 2x. We know that there is a specific function, f (x), somewhere in theby the differential equation dxslope field family of functions whose derivative is 2x, that passes through the point (2, 1). Solving the differentialequation f (x), we get f (x) x2 c where c indicates an integration constant, a vertical shift of f (x) x2 . Usingthe information that the specific function we want passes through the point (2, 1), we solved for c by substituting the(x, y) values (2, 1) into y x2 c to find c 3. So y x2 c becomes y x2 3. Then we could find, for x 6,y 62 3 33!!60Slope field and family of solutionsfor f ′(x) 2x, f(x) x2 c. Givenf(x) passes through (2, 1), c 3.Therefore, f(x) 33 when x 6.504030(6, 33)20100(2, 1) 10 20012345678Do you remember in calculus how you learnedto successively approximate the slope of a tangentSlope field for f ′(x) 2xline by calculating the slope of approaching secantFor the particular solutionlines? (See Chapter 0.) Well a smart Swiss mathepassing through (2, 1),matician, Leonhard Euler, 1707–1783, figured out(6, ?)there is a way to find f(6)a way to successively approximate the solution towithout solving for f(x).a differential equation for a given value of x. Thegenius of Euler—who is credited with this iterady, that istive method of solving for f (x) if given dxf (x)—was that 1) he could mentally visualize thedy, that is every f (x) whoseentire slope field for dx(2, 1)derivative is f (x), and 2) he realized that he coulduse the known fact that (x, y) was on the unknownf (x) to successively approach f (z) for any z usingdy. Today, we have graphing calculators and computer softwarealgebra and trigonometry and the known f (x)—i.e., dxpackages that will help us see what Euler could visualize in the 1700s. As the slope indicators become shorter andthe tangent indicators become more numerous, each specific (particular) slope field approaches a particular solution,dy f (x) 2x and the fact that f (x) passes through the point (2, 1), wef (x). Using the information we do have, dxcan get an initial estimation of f (6) without knowing the function f (x).In the figure above, we have a point (2, 1) and we know the slope of the unknown function at x 2 is 4. That is,f (2) 2 2 4. We wish to find the unknown point (6, ?) on the unknown function f (x). With the two given xvalues (2 & 6), we can determine x 6 2 4. If we could determine y, we could calculate y y and obtain

Chapter 1Getting Startedthe new y value. How can we determine the y value? We know from studying trigonometry that tan θ opp (tan θ) adj. We know from studying algebra that m 1. The slope m yx rise yrun x .opp yadj x21henceSo, tan θ m.Slope moppadj .opp2. opp m adjadjSubstituting into opp m adj y m x y 2x 4 . . . m at point (2, 1) is 2x y 4 4 16 . . . m at point (2, 1) 4New y old y y. y 1 16 17. We estimate that f (6) for the unknown function, f (x), might be 17. Basicallywe have “extended” out (extrapolated) the tangent line until it reached an x value of 6.19181716151413121110987654321 x 4xy2.01.06.0 17.0(6, 17)6 2 x17 1 ydydx m 2xm oppadj y 16 y x y m x 2x 4 2 2 4 16(2, 1)123 x 44 56789 10 11 12 13 14 15Recall from differential calculus (reviewed in Chapter 0) how we improved our secant slope estimate of a tangentslope in the example by decreasing x:x (domain)y 0164y2 y1x2 x1m 64 08 0 8m 64 168 4 1264 36m 8 6 14m 64 498 7 1564 62.41m 8 7.9 15.9m 64 63.8401 15.998 7.99m 64 63.984001 15.9998 7.99964 640m 8 8 0 16?m Indeterminate division by zero

22Differential Equations: A Visual Introduction for BeginnersThat same “successive approximation” technique can be used in differential equations to improve our estimationdyof f (6). That is, given f 0 (x) dx 2x and the fact that the function we seek passes through point (2, 1), we canimprove our original estimation of the unknown f (x) at 6— f (6) 17—by reducing the x we used to project outfrom (2, 1).For the example above, change from x 4 to x 1. x 1,N12345 y 2xn xxn xn 1 xx1 2 (given)x2 2 1 3x3 3 1 4x4 4 1 5x5 5 1 6By decreasing x, we get values closer and closer to the actualf (6). The text box at right and thefive text boxes below were generated by the computer programshown on the following page.dybecause 2x, so dy 2x dxdx y 2 xn 1 xNot applicable2 2 1 42 3 1 62 4 1 82 5 1 10 x 1xy2.01.03.05.04.0 11.05.0 19.06.0 29.0yn yn 1 yy1 1 (given)y2 1 4 5y3 5 6 11y4 11 8 19y5 19 10 7654321 x 1xy2.01.03.05.04.0 11.05.0 19.06.0 29.0Compare (6, 32.996) for x 0.001,with the exact solution (6, 33) we gotseveral pages back. Fortunately, theseanswers are close. Otherwise, therewould be egg on the author’s face! x 1.4232.66(xn ,yn)(2, 1)(3, 5)(4, 11)(5, 19)(6, 29)(6, 29)m 10(5, 19)m 8(4, 11)m 6m 4dydx(3, 5) m 2x(2, 1)1 x 4xy2.01.06.0 17.0!23 x 96.0032.6032.7232.8432.96456789 x 9610

Chapter 1Getting Started23public class EulersMethodSolvingAnODE{public static void main(String args[]){double x 2;double y 1;double deltaX 1; // x is run for 4, 1, 0.1, 0.01, and 0.001System.out.println("x y"); // column headerswhile (x 6){System.out.println(x ", " y);// tan theta opp/adj, so opp tan theta * adj. Ergo y n y n - 1 dy/dx * xy y (2 * x) * deltaX; // new y old y length side opposite thetax x deltaX; // new x old x deltaX} // end while} // end main} // end JavaTemplateThere are software packages available that allow you to experiment with the ideas taught in adifferential equations class. A jar file can be purchased from Cengage Publishers. One of the options allows the user to experiment with Euler’smethod for different differential equations.Below, passing through (0.24, 1.2), you seeEuler’s method for x 1, 0.5, 0.25, 0.125, andthe Runge–Kutta 4 algo

Differential Equations: A Visual Introduction for Beginners First printing By Dan Umbarger www.mathlogarithms.com Illustrations by Al Diaz and Mark Lewkowicz

Related Documents:

(iii) introductory differential equations. Familiarity with the following topics is especially desirable: From basic differential equations: separable differential equations and separa-tion of variables; and solving linear, constant-coefficient differential equations using characteristic equations.

Andhra Pradesh State Council of Higher Education w.e.f. 2015-16 (Revised in April, 2016) B.A./B.Sc. FIRST YEAR MATHEMATICS SYLLABUS SEMESTER –I, PAPER - 1 DIFFERENTIAL EQUATIONS 60 Hrs UNIT – I (12 Hours), Differential Equations of first order and first degree : Linear Differential Equations; Differential Equations Reducible to Linear Form; Exact Differential Equations; Integrating Factors .

Chapter 1 Introduction 1 1.1 ApplicationsLeading to Differential Equations 1.2 First Order Equations 5 1.3 Direction Fields for First Order Equations 16 Chapter 2 First Order Equations 30 2.1 Linear First Order Equations 30 2.2 Separable Equations 45 2.3 Existence and Uniqueness of Solutionsof Nonlinear Equations 55

3 Ordinary Differential Equations K. Webb MAE 4020/5020 Differential equations can be categorized as either ordinary or partialdifferential equations Ordinarydifferential equations (ODE's) - functions of a single independent variable Partial differential equations (PDE's) - functions of two or more independent variables

Introduction to Advanced Numerical Differential Equation Solving in Mathematica Overview The Mathematica function NDSolve is a general numerical differential equation solver. It can handle a wide range of ordinary differential equations (ODEs) as well as some partial differential equations (PDEs). In a system of ordinary differential equations there can be any number of

DIFFERENTIAL EQUATIONS FIRST ORDER DIFFERENTIAL EQUATIONS 1 DEFINITION A differential equation is an equation involving a differential coefficient i.e. In this syllabus, we will only learn the first order To solve differential equation , we integrate and find the equation y which

13.1 Differential Equations and Laplace Transforms 189 13.2 Discontinuous Functions 192 13.3 Differential Equations with Discontinuous Forcing 194 Problem Set E: Series Solutions and Laplace Transforms 197 14 Higher Order Equations and Systems of First Order Equations 211 14.1 Higher Order Linear Equations 212

1 1 INTRODUCTION TO DIFFERENTIAL EQUATIONS 1.1 Definitions and Terminology 1.2 Initial-Value Problems 1.3 Differential Equations as Mathematical Models CHAPTER 1 IN REVIEW The words differential and equations certainly suggest solving some kind of equation that contains derivatives y, y, . . . .Analogous to a course in algebra and