Docsity

Error Propagation: Analyzing Influence of Small Change on Function - Prof. Dana G. Haugli, Study notes of Aerospace Engineering

Toggle sidebar
bg1
D. Haugli, Lecturer Aer E 161 Aerospace Engineering
2/3/2005 Error Propagation, Page 1 Iowa State University
Error Propagation
A quick search of the web yields hundreds (if not thousands) of documents related to the topic of
error propagation. The basic question is, how does a small error in an independent variable x
influence – or propagate through – a function,
()
xf ? For example, how might round-off error
propagate through a calculation performed on a computer? This document will focus on the
error associated with a single independent variable; similar analyses involving partial derivatives
of multiple independent variables can also be performed, but will not be considered here.
From calculus, if the derivative of f exists at x, then
() ()()
x
xfxxf
xf x∆
−∆+
=
′→∆ 0
lim ,
or for small values of x∆,
() ()()
.
x
xfxxf
xf ∆
−∆+
≈
′
Thus, a small change in x propagates through the function as,
( ) () ()
xxfxfxxf ∆
′
+≈∆+ . (1)
This result provides a basis for estimating the influence of an error in x on
()
xf . Note that the
result resembles a Taylor Series truncated after the first derivative term.
First, rearrange Equation (1) as,
( ) () ()
xxfxfxxf ∆
′
≈−∆+ .
Next substitute x
~, the approximate value of x, and xxx ~
−=∆ into the result to obtain,
()()()()
xxfxfxxxf ∆
′
≈−−+
~
~
~
~
or
() () ()
xxfxfxf ∆
′
≈−
~
~
.
Let
()
xEa
~
represent the absolute error in x
~,
()
xxxxEa∆=−=
~
~
. (2)
Then,
()
xEx a
~
±=∆ and,
() () () ()
xExfxfxf a
~
~
~
′
±≈− . (3)
pf2

Partial preview of the text

Download Error Propagation: Analyzing Influence of Small Change on Function - Prof. Dana G. Haugli and more Study notes Aerospace Engineering in PDF only on Docsity!

D. Haugli, Lecturer Aer E 161 Aerospace Engineering 2/3/2005 Error Propagation, Page 1 Iowa State University

Error Propagation

A quick search of the web yields hundreds (if not thousands) of documents related to the topic of error propagation. The basic question is, how does a small error in an independent variable x

influence – or propagate through – a function, f ( ) x? For example, how might round-off error

propagate through a calculation performed on a computer? This document will focus on the error associated with a single independent variable; similar analyses involving partial derivatives of multiple independent variables can also be performed, but will not be considered here.

From calculus, if the derivative of f exists at x , then

x

f x x f x f x x (^) ∆

∆ → 0 lim ,

or for small values of ∆ x ,

x

f x x f x f x ∆

Thus, a small change in x propagates through the function as,

f ( x + ∆ x ) ≈ f ( ) x + f ′( ) x ∆ x. (1)

This result provides a basis for estimating the influence of an error in x on f ( ) x. Note that the

result resembles a Taylor Series truncated after the first derivative term.

First, rearrange Equation (1) as,

f ( x + ∆ x ) − f ( ) x ≈ f ′( ) x ∆ x.

Next substitute x ~^ , the approximate value of x , and ∆ x = x − x ~ into the result to obtain,

f ( ~ x + ( x − x ~)) − f ( x ~) ≈ f ′( ~ x ) ∆ x

or

f ( ) x − f ( x ~^ ) ≈ f ′( x ~)∆ x.

Let E a ( ~ x^ )represent the absolute error in ~ x^ ,

E a ( x ~)^ = x − x ~=∆ x. (2)

Then, ∆ x =± Ea ( x^ ~)and,

f ( ) x − f ( x ~^ ) ≈± f ′( x ~) Ea ( x^ ~). (3)

D. Haugli, Lecturer Aer E 161 Aerospace Engineering 2/3/2005 Error Propagation, Page 2 Iowa State University

Define

E a ( f ( ~ x^ )) = f ( ) x − f ( x^ ~), (4)

representing the absolute error in the function due to the error in ~ x^. Substitute from (3) into (4) to obtain,

E a ( f ( x ~^ )) ≈ ± f ′( x ~) Ea ( x ~) = f ′( x ~) Ea ( x^ ~). (5)

The last equality is possible because E a ( x^ ~^ )is already an absolute value. Consistent with the

notes on the definition of an approximate error given in class, this equation can be rewritten in terms of the approximate absolute error in the function,

ε a ( f ( x ~)^ ) = f ′( x ~) Ea ( x^ ~).

Example 1. Consider the function, f ( ) x = 3 x^3 + 2 x^2 + x + 1. If x = 0. 5 and

~ x = 0. 4999999 , what is the error in f ( x ~ )?

From (2), E a ( ~ x^ ) = x −~ x = 0. 5 − 0. 4999999 = 0. 0000001 = 1 × 10 −^7.

The resulting absolute error in the function is (from (5)),

2 E (^) a f ~ x^ ≈ f ′~ x Ea ~ x = 9. 4999999 + 4. 4999999 + 10. 0000001 =5.25× 10 ,

5.25 times greater than the error in ~ x^. From (3),

f ( ) x ≈ f ( ~ x^ ) ± f ′( ~ x ) Ea ( ~ x ) = 0. 5 ± 0. 000000525.