Numerical-Computation-As-2
Question 1.
(a) Use the Intermediate Value Theorem to find an interval of length one that contains a root of the equation:
We need to find an interval of length one,
(1) let
Therefore, the interval is
(2) let
Therefore, the interval is
(3) let
Therefore, the interval is
(b) By the Bisection Method, how many steps are needed to have an approximate root within of the true root using the interval you found in (a), and why?
The error Formula:
Since
3 steps are needed to guarantee that the approximate root is within
(c) Consider three equations. Apply two steps of the Bisection Method to find an approximate root.
(1) Equation:
Let
Step 1:
Therefore
Step 2:
Therefore $$a_2=2, b_2=2.25$$ $$x_a=\frac{2+2.25}{2}=2.125$$
(2) Equation:
Let
Step 1:
Step 2:
(3) Equation:
Let
Step 1:
Step 2:
Question 2.
Which of the following three Fixed-Point Iterations converge to the cube root of 4? Rank the ones that converge from fastest to slowest.
(A)
Fixed Point::
. Since , we have: . Convergence: We find the derivative
. . Now, we evaluate : . Since , iteration converges.
(B)
Fixed Point::
. Since , we can write as . . Yes, it has the correct fixed point. Convergence: We find the derivative
. . Now, we evaluate : . Since , iteration converges.
(C)
Fixed Point::
. Since , we can write as . . Yes, it has the correct fixed point. Convergence: We find the derivative
. . Now, we evaluate : .
Since
Question 3.
Apply two steps of Newton's Method with initial guess
let
The formula for Newton's Method is:
The initial guess
Step 1: Calculate
We start with
Apply the formula to find
Step 2: Calculate
Now we use
Apply the formula to find
After two steps of Newton's Method, the approximate root is
Question 4.
Considering the equation
Is the convergence linear or quadratic?
The formula for Newton's Method is
If
(simple root), convergence is quadratic, and . If
(multiple root), convergence is linear, and , where is the multiplicity of the root.
Case 1: Root
Check for Multiplicity: We evaluate
at the root . . Since , the root is a simple root (multiplicity 1). Determine Convergence Rate: Because it is a simple root, the convergence is quadratic.
Estimate the Error Relationship: We use the formula for quadratic convergence:
. We need to calculate : . Therefore, for the root
, the error relationship is:
Case 2: Root
Check for Multiplicity: We evaluate
at the root . . Since , this is a multiple root. We need to find its multiplicity. Let's check the next derivative: . Since but , the multiplicity of the root is m = 2 (a double root). Determine Convergence Rate: Because it is a multiple root, the convergence is linear.
Estimate the Error Relationship: We use the formula for linear convergence for a root of multiplicity
: . Therefore, for the root
, the error relationship is:
Question 5.
Apply two steps of the Secant Method on the interval with initial guesses
First, we define our function
The formula for the Secant Method is:
We are given the initial guesses
Step 1: Calculate
We start by calculating the function values at our initial guesses,
Calculate
: Calculate
: Apply the formula to find
:
Step 2: Calculate
Calculate
: Apply the formula to find
:
After two steps of the Secant Method, the approximate root is