21.04.2014 Views

Michael Corral: Vector Calculus

Michael Corral: Vector Calculus

Michael Corral: Vector Calculus

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

2.6 Unconstrained Optimization: Numerical Methods 89<br />

2.6 Unconstrained Optimization: Numerical Methods<br />

The types of problems that we solved in the previous section were examples of unconstrained<br />

optimization problems. That is, we tried to find local (and perhaps even<br />

global) maximum and minimum points of real-valued functions f(x,y), where the<br />

points (x,y) could be any points in the domain of f. The method we used required<br />

us to find the critical points of f, which meant having to solve the equation∇f = 0,<br />

which in general is a system of two equations in two unknowns (x and y). While this<br />

was relatively simple for the examples we did, in general this will not be the case. If<br />

the equations involve polynomials in x and y of degree three or higher, or complicated<br />

expressions involving trigonometric, exponential, or logarithmic functions, then solving<br />

even one such equation, let alone two, could be impossible by elementary means. 7<br />

For example, if one of the equations that had to be solved was<br />

x 3 +9x−2=0,<br />

you may have a hard time getting the exact solutions. Trial and error would not help<br />

much,especiallysincetheonlyrealsolution 8 turnsouttobe 3√ √<br />

28+1−<br />

3 √ √<br />

28−1. Ina<br />

situation such as this, the only choice may be to find a solution using some numerical<br />

method which gives a sequence of numbers which converge to the actual solution. For<br />

example, Newton’s method for solving equations f(x)=0, which you probably learned<br />

in single-variable calculus. In this section we will describe another method of Newton<br />

for finding critical points of real-valued functions of two variables.<br />

Let f(x,y) be a smooth real-valued function, and define<br />

D(x,y)= ∂2 f<br />

∂x 2(x,y)∂2 f<br />

∂y 2(x,y)− ( ∂ 2 f<br />

∂y∂x (x,y) ) 2.<br />

Newton’s algorithm: Pick an initial point (x 0 ,y 0 ). For n=0,1,2,3,..., define:<br />

∂ 2 f ∂<br />

(x ∂y 2 n ,y n )<br />

2 f<br />

∂x∂y (x n,y n )<br />

∂ 2 f ∂<br />

(x ∂f<br />

∣∂y x n+1 = x n −<br />

(x ∂f<br />

n,y n )<br />

∂x (x ∂x<br />

n,y n )<br />

2 n ,y n )<br />

2 f<br />

∂x∂y (x n,y n )<br />

∣<br />

∂f<br />

∣∂x , y n+1 = y n −<br />

(x ∂f<br />

n,y n )<br />

∂y (x n,y n )<br />

∣<br />

D(x n ,y n )<br />

D(x n ,y n )<br />

(2.14)<br />

Then the sequence of points (x n ,y n ) ∞ n=1<br />

converges to a critical point. If there are several<br />

critical points, then you will have to try different initial points to find them.<br />

7 This is also a problem for the equivalent method (the Second Derivative Test) in single-variable calculus,<br />

though one that is not usually emphasized.<br />

8 There are also two nonreal, complex number solutions. Cubic polynomial equations in one variable<br />

can be solved using Cardan’s formulas, which are not quite as simple as the familiar quadratic formula.<br />

See USPENSKY for more details. There are formulas for solving polynomial equations of degree 4, but<br />

it can be proved that there is no general formula for solving equations for polynomials of degree five or<br />

higher.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!