Navigation

Partial Derivatives

2.2 Partial Derivatives

12 problems · hints, answers and solutions shown beside each one

1Stage 1Conceptual

Do you understand the idea? Usually little or no calculation.

Q1Stage 1

Let f(x,y)=excosyf(x,y) = e^x\cos y. The following table gives some values of f(x,y)f(x,y).

x=0x=0x=0.01x=0.01x=0.1x=0.1
y=0.1y=-0.10.995001.005001.09965
y=0.01y=-0.010.999951.010001.10512
y=0y=01.01.010051.10517
  1. Find two different approximate values for fx(0,0)\pdiff{f}{x}(0,0) using the data in the above table.

  2. Find two different approximate values for fy(0,0)\pdiff{f}{y}(0,0) using the data in the above table.

  3. Evaluate fx(0,0)\pdiff{f}{x}(0,0) and fy(0,0)\pdiff{f}{y}(0,0) exactly.

Hint

Review Definition 2.2.1 in the CLP-3 text.

Answer
  1. fx(0,0)f(h,0)f(0,0)hh=0.1=1.1051710.1=1.0517\begin{align*} \pdiff{f}{x}(0,0) \approx \left.\frac{f(h,0)-f(0,0)}{h}\right|_{h=0.1} =\frac{1.10517-1}{0.1} =1.0517 \end{align*}

    and

    fx(0,0)f(h,0)f(0,0)hh=0.01=1.0100510.01=1.005\begin{align*} \pdiff{f}{x}(0,0) \approx \left.\frac{f(h,0)-f(0,0)}{h}\right|_{h=0.01} =\frac{1.01005-1}{0.01} =1.005 \end{align*}
  2. fy(0,0)f(0,h)f(0,0)hh=0.1=0.9950010.1=0.0500\begin{align*} \pdiff{f}{y}(0,0) \approx \left.\frac{f(0,h)-f(0,0)}{h}\right|_{h=-0.1} =\frac{0.99500-1}{-0.1} =0.0500 \end{align*}

    and

    fy(0,0)f(0,h)f(0,0)hh=0.01=0.9999510.01=.0050\begin{align*} \pdiff{f}{y}(0,0) \approx \left.\frac{f(0,h)-f(0,0)}{h}\right|_{h=-0.01} =\frac{0.99995-1}{-0.01} =.0050 \end{align*}
  3. fx(0,0)=1\pdiff{f}{x}(0,0) =1 and fy(0,0)=0\pdiff{f}{y}(0,0) = 0

Full solution
  1. By definition

    fx(0,0)=limh0f(h,0)f(0,0)h\begin{equation*} \pdiff{f}{x}(0,0) =\lim_{h\rightarrow 0}\frac{f(h,0)-f(0,0)}{h} \end{equation*}

    One approximation to this is

    fx(0,0)f(h,0)f(0,0)hh=0.1=1.1051710.1=1.0517\begin{align*} \pdiff{f}{x}(0,0) \approx \left.\frac{f(h,0)-f(0,0)}{h}\right|_{h=0.1} =\frac{1.10517-1}{0.1} =1.0517 \end{align*}

    Another approximation to this is

    fx(0,0)f(h,0)f(0,0)hh=0.01=1.0100510.01=1.005\begin{align*} \pdiff{f}{x}(0,0) \approx \left.\frac{f(h,0)-f(0,0)}{h}\right|_{h=0.01} =\frac{1.01005-1}{0.01} =1.005 \end{align*}
  2. By definition

    fy(0,0)=limh0f(0,h)f(0,0)h\begin{equation*} \pdiff{f}{y}(0,0) =\lim_{h\rightarrow 0}\frac{f(0,h)-f(0,0)}{h} \end{equation*}

    One approximation to this is

    fy(0,0)f(0,h)f(0,0)hh=0.1=0.9950010.1=0.0500\begin{align*} \pdiff{f}{y}(0,0) \approx \left.\frac{f(0,h)-f(0,0)}{h}\right|_{h=-0.1} =\frac{0.99500-1}{-0.1} =0.0500 \end{align*}

    Another approximation to this is

    fy(0,0)f(0,h)f(0,0)hh=0.01=0.9999510.01=.0050\begin{align*} \pdiff{f}{y}(0,0) \approx \left.\frac{f(0,h)-f(0,0)}{h}\right|_{h=-0.01} =\frac{0.99995-1}{-0.01} =.0050 \end{align*}
  3. To take the partial derivative with respect to xx at (0,0)(0,0), we set y=0y=0, differentiate with respect to xx and then set x=0x=0. So

    fx(0,0)=ddxexcos0x=0=exx=0=1\begin{align*} \pdiff{f}{x}(0,0) = \left.\diff{}{x} e^x\cos 0\right|_{x=0} =\left.e^x\right|_{x=0}=1 \end{align*}

    To take the partial derivative with respect to yy at (0,0)(0,0), we set x=0x=0, differentiate with respect to yy and then set y=0y=0. So

    fy(0,0)=ddye0cosyy=0=sinyy=0=0\begin{align*} \pdiff{f}{y}(0,0) = \left.\diff{}{y} e^0\cos y\right|_{y=0} =\left.\sin y\right|_{y=0} =0 \end{align*}
Q2Stage 1

You are traversing an undulating landscape. Take the zz-axis to be straight up towards the sky, the positive xx-axis to be due south, and the positive yy-axis to be due east. Then the landscape near you is described by the equation z=f(x,y)z=f(x,y), with you at the point (0,0,f(0,0))(0,0,f(0,0)). The function f(x,y)f(x,y) is differentiable.

Suppose fy(0,0)<0f_y(0,0)<0. Is it possible that you are at a summit? Explain.

Hint

What happens if you move “backwards," in the negative yy direction?

Answer

No: you can go higher by moving in the negative yy direction.

Full solution

If fy(0,0)<0f_y(0,0)<0, then f(0,y)f(0,y) decreases as yy increases from 00. Thus moving in the positive yy direction takes you downhill. This means you aren't at the lowest point in a valley, since you can still move downhill. On the other hand, as fy(0,0)<0f_y(0,0)<0, f(0,y)f(0,y) also decreases as yy increases towards 00 from slightly negative values. Thus if you move in the negative yy-direction from y=0y=0, your height zz will increase. So you are not at a locally highest point—you're not at a summit.

Q3Stage 1Past exam · M226 2009D

Let

f(x,y)={x2yx2+y2if (x,y)(0,0)0if (x,y)=(0,0)\begin{equation*} f(x,y)=\begin{cases}\frac{x^2y}{x^2+y^2}& \text{if }(x,y)\ne (0,0) \\ {} 0 & \text{if }(x,y)=(0,0) \end{cases} \end{equation*}

Compute, directly from the definitions,

  1. fx(0,0)\pdiff{f}{x}(0,0)

  2. fy(0,0)\pdiff{f}{y}(0,0)

  3. ddtf(t,t)t=0\diff{}{t} f(t,t)\Big|_{t=0}

Hint

For (a) and (b), remember fx(x,y)=limh0f(x+h,y)f(x,y)h\pdiff{f}{x}(x,y)=\lim\limits_{h\to0}\frac{f(x+h,y)-f(x,y)}{h} and fy(x,y)=limh0f(x,y+h)f(x,y)h\pdiff{f}{y}(x,y)=\lim\limits_{h\to0}\frac{f(x,y+h)-f(x,y)}{h}. For (c), you're finding the derivative of a function of one variable, say g(t)g(t), where

g(t)=f(t,t)={t2tt2+t2if t00if t=0\begin{equation*} g(t)=f(t,t)=\begin{cases} \frac{t^2t}{t^2+t^2} & \text{if }t\ne 0 \\ 0 & \text{if }t= 0 \end{cases} \end{equation*}
Answer

(a) 00 (b) 00 (c) 12\frac{1}{2}

Full solution

(a) By definition

fx(0,0)=limΔx0f(Δx,0)f(0,0)Δx=limΔx0(Δx2)(0)Δx2+020Δx=0\begin{align*} \pdiff{f}{x}(0,0) &=\lim_{\De x\rightarrow 0}\frac{f(\De x,0)-f(0,0)}{\De x} \\ &=\lim_{\De x\rightarrow 0}\frac{\frac{(\De x^2)(0)}{\De x^2+0^2}-0}{\De x} \\ &=0 \end{align*}

(b) By definition

fy(0,0)=limΔy0f(0,Δy)f(0,0)Δy=limΔy0(02)(Δy)02+Δy20Δy=0\begin{align*} \pdiff{f}{y}(0,0) &=\lim_{\De y\rightarrow 0}\frac{f(0,\De y)-f(0,0)}{\De y} \\ &=\lim_{\De y\rightarrow 0}\frac{\frac{(0^2)(\De y)}{0^2+\De y^2}-0}{\De y} \\ &=0 \end{align*}

(c) By definition

ddtf(t,t)t=0=limt0f(t,t)f(0,0)t=limt0(t2)(t)t2+t20t=limt0t/2t=12\begin{align*} \diff{}{t} f(t,t)\Big|_{t=0} &=\lim_{t\rightarrow 0}\frac{f(t,t)-f(0,0)}{t} \\ &=\lim_{t\rightarrow 0}\frac{\frac{(t^2)(t)}{t^2+t^2}-0}{t} \\ &=\lim_{t\rightarrow 0}\frac{t/2}{t} \\ &=\frac{1}{2} \end{align*}

2Stage 2Procedural

Practising the skill itself, until applying it is automatic.

Q4Stage 2

Find all first partial derivatives of the following functions and evaluate them at the given point.

  1. f(x,y,z)=x3y4z5(0,1,1)f(x,y,z)=x^3y^4z^5\qquad (0,-1,-1)

  2. w(x,y,z)=ln(1+exyz)(2,0,1)w(x,y,z)=\ln\left(1+e^{xyz}\right)\qquad (2,0,-1)

  3. f(x,y)=1x2+y2(3,4)f(x,y)=\frac{1}{\sqrt{x^2+y^2}}\qquad (-3,4)

Answer

(a)

fx(x,y,z)=3x2y4z5fx(0,1,1)=0fy(x,y,z)=4x3y3z5fy(0,1,1)=0fz(x,y,z)=5x3y4z4fz(0,1,1)=0\begin{align*} f_x(x,y,z)&=3x^2y^4z^5 & f_x(0,-1,-1)&=0\\ f_y(x,y,z)&=4x^3y^3z^5 & f_y(0,-1,-1)&=0\\ f_z(x,y,z)&=5x^3y^4z^4 & f_z(0,-1,-1)&=0 \end{align*}

(b)

wx(x,y,z)=yzexyz1+exyzwx(2,0,1)=0wy(x,y,z)=xzexyz1+exyzwy(2,0,1)=1wz(x,y,z)=xyexyz1+exyzwz(2,0,1)=0\begin{align*} w_x(x,y,z)&=\frac{yz e^{xyz}}{1+e^{xyz}} & w_x(2,0,-1)&=0\\ w_y(x,y,z)&=\frac{xz e^{xyz}}{1+e^{xyz}} & w_y(2,0,-1)&=-1\\ w_z(x,y,z)&=\frac{xy e^{xyz}}{1+e^{xyz}} & w_z(2,0,-1)&=0 \end{align*}

(c)

fx(x,y)=x(x2+y2)3/2fx(3,4)=3125fy(x,y)=y(x2+y2)3/2fy(3,4)=4125\begin{align*} f_x(x,y)&=-\frac{x}{(x^2+y^2)^{3/2}} & f_x(-3,4)&=\frac{3}{125}\\ f_y(x,y)&=-\frac{y}{(x^2+y^2)^{3/2}} & f_y(-3,4)&=-\frac{4}{125} \end{align*}
Full solution

(a)

fx(x,y,z)=3x2y4z5fx(0,1,1)=0fy(x,y,z)=4x3y3z5fy(0,1,1)=0fz(x,y,z)=5x3y4z4fz(0,1,1)=0\begin{align*} f_x(x,y,z)&=3x^2y^4z^5 & f_x(0,-1,-1)&=0\\ f_y(x,y,z)&=4x^3y^3z^5 & f_y(0,-1,-1)&=0\\ f_z(x,y,z)&=5x^3y^4z^4 & f_z(0,-1,-1)&=0 \end{align*}

(b)

wx(x,y,z)=yzexyz1+exyzwx(2,0,1)=0wy(x,y,z)=xzexyz1+exyzwy(2,0,1)=1wz(x,y,z)=xyexyz1+exyzwz(2,0,1)=0\begin{align*} w_x(x,y,z)&=\frac{yz e^{xyz}}{1+e^{xyz}} & w_x(2,0,-1)&=0\\ w_y(x,y,z)&=\frac{xz e^{xyz}}{1+e^{xyz}} & w_y(2,0,-1)&=-1\\ w_z(x,y,z)&=\frac{xy e^{xyz}}{1+e^{xyz}} & w_z(2,0,-1)&=0 \end{align*}

(c)

fx(x,y)=x(x2+y2)3/2fx(3,4)=3125fy(x,y)=y(x2+y2)3/2fy(3,4)=4125\begin{align*} f_x(x,y)&=-\frac{x}{(x^2+y^2)^{3/2}} & f_x(-3,4)&=\frac{3}{125}\\ f_y(x,y)&=-\frac{y}{(x^2+y^2)^{3/2}} & f_y(-3,4)&=-\frac{4}{125} \end{align*}
Q5Stage 2

Show that the function z(x,y)=x+yxyz(x,y)=\frac{x+y}{x-y} obeys

xzx(x,y)+yzy(x,y)=0\begin{equation*} x\pdiff{z}{x}(x,y)+y\pdiff{z}{y}(x,y) = 0 \end{equation*}
Hint

Just evaluate xzx(x,y)+yzy(x,y)x\pdiff{z}{x}(x,y)+y\pdiff{z}{y}(x,y).

Answer

See the solution.

Full solution

By the quotient rule

zx(x,y)=(1)(xy)(x+y)(1)(xy)2=2y(xy)2zy(x,y)=(1)(xy)(x+y)(1)(xy)2=2x(xy)2\begin{alignat*}{3} \pdiff{z}{x}(x,y) &=\frac{(1)(x-y)-(x+y)(1)}{(x-y)^2} &&=\frac{-2y}{(x-y)^2}\\ \pdiff{z}{y}(x,y) &=\frac{(1)(x-y)-(x+y)(-1)}{(x-y)^2} &&=\frac{2x}{(x-y)^2} \end{alignat*}

Hence

xzx(x,y)+yzy(x,y)=2xy+2yx(xy)2=0\begin{equation*} x\pdiff{z}{x}(x,y)+y\pdiff{z}{y}(x,y) =\frac{-2xy+2yx}{(x-y)^2} =0 \end{equation*}
Q6Stage 2Past exam · M200 2010A

A surface z(x,y)z(x, y) is defined by zyy+x=ln(xyz)zy - y + x = \ln(xyz).

  1. Compute zx\pdiff{z}{x}, zy\pdiff{z}{y} in terms of xx, yy, zz.

  2. Evaluate zx\pdiff{z}{x} and zy\pdiff{z}{y} at (x,y,z)=(1,2,1/2)(x, y, z) = (-1, -2, 1/2).

Answer

(a) zx=z(1x)x(yz1)\pdiff{z}{x} = \frac{z(1-x)}{x(yz-1)}, zy=z(1+yyz)y(yz1)\pdiff{z}{y} = \frac{z(1+y-yz)}{y(yz-1)}

(b) zx(1,2)=12\pdiff{z}{x}(-1,-2) =\frac{1}{2}, zy(1,2)=0\pdiff{z}{y}(-1,-2) =0.

Full solution

(a) We are told that z(x,y)z(x,y) obeys

z(x,y)yy+x=ln(xyz(x,y))\begin{align*} z(x,y)\, y - y + x = \ln\big(xy\,z(x,y)\big) \tag{$*$}\end{align*}

for all (x,y)(x,y) (near (1,2)(-1,-2)). Differentiating ()(*) with respect to xx gives

yzx(x,y)+1=1x+zx(x,y)z(x,y)    zx(x,y)=1x1y1z(x,y)\begin{align*} y\,\pdiff{z}{x}(x,y) + 1 = \frac{1}{x} + \frac{\pdiff{z}{x}(x,y)}{z(x,y)} \implies \pdiff{z}{x}(x,y) = \frac{\frac{1}{x}-1}{y-\frac{1}{z(x,y)}} \end{align*}

or, dropping the arguments (x,y)(x,y) and multiplying both the numerator and denominator by xzxz,

zx=zxzxyzx=z(1x)x(yz1)\begin{align*} \pdiff{z}{x} = \frac{z-xz}{xyz-x} = \frac{z(1-x)}{x(yz-1)} \end{align*}

Differentiating ()(*) with respect to yy gives

z(x,y)+yzy(x,y)1=1y+zy(x,y)z(x,y)    zy(x,y)=1y+1z(x,y)y1z(x,y)\begin{align*} z(x,y)+y\,\pdiff{z}{y}(x,y) - 1 = \frac{1}{y} + \frac{\pdiff{z}{y}(x,y)}{z(x,y)} \implies \pdiff{z}{y}(x,y) = \frac{\frac{1}{y}+1-z(x,y)}{y-\frac{1}{z(x,y)}} \end{align*}

or, dropping the arguments (x,y)(x,y) and multiplying both the numerator and denominator by yzyz,

zy=z+yzyz2y2zy=z(1+yyz)y(yz1)\begin{align*} \pdiff{z}{y} = \frac{z+yz-yz^2}{y^2z-y} = \frac{z(1+y-yz)}{y(yz-1)} \end{align*}

(b) When (x,y,z)=(1,2,1/2)(x,y,z) = (-1, -2, 1/2),

zx(1,2)=1x1y1z(x,y,z)=(1,2,1/2)=11122=12zy(1,2)=1y+1zy1z(x,y,z)=(1,2,1/2)=12+11222=0\begin{align*} \pdiff{z}{x}(-1,-2) &= \left.\frac{\frac{1}{x}-1}{y-\frac{1}{z}} \right|_{(x,y,z) = (-1, -2, 1/2)} =\frac{\frac{1}{-1}-1}{-2-2} =\frac{1}{2} \\ \pdiff{z}{y}(-1,-2) &= \left.\frac{\frac{1}{y}+1-z}{y-\frac{1}{z}} \right|_{(x,y,z) = (-1, -2, 1/2)} =\frac{\frac{1}{-2}+1-\frac{1}{2}}{-2-2} =0 \end{align*}
Q7Stage 2Past exam · M200 2010D

Find UT\pdiff{U}{T} and TV\pdiff{T}{V} at (1,1,2,4)(1, 1, 2, 4) if (T,U,V,W)(T, U, V, W) are related by

(TUV)2ln(WUV)=ln2\begin{equation*} (TU-V)^2 \ln(W-UV) = \ln 2 \end{equation*}
Answer

UT(1,2,4)=2ln(2)1+2ln(2)\pdiff{U}{T}(1,2,4) = -\frac{2\ln(2)}{1+2\ln(2)} TV(1,2,4)=114ln(2)\pdiff{T}{V}(1,2,4) = 1 -\frac{1}{4\ln(2)}

Full solution

We are told that the four variables TT, UU, VV, WW obey the single equation (TUV)2ln(WUV)=ln2(TU-V)^2 \ln(W-UV) = \ln 2. So they are not all independent variables. Roughly speaking, we can treat any three of them as independent variables and solve the given equation for the fourth as a function of the three chosen independent variables.

We are first asked to find UT\pdiff{U}{T}. This implicitly tells to treat TT, VV and WW as independent variables and to view UU as a function U(T,V,W)U(T,V,W) that obeys

(TU(T,V,W)V)2ln(WU(T,V,W)V)=ln2\begin{equation*} \big(T\, U(T,V,W)-V\big)^2 \ln\big(W-U(T,V,W)\,V\big) = \ln 2 \tag{E1}\end{equation*}

for all (T,U,V,W)(T, U, V, W) sufficiently near (1,1,2,4)(1, 1, 2, 4). Differentiating (E1) with respect to TT gives

2(TU(T,V,W)V)[U(T,V,W)+T UT(T,V,W)]ln(WU(T,V,W)V)(TU(T,V,W)V)21WU(T,V,W)VUT(T,V,W)V=0\begin{align*} &2\big(T\, U(T,V,W)-V\big) \left[ U(T,V,W) +T\ \pdiff{U}{T}(T,V,W)\right] \ln\big(W-U(T,V,W)\,V\big) \\ &\hskip1in -\big(T\, U(T,V,W)-V\big)^2 \frac{1}{W-U(T,V,W)\,V}\pdiff{U}{T}(T,V,W)\,V = 0 \end{align*}

In particular, for (T,U,V,W)=(1,1,2,4)(T, U, V, W)=(1, 1, 2, 4),

2((1)(1)2)[1+(1)UT(1,2,4)]ln(4(1)(2))((1)(1)2)214(1)(2)UT(1,2,4)(2)=0\begin{align*} &2\big((1)(1)-2\big) \left[ 1 +(1)\pdiff{U}{T}(1,2,4)\right] \ln\big(4-(1)(2)\big) \\ &\hskip1in -\big((1)(1)-2\big)^2 \frac{1}{4-(1)(2)}\pdiff{U}{T}(1,2,4)\,(2) = 0 \end{align*}

This simplifies to

2[1+UT(1,2,4)]ln(2)UT(1,2,4)=0    UT(1,2,4)=2ln(2)1+2ln(2)\begin{align*} -2\left[ 1 +\pdiff{U}{T}(1,2,4)\right] \ln(2) -\pdiff{U}{T}(1,2,4)=0 \implies \pdiff{U}{T}(1,2,4) = -\frac{2\ln(2)}{1+2\ln(2)} \end{align*}

We are then asked to find TV\pdiff{T}{V}. This implicitly tells to treat UU, VV and WW as independent variables and to view TT as a function T(U,V,W)T(U,V,W) that obeys

(T(U,V,W)UV)2ln(WUV)=ln2\begin{equation*} \big(T(U,V,W)\, U-V\big)^2 \ln\big(W-U\,V\big) = \ln 2 \tag{E2}\end{equation*}

for all (T,U,V,W)(T, U, V, W) sufficiently near (1,1,2,4)(1, 1, 2, 4). Differentiating (E2) with respect to VV gives

2(T(U,V,W)UV) [TV(U,V,W) U1]ln(WUV)(T(U,V,W)UV)2UWUV=0\begin{align*} &2\big(T(U,V,W)\, U-V\big)\ \left[\pdiff{T}{V}(U,V,W)\ U-1\right] \ln\big(W-U\,V\big) \\ &\hskip2.5in -\big(T(U,V,W)\, U-V\big)^2 \frac{U}{W-U\,V} = 0 \end{align*}

In particular, for (T,U,V,W)=(1,1,2,4)(T, U, V, W)=(1, 1, 2, 4),

2((1)(1)2)[(1)TV(1,2,4)1]ln(4(1)(2))((1)(1)2)214(1)(2)=0\begin{align*} &2\big((1)(1)-2\big) \left[ (1)\pdiff{T}{V}(1,2,4)-1\right] \ln\big(4-(1)(2)\big) \\ &\hskip2.5in -\big((1)(1)-2\big)^2 \frac{1}{4-(1)(2)} = 0 \end{align*}

This simplifies to

2[TV(1,2,4)1]ln(2)12=0    TV(1,2,4)=114ln(2)\begin{align*} -2\left[\pdiff{T}{V}(1,2,4)-1\right] \ln(2) -\frac{1}{2}=0 \implies \pdiff{T}{V}(1,2,4) = 1 -\frac{1}{4\ln(2)} \end{align*}
Q8Stage 2Past exam · M200 2013D

Suppose that u=x2+yzu = x^2 + yz, x=ρrcos(θ)x = \rho r \cos(\theta), y=ρrsin(θ)y = \rho r \sin(\theta) and z=ρrz = \rho r. Find ur\pdiff{u}{r} at the point (ρ0,r0,θ0)=(2,3,π/2)(\rho_0 , r_0 , \theta_0) = (2, 3, \pi/2).

Answer

2424

Full solution

The function

u(ρ,r,θ)=[ρrcosθ]2+[ρrsinθ]ρr=ρ2r2cos2θ+ρ2r2sinθ\begin{align*} u(\rho, r,\theta) &= \big[\rho r\cos\theta\big]^2 +\big[\rho r\sin\theta\big] \rho r \\ &=\rho^2 r^2\cos^2\theta +\rho^2 r^2\sin\theta \end{align*}

So

ur(ρ,r,θ)=2ρ2rcos2θ+2ρ2rsinθ\begin{align*} \pdiff{u}{r}(\rho, r,\theta) &=2 \rho^2 r\cos^2\theta +2 \rho^2 r\sin\theta \end{align*}

and

ur(2,3,π/2)=2(22)(3)(0)2+2(22)(3)(1)=24\begin{align*} \pdiff{u}{r}(2, 3,\pi/2) &=2 (2^2) (3) (0)^2 +2 (2^2) (3) (1) =24 \end{align*}
Q9Stage 2

Use the definition of the derivative to evaluate fx(0,0)f_x(0,0) and fy(0,0)f_y(0,0) for

f(x,y)={x22y2xyif xy0if x=y\begin{equation*} f(x,y)=\begin{cases} \frac{x^2-2y^2}{x-y}&\text{if }x\ne y\\ 0&\text{if }x=y \end{cases} \end{equation*}
Answer

fx(0,0)=1f_x(0,0)=1, fy(0,0)=2f_y(0,0)=2

Full solution

By definition

fx(x0,y0)=limΔx0f(x0+Δx,y0)f(x0,y0)Δxfy(x0,y0)=limΔy0f(x0,y0+Δy)f(x0,y0)Δy\begin{equation*} f_x(x_0,y_0)=\lim_{\De x\rightarrow 0}\frac{f(x_0+\De x,y_0)-f(x_0,y_0)}{\De x} \qquad f_y(x_0,y_0)=\lim_{\De y\rightarrow 0}\frac{f(x_0,y_0+\De y)-f(x_0,y_0)}{\De y} \end{equation*}

Setting x0=y0=0x_0=y_0=0,

fx(0,0)=limΔx0f(Δx,0)f(0,0)Δx=limΔx0f(Δx,0)Δx=limΔx0((Δx)22×02)/(Δx0)Δx=limΔx01=1fy(0,0)=limΔy0f(0,Δy)f(0,0)Δy=limΔy0f(0,Δy)Δy=limΔy0(022(Δy)2)/(0Δy)Δy=limΔy02=2\begin{alignat*}{5} f_x(0,0)&=\lim_{\De x\rightarrow 0}\frac{f(\De x,0)-f(0,0)}{\De x} &=\lim_{\De x\rightarrow 0}\frac{f(\De x,0)}{\De x} &=\lim_{\De x\rightarrow 0}\frac{((\De x)^2-2\times0^2)/(\De x-0)}{\De x} \\ &=\lim_{\De x\rightarrow 0}1 =1\\ f_y(0,0)&=\lim_{\De y\rightarrow 0}\frac{f(0,\De y)-f(0,0)}{\De y} &=\lim_{\De y\rightarrow 0}\frac{f(0,\De y)}{\De y} &=\lim_{\De y\rightarrow 0}\frac{(0^2-2(\De y)^2)/(0-\De y)}{\De y} \\ &=\lim_{\De y\rightarrow 0}2 =2 \end{alignat*}

3Stage 3Application

Further than practice: several ideas at once, or an unfamiliar situation.

Q10Stage 3

Let ff be any differentiable function of one variable. Define z(x,y)=f(x2+y2)z(x,y)=f(x^2+y^2). Is the equation

yzx(x,y)xzy(x,y)=0\begin{equation*} y\pdiff{z}{x}(x,y)-x\pdiff{z}{y}(x,y) = 0 \end{equation*}

necessarily satisfied?

Hint

Just evaluate yzx(x,y)y\pdiff{z}{x}(x,y) and xzy(x,y)x\pdiff{z}{y}(x,y).

Answer

Yes.

Full solution

As z(x,y)=f(x2+y2)z(x,y)=f(x^2+y^2)

zx(x,y)=2xf(x2+y2)zy(x,y)=2yf(x2+y2)\begin{align*} \pdiff{z}{x}(x,y)&=2xf'(x^2+y^2) \\ \pdiff{z}{y}(x,y)&=2yf'(x^2+y^2) \end{align*}

by the (ordinary single variable) chain rule. So

yzxxzy=y(2x)f(x2+y2)x(2y)f(x2+y2)=0\begin{equation*} y\pdiff{z}{x}-x\pdiff{z}{y} =y(2x)f'(x^2+y^2)-x(2y)f'(x^2+y^2)=0 \end{equation*}

and the differential equation is always satisfied, assuming that ff is differentiable, so that the chain rule applies.

Q11Stage 3

Define the function

f(x,y)={(x+2y)2x+yif x+y00if x+y=0\begin{equation*} f(x,y)=\begin{cases}\frac{(x+2y)^2}{x+y}& \text{if }x+y\ne 0 \\ {} 0 &\text{if }x+y=0 \end{cases} \end{equation*}
  1. Evaluate, if possible, fx(0,0)\pdiff{f}{x}(0,0) and fy(0,0)\pdiff{f}{y}(0,0).

  2. Is f(x,y)f(x,y) continuous at (0,0)(0,0)?

Answer

(a) fx(0,0)=1\pdiff{f}{x}(0,0)=1, fy(0,0)=4\pdiff{f}{y}(0,0)=4 (b) Nope.

Full solution

By definition

fx(0,0)=limΔx0f(Δx,0)f(0,0)Δx=limΔx0(Δx+2×0)2Δx+00Δx=limΔx0ΔxΔx=1\begin{align*} \pdiff{f}{x}(0,0) &=\lim_{\De x\rightarrow 0}\frac{f(\De x,0)-f(0,0)}{\De x} \\ &=\lim_{\De x\rightarrow 0}\frac{\frac{(\De x+2\times 0)^2}{\De x+0}-0}{\De x} \\ &=\lim_{\De x\rightarrow 0}\frac{\De x}{\De x} \\ &=1 \end{align*}

and

fy(0,0)=limΔy0f(0,Δy)f(0,0)Δy=limΔy0(0+2Δy)20+Δy0Δy=limΔy04ΔyΔy=4\begin{align*} \pdiff{f}{y}(0,0) &=\lim_{\De y\rightarrow 0}\frac{f(0,\De y)-f(0,0)}{\De y} \\ &=\lim_{\De y\rightarrow 0}\frac{\frac{(0+2\De y)^2}{0+\De y}-0}{\De y} \\ &=\lim_{\De y\rightarrow 0}\frac{4\De y}{\De y} \\ &=4 \end{align*}

(b) f(x,y)f(x,y) is not continuous at (0,0)(0,0), even though both partial derivatives exist there. To see this, make a change of coordinates from (x,y)(x,y) to (X,y)(X,y) with X=x+yX=x+y (the denominator). Of course, (x,y)(0,0)(x,y)\rightarrow (0,0) if and only if (X,y)(0,0)(X,y)\rightarrow (0,0). Now watch what happens when (X,y)(0,0)(X,y)\rightarrow(0,0) with XX a lot smaller than yy. For example, X=ay2X=ay^2. Then

(x+2y)2x+y=(X+y)2X=(ay2+y)2ay2=(1+ay)2a1a\begin{align*} \frac{(x+2y)^2}{x+y}=\frac{(X+y)^2}{X}=\frac{(ay^2+y)^2}{ay^2} =\frac{(1+ay)^2}{a}\rightarrow\frac{1}{a} \end{align*}

This depends on aa. So approaching (0,0)(0,0) along different paths gives different limits. (You can see the same effect without changing coordinates by sending (x,y)(0,0)(x,y)\rightarrow (0,0) with x=y+ay2x=-y+ay^2.) Even more dramatically, watch what happens when (X,y)(0,0)(X,y)\rightarrow(0,0) with X=y3X=y^3. Then

(x+2y)2x+y=(X+y)2X=(y3+y)2y3=(1+y2)2y±\begin{equation*} \frac{(x+2y)^2}{x+y}=\frac{(X+y)^2}{X}=\frac{(y^3+y)^2}{y^3} =\frac{{(1+y^2)}^2}{y}\rightarrow\pm\infty \end{equation*}
Q12Stage 3

Consider the cylinder whose base is the radius-1 circle in the xyxy-plane centred at (0,0)(0,0), and which slopes parallel to the line in the yzyz-plane given by z=yz=y.

Figure from prob_s2.2, line 2

Figure from prob_s2.2, line 2

When you stand at the point (0,1,0)(0,-1,0), what is the slope of the surface if you look in the positive yy direction? The positive xx direction?

Hint

You can find an equation for the surface, or just look at the diagram.

Answer

1 resp. 0

Full solution

Solution 1
Let's start by finding an equation for this surface. Every level curve is a horizontal circle of radius one, so the equation should be of the form

(xf1)2+(yf2)2=1\begin{equation*} (x-f_1)^2+(y-f_2)^2=1 \end{equation*}

where f1f_1 and f2f_2 are functions depending only on zz. Since the centre of the circle at height zz is at position x=0x=0, y=zy=z, we see that the equation of our surface is

x2+(yz)2=1\begin{equation*} x^2+(y-z)^2=1 \end{equation*}

The height of the surface at the point (x,y)(x,y) is the z(x,y)z(x,y) found by solving that equation. That is,

x2+(yz(x,y))2=1\begin{equation*} x^2+\big(y-z(x,y)\big)^2=1 \tag{$*$} \end{equation*}

We differentiate this equation implicitly to find zx(x,y)z_x(x,y) and zy(x,y)z_y(x,y) at the desired point (x,y)=(0,1)(x,y)= (0,-1). First, differentiating ()(*) with respect to yy gives

0+2(yz(x,y))(1zy(x,y))=02(10)(1zy(0,1))=0 at (0,1,0)\begin{align*} 0+2\big(y-z(x,y)\big)\big(1- z_y(x,y)\big)&=0 \\ 2(-1-0)\big(1-z_y(0,-1)\big)&=0& & \text{ at } (0,-1,0) \end{align*}

so that the slope looking in the positive yy direction is zy(0,1)=1z_y(0,-1)=1. Similarly, differentiating ()(*) with respect to xx gives

2x+2(yz(x,y))(0zx(x,y))=02x=2(yz(x,y))zx(x,y)zx(x,y)=xyz(x,y)zx(0,1)=0 at (0,1,0)\begin{align*} 2x+2\big(y-z(x,y)\big)\cdot\big(0-z_x(x,y)\big)&=0 \\ 2x&=2\big(y-z(x,y)\big)\cdot z_x(x,y)\\ z_x(x,y)&=\frac{x}{y-z(x,y)}\\ z_x(0,-1)&=0 &\text{ at } (0,-1,0) \end{align*}

The slope looking in the positive xx direction is zx(0,1)=0z_x(0,-1)=0.

Solution 2
Standing at (0,1,0)(0,-1,0) and looking in the positive yy direction, the surface follows the straight line that

  • passes through the point (0,1,0)(0,-1,0), and

  • is parallel to the central line z=y,x=0z=y, x=0 of the cylinder.

Shifting the central line one unit in the yy-direction, we get the line z=y+1z=y+1, x=0x=0. (As a check, notice that (0,1,0)(0,-1,0) is indeed on z=y+1z=y+1,
x=0x=0.) The slope of this line is 1.

Standing at (0,1,0)(0,-1,0) and looking in the positive xx direction, the surface follows the circle x2+y2=1x^2+y^2=1, z=0z=0, which is the intersection of the cylinder with the xyxy-plane. As we move along that circle our zz coordinate stays fixed at 00. So the slope in that direction is 0.

My list

nothing marked yet

Loading…

Open the whole list →

Your tutor can open this list with you. It follows your account, so it is there on whichever device you study on.

From the UBC Math 200 open textbook project, © Joel Feldman, Andrew Rechnitzer, Elyse Yeager and others. Licensed CC BY-NC-SA 4.0; this HTML adaptation is released under the same licence. Full attribution.