\\\\( \nonumber \newcommand{\bevisslut}{$\blacksquare$} \newenvironment{matr}[1]{\hspace{-.8mm}\begin{bmatrix}\hspace{-1mm}\begin{array}{#1}}{\end{array}\hspace{-1mm}\end{bmatrix}\hspace{-.8mm}} \newcommand{\transp}{\hspace{-.6mm}^{\top}} \newcommand{\maengde}[2]{\left\lbrace \hspace{-1mm} \begin{array}{c|c} #1 & #2 \end{array} \hspace{-1mm} \right\rbrace} \newenvironment{eqnalign}[1]{\begin{equation}\begin{array}{#1}}{\end{array}\end{equation}} \newcommand{\eqnl}{} \newcommand{\matind}[3]{{_\mathrm{#1}\mathbf{#2}_\mathrm{#3}}} \newcommand{\vekind}[2]{{_\mathrm{#1}\mathbf{#2}}} \newcommand{\jac}[2]{{\mathrm{Jacobi}_\mathbf{#1} (#2)}} \newcommand{\diver}[2]{{\mathrm{div}\mathbf{#1} (#2)}} \newcommand{\rot}[1]{{\mathbf{rot}\mathbf{(#1)}}} \newcommand{\am}{\mathrm{am}} \newcommand{\gm}{\mathrm{gm}} \newcommand{\E}{\mathrm{E}} \newcommand{\Span}{\mathrm{span}} \newcommand{\mU}{\mathbf{U}} \newcommand{\mA}{\mathbf{A}} \newcommand{\mB}{\mathbf{B}} \newcommand{\mC}{\mathbf{C}} \newcommand{\mD}{\mathbf{D}} \newcommand{\mE}{\mathbf{E}} \newcommand{\mF}{\mathbf{F}} \newcommand{\mK}{\mathbf{K}} \newcommand{\mI}{\mathbf{I}} \newcommand{\mM}{\mathbf{M}} \newcommand{\mN}{\mathbf{N}} \newcommand{\mQ}{\mathbf{Q}} \newcommand{\mT}{\mathbf{T}} \newcommand{\mV}{\mathbf{V}} \newcommand{\mW}{\mathbf{W}} \newcommand{\mX}{\mathbf{X}} \newcommand{\ma}{\mathbf{a}} \newcommand{\mb}{\mathbf{b}} \newcommand{\mc}{\mathbf{c}} \newcommand{\md}{\mathbf{d}} \newcommand{\me}{\mathbf{e}} \newcommand{\mn}{\mathbf{n}} \newcommand{\mr}{\mathbf{r}} \newcommand{\mv}{\mathbf{v}} \newcommand{\mw}{\mathbf{w}} \newcommand{\mx}{\mathbf{x}} \newcommand{\mxb}{\mathbf{x_{bet}}} \newcommand{\my}{\mathbf{y}} \newcommand{\mz}{\mathbf{z}} \newcommand{\reel}{\mathbb{R}} \newcommand{\mL}{\bm{\Lambda}} \newcommand{\mnul}{\mathbf{0}} \newcommand{\trap}[1]{\mathrm{trap}(#1)} \newcommand{\Det}{\operatorname{Det}} \newcommand{\adj}{\operatorname{adj}} \newcommand{\Ar}{\operatorname{Areal}} \newcommand{\Vol}{\operatorname{Vol}} \newcommand{\Rum}{\operatorname{Rum}} \newcommand{\diag}{\operatorname{\bf{diag}}} \newcommand{\bidiag}{\operatorname{\bf{bidiag}}} \newcommand{\spanVec}[1]{\mathrm{span}{#1}} \newcommand{\Div}{\operatorname{Div}} \newcommand{\Rot}{\operatorname{\mathbf{Rot}}} \newcommand{\Jac}{\operatorname{Jacobi}} \newcommand{\Tan}{\operatorname{Tan}} \newcommand{\Ort}{\operatorname{Ort}} \newcommand{\Flux}{\operatorname{Flux}} \newcommand{\Cmass}{\operatorname{Cm}} \newcommand{\Imom}{\operatorname{Im}} \newcommand{\Pmom}{\operatorname{Pm}} \newcommand{\IS}{\operatorname{I}} \newcommand{\IIS}{\operatorname{II}} \newcommand{\IIIS}{\operatorname{III}} \newcommand{\Le}{\operatorname{L}} \newcommand{\app}{\operatorname{app}} \newcommand{\M}{\operatorname{M}} \newcommand{\re}{\mathrm{Re}} \newcommand{\im}{\mathrm{Im}} \newcommand{\compl}{\mathbb{C}} \newcommand{\e}{\mathrm{e}} \\\\)

Exercise 1: Partial Derivatives of First and Second Order

For $\,(x,y)\in \reel^2\,$ we consider the functions

$$ f(x,y)=x^2+y^3\,\,\,\,\mathrm{and}\,\,\,\,g(x,y)=y\cos(x)\,. $$
A

Determine using paper and pencil the partial derivatives of the first order of $\,f\,$ and $\,g\,.$ State the gradient for each of the functions.

B

Determine using paper and pencil the four partial derivatives of the partial derivatives (i.e. the 2nd-order partial derivatives) of $\,f\,$ and $\,g\,.$

C

Observe that two of the four 2nd-order partial derivatives are equal.

Which? Is this circumstantial?

Exercise 2: Level Curves and Gradients

We consider the function $\,f:\reel^2\rightarrow\reel\,$ given by the expression

$$\,f(x,y)=x^2-2y\,$$

and its level curves

$$\,f(x,y)=c\,,\,\,c\in\reel\,.$$
A

Show that the level curve for an arbitrary $\,c\,$ can be described by an equation on the form $\,y=g_c(x)\,$ where $\,g_c\,$ is a real function of $\,x\,,$ and draw the level curves that correspond to $\,c\in\lbrace-2,-1,0,1,2\rbrace\,.$

B

Show that the point $\,P=(2,1)\,$ is located on the level curve corresponding to $\,c=2\,,$ and provide a parametric representation of this level curve.

C

Determine the tangent vector at $\,P\,$ to this parametric representation, and show that the tangent vector is orthogonal to the gradient of $f$ at $\,P\,.$

D

In Maple, make an inclusive plot of the level curves and the gradient vector field for $\,f\,.$

Exercise 3: Visualizations

On a mountain with an elevation map as shown below we are hiking along a trail with an elliptic shape as seen from above (shown in red). The circles on the map show level curves of and the arrows the gradient vector field of the elevation function.

bjergC.png

A

Where on the trail is the rate of increase of the path equal to $0\,?$

B

Why are the gradient vectors always perpendicular to the level curves?

C

Now draw another path that you choose arbitrarily on the shown map. It may bend and curve as you wish. Where is your path ascending, and where is it descending?

Exercise 4: Gradient Vector Fields and Directional Derivatives

Two real functions $\,f\,$ and $\,g\,$ of two real variables are given by the expressions

$$ f(x,y)=\arctan\left(\frac{x}{y}\right)\,\,\,\,\mathrm{and}\,\,\,\, g(x,y)=\ln\left(\sqrt{x^2+y^2}\right)\,. $$
A

Determine the domains of $\,f\,$ and $\,g\,,$ respectively, and sketch these domains in the $\,(x,y)$ plane.

B

Determine the gradients of the two functions.

C

Use Maple to draw a suitable section of the graphs of the functions. Use Maple to show the gradient vector fields and some level curves of the functions. Discuss with a fellow student why the graphs of the functions are drawn in an $(x,y,z)$ coordinate system, when gradient vectors and level curve contourplots are drawn in an $(x,y)$ coordinate system.

D

Can you from the two gradient plots determine whether the functions increase or decrease at point $P = (0,2)$ in the direction determined by vector $\mv = (-1,-1)$?

E

Determine for each of the two functions the directional derivative at point $P$ in the direction given by vector $\mv$.

F

Discuss the following statement: “We can characterize the gradient as the vector that points in the direction in which the function $f$ increases the most”.

Exercise 5: Clarification about Differentiability

We are given a function $\,f:\reel^2\rightarrow\reel\,$ where

$$f(x,y)=x^2-4x+y^2\,.$$
A

Show that $f$ is differentiable and determine the gradient of $f$. Show it the hardcore way directly via the definition of differentiability in Definition 19.27.

B

Show again that $f$ is differentiable, but this time the softcore way via Theorem 19.36.

Why is it required in Theorem 19.36 that the partial derivatives must be continuous - why is it not sufficient that the partial derivatives exist?

Exercise 6: More Visualizations (Advanced but Rewarding)

In the middle of an otherwise flat landscape, a mountain rises high. The mountain has the shape of the graph of the function

$$f(x,y)=x^2-y^2+4$$

above a rectangular region in the $(x,y)$ plane that is bounded by

$$-1\leq x\leq 2\quad\mathrm{and}\quad-2\leq y\leq 2\,.$$

Outside this region, the landscape is at sea level, i.e given by $f(x,y)=0$. At the boundary of the rectangular region, the mountain has vertical sides.

A

Draw a plot of the “mountain graph” using Maple.

B

What are the coordinates of the highest point, $B$, on the mountain? You can start by to a good approximation reading the coordinates from the graph. But reading from a graph is inherently imprecise and might be slightly off. Argue precisely for the exact answer mathematically as well, and then use the reading from the graph as a rough verification afterwards.

C

Show that the straight line segment given by the parametric representation

$$\mathbf{r}(t)=(x,y,z)=(0,-2,0)+t(1,1,4),\quad t\in\left[ 0;2\right] $$

is entirely embedded within the mountain surface and connects the point $\,A=(0,-2,0)\,$ (at sea level) with the highest point found above, $\,B\,.$

D

The shortest path from the mountain point $\,A =(0,-2,0)\,$ (at sea level) to the summit of the mountain at point $\,B\,$ is therefore the above straight line. Why is that?

E

Use Maple’s contourplot command to draw in an $(x,y)$ coordinate system a system of level curves of $\,f\,$ from the rectangular mountain region. This is then an elevation map or altitude map of the mountain.

  • Draw this elevation map using a number of level curves of your choice, e.g. seven.
  • Then add to your elevation map the two points $\,A\,$ and $\,B\,$.
  • Finally, add the shortest path between $\,A\,$ to $\,B\,$ that you found above.

F

Compute the gradient of $\,f\,$ at three points of your choice along the straight line between $A$ and $B$ on the map, and draw their three gradient vectors on the figure.

G

Show that there is one and only one point on the curve where the gradient of $\,f\,$ points along with (is parallel to) the line projection on the $(x,y)$ plane. For a visual overview of what you are looking for, use the gradplot command to plot many gradient vectors at once.

H

Isn’t the above result in contradiction to the usual claim that: “We can characterize the gradient as the vector that points in the direction in which the function $f$ increases the most”?