Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

2. We will use Taylors theorem to derive the central difference approxi- mation. (a) (2 points) Using Taylor's theorem (Chapter 1 slides, slide 29/40), find

2. We will use Taylors theorem to derive the central difference approxi- mation.

image text in transcribed

(a) (2 points) Using Taylor's theorem (Chapter 1 slides, slide 29/40), find an approximation for f'(x0) using: f(xo + h) f(xo h) (1) 2h This is similar to example 1.2 in the text (AG), where the forward difference approximation is computed. Show that the discretization error satisfies () f(xo + h) f(xo h) h2 f'(xo) -f' (20) (2) 2h 6 for small h. You may treat matrix inversion as an elementary operation - you do not need to compute it yourself. (b) (2 points) Working off the given script for example 1.3 (page 8) of the text, write a MATLAB script using the above approximation. Show both round-off and discretization errors. Compare the forward difference from the text and the central difference that we just computed. You may plot both types of difference on the same figure for added clarity

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Modern Database Management

Authors: Jeff Hoffer, Ramesh Venkataraman, Heikki Topi

13th Edition Global Edition

1292263350, 978-1292263359

More Books

Students also viewed these Databases questions

Question

13-6 How will MIS help my career?

Answered: 1 week ago