\\\\( \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 first order of $\,f\,$ and $\,g\,.$ State the gradient for each of the functions.

B

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

C

Observe that two of the four 2. order partial derivatives are equal. Which? Is this circumstantial?


Exercise 2: Clarification about Differentiability

Given the function $\,f:\reel^2\rightarrow\reel\,$ where

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

Explain that $f$ is differentiable and determine the gradient of $f$. Hardcore version: Solve the exercise directly using the definition about differentiability, see Definition $19.27.$ Softcore version: Use the results in Theorem $19.36.$

E

Why do one require in Theorem 19.36 that the partial derivatives must be continuous? Why is it not sufficient that the partial derivatives exist?


Exercise 3: 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\,.$$
F

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

G

Show that the point $\,P=(2,1)\,$ lies on the level curve corresponding to $\,c=2\,,$ and find a parametric representation for this level curve. Determine the tangent vector in $\,P\,$ corresponding to this parametric representation, and show that the tangent vector is orthogonal to the gradient for $\,f\,$ in $\,P\,.$

H

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

Exercise 4: Visualizations 1

On a mountain with an altitude map as shown below a trekking along an elliptic path (shown in red) is conducted. The arrows state the gradient vector field of the altitude function. The circles are level curves for the altitude function.

bjergC.png

A

Where on the path is the ascent of the path equal to 0?

B

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

C

Consider a walk along path in a self chosen direction. Where is it ascending, and where is it descending?

Exercise 5: 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\frac{x}{y}\,\,\,\,\mathrm{and}\,\,\,\, g(x,y)=\ln\sqrt{x^2+y^2}\,. $$
A

Determine the domains for $\,f\,$ and $\,g\,,$ respectively and sketch these 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. And use Maple to show the gradient fields and the level curves of the graphs. Why do one draw the graphs in an $(x,y,z)$-coordinate system, while the gradient vector fields and the level curves are drawn in an $(x,y)$-coordinate system?

D

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

E

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

F

Now discuss the statement “Thus one can characterize the gradient as the vector that points in the direction in which the function $f$ increases the most”.


Exercise 6: Visualization 2

We imagine that in an otherwise flat landscape lies a mountain that has the form of the graph of the function

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

in the rectangular field in the $(x,y)$-plane, that are bounded by

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

Outside this field the landscape is at sea level, i.e given by $f(x,y)=0$ (On the boundary of the field we imagine that the mountain has completely vertical sides).

G

Draw a plot of the “mountain-graph” using Maple with the domain given above.

H

What are the coordinates of the highest point, $\,B\,$, on the mountain? (First read the point from the graph and then argue precisely you answer.)

I

Show that 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] $$

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

J

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

K

Use contourplot to draw a system of level curves for the function $\,f\,$ in the rectangular mountain field in the $\,(x,y)\,$-coordinate system where the mountain surface is defined. This is then an altitude map of the mountain. Draw this altitude map using e.g. 7 level curves. Then draw on your altitude map the two points that corresponds to the mountain points $\,A\,$ and $\,B\,$ together with the line in the map that corresponds to the shortest path on the mountain from $\,A\,$ to $\,B\,$ that we found above.

L

Compute the gradient of the function $\,f\,$ in say 3 points along the found and drawn line on the map, and draw the 3 gradient-vectors on your figure, too.

M

Show that there is one and only one point on the curve where the gradient of $\,f\,$ points in the same direction as the line (possibly use the command gradplot).

N

Is this not in direct contradiction to: “Thus one can characterize the gradient as the a vector that points in the direction in which the function $f$ increases the most”?

%####### begin:answer %Gradienten indeholder kun lokal information, men det netop løste problem kræver en global betragtning.

%####### end:answer