SYSTEMS OF NONLINEAR EQUATIONS

Similar documents
Today s class. Roots of equation Finish up incremental search Open methods. Numerical Methods, Fall 2011 Lecture 5. Prof. Jinbo Bi CSE, UConn

SPM Add Math Form 5 Chapter 3 Integration

2.1 Derivatives and Rates of Change

February 23 Math 2335 sec 51 Spring 2016

x n x n stepnumber k order r error constant C r+1 1/2 5/12 3/8 251/720 abs. stab. interval (α,0) /11-3/10

Final Exam Review Algebra Semester 1

Excel and the solution of linear and non-linear simultaneous equations. Part 1

The derivative of a function at one point. 1. Secant lines and tangents. 2. The tangent problem

1.2 Numerical Solutions of Flow Problems

Directional Derivatives. Directional Derivatives. Directional Derivatives. Directional Derivatives. Directional Derivatives. Directional Derivatives

Partial Derivatives. Partial Derivatives. Partial Derivatives. Partial Derivatives. Partial Derivatives. Partial Derivatives

Math 326A Exercise 4. Due Wednesday, October 24, 2012.

Functions. Edexcel GCE. Core Mathematics C3

Properties of Quadratic functions

Topic 2.3: Tangent Planes, Differentiability, and Linear Approximations. Textbook: Section 14.4

Math 326A Exercise 4. Due Wednesday, October 24, 2012.

Reals 1. Floating-point numbers and their properties. Pitfalls of numeric computation. Horner's method. Bisection. Newton's method.

Chapter 6. Curves and Surfaces. 6.1 Graphs as Surfaces

Interpolation. TANA09 Lecture 7. Error analysis for linear interpolation. Linear Interpolation. Suppose we have a table x x 1 x 2...

Natasha S. Sharma, PhD

(1) Tangent Lines on Surfaces, (2) Partial Derivatives, (3) Notation and Higher Order Derivatives.

Objectives. Materials

14.6 Directional Derivatives and the Gradient Vector

Quiz 6 Practice Problems

2. The diagram shows part of the graph of y = a (x h) 2 + k. The graph has its vertex at P, and passes through the point A with coordinates (1, 0).

Contents. Hilary Term. Summary of Numerical Analysis for this term. Sources of error in numerical calculation. Solving Problems

Maximizing an interpolating quadratic

Tangent Planes and Linear Approximations

Graphing Techniques. Domain (, ) Range (, ) Squaring Function f(x) = x 2 Domain (, ) Range [, ) f( x) = x 2

Math Lab 6: Powerful Fun with Power Series Representations of Functions Due noon Thu. Jan. 11 in class *note new due time, location for winter quarter

Thursday 14 June 2012 Morning

Amphitheater School District End Of Year Algebra II Performance Assessment Review

5.1 Introduction to the Graphs of Polynomials

Math 126 Final Examination Autumn CHECK that your exam contains 9 problems on 10 pages.

Rational functions, like rational numbers, will involve a fraction. We will discuss rational functions in the form:

A New Look at Multivariable Interpolation

1. Practice the use of the C ++ repetition constructs of for, while, and do-while. 2. Use computer-generated random numbers.

Precomposing Equations

Ellipsoid Algorithm :Algorithms in the Real World. Ellipsoid Algorithm. Reduction from general case

Lagrange Multipliers. Lagrange Multipliers. Lagrange Multipliers. Lagrange Multipliers. Lagrange Multipliers. Lagrange Multipliers

Recent Developments in Model-based Derivative-free Optimization

Hw 4 Due Feb 22. D(fg) x y z (

Partial Derivatives (Online)

Bilinear Programming

QUESTIONS 1 10 MAY BE DONE WITH A CALCULATOR QUESTIONS ARE TO BE DONE WITHOUT A CALCULATOR. Name

1.1 Functions. Cartesian Coordinate System

Math Exam 2a. 1) Take the derivatives of the following. DO NOT SIMPLIFY! 2 c) y = tan(sec2 x) ) b) y= , for x 2.

1.5 Part - 2 Inverse Relations and Inverse Functions

Computational Methods. Constrained Optimization

Maclaurin series. To create a simple version of this resource yourself using Geogebra:

x 6 + λ 2 x 6 = for the curve y = 1 2 x3 gives f(1, 1 2 ) = λ actually has another solution besides λ = 1 2 = However, the equation λ

COURSE: NUMERICAL ANALYSIS. LESSON: Methods for Solving Non-Linear Equations

September 18, B Math Test Chapter 1 Name: x can be expressed as: {y y 0, y R}.

Announcements. Topics: To Do:

Section 18-1: Graphical Representation of Linear Equations and Functions

Math 126 Final Examination SPR CHECK that your exam contains 8 problems on 8 pages.

14.4: Tangent Planes and Linear Approximations

The Bisection Method versus Newton s Method in Maple (Classic Version for Windows)

Unit 1 Algebraic Functions and Graphs

Week 5: Geometry and Applications

INTRODUCTION TO LINEAR AND NONLINEAR PROGRAMMING

CCSSM Curriculum Analysis Project Tool 1 Interpreting Functions in Grades 9-12

Slope of the Tangent Line. Estimating with a Secant Line

CS 559: Machine Learning Fundamentals and Applications 9 th Set of Notes

Constrained and Unconstrained Optimization

Core Mathematics 3 Functions

we wish to minimize this function; to make life easier, we may minimize

5.5 Newton s Approximation Method

Homework: Study 6.1 # 1, 5, 7, 13, 25, 19; 3, 17, 27, 53

, etc. Let s work with the last one. We can graph a few points determined by this equation.

Edge and local feature detection - 2. Importance of edge detection in computer vision

Definition 3.1 The partial derivatives of a function f(x, y) defined on an open domain containing (x, y) are denoted by f

Surfaces and Integral Curves

CS 450 Numerical Analysis. Chapter 7: Interpolation

Machine Learning for Signal Processing Lecture 4: Optimization

Graphing Rational Functions

Block-based Thiele-like blending rational interpolation

Finite Element Analysis Prof. Dr. B. N. Rao Department of Civil Engineering Indian Institute of Technology, Madras. Lecture - 24

12.7 Tangent Planes and Normal Lines

Lecture 6: Chain rule, Mean Value Theorem, Tangent Plane

Principles of Linear Algebra With Maple TM The Newton Raphson Method

Real time Ray-Casting of Algebraic Surfaces

This document describes how I implement the Newton method using Python and Fortran on the test function f(x) = (x 1) log 10 (x).

Interpolation and Splines

Lecture notes on the simplex method September We will present an algorithm to solve linear programs of the form. maximize.

Convexization in Markov Chain Monte Carlo

Linear and quadratic Taylor polynomials for functions of several variables.

DIGITAL TERRAIN MODELLING. Endre Katona University of Szeged Department of Informatics

Connected Minimal Acceleration Trigonometric Curves

Polynomials tend to oscillate (wiggle) a lot, even when our true function does not.

Objective. m y 1 y = x 1 x 2

Sec 4.1 Coordinates and Scatter Plots. Coordinate Plane: Formed by two real number lines that intersect at a right angle.

Gift Wrapping for Pretropisms

HSC Mathematics - Extension 1. Workshop E2

C3 Numerical methods

Math 126 Winter CHECK that your exam contains 8 problems.

Geometric Modeling of Curves

Polynomial and Rational Functions

MATH 2650/ Intro to Scientific Computation - Fall Lab 1: Starting with MATLAB. Script Files

ORIE 6300 Mathematical Programming I November 13, Lecture 23. max b T y. x 0 s 0. s.t. A T y + s = c

Transcription:

SYSTEMS OF NONLINEAR EQUATIONS Widely used in the mathematical modeling of real world phenomena. We introduce some numerical methods for their solution. For better intuition, we examine systems of two nonlinear equations and numerical methods for their solution. We then generalize to systems of an arbitrary order. The Problem: Consider solving a system of two nonlinear equations f (x, y) = 0 g(x, y) = 0 (1)

Example Consider solving the system f (x, y) x 2 + 4y 2 9 = 0 g(x, y) 18y 14x 2 + 45 = 0 (2) z 20 10 0 2 1 0 y 1 2 2 x 0 2 Figure : Graph of z = x 2 + 4y 2 9, along with z = 0 on that surface

To visualize the points (x, y) that satisfy simultaneously both equations in (1), look at the intersection of the zero curves of the functions f and g. The next figure illustrates this. The zero curves intersect at four points, each of which corresponds to a solution of the system (2). For example, there is a solution near (1, 1). 18y 14x 2 +45=0 3 y 2 1 3 2 1 1 2 3 x 1 2 x 2 +4y 2 9=0 3 Figure : Graphs of f (x, y) = 0 and g(x, y) = 0

TANGENT PLANE APPROXIMATION The graph of z = f (x, y) is a surface in xyz-space. For (x, y) (x 0, y 0 ), we approximate f (x, y) by a plane that is tangent to the surface at the point (x 0, y 0, f (x 0, y 0 )). The equation of this plane is z = p(x, y) with p(x, y) f (x 0, y 0 ) + (x x 0 )f x (x 0, y 0 ) + (y y 0 )f y (x 0, y 0 ), (3) f x (x, y) = f (x, y), f y (x, y) = x f (x, y), y the partial derivatives of f with respect to x and y, respectively. If (x, y) (x 0, y 0 ), then f (x, y) p(x, y) For functions of two variables, p(x, y) is the linear Taylor polynomial approximation to f (x, y).

NEWTON S METHOD Let α = (ξ, η) denote a solution of the system f (x, y) = 0 g(x, y) = 0 Let (x 0, y 0 ) (ξ, η) be an initial guess at the solution. Approximate the surface z = f (x, y) with the tangent plane at (x 0, y 0, f (x 0, y 0 )). If f (x 0, y 0 ) is sufficiently close to zero, then the zero curve of p(x, y) will be an approximation of the zero curve of f (x, y) for those points (x, y) near (x 0, y 0 ). Because the graph of z = p(x, y) is a plane, its zero curve is simply a straight line.

Example Consider f (x, y) x 2 + 4y 2 9. Then f x (x, y) = 2x, f y (x, y) = 8y. At (x 0, y 0 ) = (1, 1), f (x 0, y 0 ) = 4, f x (x 0, y 0 ) = 2, f y (x 0, y 0 ) = 8 At (1, 1, 4) the tangent plane to the surface z = f (x, y) is z = p(x, y) 4 + 2(x 1) 8(y + 1) y 1 2 x 1 (x 0,y 0 ) f(x,y)=0 p(x,y)=0 2 Figure : Zero curves of f (x, y) and p(x, y) for (x, y) near (x 0, y 0 )

The tangent plane to the surface z = g(x, y) at (x 0, y 0, g(x 0, y 0 )) has the equation z = q(x, y) with q(x, y) g(x 0, y 0 ) + (x x 0 )g x (x 0, y 0 ) + (y y 0 )g y (x 0, y 0 ) Recall that the solution α = (ξ, η) to f (x, y) = 0 g(x, y) = 0 is the intersection of the zero curves of z = f (x, y) and z = g(x, y). Approximate these zero curves by those of the tangent planes z = p(x, y) and z = q(x, y). The intersection of these latter zero curves gives an approximate solution to the above nonlinear system. Denote by (x 1, y 1 ) the solution to p(x, y) = 0 q(x, y) = 0

Example Return to the equations f (x, y) x 2 + 4y 2 9 = 0 g(x, y) 18y 14x 2 + 45 = 0 with (x 0, y 0 ) = (1, 1). y 1 2 x g(x,y)=0 1 (x 0,y 0 ) q(x,y)=0 f(x,y)=0 p(x,y)=0 (x 1,y 1 ) 2 Figure : Use of zero curves of tangent plane approximations

Calculating (x 1, y 1 ). To find the intersection of the zero curves of the tangent planes, we must solve the linear system f (x 0, y 0 ) + (x x 0 )f x (x 0, y 0 ) + (y y 0 )f y (x 0, y 0 ) = 0 g(x 0, y 0 ) + (x x 0 )g x (x 0, y 0 ) + (y y 0 )g y (x 0, y 0 ) = 0 The solution is denoted by (x 1, y 1 ). In matrix form, [ ] [ ] [ ] fx (x 0, y 0 ) f y (x 0, y 0 ) x x0 f (x0, y = 0 ) g x (x 0, y 0 ) g y (x 0, y 0 ) y y 0 g(x 0, y 0 ) It is actually computed as follows. Define δ x and δ y to be the solution of the linear system [ ] [ ] [ ] fx (x 0, y 0 ) f y (x 0, y 0 ) δx f (x0, y = 0 ) g x (x 0, y 0 ) g y (x 0, y 0 ) δ y g(x 0, y 0 ) [ ] [ ] [ ] x1 x0 δx = + y 1 Usually the point (x 1, y 1 ) is closer to the solution α than is the original point (x 0, y 0 ). y 0 δ y

Continue this process, using (x 1, y 1 ) as a new initial guess. Obtain an improved estimate (x 2, y 2 ). This iteration process is continued until a solution with sufficient accuracy is obtained. The general iteration is given by [ ] [ ] [ ] fx (x k, y k ) f y (x k, y k ) δx,k f (xk, y k ) = g x (x k, y k ) g y (x k, y k ) δ y,k g(x k, y k ) ] ] ] (4) [ xk+1 y k+1 = [ xk y k + [ δx,k δ y,k This is Newton s method for solving f (x, y) = 0 g(x, y) = 0, k = 0, 1,... Many numerical methods for solving nonlinear systems are variations on Newton s method.

Example Consider again the system f (x, y) x 2 + 4y 2 9 = 0 g(x, y) 18y 14x 2 + 45 = 0 Newton s method (4) becomes [ ] [ ] [ 2xk 8y k δx,k xk 2 = + 4y k 2 9 ] 28x k 18 δ y,k 18y k 14xk 2 + 45 ] ] ] (5) [ xk+1 y k+1 = [ xk y k + [ δx,k δ y,k Choose (x 0, y 0 ) = (1, 1). The resulting Newton iterates are given in Table 1, along with Error = α (x k, y k ) max{ ξ x k, η y k }

Table : Newton iterates for the system (5) k x k y k Error 0 1.0 1.0 3.74E 1 1 1.170212765957447 1.457446808510638 8.34E 2 2 1.202158829506705 1.376760321923060 2.68E 3 3 1.203165807091535 1.374083486949713 2.95E 6 4 1.203166963346410 1.374080534243534 3.59E 12 5 1.203166963347774 1.374080534239942 2.22E 16 The final iterate is accurate to the precision of the computer arithmetic.

AN ALTERNATIVE NOTATION We introduce a more general notation for the preceding work. The problem to be solved is F 1 (x 1, x 2 ) = 0 F 2 (x 1, x 2 ) = 0 Introduce [ ] [ ] F 1 F 1 x1 F1 (x 1, x 2 ) x =, F (x) =, F (x) = x 1 x 2 x 2 F 2 (x 1, x 2 ) F 2 F 2 x 1 x 2 F (x) is called the Frechet derivative of F (x). It is a generalization to higher dimensions of the ordinary derivative of a function of one variable. The system (6) can now be written as (6) F (x) = 0 (7) A solution of this equation will be denoted by α.

Newton s method becomes for k = 0, 1,.... F (x (k) )δ (k) = F (x (k) ) x (k+1) = x (k) + δ (k) (8) A shorter and mathematically equivalent form: for k = 0, 1,.... [ 1 x (k+1) = x (k) F (x )] (k) F (x (k) ) (9) This last formula is often used in discussing and analyzing Newton s method for nonlinear systems. But (8) is used for practical computations, since it is usually less expensive to solve a linear system than to find the inverse of the coefficient matrix. Note the analogy of (9) with Newton s method for a single equation.

THE GENERAL NEWTON METHOD Consider the system of n nonlinear equations F 1 (x 1,..., x n ) = 0. F n (x 1,..., x n ) = 0 (10) Define x = x 1. x n, F (x) = F 1 (x 1,..., x n ). F n (x 1,..., x n ), F (x) = F 1 x 1. F n x 1 F 1 x n. F n x n The nonlinear system (10) can be written as F (x) = 0 Its solution is denoted by α R n.

Newton s method is F (x (k) )δ (k) = F (x (k) ) x (k+1) = x (k) + δ (k), k = 0, 1,... (11) Alternatively, as before, [ 1 x (k+1) = x (k) F (x )] (k) F (x (k) ), k = 0, 1,... (12) This formula is often used in theoretical discussions of Newton s method for nonlinear systems. But (11) is used for practical computations, since it is usually less expensive to solve a linear system than to find the inverse of the coefficient matrix. CONVERGENCE. Under suitable hypotheses, it can be shown that there is a c > 0 for which α x (k+1) α c x (k) 2, k = 0, 1,... α x (k) max α i x (k) 1 i n Newton s method is quadratically convergent. i