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
Active Questions
  • Homework of Unit Three 1. Situational Writing Situation: Value Link Co.,Ltd.(Add.:27 Srinakarin street,Bangkok,Thailand, Zip:10250, Fax:66-02-330-9765), deals...
    asked 5 minutes ago
  • Rothamsted Experimental Station (England) has studied wheat production since 1852. Each year, many small plots of...
    asked 15 minutes ago
  • 51. Which of the following type of dementia is the most common among all dementias A.Parkinsons...
    asked 15 minutes ago
  • A mad physicist assembled an EM wave generator. He claims that the generator is able to...
    asked 19 minutes ago
  • Question # 3: Solve the following conversions: a. %01000101 = ? (Decimal) b. 24510 = %____________...
    asked 31 minutes ago
  • 5. The Scientist-Practitioner model A. Focuses on the objective assessment of data only B. Focuses on...
    asked 34 minutes ago
  • 7) A disk is initially spinning about its center at 18 rad/s counter-clockwise and a constant...
    asked 34 minutes ago
  • -Two restaurants, Epicurean Eats and Dino’s Diner, operate in the same neighborhood. Epicurean Eats is a...
    asked 42 minutes ago
  • 1.What is the discount rate assuming the present value of $840 at the end of 1-year...
    asked 1 hour ago
  • Suppose you come home to a small, hot apartment in a well-insulated building on a summer...
    asked 1 hour ago
  • The probability a car is serviced under warranty is known to be 44% and the probability...
    asked 1 hour ago
  • The undergraduate grade point averages​ (UGPA) of students taking an admissions test in a recent year...
    asked 2 hours ago