14.3 Partial Derivatives (Wk 6)

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/12

encourage image

There's no tags or description

Looks like no tags are added yet.

13 Terms

1
New cards

Define the partial derivatives fx(a,b)f_x(a,b) and fy(a,b)f_y(a,b).

For f(x,y)f(x,y), a function of two variables:

fx(a,b)=lim⁡h→0f(a+h,b)−f(a,b)h,fy(a,b)=lim⁡h→0f(a,b+h)−f(a,b)hf_x(a,b)=\lim_{h\to 0}\frac{f(a+h,b)-f(a,b)}{h},\qquad f_y(a,b)=\lim_{h\to 0}\frac{f(a,b+h)-f(a,b)}{h}

(The notes’ second formula has a typo, writing fy(a,h)f_y(a,h). It means fy(a,b)f_y(a,b).)

2
New cards

What are the names and alternate notations for partial derivatives?

  • fxf_x is the partial derivative of ff with respect to xx, or just the xx-derivative of ff.

  • Other notations: ∂f∂x\dfrac{\partial f}{\partial x}, ∂f∂x∣(a,b)\dfrac{\partial f}{\partial x}\Big|_{(a,b)}, ∂f∂y\dfrac{\partial f}{\partial y}, ∂f∂y∣(a,b)\dfrac{\partial f}{\partial y}\Big|_{(a,b)}.

  • If z=f(x,y)z=f(x,y), also write ∂z∂x, ∂z∂y\dfrac{\partial z}{\partial x},\ \dfrac{\partial z}{\partial y}.


3
New cards

How do you compute partial derivatives in practice? Work f(x,y)=x2y5f(x,y)=x^2y^5.

  • To compute fxf_x, treat yy as a constant and differentiate with respect to xx. To compute fyf_y, treat xx as a constant.

  • Example: fx=2xy5,fy=x2⋅5y4=5x2y4f_x=2xy^5,\quad f_y=x^2\cdot 5y^4=5x^2y^4.


4
New cards

Compute ∂q∂x\dfrac{\partial q}{\partial x} and ∂q∂y\dfrac{\partial q}{\partial y} for q(x,y)=y2(1+x2)3q(x,y)=\dfrac{y^2}{(1+x^2)^3}.

  • x-derivative (treat y2y^2 as constant, use the chain rule):
    ∂q∂x=y2∂∂x(1+x2)−3=y2(−3)(1+x2)−4(2x)=−6xy2(1+x2)−4\frac{\partial q}{\partial x}=y^2\frac{\partial}{\partial x}(1+x^2)^{-3}=y^2(-3)(1+x^2)^{-4}(2x)=-6xy^2(1+x^2)^{-4}

  • y-derivative (treat 1(1+x2)3\frac{1}{(1+x^2)^3} as constant):
    ∂q∂y=1(1+x2)3∂∂y(y2)=2y(1+x2)3\frac{\partial q}{\partial y}=\frac{1}{(1+x^2)^3}\frac{\partial}{\partial y}(y^2)=\frac{2y}{(1+x^2)^3}


5
New cards

Compute ∂∂yln⁡(xy−2y2)\dfrac{\partial}{\partial y}\ln(xy-2y^2).

Use the chain rule for ln⁡\ln, treating xx as constant:

∂∂yln⁡(xy−2y2)=1xy−2y2⋅∂∂y(xy−2y2)=x−4yxy−2y2\frac{\partial}{\partial y}\ln(xy-2y^2)=\frac{1}{xy-2y^2}\cdot\frac{\partial}{\partial y}(xy-2y^2)=\frac{x-4y}{xy-2y^2}

6
New cards

What is the geometric meaning of fx(a,b)f_x(a,b)?

  • 1-D review: for y=f(x)y=f(x) and the point (a,f(a))(a,f(a)) on the graph, f′(a)f'(a) is the slope of the tangent line to the graph.

  • 2-D: for z=f(x,y)z=f(x,y) and the point (a,b,f(a,b))(a,b,f(a,b)) on the graph, set y=by=b to get the trace curve z=f(x,b)z=f(x,b).

  • Then fx(a,b)f_x(a,b) is the slope of the tangent line to the trace curve.


7
New cards

How are partial derivatives defined for more than two variables? Compute fz(0,0,1,1)f_z(0,0,1,1) for f(x,y,z,w)=exz+yz2+wf(x,y,z,w)=\dfrac{e^{xz+y}}{z^2+w}.

  • Use a similar limit formula, changing only the variable of interest:
    ∂f∂z(x,y,z,w)=fz=lim⁡h→0f(x,y,z+h,w)−f(x,y,z,w)h\frac{\partial f}{\partial z}(x,y,z,w)=f_z=\lim_{h\to 0}\frac{f(x,y,z+h,w)-f(x,y,z,w)}{h}

  • Example: by the quotient rule,
    fz=1(z2+w)2((z2+w) x exz+y−exz+y(2z))=xz2+xw−2z(z2+w)2 exz+yf_z=\frac{1}{(z^2+w)^2}\left((z^2+w)\,x\,e^{xz+y}-e^{xz+y}(2z)\right)=\frac{xz^2+xw-2z}{(z^2+w)^2}\,e^{xz+y}

  • At (0,0,1,1)(0,0,1,1):
    fz(0,0,1,1)=(0+0−2)e0(12+1)2=−24=−12f_z(0,0,1,1)=\frac{(0+0-2)e^0}{(1^2+1)^2}=\frac{-2}{4}=-\frac12


8
New cards

What are higher-order partial derivatives, and how are they denoted?

  • Second-order partials are derivatives of derivatives. For f(x,y)f(x,y) there are 4:
    fxx=∂∂x(fx),fyy=∂∂y(fy),fxy=∂∂y(fx),fyx=∂∂x(fy)f_{xx}=\frac{\partial}{\partial x}(f_x),\quad f_{yy}=\frac{\partial}{\partial y}(f_y),\quad f_{xy}=\frac{\partial}{\partial y}(f_x),\quad f_{yx}=\frac{\partial}{\partial x}(f_y)

  • Other notations: fxx=∂2f∂x2f_{xx}=\dfrac{\partial^2 f}{\partial x^2}, fxy=∂2f∂y ∂xf_{xy}=\dfrac{\partial^2 f}{\partial y\,\partial x}, fyx=∂2f∂x ∂yf_{yx}=\dfrac{\partial^2 f}{\partial x\,\partial y}, fyy=∂2f∂y2f_{yy}=\dfrac{\partial^2 f}{\partial y^2}.

  • In subscript notation the first letter is the first derivative taken. In ∂2f∂y ∂x\frac{\partial^2 f}{\partial y\,\partial x} the order reads right to left.

  • Order 3: there are 8 partials, e.g. fxyy=∂∂y(fxy)f_{xyy}=\dfrac{\partial}{\partial y}(f_{xy}).


9
New cards

Compute all first- and second-order partials of f(x,y)=x3+y2exf(x,y)=x^3+y^2e^x.

  • First order: fx=3x2+y2ex,fy=2yexf_x=3x^2+y^2e^x,\quad f_y=2ye^x

  • Second order:

    • fxx=∂∂x(fx)=6x+y2exf_{xx}=\frac{\partial}{\partial x}(f_x)=6x+y^2e^x

    • fxy=∂∂y(fx)=2yexf_{xy}=\frac{\partial}{\partial y}(f_x)=2ye^x

    • fyx=∂∂x(fy)=2yexf_{yx}=\frac{\partial}{\partial x}(f_y)=2ye^x

    • fyy=∂∂y(fy)=2exf_{yy}=\frac{\partial}{\partial y}(f_y)=2e^x

  • Note fxy=fyxf_{xy}=f_{yx}. This is not a coincidence (see Clairaut’s Theorem).


10
New cards

State Clairaut’s Theorem and its extension to higher orders.

  • Theorem: if fxyf_{xy} and fyxf_{yx} both exist and are continuous on a disk DD, then fxy(a,b)=fyx(a,b)f_{xy}(a,b)=f_{yx}(a,b) for all (a,b)(a,b) in DD. Equivalently,
    ∂2f∂x ∂y=∂2f∂y ∂x(or fxy=fyx).\frac{\partial^2 f}{\partial x\,\partial y}=\frac{\partial^2 f}{\partial y\,\partial x}\quad(\text{or } f_{xy}=f_{yx}).

  • Higher orders: partial derivatives can be computed in any order, e.g.
    fxyxy=fxxyy=fyyxx=fyxyx=fxyyx=fyxxy.f_{xyxy}=f_{xxyy}=f_{yyxx}=f_{yxyx}=f_{xyyx}=f_{yxxy}.

  • Pitfall: the equality requires the continuity condition.


11
New cards

Compute gzzwxg_{zzwx} for g(x,y,z,w)=x3w2z2+sin⁡ ⁣(xyz2)g(x,y,z,w)=x^3w^2z^2+\sin\!\left(\dfrac{xy}{z^2}\right). What strategy makes it easier?

  • Strategy: by Clairaut, reorder the derivatives. Note sin⁡ ⁣(xyz2)\sin\!\left(\frac{xy}{z^2}\right) does not depend on ww, so take the ww-derivative first to kill it.

  • Steps:

    • ∂∂wsin⁡ ⁣(xyz2)=0\frac{\partial}{\partial w}\sin\!\left(\frac{xy}{z^2}\right)=0

    • gw=2x3wz2g_w=2x^3wz^2

    • gwx=2(3x2)wz2=6x2wz2g_{wx}=2(3x^2)wz^2=6x^2wz^2

    • gwxz=6x2w(2z)=12x2wzg_{wxz}=6x^2w(2z)=12x^2wz

    • gwxzz=12x2wg_{wxzz}=12x^2w

  • Therefore gzzwx=gwxzz=12x2wg_{zzwx}=g_{wxzz}=12x^2w.


12
New cards

What is a PDE, and what does this course expect you to do with one?

  • A Partial Differential Equation (PDE) is a differential equation involving multivariable functions and their partial derivatives.

  • In this lecture: nothing about solving PDEs. Once a solution is given, you need to know how to check the solution.

  • Example (Heat equation): for u(x,t)u(x,t), a function of two variables,
    ∂u∂t=∂2u∂x2\frac{\partial u}{\partial t}=\frac{\partial^2 u}{\partial x^2} is a PDE.


13
New cards

Show that u(x,t)=12πt e−x2/(4t)u(x,t)=\dfrac{1}{2\sqrt{\pi t}}\,e^{-x^2/(4t)} (for t>0t>0) satisfies the heat equation.

Compute both sides and compare.

  • xx-derivatives:
    ∂u∂x=12πt(−2x4t)e−x2/4t=−14π x t−3/2e−x2/4t\frac{\partial u}{\partial x}=\frac{1}{2\sqrt{\pi t}}\left(-\frac{2x}{4t}\right)e^{-x^2/4t}=-\frac{1}{4\sqrt\pi}\,x\,t^{-3/2}e^{-x^2/4t} ∂2u∂x2=−14πt−3/2(e−x2/4t+x(−2x4t)e−x2/4t)=−14πt−3/2e−x2/4t+18πx2t−5/2e−x2/4t\frac{\partial^2 u}{\partial x^2}=-\frac{1}{4\sqrt\pi}t^{-3/2}\left(e^{-x^2/4t}+x\left(-\frac{2x}{4t}\right)e^{-x^2/4t}\right)=-\frac{1}{4\sqrt\pi}t^{-3/2}e^{-x^2/4t}+\frac{1}{8\sqrt\pi}x^2t^{-5/2}e^{-x^2/4t}

  • tt-derivative (product rule on t−1/2t^{-1/2} and the exponential):
    ∂u∂t=12π(−12t−3/2e−x2/4t+t−1/2e−x2/4t(−x24)(−1t2))=−14πt−3/2e−x2/4t+18πt−5/2x2e−x2/4t\frac{\partial u}{\partial t}=\frac{1}{2\sqrt\pi}\left(-\frac12 t^{-3/2}e^{-x^2/4t}+t^{-1/2}e^{-x^2/4t}\left(-\frac{x^2}{4}\right)\left(-\frac{1}{t^2}\right)\right)=-\frac{1}{4\sqrt\pi}t^{-3/2}e^{-x^2/4t}+\frac{1}{8\sqrt\pi}t^{-5/2}x^2e^{-x^2/4t}

  • The two expressions match, so ∂u∂t=∂2u∂x2\dfrac{\partial u}{\partial t}=\dfrac{\partial^2 u}{\partial x^2}.