EBK NUMERICAL METHODS FOR ENGINEERS
EBK NUMERICAL METHODS FOR ENGINEERS
7th Edition
ISBN: 8220100254147
Author: Chapra
Publisher: MCG
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!
Students have asked these similar questions
Find a power series expansion for f(x)=1/x.
Use the exponential series to find an approximation to e-1 correct to three significant figures.
Q.1/Find the Taylor series expansion of about x = 2 for three terms. %3D

Additional Engineering Textbook Solutions

Find more solutions based on key concepts
Knowledge Booster
Background pattern image
Mechanical Engineering
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, mechanical-engineering and related others by exploring similar questions and additional content below.
Recommended textbooks for you
Text book image
Algebra & Trigonometry with Analytic Geometry
Algebra
ISBN:9781133382119
Author:Swokowski
Publisher:Cengage
Text book image
College Algebra
Algebra
ISBN:9781938168383
Author:Jay Abramson
Publisher:OpenStax
Text book image
Trigonometry (MindTap Course List)
Trigonometry
ISBN:9781337278461
Author:Ron Larson
Publisher:Cengage Learning
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