Spectral Method

Name:

Restore previous session, if applicable
Start blank quiz
Note:

If you wish to ask for a hint or a solution, or if you want your answers checked, you have to log in. Your answers, or the fact that you asked for a hint or solution, may be recorded.




Usage notes

In this exercise, the spectral method will be applied to three different functions.

For the results please use the Maple 6 syntax. E.g.: Matrix(2, 2, [[1,2], [3,4]]); and Vector([1,2,3]).

a)

Given the function

and the starting point
(x0,y0) = (1,-1)
Verify that the function value at the starting point is 1 and compute the gradient at the starting point.
f1'(x0,y0) = ___________________



Compute the Hessian at the starting point.

f1''(x0,y0)= ___________________



Compute the eigenvalue / eigenvector decomposition of this matrix. Sort the eigenvalues in decreasing order.

___________________

U = ___________________



Compute the vector d defined in the lecture.

d = ___________________



Assume that we set the stepsize of the spectral method to h = 1. Compute the vector z.

z = ___________________



Now compute the increment vector, the new position and the function value at the new position.

___________________
(x1, y1) = ___________________
f1 (x1, y1) = ___________________



Verify that the function value decreased.

The following graph illustrates what happens in the direction of the first eigenvector. (In the direction of the second eigenvector, nothing happens.) It shows a section of the function graph of f1 along the plane going through the starting point and having the direction of the first eigenvector, i.e. the plane y = -x. Additionally it shows the second order tangent (a parabola) in this plane. The section is projected onto the plane y = 0.

The minimum of the parabola is 0.75 and thus greater than the function value of f1.


b)

Now consider a second function

and the starting point

(x0, y0) = (1, 1)

Verify that the function value at the starting point is 2/3 and compute the gradient.

f2'(x0,y0) = ___________________



Compute the Hessian at the starting point.

f2''(x0,y0) = ___________________



Compute the eigenvalue / eigenvector decomposition of this matrix. Sort the eigenvalues in decreasing order.

___________________
U = ___________________



Compute the vector d defined in the lecture.

d = ___________________



Assume that the stepsize of the spectral method is h. Compute the vector z.

z = ___________________



Now compute the increment vector. Group the terms that depend on the step size and those that do not.

___________________ + h * ___________________



Set

and compute the new position and the function value at the new postion.

(x1, y1) = ___________________
f2 (x1, y1) = ___________________



Verify that the function value decreased.


c)

Finally consider a third function

and the starting point

(x0,y0)=(-2,-2)

Verify that the function value at the starting point is 3/4 and compute the gradient at the starting point.

f3'(x0,y0) = ___________________



Compute the Hessian at the starting point.

f3''(x0,y0) = ___________________



Compute the eigenvalue / eigenvector decomposition of this matrix. Sort the eigenvalues in decreasing order.

___________________
U = ___________________



Compute the vector d defined in the lecture.

d = ___________________



Assume that we set the stepsize of the spectral method to h = 1. Compute the vector z.

z = ___________________



Now compute the increment vector. Group the terms that depend on the step size and those that do not.

___________________ + h * ___________________



Set

and compute the new position and the function value at the new position.

(x1, y1) = ___________________
f3(x1, y1) = ___________________



Verify that the function value decreased.


Home    

Feedback to quiz developers, problem reports...please use it!!!


Powered by PearlQuiz. With assistance from SkillsOnline and Web Pearls.