Professional Documents
Culture Documents
Newton Raphson v4
Newton Raphson v4
Prepared by:
Ahmed Mohamed Ahmed Hassan, Ahmed Samir Awed Ali , Saif Eldeen
Ashraf Mahmoud, Ahmed Adel Hassan Ahmed, and EmadEldein
Mohamed Elsayed Mostafa.
Applications:
- Newton Raphson method is used to analyze the flow of water distribution
networks in real life.
2. Formula:
3. Proof:
From graph:
Note: after calculating each Xn+1 calculate error to check if we will stop
4. Review literature:
- Newton Raphson is an open method.
- Newton Raphson use for non-linear equations.
- Evaluate f`(x)
- Calculate the next estimate of root.
- Repeat this until you reach the required number of iteration or reach the
permissible error rate.
5. Questions:
1- normal question
Problem Statement: By using the Newton-Raphson method to estimate the root
of f(x) = e-x - x, employing an initial guess of x0 =0.
Solution:
The first derivative of the function can be evaluated as
f `(x) = −e-x – 1
Substitute in Newton Raphson formula :
2- research question
Problem statement: You are working for ‘DOWN THE TOILET COMPANY’ that
makes floats for ABC commodes. The floating ball has a specific gravity
of 0.60.6 and has a radius of 5.5 cm5.5 cm. You are asked to find the depth to
which the ball is submerged when floating in the water.
by: x3 – 0.165x2+3.993*10-4=0
equations to find
a) the depth x to which the ball is submerged underwater. Conduct three iterations to estimate
the root of the above equation.
b) the absolute relative approximate error at the end of each iteration, and
c) the number of significant digits at least correct at the end of each iteration.
Solution:
3- Engineering Example
Solution:
6. Results:
As we see in the first question:
- We used x0 =0 “one initial point” and we calculated the first derivative for
the function
- and after each iteration we got a new value for x which is more near from
the root “f(x)=0”
- the root: -
8. conclusion:
We conclude that:
- Newton Raphson formula.
- Newton Raphson depend on the tangent of the function.
- Newton Raphson method has many advantages and applications.
9. MATLAB Source Code: Newton-Raphson Method:
% Input Section
y = input('Enter non-linear equations: ');
a = input('Enter initial guess: ');
e = input('Tolerable error: ');
N = input('Enter maximum number of steps: ');
% Initializing step counter
step = 1;
while abs(fa)> e
fa = eval(subs(y,x,a));
ga = eval(subs(g,x,a));
if ga == 0
disp('Division by zero.');
break;
end
b = a - fa/ga;
fprintf('step=%d\ta=%f\tf(a)=%f\n',step,a,fa);
a = b;
if step>N
disp('Not convergent');
break;
end
step = step + 1;
end
11. references:
Steven Chapra, Steven C. Chapra, Raymond Canale, Raymond P.
Canale-Numerical Methods for Engineers, 6th Edition -McGraw-Hill
Higher Education (2009)
https://www.geeksforgeeks.org/newton-raphson-method/
https://math.libretexts.org/Workbench/Numerical_Methods_with_Appli
cations_(Kaw)/3%3A_Nonlinear_Equations/3.04%3A_Newton-
Raphson_Method_for_Solving_a_Nonlinear_Equation
https://www.codesansar.com/numerical-methods/newton-raphson-
method-matlab-program-output.htm
HELM (2008): Section 12.3: The Newton-Raphson Method