Docsity

Nonlinear Equations - Introduction and Local Algorithms - Slides | MATH 693A, Study notes of Mathematics

Toggle sidebar
bg1
Nonlinear Equations
Nonlinear Equations...
Nonlinear Equations......
Numerical Optimization
Lecture Notes #25
Nonlinear Equations — Introduction & Local Algorithms
Peter Blomgren,
Department of Mathematics and Statistics
Dynamical Systems Group
Computational Sciences Research Center
San Diego State University
San Diego, CA 92182-7720
http://terminus.sdsu.edu/
Fall 2009
Peter Blomgren, h[email protected]iNonlinear Equations — (1/31)
Nonlinear Equations
Nonlinear Equations...
Nonlinear Equations......
Outline
1Nonlinear Equations
Introduction
A Source of Examples: Gaussian Quadrature Formulas
Nonlinear Equations vs. Unconstrained Optimization
2Nonlinear Equations...
Challenges
Algorithms
Newton’s Method for Nonlinear Equations
3Nonlinear Equations......
Inexact Newton Methods
Broyden’s Method
Tensor Methods
Peter Blomgren, h[email protected]iNonlinear Equations — (2/31)
Nonlinear Equations
Nonlinear Equations...
Nonlinear Equations......
Introduction
A Source of Examples: Gaussian Quadrature Formulas
Nonlinear Equations vs. Unconstrained Optimization
Nonlinear Equations: Introduction 1 of 3
Often we are asked to find values of the model parameters so that
the model satisfies a number of fixed relationships — In the
special case when we have nparameters and nrelationships, we
get a system of nonlinear equations.
We can formulate this problem mathematically as
¯r(¯x) = ¯
0,
where ¯r :Rn→Rnis a vector function, i.e. for ¯x ∈Rn
¯r(¯x) =
r1(¯x)
r2(¯x)
.
.
.
rn(¯x)
.
Peter Blomgren, h[email protected]iNonlinear Equations — (3/31)
Nonlinear Equations
Nonlinear Equations...
Nonlinear Equations......
Introduction
A Source of Examples: Gaussian Quadrature Formulas
Nonlinear Equations vs. Unconstrained Optimization
Nonlinear Equations: Introduction 2 of 3
A system of nonlinear equations
¯r(¯x) =
r1(¯x)
r2(¯x)
.
.
.
rn(¯x)
=
0
0
.
.
.
0
,
may have
•No solutions.
•A unique solution.
•Many (possibly infinitely many) solutions.
Peter Blomgren, h[email protected]iNonlinear Equations — (4/31)
pf3
pf4
pf5
pf8

Partial preview of the text

Download Nonlinear Equations - Introduction and Local Algorithms - Slides | MATH 693A and more Study notes Mathematics in PDF only on Docsity!

Nonlinear Equations

Nonlinear Equations...

Nonlinear Equations......

Numerical Optimization

Lecture Notes #

Nonlinear Equations — Introduction & Local Algorithms

Peter Blomgren,

[email protected]

Department of Mathematics and Statistics

Dynamical Systems Group

Computational Sciences Research Center

San Diego State University San Diego, CA 92182-

http://terminus.sdsu.edu/

Fall 2009

Peter Blomgren,

〈

[email protected]

〉

Nonlinear Equations

— (1/31)

Nonlinear Equations

Nonlinear Equations...

Nonlinear Equations......

Outline

1

Nonlinear Equations

Introduction A Source of Examples: Gaussian Quadrature Formulas Nonlinear Equations vs. Unconstrained Optimization

2

Nonlinear Equations...

Challenges Algorithms Newton’s Method for Nonlinear Equations

3

Nonlinear Equations......

Inexact Newton Methods Broyden’s Method Tensor Methods

Peter Blomgren,

〈

[email protected]

〉

Nonlinear Equations

— (2/31)

Nonlinear Equations

Nonlinear Equations...

Nonlinear Equations......

IntroductionA Source of Examples: Gaussian Quadrature FormulasNonlinear Equations vs. Unconstrained Optimization

Nonlinear Equations: Introduction

1 of 3

Often we are asked to find values of the model parameters so thatthe model satisfies a number of fixed relationships — In the special case

when we have

n

parameters and

n

relationships, we

get a

system of nonlinear equations

We can formulate this problem mathematically as

r

¯x

where

¯r

R

n

R

n

is a vector function,

i.e.

for

¯x

R

n

r

¯x

r

1

¯x

r

2

¯x

r

n

¯x

Peter Blomgren,

〈

[email protected]

〉

Nonlinear Equations

— (3/31)

Nonlinear Equations

Nonlinear Equations...

Nonlinear Equations......

IntroductionA Source of Examples: Gaussian Quadrature FormulasNonlinear Equations vs. Unconstrained Optimization

Nonlinear Equations: Introduction

2 of 3

A system of nonlinear equations

r

x

r

1

¯x

r

2

¯x

r

n

¯x

may have

No solutions.

A unique solution.

Many (possibly infinitely many) solutions.

Peter Blomgren,

〈

[email protected]

〉

Nonlinear Equations

— (4/31)

Nonlinear Equations

Nonlinear Equations...

Nonlinear Equations......

IntroductionA Source of Examples: Gaussian Quadrature FormulasNonlinear Equations vs. Unconstrained Optimization

Nonlinear Equations: Introduction

3 of 3

In the process of finding the solution(s), or

root(s)

, to systems of

nonlinear equations we can reuse many of the ideas discussed inthe context of unconstrained minimization.One approach is to solve the least-squares-problem

x

∗

= arg min

¯x

∈

R

n

[

n

i

=

r

2 i

¯x

]

which clearly has an optimum at

x

∗

if

r

¯x

∗

The connection between least squares problems and the solution ofnonlinear equations is quite strong.

Peter Blomgren,

〈

[email protected]

〉

Nonlinear Equations

— (5/31)

Nonlinear Equations

Nonlinear Equations...

Nonlinear Equations......

IntroductionA Source of Examples: Gaussian Quadrature FormulasNonlinear Equations vs. Unconstrained Optimization

Nonlinear Equations — Least Squares

Differences

There are some key differences between solving nonlinear equationsand solving general nonlinear least squares problems:

In nonlinear equations, the number of equations (

m

in the least

squares formulation)

equals

the number of variables (

¯x

R

n

whereas in the typical least-squares situation

m

n

For nonlinear equations, at the optimum

r

¯x

∗

) = 0, whereas

the minimum value of a general least squares problem is notrequired to reach zero.

Often, the equations

r

i

¯x

) = 0 represent physical or economical

constraints, such as conservation laws or consistency principles,which must hold exactly in order for the solution to be mean-ingful.

Peter Blomgren,

〈

[email protected]

〉

Nonlinear Equations

— (6/31)

Nonlinear Equations

Nonlinear Equations...

Nonlinear Equations......

IntroductionA Source of Examples: Gaussian Quadrature FormulasNonlinear Equations vs. Unconstrained Optimization

Nonlinear Equations — Example #1:

Gaussian Quadrature

1 of 2

Suppose we want to find an optimal two-point formula:

∫

1

−

1

f

(

x

)

dx

=

c

1

f

(

x

1

) +

c

2

f

(

x

2

)

.

Since we have 4 parameters to play with

{

x

1

,

x

2

,

c

1

,

c

2

}

, we can generate

a formula that is exact up to polynomial of degree 3. We get thefollowing 4 equations:

∫

1

−

1

1

dx

=

2

=

c

1

c

2

∫

1

−

1

x dx

=

0

=

c

1

x

1

c

2

x

2

∫

1

−

1

x

2

dx

=

23

=

c

1

x

2 1

c

2

x

2 2

∫

1

−

1

x

3

dx

=

0

=

c

1

x

3 1

c

2

x

3 2

∥∥∥∥∥∥∥∥∥∥∥∥∥∥∥∥∥∥

r

1

(

◦

)

=

c

1

c

2

−

2

r

2

(

◦

)

=

c

1

x

1

c

2

x

2

r

3

(

◦

)

=

c

1

x

2 1

c

2

x

2 2

−

23

r

4

(

◦

)

=

c

1

x

3 1

c

2

x

3 2

Peter Blomgren,

〈

[email protected]

〉

Nonlinear Equations

— (7/31)

Nonlinear Equations

Nonlinear Equations...

Nonlinear Equations......

IntroductionA Source of Examples: Gaussian Quadrature FormulasNonlinear Equations vs. Unconstrained Optimization

Nonlinear Equations — Example #1:

Gaussian Quadrature

2 of 2

Hence, we are looking for the vector ¯

s

∗

c

∗ 1

c

∗ 2

x

∗

1

x

∗

2

for which

r

¯s

∗

c

∗ 1

c

∗ 2

c

∗ 1

x

∗ 1

c

∗ 2

x

∗ 2

c

∗ 1

[

x

∗ 1

]

2

c

∗ 2

[

x

∗ 2

]

2

23

c

∗ 1

[

x

∗ 1

]

3

c

∗ 2

[

x

∗ 2

]

3

In this instance, the solution is given by

c

∗ 1

c

∗ 2

x

∗ 1

x

∗ 2

If we want a 3-point formula ac-curate to up to 5th degree poly-nomials,

we

get

a

system

with

6 unknowns containing nonlinearterms of the type

c

i

x

5

i

Peter Blomgren,

〈

[email protected]

〉

Nonlinear Equations

— (8/31)

Nonlinear Equations

Nonlinear Equations...

Nonlinear Equations......

ChallengesAlgorithmsNewton’s Method for Nonlinear Equations

Nonlinear Equations: An Added Difficulty

Non-Uniqueness, 1 of 2

Ponder the one-dimensional nonlinear equation problem

−

−

−

0

1

2

3

−1 −2 −

3 2 1 0

−

−

−

0

1

2

3

6 5 4 3 2 1 0

r

x

) = sin(

5x

x

r

2

x

We notice that this nonlinear problem has three solutions

(roots)

Peter Blomgren,

〈

[email protected]

〉

Nonlinear Equations

— (13/31)

Nonlinear Equations

Nonlinear Equations...

Nonlinear Equations......

ChallengesAlgorithmsNewton’s Method for Nonlinear Equations

Nonlinear Equations: An Added Difficulty

Non-Uniqueness, 2 of 2

This is not really news — in unconstrained optimization, we canhave several

local minima

(stationary points).

In the optimization case we can distinguish the points by lookingat the value of the objective — thus qualifying what stationarypoint is a “better” solution.However, for nonlinear equations, we cannot distinguish the roots— they are all of the same “mathematical quality.” This meansthat we must be careful when we construct our models, so thatthey do not allow for non-physical solutions.

Peter Blomgren,

〈

[email protected]

〉

Nonlinear Equations

— (14/31)

Nonlinear Equations

Nonlinear Equations...

Nonlinear Equations......

ChallengesAlgorithmsNewton’s Method for Nonlinear Equations

Nonlinear Equations: Algorithms

We will look at the following solution strategies for nonlinearequations:

Newton’s method

Broyden’s quasi-Newton method

Inexact Newton methods

Tensor methods

We look at local convergence properties (convergence rate), andaddress global convergence (how robust is the method(s) withrespect to starting “far away” from the solution).

Peter Blomgren,

〈

[email protected]

〉

Nonlinear Equations

— (15/31)

Nonlinear Equations

Nonlinear Equations...

Nonlinear Equations......

ChallengesAlgorithmsNewton’s Method for Nonlinear Equations

Assumptions and Language

We make the

assumption

that the Jacobian

J

¯x

r

x

) exists

and is continuous.In a couple of results we must assume (the stronger condition)that the Jacobian is

Lipschitz continuous

i.e.

J

¯x

J

¯y

β

L

x

¯y

for some

β

L

A solution

¯x

∗

R

n

satisfying

r

¯x

∗

) = 0 is said to be

a degenerate solution

if

J

¯x

∗

) is singular

a non-degenerate solution

if

J

¯x

∗

) is not singular

Peter Blomgren,

〈

[email protected]

〉

Nonlinear Equations

— (16/31)

Nonlinear Equations

Nonlinear Equations...

Nonlinear Equations......

ChallengesAlgorithmsNewton’s Method for Nonlinear Equations

Newton’s Method for Nonlinear Equations

Introduction

As usual, our discussion is based on

Taylor’s theorem

. The

version of the theorem that is relevant to this discussion takes theform Theorem Suppose that

r

R

n

R

n

is continuously differentiable in some

convex open set

D

and that

¯x

and

¯x

¯p

are vectors in

D

. Then we

have that

r

¯x

p

r

x

1

0

J

x

t

¯p

¯p

dt

We can define a

linear model

M

k

¯p

) of

r

x

k

¯p

) by

approximating the integral term in Taylor’s theorem by

J

¯x

k

¯p

i.e.

M

k

¯p

def =

r

x

k

J

¯x

k

¯p

Peter Blomgren,

〈

[email protected]

〉

Nonlinear Equations

— (17/31)

Nonlinear Equations

Nonlinear Equations...

Nonlinear Equations......

ChallengesAlgorithmsNewton’s Method for Nonlinear Equations

Error in the Model

1 of 2

The difference between the model and

r

¯x

k

¯p

) is

r

¯x

k

¯p

M

k

¯p

1

0

[

J

¯x

t

¯p

J

x

]

¯p

dt

since (by assumption) the Jacobian is continuous, we have

lim

‖

¯p

‖→

0

J

¯x

t

¯p

J

¯x

t

[

1]

therefore

1

0

[

J

¯x

t

¯p

J

¯x

]

¯p

dt

1

0

J

x

t

¯p

J

¯x

¯p

dt

o

¯p

Peter Blomgren,

〈

[email protected]

〉

Nonlinear Equations

— (18/31)

Nonlinear Equations

Nonlinear Equations...

Nonlinear Equations......

ChallengesAlgorithmsNewton’s Method for Nonlinear Equations

Error in the Model

2 of 2

With continuity of the Jacobian we have

1

0

[

J

¯x

t

¯p

J

¯x

]

¯p

dt

o

¯p

with

Lipschitz continuity

we get the stronger result

1

0

[

J

¯x

t

¯p

J

¯x

]

¯p

dt

O

¯p

2

The “pure” form of Newton’s method chooses the step

¯p

k

to be

the vector for which

M

¯p

k

i.e.

¯p

k

J

¯x

k

−

1

r

x

k

Peter Blomgren,

〈

[email protected]

〉

Nonlinear Equations

— (19/31)

Nonlinear Equations

Nonlinear Equations...

Nonlinear Equations......

ChallengesAlgorithmsNewton’s Method for Nonlinear Equations

“Big Oh” —

O

and

“Small Oh” —

o

Definition Let

f

and

g

be two functions from a subset

X

of the real numbers to the

real numbers. Assume that

g

takes positive values. We say

f

=

O

(

g

)

(pronounced “

f

is

Big-Oh

of

g

”) if there is a real constant

A

such that

|

f

(

x

)

|

<

A

|

g

(

x

)

|

for all

x

∈

X

.

Definition If

X

is a half-open interval [

r

,

∞

), or some subset of such an interval,

and

f

=

O

(

g

) on this

X

, then we sometimes say

f

=

O

(

g

) as

x

→ ∞

.

Similarly, if

X

is an interval like (

,

r

] then we might say

f

=

O

(

g

) as

x

→

Definition We say that

f

=

o

(

g

) as

x

→

x

0

(pronounced “

f

is

Little-Oh

of

g

as

x

goes to

x

0

”) if the limit as

x

→

x

0

of

f

/

g

is zero.

Peter Blomgren,

〈

[email protected]

〉

Nonlinear Equations

— (20/31)

Nonlinear Equations

Nonlinear Equations...

Nonlinear Equations......

Inexact Newton MethodsBroyden’s MethodTensor Methods

Inexact Newton Methods: Local Convergence

Theorem Suppose that

r

is continuously differentiable in a convex open set

D ⊂

R

n

. Let

¯x

∗

∈ D

be a non-degenerate solution of

r

¯x

, and

let

¯x

k

be the sequence of iterates generated by the inexact

Newton iteration. Then when

¯x

k

∈ D

is sufficiently close to

¯x

∗

m

the following are true:

(i)

If

η

is sufficiently small, then the convergence of

¯x

k

is

Q-linear.

(ii)

If

η

k

, then the convergence of

¯x

k

is Q-superlinear.

(iii)

If,

in

addition,

J

is

Lipschitz

continuous

on

D

and

η

k

O

r

k

, then the convergence of

¯x

k

is Q-quadratic.

Peter Blomgren,

〈

[email protected]

〉

Nonlinear Equations

— (25/31)

Nonlinear Equations

Nonlinear Equations...

Nonlinear Equations......

Inexact Newton MethodsBroyden’s MethodTensor Methods

Broyden’s Method

Secant Methods / quasi-Newton Methods

Secant methods (aka quasi-Newton methods), do not requirecalculation of the Jacobian. — Instead, they maintain anapproximation of the Jacobian which gets updated in eachiteration.This sounds quite familiar — compare with the BFGS-method forunconstrained optimizationWe present Broyden’s (the “B” in BFGS) method for thisapproach.Let

B

k

J

¯x

k

) be the Jacobian approximation at iteration

k

assuming it is non-singular we can find the next step

¯p

k

B

−

1

k

r

¯x

k

¯x

k

x

k

¯p

k

Peter Blomgren,

〈

[email protected]

〉

Nonlinear Equations

— (26/31)

Nonlinear Equations

Nonlinear Equations...

Nonlinear Equations......

Inexact Newton MethodsBroyden’s MethodTensor Methods

Broyden’s Method

The Secant Equation

We let

s

k

, and

¯y

k

be the differences between successive iterates,

and residuals, respectively:

¯s

k

x

k

¯x

k

¯y

k

r

k

r

k

From Taylor’s theorem we have the following relation

¯y

k

1

0

J

¯x

k

t

s

k

¯s

k

dt

J

¯x

k

s

k

o

¯s

k

Hence, we require the updated Jacobian approximation

B

k

to

satisfy the

secant equation

y

k

B

k

1

s

k

Peter Blomgren,

〈

[email protected]

〉

Nonlinear Equations

— (27/31)

Nonlinear Equations

Nonlinear Equations...

Nonlinear Equations......

Inexact Newton MethodsBroyden’s MethodTensor Methods

Broyden’s Method

The Update

The secant equation is a system of

n

equation, with

n

2

unknowns, hence

if

n

1 there are many ways to satisfy the equation.

Broyden’s update

makes the smallest possible change in the Jacobian

approximation, measured in the Euclidean norm

‖

B

k

−

B

k

‖

, that is

consistent with the secant equation. It takes the form

B

k

1

=

B

k

(

¯y

k

−

B

k

¯

s

k

)

¯

s

Tk

¯

s

Tk

¯

s

k

Broyden’s algorithm:

Given the direction

¯p

k

=

−

B

−

1

k

¯

r

(

¯x

k

)

we perform a line-search in this direction, and then proceed as expected.

Peter Blomgren,

〈

[email protected]

〉

Nonlinear Equations

— (28/31)

Nonlinear Equations

Nonlinear Equations...

Nonlinear Equations......

Inexact Newton MethodsBroyden’s MethodTensor Methods

Broyden’s Method

Local Convergence

Theorem Suppose that

¯

r

is continuously differentiable in a convex open set

D ⊂

R

n

. Let

¯x

∗

∈ D

be a non-degenerate solution of

¯

r

(

¯

x

) = 0

. Then

there are positive constants

ǫ

and

δ

such that if the starting point

¯x

0

and

the starting approximate Jacobian B

0

satisfy

‖

¯

x

0

−

¯

x

∗

‖ ≤

δ,

‖

B

0

−

J

(

¯x

∗

)

‖ ≤

ǫ

the sequence

{

¯

x

k

}

generated by the Broyden iteration is well-defined and

converges super-linearly to

¯

x

∗

.

The second condition is particularly troublesome in practice. A good

B

0

is

critical

to the performance of Broyden’s method.

B

0

=

J

(

¯x

0

) may be

called for (but may not be sufficiently good). B

k

is dense in general, even when

J

(

¯

x

k

) is sparse; when

n

is large, this

may cause storage problems.

Peter Blomgren,

〈

[email protected]

〉

Nonlinear Equations

— (29/31)

Nonlinear Equations

Nonlinear Equations...

Nonlinear Equations......

Inexact Newton MethodsBroyden’s MethodTensor Methods

Tensor Methods

In tensor methods, the linear model

M

k

(

¯p

) used by Newton’s method is

augmented with an extra term. The goal of this term is to capture someof the non-linear behavior of

¯r

(

¯

x

), and facilitate faster and more robust

convergence to degenerate roots

.

Tensor methods are most successful when

rank

(

J

(

¯x

∗

))

∈ {

n

−

1

,

n

−

2

}

The tensor model

̂

M

k

(

¯p

) =

¯

r

(

¯x

k

) +

J

(

¯x

k

)

¯p

1 2

T

k

¯p¯

p

where

T

k

is a tensor defined by

n

3

elements (

T

k

)

ijl

. The

i

th component

of the action of the tensor on two vectors

¯u

,

¯v

∈

R

n

is defined by

(

T

k

¯u¯

v

)

i

=

n

∑

j

=

n

∑

l

=

(

T

k

)

ijl

u

j

v

l

.

Peter Blomgren,

〈

[email protected]

〉

Nonlinear Equations

— (30/31)

Nonlinear Equations

Nonlinear Equations...

Nonlinear Equations......

Inexact Newton MethodsBroyden’s MethodTensor Methods

Tensor Methods

Newton’s method inspires us to build the tensor from Hessians,

i.e.

(

T

k

)

ijl

= [

∇

2

r

i

(

¯x

k

)]

jl

This is, in most applications, prohibitively expensive.Another approach is to select (

T

k

) such that

̂

M

k

(

¯p

) interpolates the

function

¯

r

(

¯x

k

¯p

) at some previous iterates,

i.e.

̂

M

k

(

¯x

k

−

j

−

¯

x

k

) =

r

(

¯

x

k

−

j

)

,

j

= 1

,

2

,... ,

q

This gives

1 2

T

k

¯s

jk

¯

s

jk

=

¯

r

(

¯

x

k

−

j

)

−

¯

r

(

¯x

k

)

−

J

(

¯x

k

)

¯

s

jk

,

¯s

jk

=

¯x

k

−

j

−

¯

x

k

,

which defines the tensor action of the form

T

k

¯u¯

v

=

q

∑

j

=

a

j

(

¯

s

Tjk

¯u

)(

¯s

Tjk

¯v

)

,

a

j

∈

R

n

.

Peter Blomgren,

〈

[email protected]

〉

Nonlinear Equations

— (31/31)