















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Material Type: Project; Class: Numerical Analysis; Subject: Mathematics; University: Millersville University of Pennsylvania; Term: Fall 2006;
Typology: Study Guides, Projects, Research
1 / 23
This page cannot be seen from the preview
Don't miss anything!
















J. Robert Buchanan
Department of Mathematics
Fall 2006
So far we have used polynomials to approximate arbitrary continuous functions. Pros: easy to evaluate easy to integrate and differentiate Cons: tend to oscillate error estimates can be much larger than the actual error
Assume the interval over which we are approximating f ( x ) contains x = 0.
r ( 0 ) = p ( 0 ) q ( 0 )
p 0 q 0
=⇒ q 0 6 = 0
Assume q 0 = 1
r ( x ) = p 0 + p 1 x + · · · + pnxn q 0 + q 1 x + · · · + qnxm = ( p 0 + p 1 x + · · · + pnxn )/ q 0 ( q 0 + q 1 x + · · · + qnxm )/ q 0
=
ˆ p ( x ) ˆ q ( x ) where^ q ˆ 0 = 1
If r ( x ) is of degree N , then r ( x ) contains N + 2 coefficients. q 0 = 1 leaving N + 1 coefficients undetermined.
Theorem (Padé Technique) Given f ( x ) and a rational function r ( x ) with q 0 = 1 , choose the remaining N + 1 coefficients of r ( x ) such that f ( n )( 0 ) = r ( n )( 0 ) for n = 0 , 1 ,... , N.
Definition A solution p of f ( x ) = 0 is a root of multiplicity m of f if for x 6 = p we can write f ( x ) = ( x − p ) mq ( x ), where lim x → p q ( x ) 6 = 0.
Theorem A function f ∈ C m [ a , b ] has a root of multiplicity m at p ∈ ( a , b ) iff
0 = f ( p ) = f ′( p ) = · · · = f ( m −^1 )( p ) but f ( m )( p ) 6 = 0.
Remark: The design goal is to select the coefficients of r ( x ) so that f ( x ) − r ( x ) has a root of multiplicity N + 1 at x = 0. Equivalently ( (^) ∞ ∑
k = 0
ak xk
) ( (^) m ∑
k = 0
qk xk
∑^ n
k = 0
pk xk
has no terms of degree less than N + 1.
Consider ( (^) ∞ ∑
k = 0
ak xk
) ( (^) m ∑
k = 0
qk xk
∑^ n
k = 0
pk xk^ =
( a 0 + a 1 x + a 2 x^2 · · · )( 1 + q 1 x + · · · + qmxm ) − ( p 0 + p 1 x + · · · + pnxn )
n Coefficient of xn 0 a 0 − p 0 1 a 0 q 1 + a 1 − p 1 2 a 0 q 2 + a 1 q 1 + a 2 − p 2 .. .
k − pk +
∑^ k
i = 0
ai qk − i
for k = 0 , 1 ,... , N.
Consider f ( x ) = x ln( x + 1 ). Compare the Maclaurin polynomial approximation of degree 6 to the Padé rational approximation of degree 6. Maclaurin Polynomial:
P 6 ( x ) = x^2 −
x^3 +
x^4 −
x^5 +
x^6
Let m = n = 3.
( x^2 −
x^3 +
x^4 −
x^5 +
x^6 )( 1 + q 1 x + q 2 x^2 + q 3 x^3 )
− ( p 0 + p 1 x + p 2 x^2 + p 3 x^3 )
− p 0 = 0 − p 1 = 0 1 − p 2 = 0 −
− p 3 + q 1 = 0 1 3
q 1 + q 2 = 0
−
q 1 −
q 2 + q 3 = 0 1 5
q 1 +
q 2 −
− q 3 = 0
Solution:
p 0 = 0 , p 1 = 0 , p 2 = 1 , p 3 =
, q 1 =
, q 2 =
, q 3 = −
r ( x ) =
x^2 + 1930 x^3 1 + 1715 x + 307 x^2 − 901 x^3
=
90 x^2 + 57 x^3 90 + 102 x + 21 x^2 − x^3
= − 57 + 1287 x^2 + 5814 x + 5130 90 + 102 x + 21 x^2 − x^3 = − 57 +
90 + 102 x + 21 x^2 − x^3 1287 x^2 + 5814 x + 5130 .. .
r ( x ) = − 57 −
x − 3649143 +
(^172671859) x + 80407222469181 − 46898883159756517691410 x + (^239520189937) This form requires only 3 MUL/DIV and 6 ADD/SUB.
x | P 6 ( x ) − f ( x )| | r ( x ) − f ( x )|
Design a rational function approximation to ex^ that is valid for x ∈ R and determine the maximum error. We begin by constructing a rational function approximation to ex^ where m = n = 3 and determining the maximum error on the interval [− ln 2, ln 2]. Maclaurin polynomial:
P 6 ( x ) = 1 + x +
x^2 +
x^3 +
x^4 +
x^5 +
x^6
r ( x ) =
1 + x 2 + x 2 10 +^
x^3 120 1 − x 2 + x 2 10 −^
x^3 120
-0.6 -0.4 -0.2 0.2 0.4 0. x
2.5· 10 -
5 · 10 -
7.5· 10 -
error