Ordinary Differential Equations

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

2.2 Separable Equations

Ordinary Differential Equations

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

Ordinary Differential Equations

Series Solution of Linear Ordinary Differential Equations

MATH 312 Section 2.4: Exact Differential Equations

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

Green Lab. MAXIMA & ODE2. Cheng Ren, Lin. Department of Marine Engineering National Kaohsiung Marine University

Elementary ODE Review

M343 Homework 3 Enrique Areyan May 17, 2013

First order differential equations

Power series solutions for 2nd order linear ODE s (not necessarily with constant coefficients) a n z n. n=0

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

Chapter 2. First-Order Differential Equations

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

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

Diff. Eq. App.( ) Midterm 1 Solutions

Math 2a Prac Lectures on Differential Equations

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]

2 Linear Differential Equations General Theory Linear Equations with Constant Coefficients Operator Methods...

Differential Equations Class Notes

First Order Differential Equations

4 Differential Equations

First Order Differential Equations

Power Series and Analytic Function

Power Series Solutions to the Legendre Equation

JUST THE MATHS UNIT NUMBER ORDINARY DIFFERENTIAL EQUATIONS 3 (First order equations (C)) A.J.Hobson

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

More Techniques. for Solving First Order ODE'S. and. a Classification Scheme for Techniques

Ordinary Differential Equations

mathcentre community project

Math 201 Solutions to Assignment 1. 2ydy = x 2 dx. y = C 1 3 x3

Department of Mathematics. MA 108 Ordinary Differential Equations

LECTURE NOTES OF DIFFERENTIAL EQUATIONS Nai-Sher Yeh

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

First Order ODEs, Part I

Lecture Notes 1. First Order ODE s. 1. First Order Linear equations A first order homogeneous linear ordinary differential equation (ODE) has the form

DIFFERENTIAL EQUATIONS

Math Applied Differential Equations

Introductory Differential Equations

Review session Midterm 1

Essential Ordinary Differential Equations

Lecture Notes on. Differential Equations. Emre Sermutlu

Problem 1 (Equations with the dependent variable missing) By means of the substitutions. v = dy dt, dv

Lecture 5 - Fundamental Theorem for Line Integrals and Green s Theorem

Series Solutions of Differential Equations

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

S. Ghorai 1. Lecture IV Linear equations, Bernoulli equations, Orthogonal trajectories, Oblique trajectories. (p(x)y r(x))dx + dy = 0.

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

First Order Differential Equations Chapter 1

A Concise Introduction to Ordinary Differential Equations. David Protas

Mathematical Methods - Lecture 7

Math Applied Differential Equations

6 Second Order Linear Differential Equations

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

Solving First Order ODEs. Table of contents

Solutions of Math 53 Midterm Exam I

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

First and Second Order ODEs

MATH 307: Problem Set #3 Solutions

A Brief Review of Elementary Ordinary Differential Equations

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

Problem Max. Possible Points Total

Ordinary Differential Equations

MA Ordinary Differential Equations

Series Solutions Near a Regular Singular Point

Power Series Solutions to the Legendre Equation

Lecture Notes on Partial Dierential Equations (PDE)/ MaSc 221+MaSc 225

TAM3B DIFFERENTIAL EQUATIONS Unit : I to V

Math 4381 / 6378 Symmetry Analysis

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

ORDINARY DIFFERENTIAL EQUATIONS

worked out from first principles by parameterizing the path, etc. If however C is a A path C is a simple closed path if and only if the starting point

First Order Differential Equations f ( x,

Ordinary differential equations Notes for FYS3140

Math 266, Midterm Exam 1

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.

Special Mathematics Tutorial 1

Chapter1. Ordinary Differential Equations

Solutions to old Exam 3 problems

Lecture Notes in Mathematics. A First Course in Quasi-Linear Partial Differential Equations for Physical Sciences and Engineering Solution Manual

Linear DifferentiaL Equation

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

4r 2 12r + 9 = 0. r = 24 ± y = e 3x. y = xe 3x. r 2 6r + 25 = 0. y(0) = c 1 = 3 y (0) = 3c 1 + 4c 2 = c 2 = 1

DIFFERENTIAL EQUATIONS

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

Ordinary Differential Equations

Title: Solving Ordinary Differential Equations (ODE s)

Handbook of Ordinary Differential Equations

Lecture 7: Differential Equations

and verify that it satisfies the differential equation:

The Method of Frobenius

1 Solution to Problem 2.1

4 Exact Equations. F x + F. dy dx = 0

Department of Mathematics, K.T.H.M. College, Nashik F.Y.B.Sc. Calculus Practical (Academic Year )

1MA6 Partial Differentiation and Multiple Integrals: I

Ordinary Differential Equations Lake Ritter, Kennesaw State University

Ordinary Differential Equations (ODEs)

1 Series Solutions Near Regular Singular Points

Transcription:

Ordinary Differential Equations (MA102 Mathematics II) Shyamashree Upadhyay IIT Guwahati Shyamashree Upadhyay ( IIT Guwahati ) Ordinary Differential Equations 1 / 25

First order ODE s We will now discuss different methods of solutions of first order ODEs. The first type of such ODEs that we will consider is the following: Definition Separable variables: A first order differential equation of the form dy dx = g(x)h(y) is called separable or to have separable variables. Such ODEs can be solved by direct integration: Write dy dy = g(x)h(y) as = g(x)dx and then integrate both sides! dx h(y) Example e x dy = dx e y + e 2x y This equation can be rewritten as dy = dx e x e y + e 3x y, which is the same as dy = dx e y (e x + e 3x ). This equation is now in separable variable form. Shyamashree Upadhyay ( IIT Guwahati ) Ordinary Differential Equations 2 / 25

Losing a solution while separating variables Some care should be exercised in separating the variables, since the variable divisors could be zero at certain points. Specifically, if r is a zero of the function h(y), then substituting y = r in the ODE dy = g(x)h(y) makes both sides of the equation zero; in other dx words, y = r is a constant solution of the ODE dy = g(x)h(y). But after variables are dx separated, the left hand side of the equation dy = g(x)dx becomes undefined at r. As a h(y) consequence, y = r might not show up in the family of solutions that is obtained after integrating the equation dy = h(y) g(x)dx. Recall that such solutions are called Singular solutions of the given ODE. Example Observe that the constant solution y 0 is lost while solving the IVP dy = xy; y(0) = 0 by dx separable variables method. Shyamashree Upadhyay ( IIT Guwahati ) Ordinary Differential Equations 3 / 25

First order linear ODEs Recall that a first order linear ODE has the form a 1 (x) dy dx + a 0(x)y = g(x). (1) Definition A first order linear ODE (of the above form (1)) is called homogeneous if g(x) = 0 and non-homogeneous otherwise. Definition By dividing both sides of equation (1) by the leading coefficient a 1 (x), we obtain a more useful form of the above first order linear ODE, called the standard form, given by dy + P(x)y = f (x). dx Equation (2) is called the standard form of a first order linear ODE. (2) Shyamashree Upadhyay ( IIT Guwahati ) Ordinary Differential Equations 4 / 25

Theorem Theorem Existence and Uniqueness: Suppose a 1 (x), a 0 (x), g(x) C((a, b)) and a 1 (x) 0 on (a, b) and x 0 (a, b). Then for any y 0 R, there exists a unique solution y(x) C 1 ((a, b)) to the IVP a 1 (x) dy dx + a 0(x)y = g(x); y(x 0 ) = y 0. Shyamashree Upadhyay ( IIT Guwahati ) Ordinary Differential Equations 5 / 25

Solving a first order linear ODE Steps for solving a first order linear ODE: (1) Transform the given first order linear ODE into a first order linear ODE in standard form + P(x)y = f (x). dy dx (2) Multiply both sides of the equation (in the standard form) by e P(x)dx. Then the resulting equation becomes d dx [ye P(x)dx ] = f (x)e P(x)dx (3). (3) Integrate both sides of equation (3) to get the solution. Example Solve x dy 4y = dx x6 e x. The standrad form of this ODE is dy + ( 4 )y = dx x x5 e x. Then multiply both sides of this equation by e 4 dx x and integrate. Shyamashree Upadhyay ( IIT Guwahati ) Ordinary Differential Equations 6 / 25

Differential of a function of 2 variables Definition Differential of a function of 2 variables: If f (x, y) is a function of two variables with continuous first partial derivatives in a region R of the xy-plane, then its differential d f is d f = f x dx + f y dy. In the special case when f (x, y) = c, where c is a constant, we have f x = 0 and f y = 0. Therefore, we have d f = 0, or in other words, f x dx + f dy = 0. y So given a one-parameter family of functions f (x, y) = c, we can generate a first order ODE by computing the differential on both sides of the equation f (x, y) = c. Shyamashree Upadhyay ( IIT Guwahati ) Ordinary Differential Equations 7 / 25

Exact differential equation Definition A differential expression M(x, y)dx + N(x, y)dy is an exact differential in a region R of the xy-plane if it corresponds to the differential of some function f (x, y) defined on R. A first order differential equation of the form M(x, y)dx + N(x, y)dy = 0 is called an exact equation if the expression on the left hand side is an exact differential. Example: 1) x 2 y 3 dx + x 3 y 2 dy = 0 is an exact equation since x 2 y 3 dx + x 3 y 2 dy = d( x3 y 3 3 ). 2) ydx + xdy = 0 is an exact equation since ydx + xdy = d(xy). 3) ydx xdy y 2 = 0 is an exact equation since ydx xdy y 2 = d( x y ). Shyamashree Upadhyay ( IIT Guwahati ) Ordinary Differential Equations 8 / 25

Criterion for an exact differential Theorem Let M(x, y) and N(x, y) be continuous and have continuous first partial derivatives in a rectangular region R defined by a < x < b, c < y < d. Then a necessary and sufficient condition for M(x, y)dx + N(x, y)dy to be an exact differential is M = N y x. Example Solve the ODE (3x 2 + 4xy)dx + (2x 2 + 2y)dy = 0. This equation can be expressed as M(x, y)dx + N(x, y)dy = 0 where M(x, y) = 3x 2 + 4xy and N(x, y) = 2x 2 + 2y. It is easy to verify that M = N = 4x. Hence the given ODE is exact. y x We have to find a function f such that f = M = x 3x2 + 4xy and f = N = y 2x2 + 2y. Now f = x 3x2 + 4xy f (x, y) = (3x 2 + 4xy)dx = x 3 + 2x 2 y + φ(y) for some function φ(y) of y. Again f = y 2x2 + 2y and f (x, y) = x 3 + 2x 2 y + φ(y) together imply that 2x 2 + φ (y) = 2x 2 + 2y φ(y) = y 2 + c 1 for some constant c 1. Hence the solution is f (x, y) = c or x 3 + 2x 2 y + y 2 + c 1 = c. Shyamashree Upadhyay ( IIT Guwahati ) Ordinary Differential Equations 9 / 25

Converting a first order non-exact DE to exact DE Consider the following example: Example The first order DE ydx xdy = 0 is clearly not exact. But observe that if we multiply both sides of this DE by 1, the resulting ODE becomes dx x dy = 0 which is exact! y 2 y y 2 Definition It is sometimes possible that even though the original first order DE M(x, y)dx + N(x, y)dy = 0 is not exact, but we can multiply both sides of this DE by some function (say, µ(x, y)) so that the resulting DE µ(x, y)m(x, y)dx + µ(x, y)n(x, y)dy = 0 becomes exact. Such a function/factor µ(x, y)is known as an integrating factor for the original DE M(x, y)dx + N(x, y)dy = 0. Remark: It is possible that we LOSE or GAIN solutions while multiplying a ODE by an integrating factor. Shyamashree Upadhyay ( IIT Guwahati ) Ordinary Differential Equations 10 / 25

How to find an integrating factor? We will now list down some rules for finding integrating factors, but before that, we need the following definition: Definition A function f (x, y) is said to be homogeneous of degree n if f (tx, ty) = t n f (x, y) for all (x, y) and for all t R. Example 1) f (x, y) = x 2 + y 2 is homogeneous of degree 2. 2) f (x, y) = tan 1 ( y ) is homogeneous of degree 0. x 3) f (x, y) = x(x2 +y 2 ) is homogeneous of degree 1. y 2 4) f (x, y) = x 2 + xy + 1 is NOT homogeneous. Shyamashree Upadhyay ( IIT Guwahati ) Ordinary Differential Equations 11 / 25

How to find an integrating factor? contd... Definition A first order DE of the form M(x, y)dx + N(x, y)dy = 0 is said to be homogeneous if both M(x, y) and N(x, y) are homogeneous functions of the same degree. NOTE: Here the word homogeneousâ does not mean the same as it did for first order linear equation a 1 (x)y + a 0 (x)y = g(x) when g(x) = 0. Some rules for finding an integrating factor: Consider the DE M(x, y)dx + N(x, y)dy = 0. ( ) Rule 1: If ( ) is a homogeneous DE with M(x, y)x + N(x, y)y 0, then integrating factor for ( ). 1 is an Mx+Ny Shyamashree Upadhyay ( IIT Guwahati ) Ordinary Differential Equations 12 / 25

How to find an integrating factor? contd... Rule 2: If M(x, y) = f 1 (xy)y and N(x, y) = f 2 (xy)x and Mx Ny 0, where f 1 and f 2 are functions of the product xy, then is an integrating factor for ( ). Rule 3: If Rule 4: If M y N x N M y N x M 1 Mx Ny = f (x) (function of x-alone), then e f (x)dx is an integrating factor for ( ). = F(y) (function of y-alone), then e F(y)dy is an integrating factor for ( ). Shyamashree Upadhyay ( IIT Guwahati ) Ordinary Differential Equations 13 / 25

Proof of Rule 3 Proof. Let f (x) = M y N x. To show: µ(x) := e f (x)dx is an integrating factor. That is, to show N (µm) = y x (µn). Since µ is a function of x alone, we have M (µm) = µ y y. Also (µn) = x µ (x)n + µ(x) N x. So we must have: µ(x)[ M N ] = y x µ (x)n, or equivalently we must have, = f (x), µ (x) µ(x) which is anyways true since µ(x) := e f (x)dx. The proof of Rule 4 is similar. The proof of Rule 2 is an exercise. Shyamashree Upadhyay ( IIT Guwahati ) Ordinary Differential Equations 14 / 25

Another rule for finding an I.F. Shyamashree Upadhyay ( IIT Guwahati ) Ordinary Differential Equations 15 / 25

Solution by substitution Often the first step of solving a differential equation consists of transforming it into another differential equation by means of a substitution. For example, suppose we wish to transform the first order differential equation dy = f (x, y) dx by the substitution y = g(x, u), where u is regarded as a function of the variable x. If g possesses first partial derivatives, then the chain rule dy dx = g dx x dx + g du u dx gives dy = g dx x(x, u) + g u (x, u) du dy. The original differential equation = f (x, y) now becomes dx dx g x (x, u) + g u (x, u) du du = f (x, g(x, u)). This equation is of the form = F(x, u), for some dx dx function F. If we can determine a solution u = φ(x) of this last equation, then a solution of the original differential equation will be y = g(x, φ(x)). Shyamashree Upadhyay ( IIT Guwahati ) Ordinary Differential Equations 16 / 25

Use of substitution : Homogeneous equations Recall: A first order differential equation of the form M(x, y)dx + N(x, y)dy = 0 is said to be homogeneous if both M and N are homogeneous functions of the same degree. Such equations can be solved by the substitution : y = vx. Example Solve x 2 ydx + (x 3 + y 3 )dy = 0. Solution: The given differential equation can be rewritten as dy = x2 y. dx x 3 +y 3 Let y = vx, then dy = v + x dv dv. Putting this in the above equation, we get v + x dx dx in other words, ( 1+v3 )dv = dx, which is now in separable variables form. v 4 x dx = v 1+v 3. Or Shyamashree Upadhyay ( IIT Guwahati ) Ordinary Differential Equations 17 / 25

DE reducible to homogeneous DE For solving differential equation of the form use the substitution x = X + h and y = Y + k, if a a z = ax + by, if a a = b b. dy dx = ax + by + c a x + b y + c b b, where h and k are constants to be determined. Example Solve dy dx = x+y 4 3x+3y 5. Observe that this DE is of the form dy dx = ax+by+c a x+b y+c where a = b a b. = 1 + dy dx dx Use the substitution z = x + y. Then we have dz. Putting these in the given DE, we get dz 1 = z 4 3z 5, or in other words, dz = dx. This equation is now in separable dx 3z 5 4z 9 variables form. Shyamashree Upadhyay ( IIT Guwahati ) Ordinary Differential Equations 18 / 25

DE reducible to homogeneous DE, contd... Example Solve dy = x+y 4 dx x y 6. Observe that this DE is of the form dy dx = ax+by+c a x+b y+c where 1 = a a b b = 1. Put x = X + h and y = Y + k, where h and k are constants to be determined. Then we have dx = dx, dy = dy and dy X + Y + (h + k 4) = dx X Y + (h k 6). If h and k are such that h + k 4 = 0 and h k 6 = 0, then ( ) becomes dy dx = X + Y X Y which is a homogeneous DE. We can easily solve the system h + k = 4 h k = 6 of linear equations to detremine the constants h and k! ( ) Shyamashree Upadhyay ( IIT Guwahati ) Ordinary Differential Equations 19 / 25

Reduction to separable variables form A differential equation of the form dy = f (Ax + By + C), dx where A, B, C are real constants with B 0 can always be reduced to a differential equation with separable variables by means of the substitution u = Ax + By + C. Observe that since B 0, we get u B = A B x + y + C B, or in other words, y = u B A B x C B. This implies that dy = 1 ( du ) A dx B dx B. Hence we have 1 ( du ) A B dx B other words, we have du A+B f (u) du = f (u), that is, = A + B f (u). Or in dx = dx, which is now in separable variables form. Shyamashree Upadhyay ( IIT Guwahati ) Ordinary Differential Equations 20 / 25

Equations reducible to linear DE: Bernoulli s DE Definition A differential equation of the form dy dx + P(x)y = Q(x)yn (1) where n is any real number, is called Bernoulli s differential equation. Note that when n = 0 or 1, Bernoulli s DE is a linear DE. Method of solution: Multiply by y n throughout the DE (1) to get 1 dy y n dx + P(x)y1 n = Q(x). (2) Use the substitution z = y 1 n. Then dz = (1 n) 1 dy dx y n. Substituting in equation (2), we get dx 1 dz + P(x)z = Q(x), which is a linear DE. 1 n dx Shyamashree Upadhyay ( IIT Guwahati ) Ordinary Differential Equations 21 / 25

Example of Bernoulli s DE Example Solve the Bernoullis DE dy dx + y = xy3. Multiplying the above equation throughout by y 3, we get 1 dy y 3 dx + 1 y = x. 2 Putting z = 1, we get dz 2z = 2x, which is a linear DE. y 2 dx The integrating factor for this linear DE will be = e 2dx = e 2x. Therefore, the solution is z = e 2x [ 2 xe 2x dx + c] = x + 1 + 2 ce2x. Putting back z = 1 in this, we get the final solution y 2 1 y 2 = x + 1 2 + ce2x. Shyamashree Upadhyay ( IIT Guwahati ) Ordinary Differential Equations 22 / 25

Ricatti s DE The differential equation dy = P(x) + Q(x)y + R(x)y2 dx is known as Ricatti s differential equation. A Ricatti s equation can be solved by method of substitution, provided we know a paticular solution y 1 of the equation. Putting y = y 1 + u in the Ricatti s DE, we get dy 1 dx + du dx = P(x) + Q(x)[y 1 + u] + R(x)[y 2 1 + u2 + 2uy 1 ]. But we know that y 1 is a particular solution of the given Ricatti s DE. So we have = P(x) + Q(x)y 1 + R(x)y 2 1. Therefore the above equation reduces to dy 1 dx du dx = Q(x)u + R(x)(u2 + 2uy 1 ) or, du dx [Q(x) + 2y 1(x)R(x)]u = R(x)u 2, which is Bernoulli s DE. Shyamashree Upadhyay ( IIT Guwahati ) Ordinary Differential Equations 23 / 25

Orthogonal Trajectories Shyamashree Upadhyay ( IIT Guwahati ) Ordinary Differential Equations 24 / 25