Question

2. Let f(x) = sin(2x) and x0 = 0. (A) Calculate the Taylor approximation T3(x) (B)....

2. Let f(x) = sin(2x) and x0 = 0.
(A) Calculate the Taylor approximation T3(x)
(B). Use the Taylor theorem to show that
|sin(2x) − T3(x)| ≤ (2/3)(x − x0)^(4).
(C). Write a Matlab program to compute the errors for x = 1/2^(k) for k = 1, 2, 3, 4, 5, 6, and verify that
|sin(2x) − T3(x)| = O(|x − x0|^(4)).

Homework Answers

Answer #1


%%Matlab code for Taylor series T3(X)
clear all
close all
%function T3(x) around x0=0
T3= @(x) 2*x-(4/3)*x^3;
x0=0;
%loop for all x values and corresponding error for T3(x)
for k=1:6
    %all x values
    xx(k)=1/(2^k);
    %all error abs(sin(2*x)-T3(x))
    err_left(k)=abs(sin(2*xx(k))-T3(xx(k)));
    %all error abs(x-x0))^4
    err_rght(k)=(abs(xx(k)-x0))^4;
    %Printing the result
    str=sprintf('1/2^%d',k);
    fprintf('For k=%d and x=%s, error =abs(sin(2*x)-T3(x)) is %e and error= abs(x-x0))^4 is %e ',k,str,err_left(k),err_rght(k))

end

%%%%%%%%%%%%%%% End of Code %%%%%%%%%%%%%%%%%

Know the answer?
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
Similar Questions
Using the Taylor Remainder Theorem, what is the upper bound on | f (x) − T3(x)|,...
Using the Taylor Remainder Theorem, what is the upper bound on | f (x) − T3(x)|, for x ∈ [4, 10] if  f (x)  =  2 sin (x) and T3(x) is the Taylor polynomial centered on 7.
Calculus, Taylor series Consider the function f(x) = sin(x) x . 1. Compute limx→0 f(x) using...
Calculus, Taylor series Consider the function f(x) = sin(x) x . 1. Compute limx→0 f(x) using l’Hˆopital’s rule. 2. Use Taylor’s remainder theorem to get the same result: (a) Write down P1(x), the first-order Taylor polynomial for sin(x) centered at a = 0. (b) Write down an upper bound on the absolute value of the remainder R1(x) = sin(x) − P1(x), using your knowledge about the derivatives of sin(x). (c) Express f(x) as f(x) = P1(x) x + R1(x) x...
Find the 5th Taylor polynomial of f(x) = 1 + x + 2x^5 +sin(x^2)  based at b...
Find the 5th Taylor polynomial of f(x) = 1 + x + 2x^5 +sin(x^2)  based at b = 0.
Let f(x, y) = sin x √y. Find the Taylor polynomial of degree two of f(x,...
Let f(x, y) = sin x √y. Find the Taylor polynomial of degree two of f(x, y) at (x, y) = (0, 9). Give an reasonable approximation of sin (0.1)√ 9.1 from the Taylor polynomial of degree one of f(x, y) at (0, 9).
(1 point) Find the degree 3 Taylor polynomial T3(x) of function f(x)=(7x+67)^(5/4) at a=2 T3(x)=?
(1 point) Find the degree 3 Taylor polynomial T3(x) of function f(x)=(7x+67)^(5/4) at a=2 T3(x)=?
Let f(x)=sin(x)+x^3-2. Use the secant method to find a root of f(x) using initial guesses x0=1...
Let f(x)=sin(x)+x^3-2. Use the secant method to find a root of f(x) using initial guesses x0=1 and x1=4. Continue until two consecutive x values agree in the first 2 decimal places.
Find the degree 3 Taylor polynomial T3(x) of function f(x)=(7x−5)^3/2 at a=2. T3(x)=
Find the degree 3 Taylor polynomial T3(x) of function f(x)=(7x−5)^3/2 at a=2. T3(x)=
let f(x)=ln(1+2x) a. find the taylor series expansion of f(x) with center at x=0 b. determine...
let f(x)=ln(1+2x) a. find the taylor series expansion of f(x) with center at x=0 b. determine the radius of convergence of this power series c. discuss if it is appropriate to use power series representation of f(x) to predict the valuesof f(x) at x= 0.1, 0.9, 1.5. justify your answe
Known f (x) = sin (2x) a. Find the Taylor series expansion around x = pi...
Known f (x) = sin (2x) a. Find the Taylor series expansion around x = pi / 2, up to 5 terms only. b. Determine Maclaurin's series expansion, up to 4 terms only
Let f(x) = 2/ x and a = 1. (a) Find the third order Taylor polynomial,...
Let f(x) = 2/ x and a = 1. (a) Find the third order Taylor polynomial, T3(x), that approximates f near a. (b) Estimate the largest that |f(x)−T3(x)| can be on the interval [0.5,1.5] by using Taylor’s inequality for the remainder.
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT