JUST THE MATHS UNIT NUMBER NUMERICAL MATHEMATICS 6 (Numerical solution) of (ordinary differential equations (A)) A.J.Hobson

Similar documents
JUST THE MATHS UNIT NUMBER ORDINARY DIFFERENTIAL EQUATIONS 1 (First order equations (A)) A.J.Hobson

JUST THE MATHS UNIT NUMBER INTEGRATION APPLICATIONS 10 (Second moments of an arc) A.J.Hobson

Completion Date: Monday February 11, 2008

JUST THE MATHS UNIT NUMBER 5.3. GEOMETRY 3 (Straight line laws) A.J.Hobson

JUST THE MATHS UNIT NUMBER INTEGRATION APPLICATIONS 13 (Second moments of a volume (A)) A.J.Hobson

JUST THE MATHS UNIT NUMBER DIFFERENTIATION 3 (Elementary techniques of differentiation) A.J.Hobson

JUST THE MATHS UNIT NUMBER 1.4. ALGEBRA 4 (Logarithms) A.J.Hobson

JUST THE MATHS UNIT NUMBER INTEGRATION 1 (Elementary indefinite integrals) A.J.Hobson

JUST THE MATHS UNIT NUMBER DIFFERENTIATION APPLICATIONS 5 (Maclaurin s and Taylor s series) A.J.Hobson

The University of Sydney Math1003 Integral Calculus and Modelling. Semester 2 Exercises and Solutions for Week

Math 308 Week 8 Solutions

JUST THE MATHS UNIT NUMBER 6.1. COMPLEX NUMBERS 1 (Definitions and algebra) A.J.Hobson

JUST THE MATHS UNIT NUMBER PARTIAL DIFFERENTIATION 1 (Partial derivatives of the first order) A.J.Hobson

Tangent Planes, Linear Approximations and Differentiability

Exploring Substitution

JUST THE MATHS UNIT NUMBER DIFFERENTIATION 4 (Products and quotients) & (Logarithmic differentiation) A.J.Hobson

Arkansas Tech University MATH 2924: Calculus II Dr. Marcel B. Finan. Solutions to Assignment 7.6. sin. sin

JUST THE MATHS UNIT NUMBER 1.6. ALGEBRA 6 (Formulae and algebraic equations) A.J.Hobson

Math 115 ( ) Yum-Tong Siu 1. General Variation Formula and Weierstrass-Erdmann Corner Condition. J = x 1. F (x,y,y )dx.

APPM 1350 Final Exam Fall 2017

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

Experimental Uncertainty (Error) and Data Analysis

Math 211 Business Calculus TEST 3. Question 1. Section 2.2. Second Derivative Test.

Power Series and Analytic Function

Regression and Nonlinear Axes

Section 5.5 More Integration Formula (The Substitution Method) 2 Lectures. Dr. Abdulla Eid. College of Science. MATHS 101: Calculus I

c n (x a) n c 0 c 1 (x a) c 2 (x a) 2...

Absolute Convergence and the Ratio Test

Math 104: l Hospital s rule, Differential Equations and Integration

Prelim 1 Solutions V2 Math 1120

MAS113 CALCULUS II SPRING 2008, QUIZ 4 SOLUTIONS

Math RE - Calculus II Antiderivatives and the Indefinite Integral Page 1 of 5

Module 2: Reflecting on One s Problems

DIFFERENTIAL EQUATIONS

DIFFERENTIAL EQUATIONS

SOLUTIONS TO EXAM II, MATH f(x)dx where a table of values for the function f(x) is given below.

Differential Equations DIRECT INTEGRATION. Graham S McDonald

MATH 1014 Tutorial Notes 8

DIFFERENTIAL EQUATIONS

Math 126 Enhanced 10.3 Series with positive terms The University of Kansas 1 / 12

MAC 2311 Calculus I Spring 2004

MATH 1207 R02 MIDTERM EXAM 2 SOLUTION

STAT 450: Statistical Theory. Distribution Theory. Reading in Casella and Berger: Ch 2 Sec 1, Ch 4 Sec 1, Ch 4 Sec 6.

DIFFERENTIAL EQUATIONS

Systems of Linear ODEs

Section 3.3: Laws of Logarithms

This practice exam is intended to help you prepare for the final exam for MTH 142 Calculus II.

2015 Math Camp Calculus Exam Solution

Separable Differential Equations

14.4. Lengths of Curves and Surfaces of Revolution. Introduction. Prerequisites. Learning Outcomes

JUST THE MATHS UNIT NUMBER INTEGRATION APPLICATIONS 6 (First moments of an arc) A.J.Hobson

SECTION A. f(x) = ln(x). Sketch the graph of y = f(x), indicating the coordinates of any points where the graph crosses the axes.

Math Refresher Course

MATH1013 Calculus I. Edmund Y. M. Chiang. Department of Mathematics Hong Kong University of Science & Technology.

EDEXCEL NATIONAL CERTIFICATE UNIT 4 MATHEMATICS FOR TECHNICIANS OUTCOME 4 TUTORIAL 1 - INTEGRATION

NO CALCULATOR 1. Find the interval or intervals on which the function whose graph is shown is increasing:

ECONOMICS 207 SPRING 2006 LABORATORY EXERCISE 5 KEY. 8 = 10(5x 2) = 9(3x + 8), x 50x 20 = 27x x = 92 x = 4. 8x 2 22x + 15 = 0 (2x 3)(4x 5) = 0

Dr. Abdulla Eid. Section 3.8 Derivative of the inverse function and logarithms 3 Lecture. Dr. Abdulla Eid. MATHS 101: Calculus I. College of Science

Calculus II/III Summer Packet

DIFFERENTIAL EQUATIONS

JUST THE MATHS UNIT NUMBER ORDINARY DIFFERENTIAL EQUATIONS 4 (Second order equations (A)) A.J.Hobson

Math 113 (Calculus 2) Exam 4

Math 116 Final Exam April 21, 2016

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

Function Practice. 1. (a) attempt to form composite (M1) (c) METHOD 1 valid approach. e.g. g 1 (5), 2, f (5) f (2) = 3 A1 N2 2

Math 31A Differential and Integral Calculus. Final

EDEXCEL NATIONAL CERTIFICATE UNIT 4 MATHEMATICS FOR TECHNICIANS OUTCOME 4 - CALCULUS

Solutionbank Edexcel AS and A Level Modular Mathematics

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

Section 4.8 Anti Derivative and Indefinite Integrals 2 Lectures. Dr. Abdulla Eid. College of Science. MATHS 101: Calculus I

Bob Brown Math 251 Calculus 1 Chapter 4, Section 1 Completed 1 CCBC Dundalk

Show all your work. If you use the calculator, say so and explain what you did. f(x) =(2x +5) 1 3

5.6 Logarithmic and Exponential Equations

Arkansas Tech University MATH 2924: Calculus II Dr. Marcel B. Finan

Differentiation of x n.

STAT 801: Mathematical Statistics. Distribution Theory

0 otherwise. Page 100 Exercise 9: Suppose that a random variable X has a discrete distribution with the following p.m.f.: { c. 2 x. 0 otherwise.

Math 115 Calculus Exam I October 6, 1999

AP Calculus AB Winter Break Packet Happy Holidays!

Vector Calculus. Dr. D. Sukumar. February 1, 2016

Introduction to Differential Equations

5.4 Variation of Parameters

OBJECTIVES Use the area under a graph to find total cost. Use rectangles to approximate the area under a graph.

ENGI Partial Differentiation Page y f x

Mon Jan Improved acceleration models: linear and quadratic drag forces. Announcements: Warm-up Exercise:

A = (a + 1) 2 = a 2 + 2a + 1

Part A: Short Answer Questions

Linear DifferentiaL Equation

Edexcel past paper questions. Core Mathematics 4. Parametric Equations

Math 250 Skills Assessment Test

Calculus II (Math 122) Final Exam, 19 May 2012

Slope Fields, Differential Equations... and Maybe Euler s Method, Too

MATH 019: Final Review December 3, 2017

Math Notes of 1/26/18. More on DEs

Tangent Plane. Linear Approximation. The Gradient

PONDI CHERRY UNI VERSI TY

Ordinary Differential Equations (ODEs)

Chapter 6. Orthogonality

. Section: Your exam contains 4 problems. The entire exam is worth 60 points.

Contraction Mappings Consider the equation

Transcription:

JUST THE MATHS UNIT NUMBER 17.6 NUMERICAL MATHEMATICS 6 (Numerical solution) of (ordinary differential equations (A)) by A.J.Hobson 17.6.1 Euler s unmodified method 17.6.2 Euler s modified method 17.6.3 Exercises 17.6.4 Answers to exercises

UNIT 17.6 - NUMERICAL MATHEMATICS 6 NUMERICAL SOLUTION OF ORDINARY DIFFERENTIAL EQUATIONS (A) 17.6.1 EULER S UNMODIFIED METHOD Every first order ordinary differential equation can be written in the form dx = f(x, y); and, if it is given that y = y 0 when x = x 0, then the solution for y in terms of x represents some curve through the point P 0 (x 0, y 0 ). Suppose that we wish to find the solution for y at x = d, where d > x 0. We sub-divide the interval from x = x 0 to x = d into n equal parts of width, δx. y O P 0 x0 x d Letting x 1, x 2, x 3,... be the points of subdivision, we have x 1 = x 0 + δx, x 2 = x 0 + 2δx, x 3 = x 0 + 3δx, d = x n = x 0 + nδx. If y 1, y 2, y 3,... are the y co-ordinates of x 1, x 2, x 3, we are required to find y n. 1

From elementary calculus, the increase in y, when x increases by δx, is given approximately by δx; and since, in our case, = f(x, y), we have dx dx y 1 = y 0 + f(x 0, y 0 )δx, y 2 = y 1 + f(x 1, y 1 )δx, y 3 = y 2 + f(x 2, y 2 )δx, y n = y n 1 + f(x n 1, y n 1 )δx, each stage using the previously calculated y value. Note: The method will be the same if d < x 0, except that δx will be negative. In general, each intermediate value of y is given by the formula y i+1 = y i + f(x i, y i )δx. EXAMPLE Use Euler s method with 5 sub-intervals to continue, to x = 0.5, the solution of the differential equation, dx = xy, given that y = 1 when x = 0; (that is, y(0) = 1). Solution i x i y i f(x i, y i ) y i+1 = y i + f(x i, y i )δx 0 0 1 0 1 1 0.1 1 0.1 1.01 2 0.2 1.01 0.202 1.0302 3 0.3 1.0302 0.30906 1.061106 4 0.4 1.061106 0.4244424 1.1035524 5 0.5 1.1035524 - - Accuracy The differential equation in the above example is simple to solve by an elementary method, 2

such as separation of the variables. It is therefore useful to compare the exact result so obtained with the approximation which comes from Eulers method. Therefore that is, y = xdx. ln y = x2 2 + C; y = Ae x2 2. At x = 0, we are told that y = 1 and, hence, A = 1, giving y = e x2 2. But a table of values of x against y in the previous interval reveals the following: x 0 1 0.1 1.00501 0.2 1.0202 0.3 1.04603 0.4 1.08329 0.5 1.13315 e x2 2 There is thus an error in our approximate value of 0.0296, which is about 2.6%. Attempts to determine y for values of x which are greater than 0.5 would result in a very rapid growth of error. 17.6.2 EULER S MODIFIED METHOD In the previous method, we used the gradient to the solution curve at the point P 0 in order to find an approximate position for the point P 1, and so on up to P n. But the approximation turns out to be much better if, instead, we use the average of the two gradients at P 0 and P 1 for which we need use only x 0, y 0 and δx in order to calculate approximately. 3

y O P 0 x P 1 x 0 x 1 The gradient, m 0, at P 0, is given by m 0 = f(x 0, y 0 ). The gradient, m 1, at P 1, is given approximately by where δy 0 = f(x 0, y 0 )δx. m 1 = f(x 0 + δx, y 0 + δy 0 ), Note: We cannot call y 0 + δy 0 by the name y 1, as we did with the unmodified method, because this label is now reserved for the new and better approximation at x = x 0 + δx. The average gradient, between P 0 and P 1, is given by m 0 = 1 2 (m 0 + m 1 ). Hence, our approximation to y at the point P 1 is given by y 1 = y 0 + m 0δx. Similarly, we proceed from y 1 to y 2, and so on until we reach y n. In general, the intermediate values of y are given by y i+1 = y i + m i δx. 4

EXAMPLE Solve the example in the previous section using Euler s Modified method. Solution i x i y i m i = δy i = m i+1 = m i = y i+1 = 1 f(x i, y i) f(x i, y i)δx f(x i + δx, y i + δy i) 2 (mi + mi+1) yi + m i δx 0 0 1 0 0 0.1 0.05 1.005 1 0.1 1.005 0.1005 0.0101 0.2030 0.1518 1.0202 2 0.2 1.0202 0.2040 0.0204 0.3122 0.2581 1.0460 3 0.3 1.0460 0.3138 0.0314 0.4310 0.3724 1.0832 4 0.4 1.0832 0.4333 0.0433 0.5633 0.4983 1.1330 5 0.5 1.1330 17.6.3 EXERCISES 1. (a) Taking intervals δx = 0.2, use Euler s unmodified method to determine y(1), given that dx + y = 0, and that y(0) = 1 Compare your solution with the exact solution given by y = e x. (b) Taking intervals δx = 0.1, use Euler s unmodified method to determine y(1), given that dx = x2 + y x and that y(0.5) = 0.5. Compare your solution with the exact solution given by y = x 2 + x 2. (c) Taking intervals δx = 0.2, use Euler s unmodified method to determine y(1), given that dx = y + e x, and that y(0) = 0. Compare your solution with the exact solution given by y = sinh x. 5

(d) Given that y(1) = 2, use Euler s unmodified method to continue the solution of the differential equation, dx = x2 + y 2, to obtain values of y for values of x from x = 1 to x = 1.5, in steps of 0.1. 2. Repeat all parts of question 1 using Euler s modified method. 17.6.4 ANSWERS TO EXERCISES 1. (a) 0.33, 0.37, 11% low; (b) 1.45 1.50. 3% low; (c) 1.113, 1.175, 5% low; (d) 2.0000, 2.200, 2.431 2.697 3.001, 3.347. 2. (a) 0.371, 0.368, 0.8% high; (b) 1.495, 1.50, 0.33% low; (c) 1.175, accurate to three decimal places; (d) 2.000, 2.216, 2.465, 2.751, 3.079, 3.452. Note: In questions 1(d) and 2(d), the actual values are 2.000, 2.245, 2.496, 2.784, 3.113 and 3.489, from the exact solution of the differential equation. 6