Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Central Divided Difference Method, Lecture notes of Engineering Mathematics

All the topics that the Central Divided Difference Method will cover. Unlock it and see it yourself; I will ensure it will help you.

Typology: Lecture notes

2021/2022

Available from 08/29/2022

ggegegege
ggegegege ๐Ÿ‡ต๐Ÿ‡ญ

45 documents

1 / 21

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Module 2
Lesson 6
Numerical Differentiation
Central Divided Difference
Edgar M. Adina
Instructor
CE50P-2
Numerical Solutions to Engineering Problems
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15

Partial preview of the text

Download Central Divided Difference Method and more Lecture notes Engineering Mathematics in PDF only on Docsity!

Module 2

Lesson 6

Numerical Differentiation

Central Divided Difference

Edgar M. Adina

Instructor

CE 50 P- 2

Numerical Solutions to Engineering Problems

Introduction

โžข Calculus is the mathematics of change. Because engineers must

continuously deal with systems and processes that change, calculus is

an essential tool of engineering.

โžข Standing in the heart of calculus are the mathematical concepts of

differentiation and integration :

ฮ”๐‘ฆ

ฮ”๐‘ฅ

=

๐‘“(๐‘ฅ๐‘– + ฮ”๐‘ฅ) โˆ’ ๐‘“(๐‘ฅ๐‘–)

ฮ”๐‘ฅ ๐‘‘๐‘ฆ

๐‘‘๐‘ฅ

=ฮ”๐‘ฅ lim 0

๐‘“(๐‘ฅ๐‘– + ฮ”๐‘ฅ) โˆ’ ๐‘“(๐‘ฅ๐‘–)

ฮ”๐‘ฅ

๐ผ = เถฑ

๐‘Ž

๐‘

๐‘“(๐‘ฅ)๐‘‘๐‘ฅ

Applications

โžข Differentiation has so many engineering applications

(heat transfer, fluid dynamics, chemical reaction kinetics,

etcโ€ฆ)

โžข Integration is equally used in engineering (compute work

in ME, nonuniform force in SE, cross-sectional area of a

river, etcโ€ฆ)

Differentiation

The finite difference becomes a derivative as ฮ”x approaches zero.

๐œŸ๐’š

๐œŸ๐’™

=

๐’‡(๐’™๐’Š + ๐œŸ๐’™) โˆ’ ๐’‡(๐’™๐’Š)

๐œŸ๐’™ x

f x x f x

dx

dy (^) i i

x (^) ๏„

๏„

๏„

( ) ( ) lim 0

  • โˆ’ = โ†’

Numerical Application of Taylor Series

If f (x) and its first n+ 1 derivatives are continuous on an

interval containing x

i+ 1

and x

i

, then:

Where the remainder R

n

is defined as:

๐‘“ ๐‘ฅ๐‘–+ 1 โ‰… ๐‘“ ๐‘ฅ๐‘– + ๐‘“

โ€ฒ ๐‘ฅ๐‘– ๐‘ฅ๐‘–+ 1 โˆ’ ๐‘ฅ๐‘– +

๐‘“

โ€ฒโ€ฒ ๐‘ฅ๐‘–

2!

๐‘ฅ๐‘–+ 1 โˆ’ ๐‘ฅ๐‘–

2

๐‘“

3 ๐‘ฅ๐‘–

3!

๐‘ฅ๐‘–+ 1 โˆ’ ๐‘ฅ๐‘–

3 +... +

๐‘“

๐‘› ๐‘ฅ๐‘–

๐‘›!

๐‘ฅ๐‘–+ 1 โˆ’ ๐‘ฅ๐‘–

๐‘›

  • ๐‘…๐‘›

๐‘…๐‘› =

๐‘“

๐‘›+ 1 ๐œ‰

๐‘› + 1!

๐‘ฅ๐‘–+ 1 โˆ’ ๐‘ฅ๐‘–

๐‘›+ 1

Numerical Application of Taylor Series

โžข The series is built term by term

โžข Continuing the addition of more terms to get better

approximation we have:

๐‘“ ๐‘ฅ๐‘–+ 1 โ‰… ๐‘“ ๐‘ฅ๐‘–

๐‘“ ๐‘ฅ๐‘–+ 1 โ‰… ๐‘“ ๐‘ฅ๐‘– + ๐‘“

โ€ฒ ๐‘ฅ๐‘– ๐‘ฅ๐‘–+ 1 โˆ’ ๐‘ฅ๐‘–

๐‘“ ๐‘ฅ๐‘–+ 1 โ‰… ๐‘“ ๐‘ฅ๐‘– + ๐‘“

โ€ฒ ๐‘ฅ๐‘– ๐‘ฅ๐‘–+ 1 โˆ’ ๐‘ฅ๐‘– +

๐‘“

โ€ฒโ€ฒ ๐‘ฅ๐‘–

2!

๐‘ฅ๐‘–+ 1 โˆ’ ๐‘ฅ๐‘–

2

zero order approximation

st

order approximation

nd

order approximation

Taylor Series: ฮพ in the Remainder Term

โ‘ Limitations

โžข ฮพ is not exactly known but lies somewhere between xi and xi+ 1

โžข To evaluate R

n

, the (n+ 1 ) derivative of f (x) has to be determined.

To do this f (x) must be known

โž” if f (x) was known there would be no need to perform the Taylor series

expansion!!!

โ‘ Modification

R

n

= O(h

n+ 1

) the truncation error is of the order of h

n+ 1.

(h = x

i+ 1

  • x i

โžข If the error is O(h), halving the step size will halve the error.

โžข If the error is O(h

2

), halving the step size will quarter the error.

โžข In general, the truncation error is decreased by addition of more terms in the

Taylor series.

Centered Difference Formulas- 1

st derivative

Start with the 2

nd degree Taylor expansions about x for f (x+h) and f (x-h):

Subtract ( 5 ) from ( 4 )

Hence

๐‘“(๐‘ฅ๐‘–+ 1 ) = ๐‘“(๐‘ฅ๐‘–) + ๐‘“โ€ฒ(๐‘ฅ๐‘–)โ„Ž +

๐‘“โ€ฒโ€ฒ(๐‘ฅ๐‘–)

2

โ„Ž

2

  • ๐‘‚(โ„Ž

3 )

2

3

( 4 )

( 5 )

๐‘“(๐‘ฅ๐‘–+ 1 ) โˆ’ ๐‘“(๐‘ฅ๐‘–โˆ’ 1 ) = 2 ๐‘“โ€ฒ(๐‘ฅ๐‘–)โ„Ž + ๐‘‚(โ„Ž

3 )

2

Centered Difference Formulas- 2

nd derivative

Start with the 3

rd degree Taylor expansions about x for f (x+h) and f (x-h):

Add equations ( 8 ) and ( 9 ), and solve for f โ€™โ€™(x)

2

3

  • ๐‘‚(โ„Ž

4 ) ( 8 )

2 โˆ’

3

  • ๐‘‚(โ„Ž

4 ) (^9 )

Centered Difference Formulas- 2

nd derivative

Start with the addition between the 5

th degree Taylor expansions about x for f (x+h)

and f (x-h):

Use the step size 2 h, instead of h, in ( 10 )

Multiply equation ( 10 ) by 16 , subtract ( 11 ) from it, and solve for f โ€™โ€™(x)

2

( 4 )

4

6 ) (^10 )

( 11 )

2

4

2

( 4 )

4

6

Example 1

Solution

( )

( ) ( )

t
t t
a t

i i i

  • โˆ’

๏ฎ 1 ๏ฎ 1 ti = 16

1

t i + = ti +๏„ t

14

16 2

1

=

= โˆ’

t (^) i โˆ’ = ti โˆ’๏„ t

( )

( ) ( )

2 ( ) 2

18 14 16

a ๏‚ป

( ) ( )

๏„ t = 2

( ) ( )

  1. 8 ( 18 ) 14 10 210018

18 2000 ln 4

4

โˆ’ ๏ƒบ ๏ƒป

๏ฎ = = 453. 02 m/s
14 2000 ln

4

4

๏ฎ = = 334. 24 m/s

( )

( ) ( )

a ๏‚ป

2 ๏‚ป 29. 694 m/s

Example 1

The absolute relative true error is

๏ƒŽ t =

= 0. 069157 %

The exact value of the acceleration at is

( )

2 a 16 = 29. 674 m/s

t = 16 s

Example 2

The velocity of a rocket is given by

( ) 9. 8 , 0 30 14 10 2100

2000 ln 4

4

โˆ’ ๏‚ฃ ๏‚ฃ ๏ƒบ ๏ƒป

= t t t

๏ฎ t

Use central difference approximation of second derivative of to

calculate the jerk at. Use a step size of.

ฮฝ ( ) t

t = 16 s ฮ” t^^ =^2 s

Example 2

Solution ( )

( )

2

(^1 )

t

t t t a t

i i i i ๏„

  • โˆ’

ti

1

t i + = ti +๏„ t

1

t i โˆ’ = ti โˆ’๏„ t

( )

( ) ( ) ( )

( )

2

j ๏‚ป

๏„ t = 2

( ) ( )

  1. 8 ( 18 ) 14 10 210018

18 2000 ln 4

4

โˆ’ ๏ƒบ ๏ƒป

๏ฎ = = 453. 02 m/s

( ) ( )

  1. 8 ( 16 ) 14 10 210016

16 2000 ln 4

4

โˆ’ ๏ƒบ ๏ƒป

๏ฎ = =^392.^07 m/s

( ) ( )

  1. 8 ( 14 ) 14 10 210014

14 10 14 2000 ln 4

4

โˆ’ ๏ƒบ ๏ƒป

๏ƒน ๏ƒช ๏ƒซ

๏ƒฉ

๏‚ด โˆ’

๏‚ด ๏ฎ = =^334.^24 m/s

( )

( ) ( ) ( )

( )

2 2

j ๏‚ป

( )

3 ๏‚ป 0. 77969 m/s