12
Chapter 08.05 On Solving Higher Order Equations for Ordinary Differential Equations After reading this chapter, you should be able to: 1. solve higher order and coupled differential equations, We have learned Euler’s and Runge-Kutta methods to solve first order ordinary differential equations of the form (1) What do we do to solve simultaneous (coupled) differential equations, or differential equations that are higher than first order? For example an order differential equation of the form (2) with initial conditions can be solved by assuming (3.1) (3.2) (3.3) 08.05.1

On Solving Higher Order Equations for Ordinary …mathforcollege.com/nm/mws/gen/08ode/mws_gen_ode_spe... · Web viewOn Solving Higher Order Equations for Ordinary Differential Equations

  • Upload
    others

  • View
    7

  • Download
    0

Embed Size (px)

Citation preview

Page 1: On Solving Higher Order Equations for Ordinary …mathforcollege.com/nm/mws/gen/08ode/mws_gen_ode_spe... · Web viewOn Solving Higher Order Equations for Ordinary Differential Equations

Chapter 08.05On Solving Higher Order Equations for Ordinary Differential Equations

After reading this chapter, you should be able to:1. solve higher order and coupled differential equations,

We have learned Euler’s and Runge-Kutta methods to solve first order ordinary differential equations of the form

(1)

What do we do to solve simultaneous (coupled) differential equations, or differential equations that are higher than first order? For example an order differential equation of the form

(2)

with initial conditions can be solved by assuming (3.1)

(3.2)

(3.3)

(3.n)

= (3.n+1)

The above Equations from (3.1) to (3.n+1) represent first order differential equations as follows

08.05.1

Page 2: On Solving Higher Order Equations for Ordinary …mathforcollege.com/nm/mws/gen/08ode/mws_gen_ode_spe... · Web viewOn Solving Higher Order Equations for Ordinary Differential Equations

08.05.2 Chapter 08.05

(4.1)

(4.2)

(4.n)

Each of the first order ordinary differential equations are accompanied by one initial condition. These first order ordinary differential equations are simultaneous in nature but can be solved by the methods used for solving first order ordinary differential equations that we have already learned.

Example 1Rewrite the following differential equation as a set of first order differential equations.

Solution

The ordinary differential equation would be rewritten as follows. Assume

Then

Substituting this in the given second order ordinary differential equation gives

The set of two simultaneous first order ordinary differential equations complete with the initial conditions then is

.

Now one can apply any of the numerical methods used for solving first order ordinary differential equations.

Example 2

Given

, find by Euler’s method

a)b) the absolute relative true error for part(a), if

Page 3: On Solving Higher Order Equations for Ordinary …mathforcollege.com/nm/mws/gen/08ode/mws_gen_ode_spe... · Web viewOn Solving Higher Order Equations for Ordinary Differential Equations

Higher Order Equations 08.05.3

c)

Use a step size of .Solution

First, the second order differential equation is written as two simultaneous first-order differential equations as follows. Assume

then

So the two simultaneous first order differential equations are

(E2.1)

(E2.2)

Using Euler’s method on Equations (E2.1) and (E2.2), we get (E2.3)

(E2.4)a) To find the value of and since we are using a step size of and starting at

, we need to take three steps to find the value of .For ,From Equation (E2.3)

is the approximate value of at

From Equation (E2.4)

is the approximate value of (same as ) at

For ,From Equation (E2.3)

Page 4: On Solving Higher Order Equations for Ordinary …mathforcollege.com/nm/mws/gen/08ode/mws_gen_ode_spe... · Web viewOn Solving Higher Order Equations for Ordinary Differential Equations

08.05.4 Chapter 08.05

is the approximate value of at

From Equation (E2.4)

= 0.31970is the approximate value of at

0For ,From Equation (E2.3)

is the approximate value of at

From Equation (E2.4)

is the approximate value of at

b) The exact value of is

The absolute relative true error in the result from part (a) is

= 9.7062%

Page 5: On Solving Higher Order Equations for Ordinary …mathforcollege.com/nm/mws/gen/08ode/mws_gen_ode_spe... · Web viewOn Solving Higher Order Equations for Ordinary Differential Equations

Higher Order Equations 08.05.5

c)

Example 3Given

,

find by Heun’s methoda)

b) .

Use a step size of .Solution

First, the second order differential equation is rewritten as two simultaneous first-order differential equations as follows. Assume

then

So the two simultaneous first order differential equations are

(E3.1)

(E3.2)

Using Heun’s method on Equations (1) and (2), we get

(E3.3)

(E3.4a) (E 3.4b)

(E3.5)

(E3.6a) (E3.6b)

For From Equation (E3.4a)

From Equation (E3.6a)

Page 6: On Solving Higher Order Equations for Ordinary …mathforcollege.com/nm/mws/gen/08ode/mws_gen_ode_spe... · Web viewOn Solving Higher Order Equations for Ordinary Differential Equations

08.05.6 Chapter 08.05

= -4

From Equation (E3.4b)

= 1

From Equation (E3.6b)

From Equation (E3.3)

is the approximate value of at

From Equation (E3.5)

is the approximate value of at

For From Equation (E3.4a)

From Equation (E3.6a)

Page 7: On Solving Higher Order Equations for Ordinary …mathforcollege.com/nm/mws/gen/08ode/mws_gen_ode_spe... · Web viewOn Solving Higher Order Equations for Ordinary Differential Equations

Higher Order Equations 08.05.7

From Equation (E3.4b)

From Equation (E3.6b)

From Equation (E3.3)

is the approximate value of at

From Equation (E3.5)

is the approximate value of at

For From Equation (E3.4a)

From Equation (E3.6a)

From Equation (E3.4b)

Page 8: On Solving Higher Order Equations for Ordinary …mathforcollege.com/nm/mws/gen/08ode/mws_gen_ode_spe... · Web viewOn Solving Higher Order Equations for Ordinary Differential Equations

08.05.8 Chapter 08.05

= 0.035836

From Equation (E3.6b)

From Equation (E3.3)

is the approximate value of at

b) From Equation (E3.5)

is the approximate value of at

The intermediate and the final results are shown in Table 1.

Table 1 Intermediate results of Heun’s method.0 1 20 0.25 0.501 1.3750 1.57382 1.1598 0.555332 1.1598 0.55533

1 0.43087 0.035836

1.3750 1.5738 1.64771.1598 0.55533 0.13158

Page 9: On Solving Higher Order Equations for Ordinary …mathforcollege.com/nm/mws/gen/08ode/mws_gen_ode_spe... · Web viewOn Solving Higher Order Equations for Ordinary Differential Equations

Higher Order Equations 08.05.9

ORDINARY DIFFERENTIAL EQUATIONSTopic Higher Order EquationsSummary Textbook notes on higher order differential equationsMajor General EngineeringAuthors Autar KawLast Revised May 16, 2023Web Site http://numericalmethods.eng.usf.edu