Lecture 19: Solving linear ODEs + separable techniques for nonlinear ODE s

Similar documents
2.12: Derivatives of Exp/Log (cont d) and 2.15: Antiderivatives and Initial Value Problems

The Fundamental Theorem of Calculus: Suppose f continuous on [a, b]. 1.) If G(x) = x. f(t)dt = F (b) F (a) where F is any antiderivative

y0 = F (t0)+c implies C = y0 F (t0) Integral = area between curve and x-axis (where I.e., f(t)dt = F (b) F (a) wheref is any antiderivative 2.

Lecture 10. (2) Functions of two variables. Partial derivatives. Dan Nichols February 27, 2018

Lecture 20/Lab 21: Systems of Nonlinear ODEs

Homework Solutions: , plus Substitutions

MATH 353 LECTURE NOTES: WEEK 1 FIRST ORDER ODES

MATH 1231 MATHEMATICS 1B Calculus Section 3A: - First order ODEs.

3 Algebraic Methods. we can differentiate both sides implicitly to obtain a differential equation involving x and y:

Ordinary Differential Equations (ODEs)

Lecture 7 - Separable Equations

Sample Questions, Exam 1 Math 244 Spring 2007

dy dt = 1 y t 1 +t 2 y dy = 1 +t 2 dt 1 2 y2 = 1 2 ln(1 +t2 ) +C, y = ln(1 +t 2 ) + 9.

Solutions to the Review Questions

Definition of differential equations and their classification. Methods of solution of first-order differential equations

First Order ODEs, Part I

Chapter1. Ordinary Differential Equations

Math Applied Differential Equations

LECTURE 4-1 INTRODUCTION TO ORDINARY DIFFERENTIAL EQUATIONS

Math Applied Differential Equations

Solutions to Math 53 First Exam April 20, 2010

Solutions to the Review Questions

Math 308, Sections 301, 302, Summer 2008 Review before Test I 06/09/2008

. For each initial condition y(0) = y 0, there exists a. unique solution. In fact, given any point (x, y), there is a unique curve through this point,

Math 225 Differential Equations Notes Chapter 1

Homework Solutions:

Ordinary Differential Equations

First-Order Differential Equations

1.2. Direction Fields: Graphical Representation of the ODE and its Solution Let us consider a first order differential equation of the form dy

y x 3. Solve each of the given initial value problems. (a) y 0? xy = x, y(0) = We multiply the equation by e?x, and obtain Integrating both sides with

Separable Equations (1A) Young Won Lim 3/24/15

Exam 3 review for Math 1190

DIFFERENTIAL EQUATIONS

M343 Homework 3 Enrique Areyan May 17, 2013

First-Order ODE: Separable Equations, Exact Equations and Integrating Factor

Math Reading assignment for Chapter 1: Study Sections 1.1 and 1.2.

(1 + 2y)y = x. ( x. The right-hand side is a standard integral, so in the end we have the implicit solution. y(x) + y 2 (x) = x2 2 +C.

Solving Differential Equations: First Steps

Agenda Sections 2.4, 2.5

µ = e R p(t)dt where C is an arbitrary constant. In the presence of an initial value condition

Sect2.1. Any linear equation:

Math 4B Notes. Written by Victoria Kala SH 6432u Office Hours: T 12:45 1:45pm Last updated 7/24/2016

First Order Differential Equations

Solving differential equations (Sect. 7.4) Review: Overview of differential equations.

MIDTERM 1 PRACTICE PROBLEM SOLUTIONS

Introduction to First Order Equations Sections

Chapter 4. Section Derivatives of Exponential and Logarithmic Functions

MATH 307: Problem Set #3 Solutions

Series Solutions. 8.1 Taylor Polynomials

Chain Rule. MATH 311, Calculus III. J. Robert Buchanan. Spring Department of Mathematics

California State University Northridge MATH 280: Applied Differential Equations Midterm Exam 1

Consider an ideal pendulum as shown below. l θ is the angular acceleration θ is the angular velocity

First Order ODEs, Part II

20D - Homework Assignment 1

ES 111 Mathematical Methods in the Earth Sciences Lecture Outline 15 - Tues 20th Nov 2018 First and Higher Order Differential Equations

Chapter 4 Notes, Calculus I with Precalculus 3e Larson/Edwards

HW2 Solutions. MATH 20D Fall 2013 Prof: Sun Hui TA: Zezhou Zhang (David) October 14, Checklist: Section 2.6: 1, 3, 6, 8, 10, 15, [20, 22]

Lecture Notes in Mathematics. Arkansas Tech University Department of Mathematics

Diff. Eq. App.( ) Midterm 1 Solutions

Calculus IV - HW 2 MA 214. Due 6/29

Homework 2 Solutions Math 307 Summer 17

Chapter 6: Messy Integrals

h(y) dy = g(x) dx h(y)

First Order Differential Equations

Today: 5.4 General log and exp functions (continued) Warm up:

Relevant sections from AMATH 351 Course Notes (Wainwright): 1.3 Relevant sections from AMATH 351 Course Notes (Poulin and Ingalls): 1.1.

MAT01B1: Separable Differential Equations

Math 312 Lecture 3 (revised) Solving First Order Differential Equations: Separable and Linear Equations

Chapter 2. First-Order Differential Equations

Differential Equations Class Notes

ODEs Cathal Ormond 1

Entrance Exam, Differential Equations April, (Solve exactly 6 out of the 8 problems) y + 2y + y cos(x 2 y) = 0, y(0) = 2, y (0) = 4.

Computational Neuroscience. Session 1-2

First Order Differential Equations and Applications

First Order Differential Equations

2.2 Separable Equations

Mathematical Computing

MA22S3 Summary Sheet: Ordinary Differential Equations

Lecture 2. Introduction to Differential Equations. Roman Kitsela. October 1, Roman Kitsela Lecture 2 October 1, / 25

First-Order ODEs. Chapter Separable Equations. We consider in this chapter differential equations of the form dy (1.1)

SOLUTIONS Section (a) y' + 4 x+2 y = -6. (x+2) 2, P(x) = 4, P(x) dx = 4 applen(x+2) = applen(x+2)4. = (x+2) 4,

Exam 2 Study Guide: MATH 2080: Summer I 2016

Review for the First Midterm Exam

Differential Equations & Separation of Variables

18.01 Calculus Jason Starr Fall 2005

LECTURE 14: REGULAR SINGULAR POINTS, EULER EQUATIONS

NATIONAL OPEN UNIVERSITY OF NIGERIA SCHOOL OF SCIENCE AND TECHNOLOGY COURSE CODE: MTH421 COURSE TITLE: ORDINARY DIFFERENTIAL EQUATIONS

1 Differential Equations

Change of Variables: Indefinite Integrals

Solutions to Math 53 Math 53 Practice Final

Solutions Definition 2: a solution

APPM 2360: Final Exam 10:30am 1:00pm, May 6, 2015.

First order differential equations

APPLIED MATHEMATICS. Part 1: Ordinary Differential Equations. Wu-ting Tsai

Solutions to Section 1.1

Chapter 2: First Order DE 2.4 Linear vs. Nonlinear DEs

Problem set 7 Math 207A, Fall 2011 Solutions

NAME: MA Sample Final Exam. Record all your answers on the answer sheet provided. The answer sheet is the only thing that will be graded.

Solutions to Homework 1, Introduction to Differential Equations, 3450: , Dr. Montero, Spring y(x) = ce 2x + e x

DIFFERENTIAL EQUATIONS

Transcription:

Lecture 19: Solving linear ODEs + separable techniques for nonlinear ODE s Geoffrey Cowles Department of Fisheries Oceanography School for Marine Science and Technology University of Massachusetts-Dartmouth November 13, 2008

Linear systems Consider our general ODE problem: y = f (x, y). We have already seen for ODEs of the form y = f (x) we can easily solve by integrating both sides w.r.t. x. Now we will look at a second type of equations: linear. A linear ODE is of the form: y + p(x)y = q(x) It is linear because the powers of y and y are either 1, or if they are not present, 0. A linear example would be: (x 2 + 1)y xy = e x and a nonlinear example would be: (x 2 + 1)y x y = e x We have a technique for dealing directly with the former. For nonlinear equations, there is a technique that works for certain forms, but in general, numerical techniques may be required.

Solving Linear ODE s: Eqns of the form: y + p(x)y = q(x) This is a little tricky, so pay attention. First, we find the antiderivative of p(x) and call that F(x). Then, we form the function G(x) = e F (x). Note that G(x) is called the integrating factor. Now, we multiply both sides of the equation by G(x) to give G(x)y + G(x)p(x)y = G(x)q(x). However, if G(x) = e F (x), then G (x) = e F (x) F (x) by the chain rule. F (x) is, by definition p(x) and thus we have that G (x) = G(x)p(x). Plug that into our middle term above and we get: G(x)y + G (x)y = q(x)g(x). However, the left side of this equation is just, through the chain rule: G(x)y + G (x)y = (G(x)y) and thus we have finally, after some manipulations, the differential equation: (G(x)y) = q(x)g(x). This equation is in the form we already discussed. The solution process is straightforward, simply integrate both sides w.r.t. x.

Solving Linear ODE s: Recipe 1 Put the equation in the correct form: y + p(x)y = q(x) 2 Find the antiderivative of p(x) F(x) 3 Set G(x) = e F (x) 4 Solve (G(x)y) = q(x)g(x) by integrating both sides giving: G(x)y = q(x)g(x) 5 Solve the result and put in the nicer form: y = 1 G(x) q(x)g(x) Note, the constant of integration may end up multiplying some factor and is not necessarily of the form:... + C. See the following example.

Linear Equation: Ex1: Growth We ll return to the growth equation. We have already solved this in chapter 4 by essentially guessing a solution, but here we will formally determine the solution. Let s start with our growth equation: y = ky. 1 Put in the correct form: y = ky y ky = 0 2 Find antiderivative of p(t) = k F(t) = kt 3 Set G(t) = e F (t) = e kt 4 Solve (G(t)y) = q(t)g(t) e kt y = 0 + C 5 Solve for y: y = Ce kt 6 Check, by differentiating: Is Okay

Linear Equation: Ex2: y 3x 2 y = x 2 1 Equation is already in the right form 2 p(x) = 3x 2 F(x) = x 3 3 G(x) = e F (x) = e x 3 4 Solve: (e x 3 y) = x 2 e x 3 e x 3 y = x 2 e x 3 dx. We can solve this by substitution with u = x 3 and du = 3x 2 dx to give e x 3 y = 1 3 e x 3 + C 5 Solve for y: y = 1 3 + Cex 3 6 Check to make sure y satisfies the original ODE: 3x 2 Ce x 3 3x 2 ( 1 3 + Cex 3 ) x 2 = 0 Yes.

Autonomous Equations and Stability An interesting class of ODE s are the autonomous type. These equations have no explicit dependence on the independent variable and thus can be written in the form y = f (x, y) (as opposed to the more general form: y = f (x, y). Note that the exponential y = ry and logistic y = ry(1 y K ) growth functions we have studied are both of this form. In those cases, the rate of change of the population was only dependent on the population and had no explicit dependent on the time t. We will discuss the solution methods in the next lecture, but we will discuss a key tool in the study of differential equations here.

Equilibrium (Critical) Points Recall our discussion of derivatives. Critical points of a function y = f (x) were found by setting the derivative dy dx to zero and solving for x. These were points where the function f (x) was not changing with x. In differential equations, these critical points where y = 0 in general exist and are sometimes known as equilibrium points because the solution has reached equilibrium. Consider the growth equation y = ky. Solving for y = 0 = ky we find the differential equation has one equilibrium point y = 0. If we have 0 population, the population cannot grow. This is interesting in itself, but what we would like to know is how stable is this point. For example, let s say the ecosystem arrived at this point, but was subject to a small perturbation, i.e. the introduction of a few individuals. The I.V.P. y = ky with an initial condition y = y 0 where y 0 is a small, but finite number has the solution y(t) = y 0 e kt. This tells us that exponential growth will occur if our equilibrium solution is perturbed every so slightly. This equilibrium point is unstable. Let s look at the concept of stability more formally.

Equilibrium (Critical) Points Once we find the equilibrium point y = y c, we can assess the stability by looking at y very near that point. At the point, of course, the value is zero by definition. Also note that the critical point is not dependent on x. This is because we are looking at autonomous systems of the form y = f (y). Given a y c, we test y (y c + ɛ) and y (y c ɛ) and see if the calculated gradient would force the solution back to y c (asymptotically stable) or drive it away (unstable). Note that sometimes we only have to check one side of the equilibrium point if the other is not physically feasible. For example, in our growth equation, the equilibrium is y = 0. We can check y = 2, but we shouldn t check y = 2 as we can t have 2 fish.

Example: Growth Returning to our growth example, we have one critical point y = 0 y c = 0. We test the rate of change of the function at y = 2 to find y = 2r > 0. The derivative is positive and thus, perturbed, the system will grow with time, away from y = 0. We can see this if we look for the directional fields for the growth function:

Example: Decay With decay, our differential equation is y = ry. Again, we have one critical (equilibrium) point y = 0 y = 0. However, if we consider a small perturbation of the population, y = ɛ, we find that y = rɛ < 0. The rate of change is negative and thus, perturbed, the solution will drive back to zero. This is also clear from looking at the directional gradients. For your homework, you ll look at the logistic equation. Note, there are two equilibrium solutions (can you guess what they are)

Summary 1 Differential Equation: Equations with terms that include the derivative of an unknown function 2 Ordinary Differential Equation (ODE). A D.E. for a function of a single variable (as opposed to a partial differential equation) 3 1st Order Differential Equation: An ODE in which the highest derivative of the unknown function is the first derivative. Can be written in the form: y = f (x, y). 4 Linear (ODE) A linear ODE can be written in the form: y + p(x)y = q(x) and thus does not involve powers of the unknown function greater than 1 5 Autonomous D.E.: Differential equation that does not explicitly include dependent on the independent variable. Can be written in the form: y = f (y)

Review We have looked at some solution methods already for ODEs (remember the general form is y = f (x, y)). For equations of the form y = f (x) we just integrate both sides: y = f (x)dx. For linear ODEs we can write them in the form y + p(x)y = q(x) and solve them using the integration factor F(x) using a very straightforward procedure. In this lecture, we will discuss a third method which is related to the first above. It is called separation of variables. The idea is to manipulate the differential equation to get it in the form: f (y)y = g(x) We can then integrate both sides with respect to x f (y)y dx f (y) dy dx dx f (y)dy = g(x)dx If we can complete these integrals, we have a general solution for y(x)

Separable: Example 1 We will start with Example 1 from the book: y = 3x 2 e 2y. This rather scary looking ODE is easily manipulated into the form we need. Remember, we want all y stuff on the left and x on the right. If we can do that, than the equation is separable and we can use our separable-specific technique. e 2y y = 3x 2 Integrate both sides with respect to x to give (see last slide) e 2y dy = 3x 2 dx Take the ln of both sides: 1 2 e 2y = x 3 + C e 2y = 2x 3 2C 2y = ln( 2x 3 2C) y = 1 2 ln( 2C 2x 3 )

Separable Example 2 Sometimes the solution can t be written in the nice clean form y = stuff. Let s look at the Initial Value Problem, y = 2x y+e 5y with the initial data y(2) = 0. We start by separating the variables: dy dx = (y + e 5y )y = 2x 2x y + e 5y Integrate both sides to give: (y + e 5y )dy = 2xdx y 2 2 + e5y 5 = x 2 + C

Separable Example 2, cont d Now, we use the initial condition to determine C Our final solution: 0 2 2 + e5 0 5 = 2 2 + C C = 19 5 y 2 2 + e5y 5 = x 2 19 5 Note, this equation is implicit in y because we can t solve for y exactly. To examine solutions we have two choices. We can pick values of x and then solve the resulting equation for y using a root finding method. Alternatively, we can select values of y and solve for x easily. This method does not allow us to find out the value of y at a specific position x, but will allow us to graph the solution.