Lectures - Week 10 Introduction to Ordinary Differential Equations (ODES) First Order Linear ODEs

Similar documents
Integration Review. May 11, 2013

The derivative of a function f(x) is another function, defined in terms of a limiting expression: f(x + δx) f(x)

3.7 Implicit Differentiation -- A Brief Introduction -- Student Notes

Implicit Differentiation

Calculus in the AP Physics C Course The Derivative

Linear First-Order Equations

Optimization Notes. Note: Any material in red you will need to have memorized verbatim (more or less) for tests, quizzes, and the final exam.

Ordinary Differential Equations

1 Lecture 20: Implicit differentiation

Lecture 6: Calculus. In Song Kim. September 7, 2011

Section 7.1: Integration by Parts

x = c of N if the limit of f (x) = L and the right-handed limit lim f ( x)

3.2 Differentiability

First Order Linear Differential Equations

Math Notes on differentials, the Chain Rule, gradients, directional derivative, and normal vectors

LINEAR DIFFERENTIAL EQUATIONS OF ORDER 1. where a(x) and b(x) are functions. Observe that this class of equations includes equations of the form

Final Exam Study Guide and Practice Problems Solutions

23 Implicit differentiation

Unit #6 - Families of Functions, Taylor Polynomials, l Hopital s Rule

SYDE 112, LECTURE 1: Review & Antidifferentiation

Math 342 Partial Differential Equations «Viktor Grigoryan

Chapter Primer on Differentiation

Math Chapter 2 Essentials of Calculus by James Stewart Prepared by Jason Gaddis

Calculus of Variations

Define each term or concept.

First Order Linear Differential Equations

The Exact Form and General Integrating Factors

x f(x) x f(x) approaching 1 approaching 0.5 approaching 1 approaching 0.

Calculus and optimization

MATH2231-Differentiation (2)

d dx [xn ] = nx n 1. (1) dy dx = 4x4 1 = 4x 3. Theorem 1.3 (Derivative of a constant function). If f(x) = k and k is a constant, then f (x) = 0.

UNDERSTANDING INTEGRATION

You should also review L Hôpital s Rule, section 3.6; follow the homework link above for exercises.

Section 2.1 The Derivative and the Tangent Line Problem

A. Incorrect! The letter t does not appear in the expression of the given integral

Solutions to Practice Problems Tuesday, October 28, 2008

Exam 2 Review Solutions

Quantum Mechanics in Three Dimensions

Differentiability, Computing Derivatives, Trig Review. Goals:

Diagonalization of Matrices Dr. E. Jacobs

cosh x sinh x So writing t = tan(x/2) we have 6.4 Integration using tan(x/2) 2t 1 + t 2 cos x = 1 t2 sin x =

1 Lecture 13: The derivative as a function.

Differentiability, Computing Derivatives, Trig Review

2tdt 1 y = t2 + C y = which implies C = 1 and the solution is y = 1

Math 1271 Solutions for Fall 2005 Final Exam

ay (t) + by (t) + cy(t) = 0 (2)

QF101: Quantitative Finance September 5, Week 3: Derivatives. Facilitator: Christopher Ting AY 2017/2018. f ( x + ) f(x) f(x) = lim

Math 210 Midterm #1 Review

MA 2232 Lecture 08 - Review of Log and Exponential Functions and Exponential Growth

Chapter 1 Overview: Review of Derivatives

The Natural Logarithm

Math 115 Section 018 Course Note

Schrödinger s equation.

Lecture 2 Lagrangian formulation of classical mechanics Mechanics

x f(x) x f(x) approaching 1 approaching 0.5 approaching 1 approaching 0.

Sturm-Liouville Theory

Partial Differential Equations

Calculus Class Notes for the Combined Calculus and Physics Course Semester I

Introduction to Differential Equations Math 286 X1 Fall 2009 Homework 2 Solutions

IMPLICIT DIFFERENTIATION

Applications of the Wronskian to ordinary linear differential equations

JUST THE MATHS UNIT NUMBER DIFFERENTIATION 2 (Rates of change) A.J.Hobson

19 Eigenvalues, Eigenvectors, Ordinary Differential Equations, and Control

Solutions to Math 41 Second Exam November 4, 2010

2 ODEs Integrating Factors and Homogeneous Equations

Lagrangian and Hamiltonian Mechanics

f(x) f(a) Limit definition of the at a point in slope notation.

1 Definition of the derivative

The Principle of Least Action

February 21 Math 1190 sec. 63 Spring 2017

Make graph of g by adding c to the y-values. on the graph of f by c. multiplying the y-values. even-degree polynomial. graph goes up on both sides

Math 1B, lecture 8: Integration by parts

Mathematical Review Problems

1 Lecture 18: The chain rule

18 EVEN MORE CALCULUS

Math 11 Fall 2016 Section 1 Monday, September 19, Definition: A vector parametric equation for the line parallel to vector v = x v, y v, z v

Computing Derivatives

CHAPTER SEVEN. Solutions for Section x x t t4 4. ) + 4x = 7. 6( x4 3x4

Calculus of Variations

Differentiation ( , 9.5)

θ x = f ( x,t) could be written as

Linear and quadratic approximation

0.1 The Chain Rule. db dt = db

12.5. Differentiation of vectors. Introduction. Prerequisites. Learning Outcomes

Diophantine Approximations: Examining the Farey Process and its Method on Producing Best Approximations

Table of Common Derivatives By David Abraham

Fall 2016: Calculus I Final

Implicit Differentiation. Lecture 16.

Chapter 2 Derivatives

Summary: Differentiation

Differentiation Rules Derivatives of Polynomials and Exponential Functions

d dx But have you ever seen a derivation of these results? We ll prove the first result below. cos h 1

cosh x sinh x So writing t = tan(x/2) we have 6.4 Integration using tan(x/2) = 2 2t 1 + t 2 cos x = 1 t2 We will revisit the double angle identities:

Implicit Differentiation

Section The Chain Rule and Implicit Differentiation with Application on Derivative of Logarithm Functions

Derivative of a Constant Multiple of a Function Theorem: If f is a differentiable function and if c is a constant, then

Mathcad Lecture #5 In-class Worksheet Plotting and Calculus

Single Variable Calculus Warnings

Vectors in two dimensions

f(x + h) f(x) f (x) = lim

Transcription:

Lectures - Week 10 Introuction to Orinary Differential Equations (ODES) First Orer Linear ODEs When stuying ODEs we are consiering functions of one inepenent variable, e.g., f(x), where x is the inepenent variable an f is the epenent variable. An ODE is an equation which tells us something about how the epenent variable changes with respect to the inepenent variable, i.e., an equation with the erivative of the epenent variable with respect to the inepenent variable. First lets recall the efinition of the erivative of f(x) which we enote f (x) or equivalently as f x f f(x + x) f(x) (x) = lim x 0 x The term we are taking the limit of is just the slope of the secant line joining the points (x, f(x)) an ( x + x, f(x + x) ). The erivative has a graphical interpretation which is just the slope of the tangent line to the curve y = f(x) at the point x. The erivative has a physical interpretation which is just the instantaneous rate of change of f with respect to x. Often when moeling some physical, chemical, biological, etc. phenomena we know how some quantity changes with time (or spatially) an we want to fin the quantity itself. In this case we often are face with solving an ODE. In some sense solving an ODE is like performing an integration. For example if we have y (t) = t then we must fin a function whose erivative is t so we know the result by integrating the equation to get y(t) = 1 2 t2 + C where C is an arbitrary constant. The solution is not unique because we can a any constant to 1 2 t2 an its erivative is still t so it satisfie our ODE. To make the solution unique we a an auxiliary conition (which we will see can be an initial or bounary conition); in our problem we coul have y (t) = t y(0) = 1 whose unique solution is then y(t) = 1 2 t2 + 1. Note that here we neee one auxiliary conition because we integrate once (because we ha the first erivative of y). Recall from calculus that unlike ifferentiation where there are a set of rules, for integration we learne techniques which applie in certain settings. We also foun that some integrals coul not be evaluate by stanar means. This will be similar to the situation of fining analytical solutions to ODEs. There are techniques which can be use for solving certain types of ODEs while analytical solutions for others are not available in a close form. To ientify what techniques work for which ODEs we classify ifferential equations into various categories. ODES are classifie in several ways. 1

orer - the highest erivative occurring in the equation linearity - whether the unknown an its erivatives appear linearly or nonlinearly homogeneous/inhomogeneous - this refers to the existence of a forcing function on the right han sie of the equation Initial value problem (IVP) or Bounary Value Problem (BVP) - this refers to the type of auxiliary conitions applie single equation or system - this refers to whether we have a single equation or a system of couple ODEs. Example Classify each of the equations using the above criteria. (1) y (t) + 6y(t) = 7 sint t > 0, y(0) = 1 (2) y (x) + 2y(x) = x 3 0 < x < 1, y(0) = 1, y(1) = 4 (3) y (t) + y 2 (t) = 0 t > 2, y(2) = 1 (4) y (t) + w(t) = e t, w (t) y(t) = 4 t > 2, y(2) = 1, w(2) = 0 In the secon equation the notation y (x) enotes the secon erivative of y with respect to x an is also enote 2 y/x 2 ; this just means take the first erivative of the function y (x). Equation (1) is a first orer, linear inhomogeneous IVP an is of course a single equation. This is an IVP because we are given the value of y initially an want to fin it for later times. Equation (2) is a secon orer, linear inhomogeneous BVP an is of course a single equation. It is a BVP because we seek y(x) in the interior of the interval [0, 1] an we know the values at the two enpoints of the omain, i.e., its bounaries. Equation (3) is a first orer, nonlinear homogeneous IVP an is of course a single equation. It is nonlinear because the unknown y appears nonlinearly in the term y 2. Equation(4) is a first orer system of linear inhomogeneous equations an is an IVP. In a course in ODEs one learns a variety of techniques which are applicable to certain types of equations. For example, one technique might be applicable for secon orer, linear, homogeneous equations. However, one shoul keep in min that these techniques only work in specific cases; there are many ODEs which o not have analytical solutions. Our goals for this portion of the course on ODEs are: State existence an uniqueness results for IVPs an BVPs; this will require us to look at some concepts such as continuity, ifferentiability, Lipschitz continuity, convexity. Look at a few techniques for fining analytical solutions of ODEs Look at the two basic types of numerical methos for approximating the solution of IVPs an be able to analyze accuracy, stability, etc. Look at finite ifference techniques for solving a BVP Compare the implications of numerically solving an IVP an a BVP 2

First Orer Linear ODEs The simplest ODE to solve is a first orer linear ODE which has the general form (5) y (t) + p(t)y(t) = g(t) t 0 < t < T y(t 0 ) = y 0 Note that this is an IVP because we are given the value of y initially at t = t 0 an want to etermine the value of y for later times. Also note that we have assume the coefficient of y (t) is one in our general formulation. We o this because we can always ivie through by the coefficient if it is not one; for example (sin t)y (t) + (cos t)y(t) = 4 y (t) + (cott)y(t) = 4/ sint When we stuie numerical methos for solving A x = b we first wante to know if the system ha a unique solution. The same is true for ODEs we want to etermine conitions which guarantee a solution exists an is unique. Theorem Let p(t), g(t) be continuous functions on (t 0, T). Then the solution to (5) exists an is unique. Note that the theorem gives conitions uner which we are guarantee a unique solution. It oes not say anything about the existence when p or g is not continuous. Recall that a function f(x) is continuous at a point x = a provie we can make f(x) as close to f(a) as we want by making x close to a. This is state mathematically in the following efinition. Definition A function f(x) is continuous at x = a if given ǫ > 0 there exists a δ > 0 such that f(x) f(a) < ǫ whenever x a < δ. A function f(x) is continuous in an entire interval [a, b] provie it is continuous at each point in the interval. Recall that this means graphically that the function has no jumps in its plot, i.e., if we put our pencil own at the point [a, f(a)] we can trace out the entire curve to [b, f(b)] without raising our pencil. Example Determine if the above existence theorem can be applie to each IVP. y (t)+sin πt y(t) = e t, y(1) = 1 1 < t < 4 (t 2)y (t)+e t y(t) = 4, y(1) = 1 1 < t < 4 In the first equation p(t) = sin πt an g(t) = e t which are both continuous functions in [1, 4] so we are guarantee that a solution exists an is unique from the theorem. For the secon equation p(t) = e t /(t 2) an g(t) = 4. Although g(t) is continuous on [1, 4], p(t) is not an so the theorem is not applicable. 3

It turns out that homogeneous equations are not only easier to solve than inhomogeneous ones, but often the solution of the homogeneous equation tells us some part of the solution to the inhomogeneous one. For this reason we first look at techniques for solving homogeneous first orer linear ODEs. Separation of Variables for solving first orer linear homogeneous ODEs We now consier the IVP y (t) + p(t)y(t) = 0 t 0 < t < T, y(t 0 ) = y 0 or equivalently y (t) = p(t)y(t) t 0 < t < T, y(t 0 ) = y 0 If p(t) is a constant, this says that the rate of change of y is proportional to itself or equivalently we are asking ourselves to fin a function y whose erivative is a constant times itself; we know that the only function which satisfies this is the exponential. For example, if p(t) = 2 then we want y(t) such that y (t) = 2y(t) which implies y(t) = Ce 2t. To solve the equation for general p(t) we note that the ODE can be rewritten as 1 y y (t) = p(t) 1 y y = p(t) y y = p(t) In the last equation we see that on the left han sie we only have the epenent variable y an on the right han sie the inepenent variable t. We can then integrate both sies of the equation to get Solving for y yiels 1 y y = p(t) ln y + C 1 = (p(t) y(t) = e (p(t) C 1 = e (p(t) e C 1 = Ce (p(t) This is not a formula that we shoul memorize but rather remember how it was obtaine by separation of variables an o this for each problem. Also one shoul remember that the solution of our first orer linear homogeneous ODE was in the form of an exponential. Example Use separation of variables to solve the IVP y 2ty = 0 0 < t < 4 y(0) = 4 Separating variables yiels y y y = 2t y = 2t ln y + C 1 = t 2 + C 2 y(t) = Ce t2 4

Satisfying the initial conition y(0) = 4 gives y(0) = Ce 0 = C implies C = 4 so the solution is y(t) = 4e t2. Note that we really on t have to use two arbitrary constants here because they sum to another arbitrary constant. It woul be OK to say ln y = t 2 + C implies y(t) = Ce t2. Also note that once we have our solution, we can verify that it is correct by ifferentiating an emonstrating that it satisfies the given ODE y(t) = 4e t2, y (t) = 8te t2 y 2t = 8te t2 2(4e t2 ) = 0 Also y(0) = 4e 0 = 4 so the initial conition is satisfie. Example Use separation of variables to solve the IVP y sin t 2 y = 0 0 < t < 4 Separating variables yiels y y y = sin t2 y = sin t 2 ln y + C 1 = sin t 2 sin t y(t) = Ce 2 Note that although we have a formula for the solution it is in terms of an integral because we on t have an anti-erivative of sint 2. To use this formula we woul have to approximate the integral. All first orer linear homogeneous ODEs can be solve via this technique but we can t always get a close form solution as in the previous example because we can t always integrate p(t). Integrating factors for solving first orer linear inhomogeneous ODEs If the right han sie of our ODE is not zero, then separation of variables oes not work. For example, y (t) ty(t) = 4 y = (t + 4/y) y which is not separate. However, there is a technique calle an integrating factor that makes it possible to solve the general ODE given in (5) but as before the solution may involve integrals which we are unable to evaluate. The iea is that we want to fin a function which we can multiply the equation by so we can integrate it. The following example illustrates the technique. Example Consier the ODE y (t) + (sint)y(t) = 4 Multiply the equation by e cos t an integrate to fin y(t). We have e cos t [ y (t) + sin ty(t) ] = 4e cos t 5

We note that the left han sie of this equation can be written as because using the prouct rule gives [ ] e cos t y [ ye cos t] = y [ e cos t( sin t )] + y (t)e cos t. Thus we have [ ] e cos t y = 4e cos t [ ] e cos t y = 4e cos t which yiels e cos t y = 4 e cos t y(t) = 4e cos t e cos t It turns out that there is a general form of the integrating factor which will work for the ODE given in (5). We simply multiply the equation by Why oes this work? Because we have p(t) e y e p(t) + p(t)ye p(t) = g(t)e p(t) an [ ] [ ] [ p(t) ye = y p(t) (t)e p(t) p(t) + y(t) p(t)e = e y (t) + p(t)y(t)] so the equation becomes [ ] p(t) p(t) ye = g(t)e [ ] [ p(t) p(t) ye = g(t)e ] which implies [ p(t) ye p(t) = g(t)e ] [ y(t) = e p(t) p(t) g(t)e ]. Example Use an integrating factor to solve y (t) + 2ty(t) = 4t y(0) = 5 6

For this problem the integrating factor is e 2t = e t2 ; note that we in t have to inclue the arbitrary constant of integration. Why? We have e t2 y (t) + 2tye t2 = 4te t2 As a check we note that so our equation becomes [ ] e t2 y = e t2 y (t) + 2tye t2 [ ] e t2 y = 4te t2 Now the integral on the right han sie can be evaluate by substitution, i.e., letting u = t 2, u/ = 2t then we have 4 te t2 = 4 e u 1 2 u = 2eu + C = 2e t2 + C Thus we have e t2 y = 2e t2 + C y(t) = 2 + Ce t2 Satisfying the initial conition y(0) = 5 gives y(t) = 2 + Ce 0 = 2 + C = 5 implies C = 3. As a check you shoul verify that this solution satisfies the IVP. Note that integrating factors work when solving homogeneous equations too. For example if we return to the problem y 2ty = 0 we multiply through by e 2t = e t2 to get e t2 y 2te t2 y = 0 (e t2 y) = 0 e t2 y = C y = Ce t2 7