Numerical Methods for Engineers
Numerical Methods for Engineers
7th Edition
ISBN: 9780073397924
Author: Steven C. Chapra Dr., Raymond P. Canale
Publisher: McGraw-Hill Education
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
3. Using the trial function u¹(x) = a sin(x) and weighting function w¹(x) = b sin(x) find an approximate solution to the following boundary value problems by determining the value of coefficient a. For each one, also find the exact solution using Matlab and plot the exact and approximate solutions. (One point each for: (i) finding a, (ii) finding the exact solution, and (iii) plotting the solution) a. (U₁xx -2 = 0 u(0) = 0 u(1) = 0 b. Modify the trial function and find an approximation for the following boundary value problem. (Hint: you will need to add an extra term to the function to make it satisfy the boundary conditions.) (U₁xx-2 = 0 u(0) = 1 u(1) = 0
3. Using the trial function uh(x) = a sin(x) and weighting function wh(x) = b sin(x) find an approximate solution to the following boundary value problems by determining the value of coefficient a. For each one, also find the exact solution using Matlab and plot the exact and approximate solutions. (One point each for: (i) finding a, (ii) finding the exact solution, and (iii) plotting the solution) a. (U₁xx - 2 = 0 u(0) = 0 u(1) = 0 b. Modify the trial function and find an approximation for the following boundary value problem. (Hint: you will need to add an extra term to the function to make it satisfy the boundary conditions.) (U₁xx - 2 = 0 u(0) = 1 u(1) = 0
a) b) c) Use composite Simpson's rule to estimate xe*dx with n=4. Subsequently, find the absolute error. dy dx Given 3y + 2x, where y(0) = 1 and h = 0.2. Approximate the solution for the differential equation for one iteration only by using Runge Kutta method of order two. Set up the Gauss-Siedel iterative equations the following linear system: 6x₁-3x₂ = 2 -x₁ + 3x₂ + x3 =1 x₂ + 4x₂ = 3 (Do not solve)

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.
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
Principles of Heat Transfer (Activate Learning wi...
Mechanical Engineering
ISBN:9781305387102
Author:Kreith, Frank; Manglik, Raj M.
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