SlideShare ist ein Scribd-Unternehmen logo
1 von 4
Downloaden Sie, um offline zu lesen
Lecture – 9
                              TARUN GEHLOT
                          Solution of Nonlinear Equations

In this chapter we will discuss the problem of identifying the roots of the equations and
system of equations. The basic formulation of the problem in the simplest case is this:

Given a function f(x), we seek value x for which f(x) = 0. Solution x is called a root of
equation, or zero of function f. Thus, the problem is known as root or zero finding.

We will be dealing with following two important cases:
  1. Single nonlinear equation in one unknown, f : ℜ → ℜ , which has scalar x as
      solution such that f(x) = 0.
  2. System of n coupled nonlinear equations in n unknowns, f : ℜn → ℜn , which
      has vector x as solution for which all components of f are zero simultaneously.

Examples: (a) Nonlinear equation in one dimension:
                       x 2 − 4 sin( x ) = 0 ,
for which x = 1.9 is one approximate solution.

(b) System of nonlinear equations in two dimensions:
                      x12 − x2 + 0.25 = 0
                        − x12 + x2 + 0.25 = 0
                                 2


for which x = [0.5      0.5]T is solution vector.

Existence and Uniqueness of Solutions

It is often difficult to determine the existence or number solutions to nonlinear equations.
Whereas for system of linear equations the number of solutions must be either zero, one
or infinitely many, nonlinear equations can have any number of solutions. Thus,
determining existence and uniqueness of solutions is more complicated for nonlinear
equations than for linear equations.

Although it is difficult to make any assertion about solution of nonlinear equations, there
are nevertheless some useful local criteria that guarantee existence of a solution. The
simplest for these is for one-dimensional problems, for which the Intermediate Value
theorem provides a sufficient condition for a solution, which says that if f is continuous
on a closed interval [a,b], and c lies between f(a) and f(b), then there is a value
 x* ∈ [a , b] such that f(x*) = c. Thus, if f(a) and f(b) differ in sign, then by taking c = 0 in
the theorem we cann conclude that there must be a root with in the interval [a,b]. Such an
interval [a,b] for which the sign of f differs at its endpoints is called a bracket for a
solution of the one-dimensional nonlinear equation f(x) = 0.

Note: There is no simple analog for n dimensions.
The nonlinear equations can have any number of solutions. It can have a simple as well
as multiple roots.

Multiple Root

Nonlinear equation may have multiple root, where both function and derivatives are zero,
i.e. f(x) = 0 and f”(x) = 0. Geometrically this property means that the curve defined by f
has a horizontal tangent on the x-axis. More generally for a smooth function f if
 f ( x*) = f ′( x*) = f ′′( x*) = K = f ( m −1) ( x*) = 0 , then x* is a multiple root of
multiplicity m. If m =1 then x* is called a simple root.

Sensitivity and Conditioning

The sensitivity of the root-finding problem for a given function is opposite to that for
evaluating the function: if the function value is insensitive to the value of the argument
then root will be sensitive. This property makes sense if f(x) = y, finding x given y has
opposite conditioning from finding y given x.

Absolute condition number of root finding problem for root x* of f : ℜ → ℜ is
1 / f ′( x*) . This implies that the root is ill conditioned if tangent line is nearly horizontal.
In particular condition number for multiple root is infinite. Absolute condition number of
root finding problem for root x* of f : ℜn → ℜn is J −1 ( x ) , where Jf is a Jacobian
                                                                  f

matrix of f. If Jacobian matrix is nearly singular, root is ill conditioned.

                                               ˆ                       ˆ
What do we mean by approximate solution x to nonlinear system? x is an approximate
solution if either f ( x ) ≈ 0 or x − x * ≈ 0 . f ( x ) ≈ 0 corresponds to “small residual.”
                       ˆ          ˆ                 ˆ
 x − x * ≈ 0 measures closeness to (usually unknown) true solution x*. A solution
 ˆ
criterion is not necessarily “small” simultaneously. Small residual implies accurate
solution only if problem is well-conditioned.

Convergence Rate and Stopping Criteria

Unlike linear equations, most nonlinear equations can not be solved in finite number of
steps. Iterative methods are being used to solve nonlinear equations. The total cost of
solving problem depends on both the cost per iterations and the number of iterations
required. There is often a trade off between these two factors. To compare the
effectiveness of iterative methods, we need to characterize their convergence rate.

An iterative method is said to be of order ‘r’ or has the rate of convergence ‘r’, if ‘r’ is the
largest positive real number for which there exists a finite constant C ≠ 0 such that

ε k +1 ≤ C ε k , where ε k = x k − x * is the error in the kth iteration. C is the asymptotic
             r


error constant usually depends on the derivatives of f(x) at x = x*. x* is the true solution.
For methods that maintain interval known to contain solution (e.g. Bisection method),
rather than specific approximate value for solution, take error to be length on interval
containing solution.

Some particular cases of interest:
                     Convergence Rate                 Digits gained per iteration
R=1                  Linear (C<1)                     Constant
R>1                  Superlinear                      Increasing
R=2                  Quadratic                        Double

One way to interpret the distinction between linear and superlinear is that, asymptotically
a linear convergent sequence gains a constant number of additional correct digits per
iteration, whereas a super linearly convergent sequence gains as increasing number of
additional correct digits with each iterations. For example, a quadratically convergent
method doubles the number of correct digits with each iteration.

A convergence theorem may tell us that an iterative scheme will converge for a given
problem, and how rapidly it will do so, but that does not specifically address the issue of
when to stop iterating and declare the resulting approximate solution to be good enough.
Devising a suitable stopping criterion is a complex and subtle issue for number of
reasons. We may know in principle that the error ε k is becoming small, but since we do
not know the true solution, we have no way of knowing ε k directly. The reasonable
surrogate is the relative change in successive iterates x k +1 − x k / x k . If this is small
enough, we stop. To ensure that the problem has actually been solved, one may also want
to verify that the residual f ( x k ) is suitably small. x k +1 − x k / x k and f ( x k ) are
not necessarily small simultaneously. They depend on the condition of the problem. In
addition, all of these criteria are affected by the relative scaling of the components of both
the argument x and the function f, and possibly other problem dependent features as well.
For all these reasons, a full proof-stopping criterion can be difficult to achieve and
complicated to state.

Bisection algorithm

In finite precision arithmetic, there may be no machine number x* such that f(x*) is
exactly zero. An alternative is to seek a very short interval [a, b] in which f has change in
sign. The intermediate value theorem of calculus makes sure that bracket has a value for
function goes to zero.

The bisection method makes use of Intermediate Value Theorem. It begins with an initial
bracket and successively reduces its length until the solution has been isolated as
accurately as desired (or the arithmetic precision will permit). At each iteration, the
function is evaluated at the midpoint of the current interval, and half of the interval can
be discarded, depending on the sign of the function at the mid point.
Algorithm:

while ((b-a) > tol) do
      m = a + (b –a) / 2
      if sign(f(a)) = sign(f(m)) then
            a=m
      else                                                   a     m           b
            b=m
      end
end

Implementation issues:

Note a couple of points in the above algorithm that are designed to avoid the pitfalls
when it is implemented in finite-precision, floating-point arithmetic. First, perhaps the
most obvious formula for computing the midpoint m of the interval [a, b] is m = (a+b)/2.
However, with this formula the result in finite-precision arithmetic is not even guaranteed
o fall within the interval [a, b] (in two-digit, decimal arithmetic, for example, this formula
gives a “midpoint” 0.7 for the interval [0.67, 0.69]. Moreover, the intermediate quantity
a+b could overflow in extreme case, even though the mid point is well defined and
should be computable. A better alternative is the formula m = a + (b –a)/2, which cannot
overflow and is guaranteed to fall within the interval [a, b], provided and b have the same
sign (as will normally the case unless the root happens to be near zero). Second, testing
whether two function values f(x1) and f(x2) agree in sign mathematically equivalent to
testing whether the product f(x1) . f(x2) is positive or negative. In floating point
arithmetic, however such implementation is risky because the product could easily
underflow when function values are small, which they will be as we approach the root. A
safer alternative is to use the sign function explicitly, where sign(x) = 1 if x ≥ 0 and
sign(x) = -1 if x < 0.

Convergence Analysis

The bisection method makes no use of the magnitude of the function values, only their
signs. As a result, bisection is certain to converge but does so rather slowly. Specifically,
at each successive iteration the length of the interval containing the solution, and hence a
bound on the possible error, is reduced by half. This means that the bisection method is
linearly convergent, with r = 1 and C = 0.5.

If the permissible error is ε , the approximate number of iterations required may be
determined from the relation

                         b−a                        log(b − a ) − log ε
                             ≤ε     or         n≥
                          2n                              log 2

Cost of the method: It requires one function value evaluation per iteration.

Weitere ähnliche Inhalte

Was ist angesagt?

Limit of Function And Its Types
Limit of Function And Its TypesLimit of Function And Its Types
Limit of Function And Its TypesAdeel Rasheed
 
Reading Birnbaum's (1962) paper, by Li Chenlu
Reading Birnbaum's (1962) paper, by Li ChenluReading Birnbaum's (1962) paper, by Li Chenlu
Reading Birnbaum's (1962) paper, by Li ChenluChristian Robert
 
R exam (B) given in Paris-Dauphine, Licence Mido, Jan. 11, 2013
R exam (B) given in Paris-Dauphine, Licence Mido, Jan. 11, 2013R exam (B) given in Paris-Dauphine, Licence Mido, Jan. 11, 2013
R exam (B) given in Paris-Dauphine, Licence Mido, Jan. 11, 2013Christian Robert
 
Roots of equations
Roots of equationsRoots of equations
Roots of equationsRobinson
 
Applications of numerical methods
Applications of numerical methodsApplications of numerical methods
Applications of numerical methodsTarun Gehlot
 
Algebra 2 Section 2-1
Algebra 2 Section 2-1Algebra 2 Section 2-1
Algebra 2 Section 2-1Jimbo Lamb
 
Prime numbers boundary
Prime numbers boundary Prime numbers boundary
Prime numbers boundary Camilo Ulloa
 
Quantitive Techniques: Bisection method
Quantitive Techniques: Bisection methodQuantitive Techniques: Bisection method
Quantitive Techniques: Bisection methodArti Parab Academics
 
Numerical Method Analysis: Algebraic and Transcendental Equations (Non-Linear)
Numerical Method Analysis: Algebraic and Transcendental Equations (Non-Linear)Numerical Method Analysis: Algebraic and Transcendental Equations (Non-Linear)
Numerical Method Analysis: Algebraic and Transcendental Equations (Non-Linear)Minhas Kamal
 
Elementary differential equation
Elementary differential equationElementary differential equation
Elementary differential equationAngeli Castillo
 
Lesson 3: The Limit of a Function (slides)
Lesson 3: The Limit of a Function (slides)Lesson 3: The Limit of a Function (slides)
Lesson 3: The Limit of a Function (slides)Matthew Leingang
 
Maths iii quick review by Dr Asish K Mukhopadhyay
Maths iii quick review by Dr Asish K MukhopadhyayMaths iii quick review by Dr Asish K Mukhopadhyay
Maths iii quick review by Dr Asish K MukhopadhyayDr. Asish K Mukhopadhyay
 

Was ist angesagt? (19)

Limit
LimitLimit
Limit
 
Limit of Function And Its Types
Limit of Function And Its TypesLimit of Function And Its Types
Limit of Function And Its Types
 
Reading Birnbaum's (1962) paper, by Li Chenlu
Reading Birnbaum's (1962) paper, by Li ChenluReading Birnbaum's (1962) paper, by Li Chenlu
Reading Birnbaum's (1962) paper, by Li Chenlu
 
Fourier series (MT-221)
Fourier series (MT-221)Fourier series (MT-221)
Fourier series (MT-221)
 
OPERATIONS RESEARCH
OPERATIONS RESEARCHOPERATIONS RESEARCH
OPERATIONS RESEARCH
 
R exam (B) given in Paris-Dauphine, Licence Mido, Jan. 11, 2013
R exam (B) given in Paris-Dauphine, Licence Mido, Jan. 11, 2013R exam (B) given in Paris-Dauphine, Licence Mido, Jan. 11, 2013
R exam (B) given in Paris-Dauphine, Licence Mido, Jan. 11, 2013
 
Roots of equations
Roots of equationsRoots of equations
Roots of equations
 
Applications of numerical methods
Applications of numerical methodsApplications of numerical methods
Applications of numerical methods
 
Lecture 2
Lecture 2Lecture 2
Lecture 2
 
Algebra 2 Section 2-1
Algebra 2 Section 2-1Algebra 2 Section 2-1
Algebra 2 Section 2-1
 
Prime numbers boundary
Prime numbers boundary Prime numbers boundary
Prime numbers boundary
 
Mathematics
MathematicsMathematics
Mathematics
 
Quantitive Techniques: Bisection method
Quantitive Techniques: Bisection methodQuantitive Techniques: Bisection method
Quantitive Techniques: Bisection method
 
Lar calc10 ch03_sec3
Lar calc10 ch03_sec3Lar calc10 ch03_sec3
Lar calc10 ch03_sec3
 
Numerical Method Analysis: Algebraic and Transcendental Equations (Non-Linear)
Numerical Method Analysis: Algebraic and Transcendental Equations (Non-Linear)Numerical Method Analysis: Algebraic and Transcendental Equations (Non-Linear)
Numerical Method Analysis: Algebraic and Transcendental Equations (Non-Linear)
 
Unit 2.7
Unit 2.7Unit 2.7
Unit 2.7
 
Elementary differential equation
Elementary differential equationElementary differential equation
Elementary differential equation
 
Lesson 3: The Limit of a Function (slides)
Lesson 3: The Limit of a Function (slides)Lesson 3: The Limit of a Function (slides)
Lesson 3: The Limit of a Function (slides)
 
Maths iii quick review by Dr Asish K Mukhopadhyay
Maths iii quick review by Dr Asish K MukhopadhyayMaths iii quick review by Dr Asish K Mukhopadhyay
Maths iii quick review by Dr Asish K Mukhopadhyay
 

Andere mochten auch

How to draw a good graph
How to draw a good graphHow to draw a good graph
How to draw a good graphTarun Gehlot
 
Graphs of trigonometric functions
Graphs of trigonometric functionsGraphs of trigonometric functions
Graphs of trigonometric functionsTarun Gehlot
 
Real meaning of functions
Real meaning of functionsReal meaning of functions
Real meaning of functionsTarun Gehlot
 
Modelling with first order differential equations
Modelling with first order differential equationsModelling with first order differential equations
Modelling with first order differential equationsTarun Gehlot
 
Linear approximations
Linear approximationsLinear approximations
Linear approximationsTarun Gehlot
 
Describing and exploring data
Describing and exploring dataDescribing and exploring data
Describing and exploring dataTarun Gehlot
 
An applied approach to calculas
An applied approach to calculasAn applied approach to calculas
An applied approach to calculasTarun Gehlot
 
Recurrence equations
Recurrence equationsRecurrence equations
Recurrence equationsTarun Gehlot
 
Intervals of validity
Intervals of validityIntervals of validity
Intervals of validityTarun Gehlot
 
Probability and statistics as helpers in real life
Probability and statistics as helpers in real lifeProbability and statistics as helpers in real life
Probability and statistics as helpers in real lifeTarun Gehlot
 
C4 discontinuities
C4 discontinuitiesC4 discontinuities
C4 discontinuitiesTarun Gehlot
 
The shortest distance between skew lines
The shortest distance between skew linesThe shortest distance between skew lines
The shortest distance between skew linesTarun Gehlot
 
The newton raphson method
The newton raphson methodThe newton raphson method
The newton raphson methodTarun Gehlot
 
Review taylor series
Review taylor seriesReview taylor series
Review taylor seriesTarun Gehlot
 
Linear programming
Linear programmingLinear programming
Linear programmingTarun Gehlot
 
Limitations of linear programming
Limitations of linear programmingLimitations of linear programming
Limitations of linear programmingTarun Gehlot
 

Andere mochten auch (20)

How to draw a good graph
How to draw a good graphHow to draw a good graph
How to draw a good graph
 
Critical points
Critical pointsCritical points
Critical points
 
Graphs of trigonometric functions
Graphs of trigonometric functionsGraphs of trigonometric functions
Graphs of trigonometric functions
 
Real meaning of functions
Real meaning of functionsReal meaning of functions
Real meaning of functions
 
Logicgates
LogicgatesLogicgates
Logicgates
 
Modelling with first order differential equations
Modelling with first order differential equationsModelling with first order differential equations
Modelling with first order differential equations
 
Linear approximations
Linear approximationsLinear approximations
Linear approximations
 
Describing and exploring data
Describing and exploring dataDescribing and exploring data
Describing and exploring data
 
An applied approach to calculas
An applied approach to calculasAn applied approach to calculas
An applied approach to calculas
 
Recurrence equations
Recurrence equationsRecurrence equations
Recurrence equations
 
Intervals of validity
Intervals of validityIntervals of validity
Intervals of validity
 
Probability and statistics as helpers in real life
Probability and statistics as helpers in real lifeProbability and statistics as helpers in real life
Probability and statistics as helpers in real life
 
Matrix algebra
Matrix algebraMatrix algebra
Matrix algebra
 
C4 discontinuities
C4 discontinuitiesC4 discontinuities
C4 discontinuities
 
The shortest distance between skew lines
The shortest distance between skew linesThe shortest distance between skew lines
The shortest distance between skew lines
 
Thermo dynamics
Thermo dynamicsThermo dynamics
Thermo dynamics
 
The newton raphson method
The newton raphson methodThe newton raphson method
The newton raphson method
 
Review taylor series
Review taylor seriesReview taylor series
Review taylor series
 
Linear programming
Linear programmingLinear programming
Linear programming
 
Limitations of linear programming
Limitations of linear programmingLimitations of linear programming
Limitations of linear programming
 

Ähnlich wie Solution of nonlinear_equations

Adv. Num. Tech. 1 Roots of function.pdf
Adv. Num. Tech. 1 Roots of function.pdfAdv. Num. Tech. 1 Roots of function.pdf
Adv. Num. Tech. 1 Roots of function.pdfchhatrapalnetam
 
Single Variable Calculus Assignment Help
Single Variable Calculus Assignment HelpSingle Variable Calculus Assignment Help
Single Variable Calculus Assignment HelpMath Homework Solver
 
MVT mean value theorem نظرية القيمة المتوسطة
MVT mean value theorem نظرية القيمة المتوسطةMVT mean value theorem نظرية القيمة المتوسطة
MVT mean value theorem نظرية القيمة المتوسطةDr. Karrar Alwash
 
Single Variable Calculus Assignment Help
Single Variable Calculus Assignment HelpSingle Variable Calculus Assignment Help
Single Variable Calculus Assignment HelpMaths Assignment Help
 
Single Variable Calculus Assignment Help
Single Variable Calculus Assignment HelpSingle Variable Calculus Assignment Help
Single Variable Calculus Assignment HelpMaths Assignment Help
 
Project in Calcu
Project in CalcuProject in Calcu
Project in Calcupatrickpaz
 
lassomodel, sparsity, multivariate modeling, NIR spectroscopy, biodiesel from...
lassomodel, sparsity, multivariate modeling, NIR spectroscopy, biodiesel from...lassomodel, sparsity, multivariate modeling, NIR spectroscopy, biodiesel from...
lassomodel, sparsity, multivariate modeling, NIR spectroscopy, biodiesel from...mathsjournal
 
Limits and continuity powerpoint
Limits and continuity powerpointLimits and continuity powerpoint
Limits and continuity powerpointcanalculus
 
Fractional Newton-Raphson Method and Some Variants for the Solution of Nonlin...
Fractional Newton-Raphson Method and Some Variants for the Solution of Nonlin...Fractional Newton-Raphson Method and Some Variants for the Solution of Nonlin...
Fractional Newton-Raphson Method and Some Variants for the Solution of Nonlin...mathsjournal
 
Mean Value Theorem explained with examples.pptx
Mean Value Theorem explained with examples.pptxMean Value Theorem explained with examples.pptx
Mean Value Theorem explained with examples.pptxvandijkvvd4
 
Numerical
NumericalNumerical
Numerical1821986
 
Numerical_PDE_Paper
Numerical_PDE_PaperNumerical_PDE_Paper
Numerical_PDE_PaperWilliam Ruys
 
Nature-Inspired Metaheuristic Algorithms for Optimization and Computational I...
Nature-Inspired Metaheuristic Algorithms for Optimization and Computational I...Nature-Inspired Metaheuristic Algorithms for Optimization and Computational I...
Nature-Inspired Metaheuristic Algorithms for Optimization and Computational I...Xin-She Yang
 
MetiTarski: An Automatic Prover for Real-Valued Special Functions
MetiTarski: An Automatic Prover for Real-Valued Special FunctionsMetiTarski: An Automatic Prover for Real-Valued Special Functions
MetiTarski: An Automatic Prover for Real-Valued Special FunctionsLawrence Paulson
 

Ähnlich wie Solution of nonlinear_equations (20)

Adv. Num. Tech. 1 Roots of function.pdf
Adv. Num. Tech. 1 Roots of function.pdfAdv. Num. Tech. 1 Roots of function.pdf
Adv. Num. Tech. 1 Roots of function.pdf
 
Single Variable Calculus Assignment Help
Single Variable Calculus Assignment HelpSingle Variable Calculus Assignment Help
Single Variable Calculus Assignment Help
 
Derivative rules.docx
Derivative rules.docxDerivative rules.docx
Derivative rules.docx
 
App8
App8App8
App8
 
MVT mean value theorem نظرية القيمة المتوسطة
MVT mean value theorem نظرية القيمة المتوسطةMVT mean value theorem نظرية القيمة المتوسطة
MVT mean value theorem نظرية القيمة المتوسطة
 
Single Variable Calculus Assignment Help
Single Variable Calculus Assignment HelpSingle Variable Calculus Assignment Help
Single Variable Calculus Assignment Help
 
Single Variable Calculus Assignment Help
Single Variable Calculus Assignment HelpSingle Variable Calculus Assignment Help
Single Variable Calculus Assignment Help
 
Bisection method
Bisection methodBisection method
Bisection method
 
Quadrature
QuadratureQuadrature
Quadrature
 
Project in Calcu
Project in CalcuProject in Calcu
Project in Calcu
 
lassomodel, sparsity, multivariate modeling, NIR spectroscopy, biodiesel from...
lassomodel, sparsity, multivariate modeling, NIR spectroscopy, biodiesel from...lassomodel, sparsity, multivariate modeling, NIR spectroscopy, biodiesel from...
lassomodel, sparsity, multivariate modeling, NIR spectroscopy, biodiesel from...
 
Quadratic equation
Quadratic equationQuadratic equation
Quadratic equation
 
Limits and continuity powerpoint
Limits and continuity powerpointLimits and continuity powerpoint
Limits and continuity powerpoint
 
Fractional Newton-Raphson Method and Some Variants for the Solution of Nonlin...
Fractional Newton-Raphson Method and Some Variants for the Solution of Nonlin...Fractional Newton-Raphson Method and Some Variants for the Solution of Nonlin...
Fractional Newton-Raphson Method and Some Variants for the Solution of Nonlin...
 
Mean Value Theorem explained with examples.pptx
Mean Value Theorem explained with examples.pptxMean Value Theorem explained with examples.pptx
Mean Value Theorem explained with examples.pptx
 
Numerical
NumericalNumerical
Numerical
 
Numerical_PDE_Paper
Numerical_PDE_PaperNumerical_PDE_Paper
Numerical_PDE_Paper
 
Nature-Inspired Metaheuristic Algorithms for Optimization and Computational I...
Nature-Inspired Metaheuristic Algorithms for Optimization and Computational I...Nature-Inspired Metaheuristic Algorithms for Optimization and Computational I...
Nature-Inspired Metaheuristic Algorithms for Optimization and Computational I...
 
MetiTarski: An Automatic Prover for Real-Valued Special Functions
MetiTarski: An Automatic Prover for Real-Valued Special FunctionsMetiTarski: An Automatic Prover for Real-Valued Special Functions
MetiTarski: An Automatic Prover for Real-Valued Special Functions
 
unit_02.pptx
unit_02.pptxunit_02.pptx
unit_02.pptx
 

Mehr von Tarun Gehlot

Materials 11-01228
Materials 11-01228Materials 11-01228
Materials 11-01228Tarun Gehlot
 
Continuity and end_behavior
Continuity and  end_behaviorContinuity and  end_behavior
Continuity and end_behaviorTarun Gehlot
 
Continuity of functions by graph (exercises with detailed solutions)
Continuity of functions by graph   (exercises with detailed solutions)Continuity of functions by graph   (exercises with detailed solutions)
Continuity of functions by graph (exercises with detailed solutions)Tarun Gehlot
 
Factoring by the trial and-error method
Factoring by the trial and-error methodFactoring by the trial and-error method
Factoring by the trial and-error methodTarun Gehlot
 
Introduction to finite element analysis
Introduction to finite element analysisIntroduction to finite element analysis
Introduction to finite element analysisTarun Gehlot
 
Finite elements : basis functions
Finite elements : basis functionsFinite elements : basis functions
Finite elements : basis functionsTarun Gehlot
 
Finite elements for 2‐d problems
Finite elements  for 2‐d problemsFinite elements  for 2‐d problems
Finite elements for 2‐d problemsTarun Gehlot
 
Error analysis statistics
Error analysis   statisticsError analysis   statistics
Error analysis statisticsTarun Gehlot
 
Introduction to matlab
Introduction to matlabIntroduction to matlab
Introduction to matlabTarun Gehlot
 
Linear approximations and_differentials
Linear approximations and_differentialsLinear approximations and_differentials
Linear approximations and_differentialsTarun Gehlot
 
Local linear approximation
Local linear approximationLocal linear approximation
Local linear approximationTarun Gehlot
 
Interpolation functions
Interpolation functionsInterpolation functions
Interpolation functionsTarun Gehlot
 
Propeties of-triangles
Propeties of-trianglesPropeties of-triangles
Propeties of-trianglesTarun Gehlot
 
Gaussian quadratures
Gaussian quadraturesGaussian quadratures
Gaussian quadraturesTarun Gehlot
 
Basics of set theory
Basics of set theoryBasics of set theory
Basics of set theoryTarun Gehlot
 
Numerical integration
Numerical integrationNumerical integration
Numerical integrationTarun Gehlot
 
Applications of set theory
Applications of  set theoryApplications of  set theory
Applications of set theoryTarun Gehlot
 
Miscellneous functions
Miscellneous  functionsMiscellneous  functions
Miscellneous functionsTarun Gehlot
 

Mehr von Tarun Gehlot (20)

Materials 11-01228
Materials 11-01228Materials 11-01228
Materials 11-01228
 
Binary relations
Binary relationsBinary relations
Binary relations
 
Continuity and end_behavior
Continuity and  end_behaviorContinuity and  end_behavior
Continuity and end_behavior
 
Continuity of functions by graph (exercises with detailed solutions)
Continuity of functions by graph   (exercises with detailed solutions)Continuity of functions by graph   (exercises with detailed solutions)
Continuity of functions by graph (exercises with detailed solutions)
 
Factoring by the trial and-error method
Factoring by the trial and-error methodFactoring by the trial and-error method
Factoring by the trial and-error method
 
Introduction to finite element analysis
Introduction to finite element analysisIntroduction to finite element analysis
Introduction to finite element analysis
 
Finite elements : basis functions
Finite elements : basis functionsFinite elements : basis functions
Finite elements : basis functions
 
Finite elements for 2‐d problems
Finite elements  for 2‐d problemsFinite elements  for 2‐d problems
Finite elements for 2‐d problems
 
Error analysis statistics
Error analysis   statisticsError analysis   statistics
Error analysis statistics
 
Matlab commands
Matlab commandsMatlab commands
Matlab commands
 
Introduction to matlab
Introduction to matlabIntroduction to matlab
Introduction to matlab
 
Linear approximations and_differentials
Linear approximations and_differentialsLinear approximations and_differentials
Linear approximations and_differentials
 
Local linear approximation
Local linear approximationLocal linear approximation
Local linear approximation
 
Interpolation functions
Interpolation functionsInterpolation functions
Interpolation functions
 
Propeties of-triangles
Propeties of-trianglesPropeties of-triangles
Propeties of-triangles
 
Gaussian quadratures
Gaussian quadraturesGaussian quadratures
Gaussian quadratures
 
Basics of set theory
Basics of set theoryBasics of set theory
Basics of set theory
 
Numerical integration
Numerical integrationNumerical integration
Numerical integration
 
Applications of set theory
Applications of  set theoryApplications of  set theory
Applications of set theory
 
Miscellneous functions
Miscellneous  functionsMiscellneous  functions
Miscellneous functions
 

Kürzlich hochgeladen

Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxDr.Ibrahim Hassaan
 
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfphamnguyenenglishnb
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4MiaBumagat1
 
ACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfSpandanaRallapalli
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatYousafMalik24
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)lakshayb543
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Mark Reed
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...Nguyen Thanh Tu Collection
 
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxBarangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxCarlos105
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Jisc
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceSamikshaHamane
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for BeginnersSabitha Banu
 
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfInclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfTechSoup
 
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxHumphrey A Beña
 
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSGRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSJoshuaGantuangco2
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfMr Bounab Samir
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONHumphrey A Beña
 

Kürzlich hochgeladen (20)

Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptx
 
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4
 
ACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdf
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice great
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
 
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptxYOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
 
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptxFINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
 
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxBarangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in Pharmacovigilance
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for Beginners
 
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfInclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
 
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
 
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSGRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
 

Solution of nonlinear_equations

  • 1. Lecture – 9 TARUN GEHLOT Solution of Nonlinear Equations In this chapter we will discuss the problem of identifying the roots of the equations and system of equations. The basic formulation of the problem in the simplest case is this: Given a function f(x), we seek value x for which f(x) = 0. Solution x is called a root of equation, or zero of function f. Thus, the problem is known as root or zero finding. We will be dealing with following two important cases: 1. Single nonlinear equation in one unknown, f : ℜ → ℜ , which has scalar x as solution such that f(x) = 0. 2. System of n coupled nonlinear equations in n unknowns, f : ℜn → ℜn , which has vector x as solution for which all components of f are zero simultaneously. Examples: (a) Nonlinear equation in one dimension: x 2 − 4 sin( x ) = 0 , for which x = 1.9 is one approximate solution. (b) System of nonlinear equations in two dimensions: x12 − x2 + 0.25 = 0 − x12 + x2 + 0.25 = 0 2 for which x = [0.5 0.5]T is solution vector. Existence and Uniqueness of Solutions It is often difficult to determine the existence or number solutions to nonlinear equations. Whereas for system of linear equations the number of solutions must be either zero, one or infinitely many, nonlinear equations can have any number of solutions. Thus, determining existence and uniqueness of solutions is more complicated for nonlinear equations than for linear equations. Although it is difficult to make any assertion about solution of nonlinear equations, there are nevertheless some useful local criteria that guarantee existence of a solution. The simplest for these is for one-dimensional problems, for which the Intermediate Value theorem provides a sufficient condition for a solution, which says that if f is continuous on a closed interval [a,b], and c lies between f(a) and f(b), then there is a value x* ∈ [a , b] such that f(x*) = c. Thus, if f(a) and f(b) differ in sign, then by taking c = 0 in the theorem we cann conclude that there must be a root with in the interval [a,b]. Such an interval [a,b] for which the sign of f differs at its endpoints is called a bracket for a solution of the one-dimensional nonlinear equation f(x) = 0. Note: There is no simple analog for n dimensions.
  • 2. The nonlinear equations can have any number of solutions. It can have a simple as well as multiple roots. Multiple Root Nonlinear equation may have multiple root, where both function and derivatives are zero, i.e. f(x) = 0 and f”(x) = 0. Geometrically this property means that the curve defined by f has a horizontal tangent on the x-axis. More generally for a smooth function f if f ( x*) = f ′( x*) = f ′′( x*) = K = f ( m −1) ( x*) = 0 , then x* is a multiple root of multiplicity m. If m =1 then x* is called a simple root. Sensitivity and Conditioning The sensitivity of the root-finding problem for a given function is opposite to that for evaluating the function: if the function value is insensitive to the value of the argument then root will be sensitive. This property makes sense if f(x) = y, finding x given y has opposite conditioning from finding y given x. Absolute condition number of root finding problem for root x* of f : ℜ → ℜ is 1 / f ′( x*) . This implies that the root is ill conditioned if tangent line is nearly horizontal. In particular condition number for multiple root is infinite. Absolute condition number of root finding problem for root x* of f : ℜn → ℜn is J −1 ( x ) , where Jf is a Jacobian f matrix of f. If Jacobian matrix is nearly singular, root is ill conditioned. ˆ ˆ What do we mean by approximate solution x to nonlinear system? x is an approximate solution if either f ( x ) ≈ 0 or x − x * ≈ 0 . f ( x ) ≈ 0 corresponds to “small residual.” ˆ ˆ ˆ x − x * ≈ 0 measures closeness to (usually unknown) true solution x*. A solution ˆ criterion is not necessarily “small” simultaneously. Small residual implies accurate solution only if problem is well-conditioned. Convergence Rate and Stopping Criteria Unlike linear equations, most nonlinear equations can not be solved in finite number of steps. Iterative methods are being used to solve nonlinear equations. The total cost of solving problem depends on both the cost per iterations and the number of iterations required. There is often a trade off between these two factors. To compare the effectiveness of iterative methods, we need to characterize their convergence rate. An iterative method is said to be of order ‘r’ or has the rate of convergence ‘r’, if ‘r’ is the largest positive real number for which there exists a finite constant C ≠ 0 such that ε k +1 ≤ C ε k , where ε k = x k − x * is the error in the kth iteration. C is the asymptotic r error constant usually depends on the derivatives of f(x) at x = x*. x* is the true solution.
  • 3. For methods that maintain interval known to contain solution (e.g. Bisection method), rather than specific approximate value for solution, take error to be length on interval containing solution. Some particular cases of interest: Convergence Rate Digits gained per iteration R=1 Linear (C<1) Constant R>1 Superlinear Increasing R=2 Quadratic Double One way to interpret the distinction between linear and superlinear is that, asymptotically a linear convergent sequence gains a constant number of additional correct digits per iteration, whereas a super linearly convergent sequence gains as increasing number of additional correct digits with each iterations. For example, a quadratically convergent method doubles the number of correct digits with each iteration. A convergence theorem may tell us that an iterative scheme will converge for a given problem, and how rapidly it will do so, but that does not specifically address the issue of when to stop iterating and declare the resulting approximate solution to be good enough. Devising a suitable stopping criterion is a complex and subtle issue for number of reasons. We may know in principle that the error ε k is becoming small, but since we do not know the true solution, we have no way of knowing ε k directly. The reasonable surrogate is the relative change in successive iterates x k +1 − x k / x k . If this is small enough, we stop. To ensure that the problem has actually been solved, one may also want to verify that the residual f ( x k ) is suitably small. x k +1 − x k / x k and f ( x k ) are not necessarily small simultaneously. They depend on the condition of the problem. In addition, all of these criteria are affected by the relative scaling of the components of both the argument x and the function f, and possibly other problem dependent features as well. For all these reasons, a full proof-stopping criterion can be difficult to achieve and complicated to state. Bisection algorithm In finite precision arithmetic, there may be no machine number x* such that f(x*) is exactly zero. An alternative is to seek a very short interval [a, b] in which f has change in sign. The intermediate value theorem of calculus makes sure that bracket has a value for function goes to zero. The bisection method makes use of Intermediate Value Theorem. It begins with an initial bracket and successively reduces its length until the solution has been isolated as accurately as desired (or the arithmetic precision will permit). At each iteration, the function is evaluated at the midpoint of the current interval, and half of the interval can be discarded, depending on the sign of the function at the mid point.
  • 4. Algorithm: while ((b-a) > tol) do m = a + (b –a) / 2 if sign(f(a)) = sign(f(m)) then a=m else a m b b=m end end Implementation issues: Note a couple of points in the above algorithm that are designed to avoid the pitfalls when it is implemented in finite-precision, floating-point arithmetic. First, perhaps the most obvious formula for computing the midpoint m of the interval [a, b] is m = (a+b)/2. However, with this formula the result in finite-precision arithmetic is not even guaranteed o fall within the interval [a, b] (in two-digit, decimal arithmetic, for example, this formula gives a “midpoint” 0.7 for the interval [0.67, 0.69]. Moreover, the intermediate quantity a+b could overflow in extreme case, even though the mid point is well defined and should be computable. A better alternative is the formula m = a + (b –a)/2, which cannot overflow and is guaranteed to fall within the interval [a, b], provided and b have the same sign (as will normally the case unless the root happens to be near zero). Second, testing whether two function values f(x1) and f(x2) agree in sign mathematically equivalent to testing whether the product f(x1) . f(x2) is positive or negative. In floating point arithmetic, however such implementation is risky because the product could easily underflow when function values are small, which they will be as we approach the root. A safer alternative is to use the sign function explicitly, where sign(x) = 1 if x ≥ 0 and sign(x) = -1 if x < 0. Convergence Analysis The bisection method makes no use of the magnitude of the function values, only their signs. As a result, bisection is certain to converge but does so rather slowly. Specifically, at each successive iteration the length of the interval containing the solution, and hence a bound on the possible error, is reduced by half. This means that the bisection method is linearly convergent, with r = 1 and C = 0.5. If the permissible error is ε , the approximate number of iterations required may be determined from the relation b−a log(b − a ) − log ε ≤ε or n≥ 2n log 2 Cost of the method: It requires one function value evaluation per iteration.