Lecture 17: Ordinary Differential Equation II. First Order (continued)

Similar documents
Lecture 14: Ordinary Differential Equation I. First Order

MA22S3 Summary Sheet: Ordinary Differential Equations

Systems of Ordinary Differential Equations

2 Series Solutions near a Regular Singular Point

LECTURE 14: REGULAR SINGULAR POINTS, EULER EQUATIONS

Solution: (a) Before opening the parachute, the differential equation is given by: dv dt. = v. v(0) = 0

Applied Math for Engineers

Nov : Lecture 20: Linear Homogeneous and Heterogeneous ODEs

Introduction to First Order Equations Sections

Power Series and Analytic Function

2. Second-order Linear Ordinary Differential Equations

LECTURE 9: SERIES SOLUTIONS NEAR AN ORDINARY POINT I

Ordinary Differential Equations II

MTH 452/552 Homework 3

Ordinary Differential Equations II

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

Series Solutions Near a Regular Singular Point

APPLICATIONS OF FD APPROXIMATIONS FOR SOLVING ORDINARY DIFFERENTIAL EQUATIONS

17.8 Nonhomogeneous Linear Equations We now consider the problem of solving the nonhomogeneous second-order differential

Solution: (a) Before opening the parachute, the differential equation is given by: dv dt. = v. v(0) = 0

Lecture 4: Frobenius Series about Regular Singular Points

Physics 584 Computational Methods

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

Ordinary Differential Equations

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

Lesson 14: Van der Pol Circuit and ode23s

NUMERICAL SOLUTION OF ODE IVPs. Overview

Consistency and Convergence

Numerical Methods for the Solution of Differential Equations

Modeling Basics: 4. Numerical ODE Solving In Excel 5. Solving ODEs in Mathematica

San Jose State University Department of Electrical Engineering. Exam 2 Solution. EE 098-MIT 6.002x Fall 2012

Chapter 9b: Numerical Methods for Calculus and Differential Equations. Initial-Value Problems Euler Method Time-Step Independence MATLAB ODE Solvers

Numerical Methods - Boundary Value Problems for ODEs

Ordinary Differential Equations

Lecture 15: Ordinary Differential Equations: Second Order

AM205: Assignment 3 (due 5 PM, October 20)

Series Solutions of Differential Equations

Cyber-Physical Systems Modeling and Simulation of Continuous Systems

2.2 Separable Equations

Worksheet 8 Sample Solutions

ENGI 9420 Lecture Notes 1 - ODEs Page 1.01

Four Point Gauss Quadrature Runge Kuta Method Of Order 8 For Ordinary Differential Equations

ENGI 3424 First Order ODEs Page 1-01

Solving Differential Equations Using Power Series

Solving Differential Equations Using Power Series

Mathematical Methods - Lecture 7

Boyce/DiPrima/Meade 11 th ed, Ch 1.1: Basic Mathematical Models; Direction Fields

551614:Advanced Mathematics for Mechatronics. Numerical solution for ODEs School of Mechanical Engineering

Initial Value Problems

Numerical Solution of Differential Equations

An Overly Simplified and Brief Review of Differential Equation Solution Methods. 1. Some Common Exact Solution Methods for Differential Equations

CS 450 Numerical Analysis. Chapter 9: Initial Value Problems for Ordinary Differential Equations

ODE Runge-Kutta methods

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

Lecture Notes to Accompany. Scientific Computing An Introductory Survey. by Michael T. Heath. Chapter 9

Opleiding Wiskunde & Informatica

Mathematical Models with Maple

Fourth Order RK-Method

PUTNAM PROBLEMS DIFFERENTIAL EQUATIONS. First Order Equations. p(x)dx)) = q(x) exp(

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

Module 6 : Solving Ordinary Differential Equations - Initial Value Problems (ODE-IVPs) Section 1 : Introduction

Lecture IV: Time Discretization

A Mathematica Companion for Differential Equations

Section 5.2 Series Solution Near Ordinary Point

Lecture 13: Series Solutions near Singular Points

Electrical Circuits (2)

Scientific Computing: An Introductory Survey

Solving systems of ODEs with Matlab

CHAPTER 1 INTRODUCTION TO NUMERICAL METHOD

ECE 422/522 Power System Operations & Planning/Power Systems Analysis II : 7 - Transient Stability

CSI30. Chapter 1. The Foundations: Logic and Proofs Nested Quantifiers

Integration of Ordinary Differential Equations

The Method of Frobenius

(Refer Slide Time: 00:32)

Lecture 8: Calculus and Differential Equations

Lecture 8: Calculus and Differential Equations

Study Guide Block 2: Ordinary Differential Equations. Unit 4: Linear Differential Equations. Overview

ODE Homework Solutions of Linear Homogeneous Equations; the Wronskian

Finite Difference Methods for Boundary Value Problems

NUMERICAL ANALYSIS PROJECT PART I: ORDINARY DIFFERENTIAL EQUATIONS

5. Series Solutions of ODEs

Maple in Differential Equations

Diff. Eq. App.( ) Midterm 1 Solutions

Ordinary differential equations. Phys 420/580 Lecture 8

MA/CS 615 Spring 2019 Homework #2

A Brief Review of Elementary Ordinary Differential Equations

Basic Theory of Differential Equations

Ordinary Differential Equations (ODEs)

Initial-Value Problems for ODEs. Introduction to Linear Multistep Methods

cha1873x_p02.qxd 3/21/05 1:01 PM Page 104 PART TWO

Chapter1. Ordinary Differential Equations

Elementary ODE Review

DIFFERENTIAL EQUATIONS

ENGI9496 Lecture Notes State-Space Equation Generation

SOLUTIONS ABOUT ORDINARY POINTS

Index. Index. More information. in this web service Cambridge University Press

CHAPTER 1. Theory of Second Order. Linear ODE s

Introduction to the Numerical Solution of IVP for ODE

A First Course on Kinetics and Reaction Engineering Supplemental Unit S5. Solving Initial Value Differential Equations

Review Higher Order methods Multistep methods Summary HIGHER ORDER METHODS. P.V. Johnson. School of Mathematics. Semester

Transcription:

Lecture 17: Ordinary Differential Equation II. First Order (continued) 1. Key points Maple commands dsolve dsolve[interactive] dsolve(numeric) 2. Linear first order ODE: y' = q(x) - p(x) y In general, a linear first order ODE can be expressed as (1) which can be analytically solved. Introducing a new function u(x), (2) The original ODE leads to (3) Hence, we have We learned how to solve this kind of ODE in the previous lecture. The general solution is given by (4)

(5) where C is a constant of integral. The solution for the original ODE is given by (6) Example A particle of mass m in a fluid is subject to an external forcing. The drag force on the particle is. The particle is initially at rest. Then, the equation of motion is This is a linear first order ODE with and. Its general solution is. Completing the integral, we obtain (7) The initial condition v(0)=0 indicates C=0. Check the answer with Maple command dsolve([m v+b v = a t),v(0)=0]) (8) which agrees with (7). Homogeneous vs. Inhomogeneous ODE If, we have a homogeneous ODE:. A general solution to an

inhomogeneous equation consists of two parts: complementary function and particular solution. A complementary function is a general solution to the corresponding homogeneous equation: (9) A particular solution is (10) Then, the general solution of the inhomogeneous equation is. Note that a constant of integration C appears only in the complementary function. General solutions to higher order linear ODEs have the same structure. 3. Exact differential: y'=-p(x,y) /q(x,y) If the first ODE has a general form (11) with the additional condition, (12) the differential equation (11) is said to be exact and we can solve it. We write (11) in the exact form (13) With the condition (13), there exists a function F(x,y) such that

(14) (15) Then, the exact differential of leads to (16) Hence, th solution is F(x,y)= C where C is a constant of integration. Now, the problem is to find F(x,y). Integrating the equation in (14) (17) where a(y) is an unknown function. To determine a(y), substituting (17) in the equation (15), (18) We used (12) during the calculation. Equation (18) indicates (19) Hence, the solution is

(20) At the boundary and, and thus. Now, the solution of ODE is given in a implicit form (21) Example Solve (22) or equivalently This equation is not exact. However, if divided by (23) it becomes exact. (a factor that makes the equation exact is called an integrating factor). (24) Comparing (13) with (24), we have and. Equation (20) leads to a solution

(25) which is simplified to (26) Hence, the general solution is. Using Maple, (27) 4. Numerical solutions Many ODEs cannot be solved analytically. Then, we resort to numerical methods. Here only a simple numerical algorithm is introduced. Maple and other mathematical packages use more advanced algorithms and thus their results are more accurate. Euler method: Consider an ODE Suppose that we know the value of at a point, that is we know. We want to know the value at next point, that is. Using Taylor expansion,. If is small, we can ignore and higher orders. Using the ODE, we can replace with. Hence, (28) (29) Using this step successively, we can reach after steps. The accuracy depends on how small is. In principle, the smaller is, the more accurate id the result. However, we need a large number of steps. In addition, if is too small, bit-off error and round-off error become significant. The Euler method is simple but practically not accurate enough for many applications. Runge-Kutta methods are more accurate and yet computationally still simple. There are many other accurate methods. In Maple, specify numeric option in dsolve command.

Example 1 Solve numerically. (This ODE can be solve analytically.) Using Maple interactive ODE solver. (30) (31) (32) (33)

Example 2 Consider a simple LR circuit. The current in the circuit follows the following ODE: where is voltage. The voltage varies as. Solve it both analytically and numerically. Using the parameter value,,, and compare numerical solution with the analytically one (34)

(35) (36) (37) (38) Homework: Due 11/6, 11am 17.1 Consider a simple circuit with resistance and inductance L. The voltage V(t)

and current J(t) are related through the ODE: (39) Assuming and, find. Solve it also numerically with parameter values,,, and. 17.2 Bernoulli's equation,. is a nonlinear ODE except when n=0 or n=1. However, it is possible to convert the equation to a linear one. Introducing a new function,, show that the equation for u is a linear ODE. 17.3 Find analytical and numerical solutions of the following ODE and compare them for an initial condition..