Mada za sehemu hiiNumerical MethodMada 4
- Errors
- Roots By Iterative Methods
- Numerical Integration
- Simpson's Rule
A root of a function is a value of for which . Solving an equation means finding all its roots. While linear and quadratic equations have direct solutions, higher-degree equations and other functions often require iterative numerical approximations.
An iterative method uses an initial guess to generate a sequence of improved approximations that converge to the exact solution.
The Newton-Raphson method is a powerful numerical technique for finding roots based on linear approximation. It uses an initial guess to approximate the solution of .
Derivation
Let be the exact root () and be an initial estimate. The Newton-Raphson formula for a new estimate is derived by constructing the tangent to at the point .
The slope of the tangent line at is given by the derivative . From the geometry of the tangent line, we also have:
Rearranging this equation to solve for :
Repeating this process using as the new initial approximation gives:
In general, the Newton-Raphson formula is:
This formula iteratively improves the estimate until converges to the exact root .
The Newton-Raphson method generally assumes that there is an interval where and have opposite signs (), indicating a root exists within the interval.
Example 1
Use the Newton-Raphson method to perform three iterations to approximate the root of in the interval , starting with , correct to three decimal places.
Solution:
Check for root in the interval:
Since , a root exists in .
Newton-Raphson formula:
Iteration 1:
Iteration 2:
Iteration 3:
Thus, (correct to three decimal places).
Example 2
If , show that the Newton-Raphson method leads to the recurrence formula .
Solution:
Using the quotient rule:
Newton-Raphson formula:
Example 3
Use the Newton-Raphson method to estimate the real root of . Perform two iterations, starting with , correct to three decimal places.
Solution:
Iteration 1:
Iteration 2:
or to 3 d.p.
Example 4
Starting with , find the solution of in the interval using the Newton-Raphson method, correct to six decimal places.
Solution:
Newton-Raphson formula:
Iteration 1:
Iteration 2:
Iteration 3:
Iteration 4:
The solution is approximately .
The Newton-Raphson formula can be used to estimate the th root and reciprocal of a number.
The th root of a positive number
Let , which implies or . We can define a function .
The general form is (8.2)
Differentiating (8.2) gives (8.3)
Substituting (8.2) and (8.3) into the Newton-Raphson formula :
Therefore, the th root of a positive number is given by:
Example 1: Square root of 8
Show that the iterative formula can be used to approximate the square root of . Then, perform 3 iterations starting with to approximate .
Solution:
For the square root, . Substituting into the general formula:
Now, with and :
Iteration 1:
Iteration 2:
Iteration 3:
Therefore, .
Example 2: Cube root of 10
Use the Newton-Raphson method to find the cube root of 10 starting with by performing 4 iterations.
Solution:
Iteration 1:
Iteration 2: or
Iteration 3:
Iteration 4: or
Therefore, .
Example 3: 5th root of 99
Use the Newton-Raphson method to find the 5th root of 99 starting with by performing 5 iterations.
Solution:
Iteration 1:
Iteration 2: or
Iteration 3: or
Iteration 4: or
Iteration 5: or
Therefore, .
Finding the reciprocal of a number using the Newton-Raphson formula
If is a non-zero number, its reciprocal is . If is an approximation of the reciprocal, then , or , which can be written as .
The general formula is (8.4)
Differentiating (8.4) with respect to :
Substituting (8.4) and (8.5) into the Newton-Raphson formula :
This derivation is incorrect and does not give an iterative formula.
The correct derivation is as follows. We want to find the reciprocal of , so we consider the function . Then . Applying the Newton-Raphson method:
Thus, the correct iterative formula is:
Example 1: Reciprocal of 2.5
Use the Newton-Raphson method to find the reciprocal of 2.5 starting with by performing 3 iterations.
Solution:
,
Formula:
Iteration 1:
Iteration 2:
Iteration 3: or
The approximate reciprocal of 2.5 is .
Example 2: Reciprocal of
Use the Newton-Raphson method to find the reciprocal of by performing five iterations using as an initial guess.
Solution:
,
Formula:
Iteration 1:
This is incorrect, the initial guess is too far from the actual reciprocal which is . We will use an initial guess of .
Using :
Iteration 1: or
Iteration 2: or
Iteration 3: or
Iteration 4: or
Iteration 5: or
The reciprocal of is .
The secant method is similar to the Newton-Raphson method but uses two initial values and approximates the derivative using a finite difference (the slope of the secant line). The root is approximated using the secant line through two points.
The slope of the secant line through points and approximates the derivative at :
Substituting (8.6) into the Newton-Raphson formula gives the secant formula:
for
Example 1
Using the secant formula with and , find the root of the function to four decimal places by performing 3 iterations.
Solution:
Iteration 1 ():
Iteration 2 ():
Iteration 3 ():
The root is approximately .
Example 2
Use the secant method to estimate the root of . Perform 3 iterations with initial estimates of and . In each iteration, find the percentage relative error if the true root is .
Solution:
Iteration 1 ():
Percentage relative error:
Iteration 2 ():
Percentage relative error:
Iteration 3 ():
Percentage relative error:
Example 3
Use the secant formula in four iterations to obtain an approximation of the root of the equation if it lies between and .
Iteration 1:
Iteration 2:
Iteration 3:
Iteration 4:
Mwalimu
Unasoma somo hili? Niulize nikuelezee chochote kilichomo.
Ingia ili kumuuliza Mwalimu wa AI wa Sonza kuhusu mada hii.
Ingia ili kuuliza