Given the function ex on 01 How many intervals do we need to

Given the function e^x on [0,1]. How many intervals do we need to approximate e^x by piece-wise quadratic function with error of 10^(-5)?

Solution

The Quadratic Approximation for a function y = f(x) based at a point x0 is given by

Q(x) =f(x0) + f\'(x0) (x - x0) + 1/2 f\'\'(x0) (x - x0)2

and approximately equals f(x) for x near x0.

Notice that Q(x) = L(x) + 1/2 f\'\'(x0) (x - x0)2

where L(x) = f(x0) + f\'(x0) (x - x0)

is the linear approximation. See p. 212, Stewart 5th Edition, for a discussion of the Quadratic Approximations of functions of 1 variable.

The Quadratic Approximation for a function of two variables z = f(x,y) based at (x0, y0) is given by

Q(x,y) = f(x0, y0) + fx (x0, y0) (x - x0) + fy (x0, y0) (y - y0) +

1/2 { fxx (x0, y0) (x - x0)2 + 2 fxy (x0, y0) (x - x0) (y - y0) + fyy (x0, y0) (y - y0)2 }

= L(x,y) + 1/2 { fxx (x0, y0) (x - x0)2 + 2 fxy (x0, y0) (x - x0) (y - y0) + fyy (x0, y0) (y - y0)2 }

where L(x,y) is the linear approximation

Given the function e^x on [0,1]. How many intervals do we need to approximate e^x by piece-wise quadratic function with error of 10^(-5)?SolutionThe Quadratic A

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site