Question

Consider the function f(x) x3 2x4 on the interval [-2, 2] with h 0.25. Use the forward, backward, and centered finite difference approximations for the first and second derivatives so as to graphically illustrate which approximation is most accurate. Graph all three first-derivative finite difference approximations along with the theoretical, and do the same for the second derivative as well Please help me answer this question using matlab

0 0
Add a comment Improve this question Transcribed image text
Answer #1

=4.335 +1 8- S-8S31SCOP Calculate lheeY1ογ : = -19.131. defference la e lWe followig formula Back wand difserente - 0.2S 7.187Scalculate Ihe Cental diffevee Cent.nd d f-feve oo-드 子(2Et lrfC XED x o.2s ーチ·25 Magnitude or lte ersời =0.96577% above ssges dif-fevence al show the gaph isferene 2,l-2. L-1 f (x 2L . 3.453 125 f(Xin)= (1.75)-2+1.75 X4 5.8593 5 YWN Co. 2s)2100 16.61 /, O-l-S)121% 10. 0 Hence, the eetage from

Add a comment
Know the answer?
Add Answer to:
Please help me answer this question using matlab Consider the function f(x) x3 2x4 on the...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Please explain 0 Required information Consider the function2x4 on the interval (-2, 2] with h 0.25....

    Please explain 0 Required information Consider the function2x4 on the interval (-2, 2] with h 0.25. Which among the fonward, backward, and centered finite difference approximations for the second derivative is more accurate when it is compared with theoretical value? (Refer to the graph plotted to arrive at the result) The most accurate result is obtained usin Cliek to select finite difference approximation. backward forward

  • 3. Find the first derivative of a functionf(x)-ex (a) Use calculus to determine the correct value...

    3. Find the first derivative of a functionf(x)-ex (a) Use calculus to determine the correct value of the derivative at x = 2. If h = 0.25, (b) Evaluate the second-order centered finite-difference approximation (e) Evaluate the second-order forward difference approximation. (d) Evaluate the second-order backward difference approximation. (e) Create a MATLAB function program, which gives output up to second order centered finite difference approximation of second derivative "(xo). The input arguments aref n (order of approximation, 1 or 2),...

  • 3. For f(x) = e-x and h = 0.6

    3. For f(x) = e-x and h = 0.6 a) Use forward and backward difference approximations to estimate the second derivatives of f(x) at x = 2. Use the least accurate formulas available.b) Using the most accurate centered difference formula, estimate the second derivative of f(x) at x=2. 

  • 4. For f(x) = e-* and h = 0.10 where, C = 1.** a) Use centered...

    4. For f(x) = e-* and h = 0.10 where, C = 1.** a) Use centered approximations to estimate the first and second derivatives of f(x) at x = 2. Use the east accurate formulas available. (10 pts) b) Using the most acurate forward and backward difference formulas, estimate the first derivative of f(x) at x 2. (10 pts) Forward Difference First Derivative 7.) - SD Error OM or) = -1.) + 40..) - 3 ) 2h Second Derivative 'w...

  • please show me a Matlab script that will compute the total errors of the approximation due...

    please show me a Matlab script that will compute the total errors of the approximation due to the given function, also include the panel plot as well, thank you. 1) This problem studies the errors due to the approximation of the first derivative of a given function f(x) using the forward and centered difference methods. For this problem, we consider f(x)=sin(x). a) First, we will investigate the effect of the step size h on the first derivative approximation. Set h=10',...

  • Differentiate the following function: f(x) = ex -2x +1

    MatlabMECE 2350 Numerical Methods Lab 8.1. Differentiate the following function: f(x) = ex -2x +1 and solve its first derivative atx = 8 2. Numerically evaluate the approximated first derivative from the above function at x = 8 and h = 0.15 by the following: (a) Forward finite difference method (b) Backward finite difference method (c) Centered finite difference method 3. Calculate the error of each method by comparing the numerical derivative with the result from problem 1.

  • MATLAB 1) Calculate the following for the function f(x) = e-4x- 2x3

    #use MATLAB script1)  Calculate the following for the function f(x) = e-4x- 2x3 a. Calculate the derivative of the function by hand. Write a MATLAB function that calculates the derivative 05. of this function and calculate the derivative at x = 0.5. b. Develop an M- to evaluate the cetered finite-difference approximation (use equation below), at x = 0.5. Assume that h = 0.1. c. Repeat part (b) for the second-order forward and backward differences. Again Assume that h = 0.1. d. Using the results...

  • please i need the requiered MATLAB script to solve this. All calculations need to be done in matlab please Design Layout References Mailings Review View Share 1) (15 points) Calculate the followi...

    please i need the requiered MATLAB script to solve this. All calculations need to be done in matlab please Design Layout References Mailings Review View Share 1) (15 points) Calculate the following for the function f(x) = e-a-x a. Use calculus to determine the correct value of the derivative. b. Develop an M-file function to evaluate the centered finite-difference approximations, starting with x = 0.5 Thus, for the first evaluation, the x values for the centered difference approximation will be...

  • Using hand work for the parts with a paper next to them, and MatLab for the parts with the MatLab logo next to them, complete the following: Consider the linear BVP 4y " + 3y , + y = 0, 0<x&lt...

    Using hand work for the parts with a paper next to them, and MatLab for the parts with the MatLab logo next to them, complete the following: Consider the linear BVP 4y " + 3y , + y = 0, 0<x<1 y(0)1 You will define a set of linear equations for yi,0, (yi y(Xi), 1 = o,.. . ,n) and the set of nodes is with xi-ih, 1-0, . . . , n and h =-. n is a fixed...

  • Matlab: please answer all 3 parts and show steps using Matlab inputs ONLY thank you Problem 3. Consider the function f(x) ei cos(2x). (1) Sketch its graph over the interval [0, r] by the followin...

    Matlab: please answer all 3 parts and show steps using Matlab inputs ONLY thank you Problem 3. Consider the function f(x) ei cos(2x). (1) Sketch its graph over the interval [0, r] by the following commands: (2) Using h-001 to compute the difference quotient for x = π/6 in [0, π]. The commands are: And the difference quotient is: (3) Using h = 0.01 to approximate the second derivative by computing the difífquo for x = π/6 in [0, π]....

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT