Numerical Methods for Engineers
Numerical Methods for Engineers
7th Edition
ISBN: 9789814670876
Author: Chapra
Publisher: BOOKXCHANG
bartleby

Videos

Textbook Question
Book Icon
Chapter 4, Problem 6P

Use zero- through fourth-order Taylor series expansions to predict f ( 2.5 )  for  f ( x ) =In x using a base point at x = 1 . Compute the true percent relative error ε t for each approximation. Discuss the meaning of the results.

Expert Solution & Answer
Check Mark
To determine

To calculate: The approximate value of f(x)=lnx at the point x=2.5 with stating iteration at x=1 using the Taylor series with the simultaneous computation of the true percentage relative error at the zero-, first-, second-, third- and fourth order approximates.

Answer to Problem 6P

Solution:

The zero first, second, third and fourth order Taylor series approximations for the function f(x)=lnx at the point x=2.5 are 0, 1.5, 0.375, 1.5 and 0.2344 with the true relative percentage error at the respective stages as 100 %, 63.7 %, 59.07 %, 63.7%, and 74.42 % respectively.

The result shows that theTaylor series approximation could be generalised as,

f(3)=0+1.51(1.5)22+(1.5)33(1.5)44+

Explanation of Solution

Given Information:

The function f(x)=lnx with points x=2.5 and the starting iteration at x=1.

Formula Used:

The Taylor series approximation of nth order is:

f(xi+1)=f(xi)+f'(xi)(xi+1xi)+f''(xi)2!(xi+1xi)2++f(n)(xi)n!(xi+1xi)n.

Calculation:

Consider the zero-order approximation for the provided function,

f(xi+1)=f(xi)

Now replace 2.5 for xi+1 and 1 for xi to obtain,

f(2.5)=f(1)=ln(1)=0

The zero order approximation gives 0.

The exact value of the function at 2.5 would be:

f(2.5)=ln(2.5)=0.9163

Thus, the true relative percentage error would be:

εt=(|trueapproximate|true×100)%=(|0.91630|0.9163×100)%=100%

The relative percentage error at this stage is 100%.

The first-order Taylor series approximation would be:

f(xi+1)=f(xi)+f'(xi)(xi+1xi)

Now replace 2.5 for xi+1 and 1 for xi to obtain,

f(3)=f(1)+f'(1)(2.51)=0+1(1)(1.5)=1.5

The first order approximation gives 1.5.

Thus,

εt=(|trueapproximate|true×100)%=(|0.91631.5|0.9163×100)%=63.7%

The relative percentage error at this stage is 38.91%.

The second-order Taylor series approximation would be:

f(xi+1)=f(xi)+f'(xi)(xi+1xi)+f''(xi)2(xi+1xi)2

Now replace 2.5 for xi+1 and 1 for xi to obtain,

f(3)=f(1)+f'(1)(2.51)+f''(1)2(2.51)2=0+1(1)(1.5)12(1)2(1.5)2=0.375

The second order approximation gives 0.375.

Thus,

εt=(|trueapproximate|true×100)%=(|0.91630.375|0.9163×100)%=59.07%

The relative percentage error at this stage is 59.07%.

The third-order Taylor series approximation would be:

f(xi+1)=f(xi)+f'(xi)(xi+1xi)+f''(xi)2(xi+1xi)2+f(3)(xi)3!(xi+1xi)3

Now replace 2.5 for xi+1 and 1 for xi to obtain,

f(3)=f(1)+f'(1)(2.51)+f''(1)2(2.51)2+f(3)(1)3!(2.51)3=0+1(1)(1.5)12(1)2(1.5)2+26(1)3(1.5)3=1.5

The third order approximation gives 1.5.

Thus,

εt=(|trueapproximate|true×100)%=(|0.91631.5|0.9163×100)%=63.7%

The relative percentage error at this stage is 63.7%

The fourth-order Taylor series approximation would be:

f(xi+1)=f(xi)+f'(xi)(xi+1xi)+f''(xi)2(xi+1xi)2+f(3)(xi)3!(xi+1xi)3+f(4)(xi)4!(xi+1xi)4

Now replace 2.5 for xi+1 and 1 for xi to obtain,

f(3)=f(1)+f'(1)(2.51)+f''(1)2(2.51)2+f(3)(1)3!(2.51)3+f(4)(1)3!(2.51)4=0+1(1)(1.5)12(1)2(1.5)2+26(1)3(1.5)3624(1)4(1.5)4=0.2344

The third order approximation gives 0.2344.

Thus,

εt=(|trueapproximate|true×100)%=(|0.91630.2344|0.9163×100)%=74.42%

The relative percentage error at this stage is 74.42%.

This implies that the Taylor series approximation could be generalised as,

f(3)=0+1.51(1.5)22+(1.5)33(1.5)44+

Want to see more full solutions like this?

Subscribe now to access step-by-step solutions to millions of textbook problems written by subject matter experts!

Additional Math Textbook Solutions

Find more solutions based on key concepts
Knowledge Booster
Background pattern image
Advanced Math
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, advanced-math and related others by exploring similar questions and additional content below.
Recommended textbooks for you
Text book image
Advanced Engineering Mathematics
Advanced Math
ISBN:9780470458365
Author:Erwin Kreyszig
Publisher:Wiley, John & Sons, Incorporated
Text book image
Numerical Methods for Engineers
Advanced Math
ISBN:9780073397924
Author:Steven C. Chapra Dr., Raymond P. Canale
Publisher:McGraw-Hill Education
Text book image
Introductory Mathematics for Engineering Applicat...
Advanced Math
ISBN:9781118141809
Author:Nathan Klingbeil
Publisher:WILEY
Text book image
Mathematics For Machine Technology
Advanced Math
ISBN:9781337798310
Author:Peterson, John.
Publisher:Cengage Learning,
Text book image
Basic Technical Mathematics
Advanced Math
ISBN:9780134437705
Author:Washington
Publisher:PEARSON
Text book image
Topology
Advanced Math
ISBN:9780134689517
Author:Munkres, James R.
Publisher:Pearson,
Power Series; Author: Professor Dave Explains;https://www.youtube.com/watch?v=OxVBT83x8oc;License: Standard YouTube License, CC-BY
Power Series & Intervals of Convergence; Author: Dr. Trefor Bazett;https://www.youtube.com/watch?v=XHoRBh4hQNU;License: Standard YouTube License, CC-BY