
ECE 4601
ASSIGNMENT NO. 6
DATE ASSIGNED:Tuesday October 21, 2003
DATE DUE:Tuesday October 28, 2003
READING:Chapters 9, 10
PROBLEM 6.1. Let xmin denote the x that minimizes a function f(x).The gradient algorithm for f(x) produces
an estimate xk for xmin at each iteration k ∈{1, 2, …}:
Initialize: x0=anywhere
Iterate for k= 1, 2, 3, …xk+1 =xk – µf´(xk),
where f ´(xk) is shorthand notation for the derivative df(x) ⁄ dx evaluated at x=xk.
We know that the minimum of f(x) = (x– 3)2occurs at xmin = 3.
How many iterations of the gradient algorithm (with step size µ= 0.5 and initialization x0= 0)
are required to come within 1% of the correct answer?
PROBLEM 6.2. The gradient algorithm “works” (i.e.,xk→xmin) only when the step size µ is chosen
sufficiently small. If µ is too large, the algorithm becomes unstable and xk→ ∞. Specify the
values of µ for which the gradient algorithm is unstable when f(x) = (2x– 3)2.
PROBLEM 6.3. Use the gradient algorithm to estimate (to 3 decimal places of precision) the xmin that
minimizes f(x) = x2+ex.
PROBLEM 6.4. The following piecewise-linear function f(x)achieves a minimum at xmin = 2:
[Assume that the derivative is zero at the discontinuities, so that f´(2) = f´(3) = f´(4) = 0.]
Let xk denote an estimate of xmin after the k-th iteration of the gradient algorithm with step
size µ and initialization x0= 0. Let x∞=xk.
(a) If µ= 0.3, find x5.
(b) If µ= 0.3, find x57,893,552,206.
(c) Find a value of µ such that x∞=2.
(d) Find a value of µ such that x∞=4.