First and Second Order ODEs

Similar documents
MATHEMATICS FOR ENGINEERS & SCIENTISTS 23

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

17.2 Nonhomogeneous Linear Equations. 27 September 2007

McGill University Math 325A: Differential Equations LECTURE 12: SOLUTIONS FOR EQUATIONS WITH CONSTANTS COEFFICIENTS (II)

Advanced Eng. Mathematics

Lesson 3: Linear differential equations of the first order Solve each of the following differential equations by two methods.

Integration - Past Edexcel Exam Questions

Section 3.4. Second Order Nonhomogeneous. The corresponding homogeneous equation. is called the reduced equation of (N).

Review For the Final: Problem 1 Find the general solutions of the following DEs. a) x 2 y xy y 2 = 0 solution: = 0 : homogeneous equation.

MATH 425, FINAL EXAM SOLUTIONS

Section 3.4. Second Order Nonhomogeneous. The corresponding homogeneous equation

0.1 Problems to solve

3. Identify and find the general solution of each of the following first order differential equations.

Higher-order ordinary differential equations

A Brief Review of Elementary Ordinary Differential Equations

Section 3.4. Second Order Nonhomogeneous. The corresponding homogeneous equation. is called the reduced equation of (N).

2. Second-order Linear Ordinary Differential Equations

Multiplication of Polynomials

Chapter 2: First Order DE 2.6 Exact DE and Integrating Fa

Second-Order Homogeneous Linear Equations with Constant Coefficients

Ordinary Differential Equations (ODEs)

Chapter 3 Second Order Linear Equations

Ma 221 Final Exam Solutions 5/14/13

Math 10C - Fall Final Exam

Ordinary differential equations Notes for FYS3140

MATH 1231 MATHEMATICS 1B Calculus Section 2: - ODEs.

M343 Homework 3 Enrique Areyan May 17, 2013

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.

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

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

Math Exam 2, October 14, 2008

6 Second Order Linear Differential Equations

Ma 221. The material below was covered during the lecture given last Wed. (1/29/14). Homogeneous Linear Equations with Constant Coefficients

Math 2142 Homework 5 Part 1 Solutions

Ordinary Differential Equations

Chapter 6: Rational Expr., Eq., and Functions Lecture notes Math 1010

Review for Ma 221 Final Exam

MA22S3 Summary Sheet: Ordinary Differential Equations

Solutions to Dynamical Systems 2010 exam. Each question is worth 25 marks.

Monday, 6 th October 2008

Homogeneous Linear ODEs of Second Order Notes for Math 331

1MA6 Partial Differentiation and Multiple Integrals: I

Math 240 Calculus III

Lesson 6. Diana Pell. Monday, March 17. Section 4.1: Solve Linear Inequalities Using Properties of Inequality

F1.9MO2. F1.9MO2 Ordinary Differential Equations. Lecture notes Andrew Lacey

dx n a 1(x) dy

ENGI Second Order Linear ODEs Page Second Order Linear Ordinary Differential Equations

MATH20411 PDEs and Vector Calculus B

Chapter 3. Reading assignment: In this chapter we will cover Sections dx 1 + a 0(x)y(x) = g(x). (1)

Second Order ODEs. Second Order ODEs. In general second order ODEs contain terms involving y, dy But here only consider equations of the form

Ordinary Differential Equations

4 Differential Equations

MATH 307: Problem Set #3 Solutions

Homework #3 Solutions

First order Partial Differential equations

Lecture Notes on. Differential Equations. Emre Sermutlu

(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.

3. Identify and find the general solution of each of the following first order differential equations.

Final Exam Advanced Mathematics for Economics and Finance

Math 2a Prac Lectures on Differential Equations

Polytechnic Institute of NYU MA 2132 Final Practice Answers Fall 2012

and verify that it satisfies the differential equation:

Complex Variables. Chapter 2. Analytic Functions Section Harmonic Functions Proofs of Theorems. March 19, 2017

1. Solve the boundary-value problems or else show that no solutions exist. y (x) = c 1 e 2x + c 2 e 3x. (3)

Differential Equations Class Notes

Variational Methods & Optimal Control

ODE classification. February 7, Nasser M. Abbasi. compiled on Wednesday February 07, 2018 at 11:18 PM

MATH 2250 Final Exam Solutions

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

PH.D. PRELIMINARY EXAMINATION MATHEMATICS

Indefinite Integration

5.3. Polynomials and Polynomial Functions

Lecture two. January 17, 2019

MATH 307: Problem Set #7

Math 101 Study Session Spring 2016 Test 4 Chapter 10, Chapter 11 Chapter 12 Section 1, and Chapter 12 Section 2

18.01 Calculus Jason Starr Fall 2005

UNDETERMINED COEFFICIENTS SUPERPOSITION APPROACH *

Second Order ODEs. CSCC51H- Numerical Approx, Int and ODEs p.130/177

STABILITY. Phase portraits and local stability

Mathematics 104 Fall Term 2006 Solutions to Final Exam. sin(ln t) dt = e x sin(x) dx.

M412 Assignment 9 Solutions

Sample Solutions of Assignment 10 for MAT3270B

x 9 or x > 10 Name: Class: Date: 1 How many natural numbers are between 1.5 and 4.5 on the number line?

Note: Final Exam is at 10:45 on Tuesday, 5/3/11 (This is the Final Exam time reserved for our labs). From Practice Test I

Final Exam May 4, 2016

Diff. Eq. App.( ) Midterm 1 Solutions

Ordinary differential equations

Chapter Six. Polynomials. Properties of Exponents Algebraic Expressions Addition, Subtraction, and Multiplication Factoring Solving by Factoring

Basic Theory of Linear Differential Equations

Section 3.4. Second Order Nonhomogeneous. The corresponding homogeneous equation. is called the reduced equation of (N).

ENGI 9420 Lecture Notes 1 - ODEs Page 1.01

MATH 312 Section 4.3: Homogeneous Linear Equations with Constant Coefficients

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

ENGI 4430 PDEs - d Alembert Solutions Page 11.01

UNIVERSITY OF SURREY FACULTY OF ENGINEERING AND PHYSICAL SCIENCES DEPARTMENT OF PHYSICS. BSc and MPhys Undergraduate Programmes in Physics LEVEL HE2

z 2 = 1 4 (x 2) + 1 (y 6)

Homework #6 Solutions

A: Brief Review of Ordinary Differential Equations

Chapter 3 Higher Order Linear ODEs

24. x 2 y xy y sec(ln x); 1 e x y 1 cos(ln x), y 2 sin(ln x) 25. y y tan x 26. y 4y sec 2x 28.

Transcription:

Civil Engineering 2 Mathematics Autumn 211 M. Ottobre First and Second Order ODEs Warning: all the handouts that I will provide during the course are in no way exhaustive, they are just short recaps. Notation used in this handout: y(x), f(x), a 1 (x), a 2 (x), a(x), b(x) are scalar functions and x R. We will often write just y instead of y(x) and y is the derivative of y with respect to x. and Classification. Consider the following differential equations y + a(x)y = b(x) (1) y + a 1 (x)y + a 2 (x)y = f(x) (2) in the unknown y(x). Equation (1) is first order because the highest derivative that appears in it is a first order derivative. In the same way, equation (2) is second order as also y appears. They are both linear, because y, y and y are not squared or cubed etc and their product does not appear. In other words we do not have terms like (y ) 2, (y ) 5 or yy. If f(x) (b(x), respectively) is zero, then (2) ((1), respectively) is homogeneous, otherwise it is non homogeneous. If a 1 (x) and a 2 (x) are constant, then (2) has constant coefficients. Example.1. y + 5y = x is second order, linear, non homogeneous and with constant coefficients. is first order, linear, non homogeneous. y + x 2 y = e x yy + y = is non linear, second order, homogeneous. Important Remark: The general solution to a first order ODE has one constant, to be determined through an initial condition y(x ) = y e.g y() = 3. The general solution to a second order ODE contains two constants, to be determined through two initial conditions which can be for example of the form y(x ) = y, y (x ) = y, e.g. y(1) = 2, y (1) = 6. 1

We will in general focus on linear equations. The only non linear ones that we will stumble across are Separable Equations: ( ) dy dx = y dy = g(x)h(y) h(y) = g(x)dx (if h(y) is non linear then the equation is non linear). Now let s go back to the main object of our study. How do we solve equations of type (1)? You might be in a very simple case: y = b(x) y(x) = b(x) However, in general we will use the INTEGRATING FACTOR METHOD: Step 1: Calculate the indefinite integral A(x) = a(x)dx. Step 2: Multiply both sides of (1) by the integrating factor e A(x). Hence you get e A(x) (y + a(x)y) = e A(x) b(x). (3) Now notice that the LHS of (3) can be rewritten as (e A(x) y), in fact by the rule for the derivative of the product of functions and the chain rule we have (e A(x) y) = e A(x) a(x)y + e A(x) y. Step 3: Equation (3) can be rewritten as (e A(x) y) = e A(x) b(x). Integrate both sides e A(x) y = e A(x) b(x)dx + C and obtain y = e A(x) e A(x) b(x)dx + e A(x) C. (4) The above formula (4) is the general solution. C is a generic constant and it can be calculated by using the initial conditions. How do we solve equations of type (2)? Recap of available methods. Case 1: If the equation is homogeneous with constant coefficients, i.e. if it is of the form y + by + cy =, b, c R (5) then we write the associated auxiliary polynomial λ 2 + bλ + c =, Δ = b 2 4c. 2

If Δ > the polynomial has two distinct real roots, λ 1, λ 2 R and the solution to (5) is y(x) = Ae λ 1x + Be λ 2x, A, B R. If Δ = the polynomial has only one root, λ = b 2, and the solution to (5) is y(x) = Ae λx + Bxe λx A, B R. If Δ < (b 2 < 4c) the polynomial has two complex conjugate roots, λ 1, λ 2 C, namely λ 1 = b 2 + iω, λ 2 = b 2 iω, ω = 4c b 2 and the solution to (5) is y(x) = e b 2 x (A cos(ωx) + B sin(ωx)) A, B R. 4 Case 2: If the equation is homogeneous with NON constant coefficients, i.e. if it is of the form y + a 1 (x)y + a 2 (x)y =. (6) FACT: If y 1 (x) and y 2 (x) are two (distinct) solutions of (6) then the general solution of (6) is y(x) = Ay 1 (x) + By 2 (x), A, B R. So our aim is finding y 1 and y 2. Let s see what we can do. METHOD OF ORDER REDUCTION. This method is based on having a certain amount of luck. What do I mean? Well, if for some reason a solution y 1 rains on you, then this method allows you to find y 2 which is the general solution. But you are still left with the problem of finding y 1...However, assume we have a solution y 1 of (6). To find y 2 Step 1: Find u(x) solution to ( ) 2y u + 1 + a 1 u = (7) y 1 (using the integrating factor method, see (4)). Step 2: The general solution y 2 is y 2 (x) = y 1 (x) u(x)dx. This is it. But, why is that? We need to show that y 2 solves (6). y 2 = y 1 u + y 1 u, 3

y 2 = y 1 u + 2y 1u + y 1 u. Putting everything together = (y 1 + a 1 y 1 + a 2 y 1 ) }{{} y 2 + a 1 y 2 + a 2 y 2 u + y 1 u + (2y 1 + a 1 y 1 ) u }{{} = where the first addend vanishes because y 1 is a solution and the terms in the second brace vanish because u solves (7). Case 3: If the equation is NON homogeneous with NON constant coefficients, i.e. if it is of the form y + a 1 (x)y + a 2 (x)y = f(x). (8) FACT: Let y 1 (x) and y 2 (x) be two (distinct) solutions of the homogeneous equation associated to (8), that is (6). Let ȳ be a particular integral of (8), then the general solution of (8) is y(x) = Ay 1 (x) + By 2 (x) + ȳ(x), A, B R. (9) In other words, the general solution to (8) is y(x) = general solution of homog. eqn. + particular int. of (8). Because the method of order reduction worked so well before, let s see if we can employ it again. So, suppose you are given a solution y 1 of the homogenous equation (6). Let us again look for a solution of (8) in the form y = y 1 v and try and determine the equation that v has to satisfy in order for y to be a solution of (8). As before y = y 1 v + y 1 v, y = y 1 v + 2y 1v + y 1 v. Now y + a 1 y + a 2 y = f(x) y 1 v + (2y 1 + a 1 y 1 ) v = f(x) hence v has to solve the equation ( ) 2y v + 1 + a 1 v = f(x). y 1 y 1 4

v will then be of the form v(x) = g 1 (x) + Cg 2 (x) (see (4)) so that v is of the form v = G 1 (x) + CG 2 (x) + D. Hence y(x) is of the form (9) and it is therefore the general solution we were seeking. Conservative Case: When a 2 = a 1. In this case equation (8) reads which can be rewritten as y + a 1 y + a 1y = f(x), (y + a 1 y) = f(x) so that integrating both sides and naming F (x) = f(x) leads to y + a 1 (x)y = F (x). This equation is in the form (1) and we know how to solve it. Notice that the above works also in case f. Example.2. Solve First solution: separable variables y 1 dy y = x y = e x y, y() = 1. e x dx log(y) = e x + 1 y = e e ex. Second solution: Integrating factor method. The integrating factor is A(x) = e x dx = e x. Multiply both sides of the equation by e ex and obtain ( e y) ex = e e x y = C y = e ex C. Imposing y() = 1 gives C = e. Example.3. Given that y 1 = x is a solution of y find the general solution of y x(x + 2) x 2 y + x + 2 x 2 y =, x(x + 2) x 2 y + x + 2 x 2 y = x. Sketch of solution: let y = x v. In order for y to be a solution of the inhomogeneous equation, v has to solve v v = 1 (during the exam you need to show all the steps that lead to the equation for v). We solve the equation for v by the integrating factor method and we get v = 1 + Ce x v = x + Ce x + D y = x 2 + Cxe x + Dx, C, D R and y is the general solution we were seeking. 5