Type a command or search the notes. Tab cycles completions. Up and down recall history when blank. Escape dismisses, then leaves the prompt.
MATH
[1251]

Examples from Derivatives and level-set geometry

All examples from Derivatives and level-set geometry.

Computing a gradient

Let

f(x,y,z)=x2y+2xz+cos⁡(z3).f(x,y,z)=x^2y+2xz+\cos(z^3).

Holding the other variables fixed gives

fx=2xy+2z,fy=x2,fz=2x−3z2sin⁡(z3).f_x=2xy+2z, \qquad f_y=x^2, \qquad f_z=2x-3z^2\sin(z^3).

Therefore

∇f(x,y,z)=(2xy+2zx22x−3z2sin⁡(z3)).\nabla f(x,y,z) = \begin{pmatrix} 2xy+2z\\ x^2\\ 2x-3z^2\sin(z^3) \end{pmatrix}.

At a specified point this vector also predicts directional change. For example,

∇f(1,0,0)=(012),\nabla f(1,0,0) =\begin{pmatrix}0\\1\\2\end{pmatrix},

so a small displacement h\mathbf h from (1,0,0)(1,0,0) changes ff to first order by ∇f(1,0,0)⋅h\nabla f(1,0,0)\cdot\mathbf h. This is the same linear term used later in the tangent-plane approximation.

[routine]

  1. [1]:Gradient

First and second partial derivatives

Consider

f(x,y)=exy+x2y.f(x,y)=e^{xy}+x^2y.

Treating the other coordinate as constant gives

fx=yexy+2xy,fy=xexy+x2.f_x=ye^{xy}+2xy, \qquad f_y=xe^{xy}+x^2.

Differentiate fxf_x with respect to yy and fyf_y with respect to xx:

fxy=exy+xyexy+2x=fyx.f_{xy}=e^{xy}+xye^{xy}+2x =f_{yx}.

The two mixed partials agree, as Clairaut's theorem guarantees because they are continuous everywhere. The other second partials are fxx=y2exy+2yf_{xx}=y^2e^{xy}+2y and fyy=x2exyf_{yy}=x^2e^{xy}.

[routine]

  1. [1]:Partial derivative

Domain restrictions are part of the derivative

For

f(x,y,z)=xln⁡zy2,f(x,y,z)=\frac{x\ln z}{y^2},

the domain requires y≠0y\ne0 and z>0z>0. The first partial derivatives are

fx=ln⁡zy2,fy=−2xln⁡zy3,fz=xy2z,f_x=\frac{\ln z}{y^2}, \qquad f_y=-\frac{2x\ln z}{y^3}, \qquad f_z=\frac{x}{y^2z},

and the second partial derivatives are

fxx=0,fxy=−2ln⁡zy3,fxz=1y2z,f_{xx}=0, \qquad f_{xy}=-\frac{2\ln z}{y^3}, \qquad f_{xz}=\frac{1}{y^2z},fyy=6xln⁡zy4,fyz=−2xy3z,fzz=−xy2z2.f_{yy}=\frac{6x\ln z}{y^4}, \qquad f_{yz}=-\frac{2x}{y^3z}, \qquad f_{zz}=-\frac{x}{y^2z^2}.

[routine]

  1. [1]:Partial derivative

The normal to the unit circle

The unit circle is the level set

F(x,y)=x2+y2−1=0.F(x,y)=x^2+y^2-1=0.

Its gradient is

∇F(x,y)=(2x2y).\nabla F(x,y) = \begin{pmatrix} 2x\\ 2y \end{pmatrix}.

At

x0=(cos⁡ε,sin⁡ε),\mathbf{x}_0=(\cos\varepsilon,\sin\varepsilon),

a normal vector is

∇F(x0)=(2cos⁡ε2sin⁡ε).\nabla F(\mathbf{x}_0) = \begin{pmatrix} 2\cos\varepsilon\\ 2\sin\varepsilon \end{pmatrix}.

Any non-zero scalar multiple is also normal, so the radius (cos⁡ε,sin⁡ε)(\cos\varepsilon,\sin\varepsilon) gives the same direction.

Tangent plane to an implicit surface

Consider

x2+y2−xyz=1.x^2+y^2-xyz=1.

Set

F(x,y,z)=x2+y2−xyz−1.F(x,y,z)=x^2+y^2-xyz-1.

Then

∇F(x,y,z)=(2x−yz2y−xz−xy).\nabla F(x,y,z) = \begin{pmatrix} 2x-yz\\ 2y-xz\\ -xy \end{pmatrix}.

The point (1,2,2)(1,2,2) lies on the surface because 12+22−(1)(2)(2)=11^2+2^2-(1)(2)(2)=1. At this point,

∇F(1,2,2)=(−22−2).\nabla F(1,2,2) = \begin{pmatrix} -2\\ 2\\ -2 \end{pmatrix}.

The parallel vector (1,−1,1)(1,-1,1) is a simpler normal. Hence the tangent plane through (1,2,2)(1,2,2) is

(1,−1,1)⋅(x−1y−2z−2)=0,(1,-1,1)\cdot \begin{pmatrix} x-1\\ y-2\\ z-2 \end{pmatrix} =0,

or

x−y+z=1.{x-y+z=1}.

On this page