Question: MATLAB CODE 2. (bisection method) Consider finding the root of f(x) = x6 X 1 on [1, 2]. (a) Show that the function has a

MATLAB CODE

MATLAB CODE 2. (bisection method) Consider finding the root of f(x) =

2. (bisection method) Consider finding the root of f(x) = x6 X 1 on [1, 2]. (a) Show that the function has a unique root & on [1, 2]. Implement the bisection method to get the approximate value of the root. (b) Find the approximation of with high precision. This can be done by either Newton's method or bisection method with lots of iterations. Then compute In = In(en+1) In(en) In(en) In(en-1)' (1) where en = |xn $| (to compute en in the code, use the accurate approximation of instead of the real in the expression). Prove that if that for some q> 1 (recall definition 1.7), lim en = 0, limony exists and equal to his no n+oo e then we mush have limntoorn = q, provided that we further assume u + 0 for q>1 and u (0,1) for q = 1. (The hint of proof is to consider - _ [In(en+1) q ln(en)] [In(en) q ln(en-1)] In(en) In(en-1) and show the limit is 0 for the case q > 1.) Due to this reason, people usually use rn as an indicator for the order of convergence in the experiments. Now plot r vs. n and uses this to show lim ent1 = u > 0 no en cannot be true for any q > 1. This roughly says that the bisection method is not converging with an order q> 1. (c) Plot In(en) vs. n. (Although it is not a straight line, the plot is still close to a line, which implies that we still approximately get en Cua for some u (0,1).) 2. (bisection method) Consider finding the root of f(x) = x6 X 1 on [1, 2]. (a) Show that the function has a unique root & on [1, 2]. Implement the bisection method to get the approximate value of the root. (b) Find the approximation of with high precision. This can be done by either Newton's method or bisection method with lots of iterations. Then compute In = In(en+1) In(en) In(en) In(en-1)' (1) where en = |xn $| (to compute en in the code, use the accurate approximation of instead of the real in the expression). Prove that if that for some q> 1 (recall definition 1.7), lim en = 0, limony exists and equal to his no n+oo e then we mush have limntoorn = q, provided that we further assume u + 0 for q>1 and u (0,1) for q = 1. (The hint of proof is to consider - _ [In(en+1) q ln(en)] [In(en) q ln(en-1)] In(en) In(en-1) and show the limit is 0 for the case q > 1.) Due to this reason, people usually use rn as an indicator for the order of convergence in the experiments. Now plot r vs. n and uses this to show lim ent1 = u > 0 no en cannot be true for any q > 1. This roughly says that the bisection method is not converging with an order q> 1. (c) Plot In(en) vs. n. (Although it is not a straight line, the plot is still close to a line, which implies that we still approximately get en Cua for some u (0,1).)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!