Numerical methods for the solution of Nonlinear equations Single Nonlinear Equations Fixed-Point Iteration. bisection method Newton– Raphson method Secant method System of Nonlinear Equations Newton Method
3- Newton–Raphson (tangents) method The Newton – Raphson formula can be derived from the Taylor series expansion of f (x) about x:
x f(x) x0x0 y0y0 x1x1 y1y1 x2x2 x3x3 Geometric interpretation The equation of the tangent to the curve y = f(x) at P(x (0), y (0) ) which is x*
4- Secant method The secant method can be regarded as a modification of the Newton method in the sense that the derivative is replaced by a difference approximation based on the successive estimates By this approximation, the iterative formula of becomes
We observe that the Secant method will take iterations more than required when using Newton-Raphson method.
Newton Method for a System of Nonlinear Equations Consider the system of two equations by taking the Taylor series expansion up to first-order about some estimate point (x 0,y 0 ) This can be arranged into a matrix–vector form as
we solve for (x, y) to get the updated vector estimate let, Jacobian matrix
For 2x2 system we prefer to apply Cramer ’ s rule.
Steps of Newton–Raphson method for simultaneous, nonlinear equations:
The Jacobian matrix is defined as From the plot we can get a rough estimate of the coordinates of an intersection point: (x 0,y 0 ) =(0.5, 1.5), which we use as the starting values.
the coordinates of the four intersection points are ±( , ) and ± ( , )
Matlab Functions fzero Find root of continuous function of one variable Syntax x = fzero(fun,x0) >> ans = Apply Bisection Method
fsolve Solve system of nonlinear equations Equation Solves a problem specified by F(x)=0 for x where x is a vector and F(x) is a function that returns a vector value. Syntax x = fsolve(fun,x0) >> Equation solved. fsolve completed because the vector of function values is near zero as measured by the default value of the function tolerance, and the problem appears regular as measured by the gradient. x = Apply Newton- Raphson Method
% For system of nonlinear equations >> Equation solved. fsolve completed because the vector of function values is near zero as measured by the default value of the function tolerance, and the problem appears regular as measured by the gradient. x =