Navigation

Partial derivatives

15.1 Partial derivatives

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

Stage 1 · Conceptual

Q1Stage 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.

Q2Stage 1

The table below gives approximate value of f(x,y)f(x,y) at different values of xx and yy. (The row gives the value of xx, and the column gives the value of yy.)

Figure from prac_s2.1, line 2

Figure from prac_s2.1, line 2

Use the table to approximate the following partial derivatives.

  1. fy(1.5,2.4)f_y(1.5,2.4)

  2. fx(1.7,1.7)f_x(1.7,1.7)

  3. fy(1.7,1.7)f_y(1.7,1.7)

  4. fx(1.1,2)f_x(1.1,2)

Hint

Use the definition of the derivative:

fx(x,y)=limh0f(x+h,y)f(x,y)hf(x+0.1,y)f(x,y)0.1f_x(x,y) = \lim_{h \to 0}\frac{f(x+h,y)-f(x,y)}{h}\approx \frac{f(x+0.1,y)-f(x,y)}{0.1}
Answer
  1. fy(1.5,2.4)2f_y(1.5,2.4)\approx -2

  2. fx(1.7,1.7)11f_x(1.7,1.7)\approx 11

  3. fy(1.7,1.7)3f_y(1.7,1.7)\approx -3

  4. fx(1.1,2)9f_x(1.1,2)\approx 9

Full solution

The definition of the derivative involves a limit at hh goes to 0; we can approximate that limit by choosing a value of hh that's close to 0; in our case, 0.10.1 or 0.1-0.1 are the best we can do, using the information on the table.

fx(x,y)=limh0f(x+h,y)f(x,y)hf(x+0.1,y)f(x,y)0.1f_x(x,y) = \lim_{h \to 0}\frac{f(x+h,y)-f(x,y)}{h}\approx \frac{f(x+0.1,y)-f(x,y)}{0.1}
fy(x,y)=limh0f(x,y+h)f(x,y)hf(x,y+0.1)f(x,y)0.1f_y(x,y) = \lim_{h \to 0}\frac{f(x,y+h)-f(x,y)}{h}\approx \frac{f(x,y+0.1)-f(x,y)}{0.1}
  1. To find fy(1.5,2.4)f_y(1.5,2.4), we keep xx fixed at x=1.5x=1.5, and vary yy. We don't know what happens at y=2.5y=2.5, but we do know what happens at y=2.3y=2.3:

    fy(1.5,2.4)f(1.5,2.3)f(1.5,2.4)2.32.4=11.211.00.1=2\begin{align*} f_y(1.5,2.4)&\approx\frac{f(1.5,2.3)-f(1.5,2.4)}{2.3-2.4}=\frac{11.2-11.0}{-0.1}=-2 \end{align*}
  2. To find fx(1.7,1.7)f_x(1.7,1.7), we keep yy fixed at y=1.7y=1.7, and vary xx. We can choose to use either x=1.6x=1.6 or x=1.8x=1.8.

    fx(1.7,1.7)f(1.8,1.7)f(1.7,1.7)1.81.7=16.115.00.1=11fx(1.7,1.7)f(1.6,1.7)f(1.7,1.7)1.61.7=13.915.00.1=11\begin{align*} f_x(1.7,1.7)&\approx\frac{f(1.8,1.7)-f(1.7,1.7)}{1.8-1.7}=\frac{16.1-15.0}{0.1}=11\\ f_x(1.7,1.7)&\approx\frac{f(1.6,1.7)-f(1.7,1.7)}{1.6-1.7}=\frac{13.9-15.0}{-0.1}=11 \end{align*}
  3. To find fy(1.7,1.7)f_y(1.7,1.7), we keep xx fixed at x=1.7x=1.7, and vary yy. We can choose to use either y=1.6y=1.6 or y=1.8y=1.8.

    fy(1.7,1.7)f(1.7,1.8)f(1.7,1.7)1.81.7=14.715.00.1=3fy(1.7,1.7)f(1.7,1.6)f(1.7,1.7)1.61.7=15.315.00.1=3\begin{align*} f_y(1.7,1.7)&\approx\frac{f(1.7,1.8)-f(1.7,1.7)}{1.8-1.7}=\frac{14.7-15.0}{0.1}=-3\\ f_y(1.7,1.7)&\approx\frac{f(1.7,1.6)-f(1.7,1.7)}{1.6-1.7}=\frac{15.3-15.0}{-0.1}=-3 \end{align*}
  4. To find fx(1.1,2)f_x(1.1,2), we keep yy fixed at y=2y=2, and vary xx. We can choose to use either x=1.0x=1.0 or x=1.2x=1.2.

    fx(1.1,2)f(1.2,2)f(1.1,2)1.21.1=9.18.20.1=9fx(1.1,2)f(1.0,2)f(1.1,2)1.01.1=7.38.20.1=9\begin{align*} f_x(1.1,2)&\approx\frac{f(1.2,2)-f(1.1,2)}{1.2-1.1}=\frac{9.1-8.2}{0.1}=9\\ f_x(1.1,2)&\approx\frac{f(1.0,2)-f(1.1,2)}{1.0-1.1}=\frac{7.3-8.2}{-0.1}=9 \end{align*}

Stage 2 · Procedural

Q3Stage 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)=log(1+exyz)(2,0,1)w(x,y,z)=\log\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*}
Q4Stage 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

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*}
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*}
Q5Stage 2Past exam · M200 2010A

A surface z(x,y)z(x, y) is defined by zyy+x=log(xyz)zy - y + x = \log(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).

Hint

This is an implicit differentiation question. Implicit differentiation, as you'll recall from first-semester calculus, is more-or-less just an application of the chain rule.

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=log(xyz(x,y))=logx+logy+log(z(x,y))\begin{align*} z(x,y)\, y - y + x &= \log\big(xy\,z(x,y)\big)\\ &=\log x + \log y + \log \big(z(x,y)\big) \tag{$*$}\end{align*}

for all (x,y)(x,y) (near (1,2)(-1,-2)). Recall the following derivatives:

  • The partial derivative of zz with respect to xx is zx\pdiff{z}{x}

  • The partial derivative of yy with respect to xx is 0 (since we treat yy as a constant)

  • The partial derivative of xx with respect to xx is 11

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*}
Q6Stage 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)2log(WUV)=log2\begin{equation*} (TU-V)^2 \log(W-UV) = \log 2 \end{equation*}
Hint

Differentiate implicitly.

Answer

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

Full solution

We are told that the four variables TT, UU, VV, WW obey the the single equation (TUV)2log(WUV)=log2(TU-V)^2 \log(W-UV) = \log 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)2log(WU(T,V,W)V)=log2\begin{equation*} \big(T\, U(T,V,W)-V\big)^2 \log\big(W-U(T,V,W)\,V\big) = \log 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)]log(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] \log\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)]log(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] \log\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)]log(2)UT(1,2,4)=0    UT(1,2,4)=2log(2)1+2log(2)\begin{align*} -2\left[ 1 +\pdiff{U}{T}(1,2,4)\right] \log(2) -\pdiff{U}{T}(1,2,4)=0 \implies{} \pdiff{U}{T}(1,2,4) = -\frac{2\log(2)}{1+2\log(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)2log(WUV)=log2\begin{equation*} \big(T(U,V,W)\, U-V\big)^2 \log\big(W-U\,V\big) = \log 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]log(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] \log\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]log(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] \log\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]log(2)12=0    TV(1,2,4)=114log(2)\begin{align*} -2\left[\pdiff{T}{V}(1,2,4)-1\right] \log(2) -\frac{1}{2}=0 \implies{} \pdiff{T}{V}(1,2,4) = 1 -\frac{1}{4\log(2)} \end{align*}
Q7Stage 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*}
Q8Stage 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*}

Stage 3 · Application

Q9Stage 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.

Q10Stage 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*}
Q11Stage 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 prac_s2.1, line 2

Figure from prac_s2.1, 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.

Q12Stage 3Past 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=limh0(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_{h\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*}

From the UBC Math 100 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.