University of Florida/Egm6341/s10.team2.niki/HW5

From testwiki
Jump to navigation Jump to search

Problem 2:Continuation of proof of trapezoidal error


Statement

P. 27-1

Continue the proof of Trapezoidal Rule Error to steps 4a and 4b and determine 𝑷6(𝒕) and 𝑷7(𝒕)

Solution

From steps 3a and 3b we get the expression

𝑬=[𝑷2(𝒕)π’ˆ(1)(𝒕)+𝑷4(𝒕)π’ˆ(3)(𝒕)]1+11+1𝑷5(𝒕)π’ˆ(5)(𝒕)𝒅𝒕𝑫

(Summary p 26-3)

P4(t)=t424+t2127360=c1(t44!)+c3(t22!)+c5

P5(t)=t5120+t3367t360=c1(t55!)+c3(t33!)+c5(t)

(Summary p 26-3)

Step 4a

1+1P5(t)vg(5)(t)udt=[g(5)(t)P6(t)]1+11+1[P6(t)g(6)(t)E]dt

where, P6(t)=P5(t)=c1(t66!)+c3(t44!)+c5(t22!)+c7


          P6(t)=t6720+t41447t2720+α
Step 4b

1+1[P6(t)vg(6)(t)u]dt=D=[g(6)(t)P7(t)]1+11+1P7(t)g(7)(t)dt

where, P7(t)=P6(t)==c1(t77!)+c3(t55!)+c5(t33!)+c7(t)+c8


          P7(t)=t75040+t57207t32160+αt+β


Selecting P7(t) such that

P7(+1)=P7(1)=P7(0)=0 ,we get


P7(t=0)=0β=c8=0

P(1)=0=(1)77!+16((1)55!)7360((1)33!)αα=c7=3115120

Summary

P6(t)=t6600+t41087t2720+3115120

P7(t)=P6(t)=t74200+t55407t32160+3115120t

(Summary p 26-3)

Author

--Egm6341.s10.team2.niki 21:38, 23 March 2010 (UTC)


Problem 7: Understanding the derivation of the proof of Trapezoidal Error


Statement

P. 28-2

Redo steps in the proof of the Trapezoidal Rule error by trying to cancel terms with odd order derivatives of "g"

Solution

We begin with equation (5) on P. 21-1 which is the result of transformation of variables on equation (1) P. 21-1

(Prob 4 HW4) (P. 21-1)

En1=h2k=0n1[11gk(t)dt[gk(1)+gk(+1)]]

(5) on P.21-1

From Prob 5 HW4, we can express the above equation as:

En1=h2k=0n1[1+1(t)g(1)(t)dt]

(1)

Step2a

Integrating the term withing the square brackets by "Integration by parts" Prob 7 HW4 we can rewrite (1) as follows

En1=h2k=0n1[[P2(t)g(1)(t)]1+11+1P2(t)g(2)(t)dt]

(2)

In order to eliminate terms with even powers of h we need to remove terms with odd derivatives of g(t).Therefore, the boundary term in eqn (2) above must be set to zero by selection of P2(t).

We have P2(t) from eqns (1 and 2)P. 21-3

P2(t)=c1(t22!)+c3

(1)p21-3

c2=0

(2)p21-3

Setting P2(1)=0 gives c3=1/2 and hence we get

P2(t)=c1(t22!)+c3

(3)

So following this method, the next term to be eliminated will have P4(t)

P4(t)=c1(t44!)+c3(t22!)+c4(t)+c5

(4)

Setting P4(1)=0andP4(1)=0 and solving we get c4=0andc4=5/24.Continuing on these lines to we get the eqn (2) in the form

En1=h2k=0n1[P2g(1)]1+1[P3g(2)]1+1+[P4g(3)]1+1[P5g(4)]1+1+[P6g(5)]1+1[P7g(6)]1+11+1P7g(7)dt

(5)

En1=h2k=0n1[P3g(2)]1+1+[P5g(4)]1+1+[P7g(6)]1+11+1P7g(7)dt

(6)

En1=h2k=0n1(i=1m[P(2i+1)g(2i)]1+1)1+1P(2m+1)g(2m+1)dt

(7)

manipulating the terms yields,

En1=h2k=0n1[i=1m[(P(2i+1)(+1)g(2i)(+1))(P(2i+1)(1)g(2i)(1))]1+1P(2m+1)g(2m+1)dt

(8)

En1=h2k=0n1[i=1m[(P(2i+1)(1)g(2i)(1))(P(2i+1)(+1)g(2i)(+1))]1+1P(2m+1)g(2m+1)dt

(9)

Transforming g(t) back to f(x) we get [see [prob 6 HW4]

En1=h2k=0n1[i=1m[(P(2i+1)(1)(h2i2)f(2i)(xk))(P(2i+1)(+1)(h2i2)f(2i)(xk+1))]xkxk+1P(2m+1)(x)(h2m+12)f(2m+1)(x))dt

(10)



To see the difference in the two approaches we must compare the equations from the two methods. From (1) P. 27-1 we have

En1=r=1lh2rd2r[f(2r1)(b)f(2r1)(a)]h(2l)2(2l)k=0n1xkxk+1P2l(tk(x))f(2l)(x)dx

(11)

It is seen that the first term in eqn 10 is a summation as against the term of eqn (11) which is dependent only on the end points.

Template:CourseCat