UBC CPSC 406 2022-T2

Homework 3

Q1. Quadratic functions

Q2. Homogeneity of the directional derivative

(a) Prove that the directional derivative (when it exists) of a function f:nf:\Re^n\to\Re is positively homogeneous of degree one, that is, show that for all α0\alpha\ge0,

f(x;αd)=αf(x;d). f'(x;\alpha d) = \alpha f'(x;d).

Use this fact to argue that the directions dd in which the directional derivative is evaluated can always be normalized, so that d2=1\|d\|_2=1.

(b) Which unit-norm direction minimizes the directional derivative, i.e., which direction provides the largest instantaneous decrease in ff at the point xx?

Q3. Nonlinear least squares (Beck, Exercise 4.6)

(a) Derive the gradient f(x)\nabla f(x). (Note that this is a slightly different objective than used in the formulation discribed in lecture. Yes, you could use AD to compute this, but here we're asking you to derive it analytically.)

(b) Part (ii) of this problem.