Week 2: Preparation#

Reading Material#

  • Reading: Read the rest of Chapter 3 (so, Definition 3.1.2 through Example 3.1.4 and Sections 3.4 through 3.8).

  • Python: Demo 2

Key Concepts#

Long Day will cover:

  • Directional derivatives

  • Differentiability

  • The Jacobian matrix

  • The gradient vector

  • The generalized chain rule

  • The Hessian matrix

Short Day is dedicated to Theme 1: The Gradient Method.


Preparatory Exercises#

I: A Composite Function#

Let \(g : \mathbb{R}^2 \to \mathbb{R}\) be given by

\[\begin{equation*} g(x,y) = e^{2x+y}, \end{equation*}\]

and let \(\pmb{f} : \mathbb{R} \to \mathbb{R}^2\) be given by

\[\begin{equation*} \pmb{f}(t) = \bigl(t^2, \sin(t)\bigr). \end{equation*}\]

Question a#

Find the composite function \(g \circ \pmb{f}\).

Question b#

Calculate the derivative

\[\begin{equation*} \frac{d}{dt}(g \circ \pmb{f})(t). \end{equation*}\]

Question c#

Is the composite function \(\pmb{f} \circ g\) well-defined?

II: Partial Derivatives and Directional Derivatives#

Let \(f : \mathbb{R}^2 \to \mathbb{R}\) be given by

\[\begin{equation*} f(x,y) = x^2 y + y^3. \end{equation*}\]

Question a#

Calculate the partial derivatives \(\frac{\partial f}{\partial x}\) and \(\frac{\partial f}{\partial y}\) at the point \((1,2)\).

Question b#

Calculate the gradient vector \(\nabla f(x,y)\), and state \(\nabla f(1,2)\).

Question c#

Calculate the directional derivative in the direction given by \(\pmb{e}_1=[1,0]^T\) at the point \((1,2)\). Also, calculate the directional derivative in the direction given by \(\pmb{e}_2=[0,1]^T\) at the point \((1,2)\).

Question d#

What do the answers in questions b and c have to do with each other?

III: A Vector Function in Three Variables#

Let \(\pmb{f} : \mathbb{R}^3 \to \mathbb{R}^2\) be given by

\[\begin{equation*} \pmb{f}(x,y,z) = \bigl(xy + z, x - yz\bigr). \end{equation*}\]

Question a#

Calculate \(\pmb{f}(1,2,3)\).

Question b#

Find the Jacobian matrix \(\pmb{J}_{\pmb{f}}(x,y,z)\). Calculate \(\pmb{J}_{\pmb{f}}(1,2,3)\).