Mathematics for Information Science 1. Module 2, partial derivatives to level curves.

GAMAT101 · 13 pages · Your place is saved in this browser

Contents · Where each topic sits
Text size18

Page 1 of 13

Module 2 at a glance

Module 1 was about functions of one variable. But area, volume, temperature on a metal plate and the height of a hill depend on two or more inputs. Module 2 takes the same story to more variables, in the same order: limits → derivatives → using derivatives.

The only new difficulty is that with two inputs you can move in many directions. So every idea has one extra question: in which direction?

  1. Functions of two variables z=f(x,y)z=f(x,y): what they are and where they are defined.
  2. Limits and continuity: now we can reach a point along infinitely many paths, not just from the left and the right.
  3. Partial derivatives: change one input and keep the others fixed.
  4. Chain rule and implicit differentiation: how a change passes through a chain of dependent variables.
  5. Applications: slopes of surfaces, related rates, and level curves.

What you will be able to do

  • State the domain and range of a function of two variables.
  • Find a two-variable limit, and prove that a limit does not exist by comparing two paths.
  • Check whether a function is continuous at a point.
  • Find first, second and mixed partial derivatives, and check that fxy=fyxf_{xy}=f_{yx}.
  • Use the chain rule with one or two parameters, and draw the tree diagram that helps you organise it.
  • Find dydx\dfrac{dy}{dx} for an implicit curve using partial derivatives.
  • Solve related-rates problems with many changing quantities.
  • Sketch the level curves of a function.

How to use these notes

  • Every topic has the same shape: idea → rule → worked example → common mistakes.
  • Try each worked example yourself first. Cover the answer, solve it, and then compare.
  • Green boxes hold key ideas. Amber boxes marked Watch out show the mistakes that make you lose marks.
  • The last page has practice questions with answers, and then a one-page formula sheet for revision.

Where each topic sits

PartTopics
FunctionsDomain, range
Limits and continuityLimits along paths, the two-path test, continuity
Partial derivativesFirst order, slope of a surface, second order, mixed partials
Chain ruleOne parameter, two parameters, related rates
Implicit functionsdy/dx=−fx/fydy/dx=-f_x/f_y
PicturesLevel curves

Before you start. You should know the differentiation from Module 1: the power, product, quotient and chain rules, and the derivatives of exe^x, ln⁡x\ln x, sin⁡x\sin x, cos⁡x\cos x, tan⁡x\tan x and tan⁡−1x\tan^{-1}x. Partial derivatives are just ordinary derivatives with a little extra care, so these rules do all the work.

Page 2 of 13

Functions of two variables

The idea

A function of two variables gives exactly one number for each pair (x,y)(x,y) in its domain:

z=f(x,y)z=f(x,y)

Examples you already know: the area of a rectangle A=xyA=xy, the volume of a cone V=13πr2hV=\tfrac13\pi r^2h, the distance from the origin x2+y2\sqrt{x^2+y^2}.

The graph of z=f(x,y)z=f(x,y) is a surface in space: above each point (x,y)(x,y) of the plane, there is a point at height zz.

Domain and range

  • The domain is the set of all (x,y)(x,y) for which f(x,y)f(x,y) is defined. It is a region of the plane, not an interval.
  • The range is the set of all values f(x,y)f(x,y) can take.

The conditions are the same as in one variable:

TroubleRule
Divisionthe denominator must not be 00
Even rootthe expression under it must be ≥0\ge 0
Logarithmthe expression inside must be >0>0

Example 1. f(x,y)=x2−y2f(x,y)=x^2-y^2.

There is no problem anywhere, so the domain is all of R2\mathbb{R}^2. Every real number is a value: to get k≥0k\ge0 take (k, 0)(\sqrt k,\,0), and to get k<0k<0 take (0, −k)(0,\,\sqrt{-k}). So the range is R\mathbb{R}.

Example 2. f(x,y)=x+yx−yf(x,y)=\dfrac{x+y}{x-y}.

The denominator becomes zero when x=yx=y. The domain is the whole plane except the line y=xy=x:

R2∖{(x,y):x=y}\mathbb{R}^2\setminus\{(x,y): x=y\}

Every real kk is a value: for k≠−1k\ne-1 take x=1, y=k−1k+1x=1,\ y=\dfrac{k-1}{k+1}, and for k=−1k=-1 take (0,1)(0,1). So the range is R\mathbb{R}.

Example 3. f(x,y)=9−x2−y2f(x,y)=\sqrt{9-x^2-y^2}.

The root needs 9−x2−y2≥09-x^2-y^2\ge0, that is x2+y2≤9x^2+y^2\le9. The domain is the closed disc of radius 33 centred at the origin. The largest value is f(0,0)=3f(0,0)=3 and the smallest is 00 (on the edge of the disc), so the range is [0,3][0,3]. This is the upper half of a sphere. You will see it again in level curves.

Watch out. Write the domain as an equation or inequality in xx and yy (like "x≠yx\neq y" or "x2+y2≤9x^2+y^2\le9"). Writing only a one-variable condition like "x≠0x\neq0" is not enough, because the condition usually involves both variables together.

Page 3 of 13

Limits of functions of two variables

The idea

lim⁡(x,y)→(a,b)f(x,y)=L\lim_{(x,y)\to(a,b)}f(x,y)=L

means: f(x,y)f(x,y) comes as close to LL as we like when the point (x,y)(x,y) is close enough to (a,b)(a,b), but not equal to it.

On a number line you can reach a point from only two sides, left and right. In the plane you can reach (a,b)(a,b) along infinitely many paths: straight lines, parabolas, spirals.

Key idea. The limit exists only if ff goes to the same number along every path to (a,b)(a,b). If even one path gives a different answer, the limit does not exist.

Easy case: just substitute

The limit laws from Module 1 work in the same way for (x,y)→(a,b)(x,y)\to(a,b): you can take limits through sums, differences, constant multiples, products, quotients (when the limit of the denominator is ≠0\ne0), powers and roots.

So for a polynomial, or a rational function whose denominator is not 00 at the point, substitute.

Example 1. lim⁡(x,y)→(0,1)x−xy+3x2y+5xy−y3\displaystyle\lim_{(x,y)\to(0,1)}\frac{x-xy+3}{x^2y+5xy-y^3}

0−0⋅1+302⋅1+5⋅0⋅1−13=3−1=−3\frac{0-0\cdot1+3}{0^2\cdot1+5\cdot0\cdot1-1^3}=\frac{3}{-1}=\mathbf{-3}

Example 2. lim⁡(x,y)→(3,−4)x2+y2\displaystyle\lim_{(x,y)\to(3,-4)}\sqrt{x^2+y^2}

32+(−4)2=9+16=25=5\sqrt{3^2+(-4)^2}=\sqrt{9+16}=\sqrt{25}=\mathbf{5}

This is the distance from (3,−4)(3,-4) to the origin.

Example 3. lim⁡(x,y)→(π/2, 0)(xsin⁡x−sin⁡yy)\displaystyle\lim_{(x,y)\to(\pi/2,\,0)}\left(\frac{x}{\sin x}-\frac{\sin y}{y}\right)

Take the two terms separately. The first is π/2sin⁡(π/2)=π2\dfrac{\pi/2}{\sin(\pi/2)}=\dfrac{\pi}{2}. The second gives 0/00/0 on substitution, but it is the standard limit sin⁡yy→1\dfrac{\sin y}{y}\to1 from Module 1. So the answer is

π2−1\frac{\pi}{2}-1

When substitution gives 0/00/0

Do the same as in Module 1: factorise and cancel, or use the difference of squares.

Example 4. lim⁡(x,y)→(0,0)x2−xyx−y\displaystyle\lim_{(x,y)\to(0,0)}\frac{x^2-xy}{\sqrt{x}-\sqrt{y}}

Substituting gives 0/00/0. Factorise the top as x(x−y)x(x-y) and write x−y=(x−y)(x+y)x-y=(\sqrt x-\sqrt y)(\sqrt x+\sqrt y):

x(x−y)x−y=x(x−y)(x+y)x−y=x(x+y)\frac{x(x-y)}{\sqrt x-\sqrt y}=\frac{x(\sqrt x-\sqrt y)(\sqrt x+\sqrt y)}{\sqrt x-\sqrt y}=x(\sqrt x+\sqrt y)

Now substitute: 0⋅(0+0)=00\cdot(0+0)=\mathbf{0}. (The square roots need x,y≥0x,y\ge0, and x≠yx\ne y keeps the original fraction defined.)

Showing a limit does not exist: the two-path test

Two-path test. If ff goes to different values along two different paths to (a,b)(a,b), then lim⁡(x,y)→(a,b)f(x,y)\displaystyle\lim_{(x,y)\to(a,b)}f(x,y) does not exist.

For the origin, the usual choice is the family of lines through it, y=mxy=mx. Put y=mxy=mx, let x→0x\to0, and see whether the answer depends on mm. If it does, the limit does not exist.

Example 5. Show that lim⁡(x,y)→(0,0)x2−y2x2+y2\displaystyle\lim_{(x,y)\to(0,0)}\frac{x^2-y^2}{x^2+y^2} does not exist.

Substitution gives 0/00/0, so the limit laws do not help. Put y=mxy=mx:

lim⁡x→0x2−m2x2x2+m2x2=lim⁡x→0x2(1−m2)x2(1+m2)=1−m21+m2\lim_{x\to0}\frac{x^2-m^2x^2}{x^2+m^2x^2}=\lim_{x\to0}\frac{x^2(1-m^2)}{x^2(1+m^2)}=\frac{1-m^2}{1+m^2}

The answer depends on mm. Along the xx-axis (m=0m=0) it is 11, and along y=xy=x (m=1m=1) it is 00. Different paths give different values, so the limit does not exist.

Example 6. Show that lim⁡(x,y)→(0,0)xyx2+y2\displaystyle\lim_{(x,y)\to(0,0)}\frac{xy}{x^2+y^2} does not exist.

Put y=mxy=mx:

lim⁡x→0x⋅mxx2+m2x2=m1+m2\lim_{x\to0}\frac{x\cdot mx}{x^2+m^2x^2}=\frac{m}{1+m^2}

This is 00 for m=0m=0 and 12\tfrac12 for m=1m=1. The limit does not exist.

Watch out. The two-path test can only prove that a limit does not exist. If every straight line gives the same value, that does not prove that the limit exists, because some curve may give a different value. For example xy2x2+y4\dfrac{xy^2}{x^2+y^4} gives 00 along every line y=mxy=mx, but along the parabola x=y2x=y^2 it equals y42y4=12\dfrac{y^4}{2y^4}=\dfrac12. So its limit at the origin does not exist.

Page 4 of 13

Continuity

The idea

A function is continuous at a point when its graph has no break there: the value we expect from the nearby points is the value the function actually has.

Definition. f(x,y)f(x,y) is continuous at (x0,y0)(x_0,y_0) when all three hold:

  1. f(x0,y0)f(x_0,y_0) is defined.
  2. lim⁡(x,y)→(x0,y0)f(x,y)\displaystyle\lim_{(x,y)\to(x_0,y_0)}f(x,y) exists.
  3. lim⁡(x,y)→(x0,y0)f(x,y)=f(x0,y0)\displaystyle\lim_{(x,y)\to(x_0,y_0)}f(x,y)=f(x_0,y_0).

ff is continuous if it is continuous at every point of its domain.

What you can take for granted

  • Polynomials are continuous everywhere.
  • A rational function is continuous everywhere its denominator is not 00.
  • Sums, products, quotients (denominator ≠0\ne0) and compositions of continuous functions are continuous.

So a problem can come only where the formula changes (a piecewise function), or where a denominator becomes zero. These are the points to check.

Method

  1. Away from the doubtful point, the function is made of continuous parts, so it is continuous there.
  2. At the doubtful point, check the three conditions. Most of the time, condition 2 fails. Use the two-path test.

Examples

Example 1. Show that

f(x,y)={2xyx2+y2,(x,y)≠(0,0)0,(x,y)=(0,0)f(x,y)=\begin{cases}\dfrac{2xy}{x^2+y^2}, & (x,y)\neq(0,0)\\[8pt] 0, & (x,y)=(0,0)\end{cases}

is continuous everywhere except the origin.

Away from the origin it is a rational function with a non-zero denominator, so it is continuous.

At the origin f(0,0)=0f(0,0)=0 is defined. Along y=mxy=mx:

lim⁡x→02x⋅mxx2+m2x2=2m1+m2\lim_{x\to0}\frac{2x\cdot mx}{x^2+m^2x^2}=\frac{2m}{1+m^2}

This depends on mm, so the limit does not exist and ff is not continuous at the origin. Changing the value of f(0,0)f(0,0) cannot fix this, because there is no single limit to match.

Example 2. Show that

f(x,y)={yx2+y2,(x,y)≠(0,0)0,(x,y)=(0,0)f(x,y)=\begin{cases}\dfrac{y}{\sqrt{x^2+y^2}}, & (x,y)\neq(0,0)\\[8pt] 0, & (x,y)=(0,0)\end{cases}

is discontinuous at (0,0)(0,0).

Along y=mxy=mx with x>0x>0 we have x2+m2x2=x1+m2\sqrt{x^2+m^2x^2}=x\sqrt{1+m^2}, so

lim⁡x→0+mxx1+m2=m1+m2\lim_{x\to0^+}\frac{mx}{x\sqrt{1+m^2}}=\frac{m}{\sqrt{1+m^2}}

This depends on mm (it is 00 for m=0m=0 and 12\tfrac1{\sqrt2} for m=1m=1), so the limit does not exist and ff is discontinuous at (0,0)(0,0).

Example 3. Let f(x,y)=x2+y2f(x,y)=x^2+y^2 for (x,y)≠(0,0)(x,y)\neq(0,0), and f(0,0)=1f(0,0)=1. Is ff continuous at the origin?

Conditions 1 and 2 hold: f(0,0)=1f(0,0)=1 is defined, and the limit is 02+02=00^2+0^2=0. But condition 3 fails because 0≠10\neq1. So ff is not continuous at the origin. This is a removable break: if we redefine f(0,0)=0f(0,0)=0, it is fixed.

Watch out. "The limit exists" and "the function is continuous" are different things. Example 3 has a limit but is still discontinuous. All three conditions must be true.

Page 5 of 13

Partial derivatives

The idea

For z=f(x,y)z=f(x,y) there are two natural questions: how fast does zz change if we move in the xx direction (keeping yy fixed), and how fast does it change if we move in the yy direction (keeping xx fixed)? The answers are the partial derivatives.

∂z∂x=lim⁡h→0f(x+h, y)−f(x,y)h∂z∂y=lim⁡h→0f(x, y+h)−f(x,y)h\frac{\partial z}{\partial x}=\lim_{h\to0}\frac{f(x+h,\,y)-f(x,y)}{h} \qquad \frac{\partial z}{\partial y}=\lim_{h\to0}\frac{f(x,\,y+h)-f(x,y)}{h}

Each one is just the Module 1 definition of a derivative, applied to one variable while the other is kept fixed.

NameCommon symbols
partial derivative with respect to xx∂z∂x,∂f∂x,fx\dfrac{\partial z}{\partial x},\quad \dfrac{\partial f}{\partial x},\quad f_x
partial derivative with respect to yy∂z∂y,∂f∂y,fy\dfrac{\partial z}{\partial y},\quad \dfrac{\partial f}{\partial y},\quad f_y

The curly ∂\partial means "there are other variables also". The straight dd is only for functions of one variable.

Method

Steps.

  • For fxf_x: treat yy as a constant and differentiate with respect to xx using the usual rules.
  • For fyf_y: treat xx as a constant and differentiate with respect to yy.

A constant multiplier stays as it is. A term with only the other variable is a constant, so it becomes zero. For example, for x2yx^2y: differentiating in xx gives 2xy2xy (the yy just stays as a multiplier), and differentiating in yy gives x2x^2.

Examples

Example 1. f(x,y)=x2y+3xy2f(x,y)=x^2y+3xy^2

fx=2xy+3y2fy=x2+6xyf_x=2xy+3y^2\qquad f_y=x^2+6xy

Example 2. f(x,y)=2x2−3y−4f(x,y)=2x^2-3y-4

fx=4xfy=−3f_x=4x\qquad f_y=-3

The −3y-3y is constant with respect to xx, so it disappears from fxf_x. The 2x22x^2 and −4-4 disappear from fyf_y.

Example 3. f(x,y)=(x+1)(y−2)f(x,y)=(x+1)(y-2). Treat the other bracket as a constant factor.

fx=y−2fy=x+1f_x=y-2\qquad f_y=x+1

Example 4. f(x,y)=x2+y2f(x,y)=\sqrt{x^2+y^2}. Use the chain rule on the root.

fx=12x2+y2⋅2x=xx2+y2fy=yx2+y2f_x=\frac{1}{2\sqrt{x^2+y^2}}\cdot2x=\frac{x}{\sqrt{x^2+y^2}}\qquad f_y=\frac{y}{\sqrt{x^2+y^2}}

Example 5. z=3x+4yz=\sqrt{3x+4y}

∂z∂x=123x+4y⋅3=323x+4y∂z∂y=123x+4y⋅4=23x+4y\frac{\partial z}{\partial x}=\frac{1}{2\sqrt{3x+4y}}\cdot3=\frac{3}{2\sqrt{3x+4y}}\qquad \frac{\partial z}{\partial y}=\frac{1}{2\sqrt{3x+4y}}\cdot4=\frac{2}{\sqrt{3x+4y}}

Example 6. f(x,y)=log⁡(x2+y2)f(x,y)=\log(x^2+y^2) (natural logarithm)

fx=1x2+y2⋅2x=2xx2+y2fy=2yx2+y2f_x=\frac{1}{x^2+y^2}\cdot2x=\frac{2x}{x^2+y^2}\qquad f_y=\frac{2y}{x^2+y^2}

Example 7. f(x,y)=eaxsin⁡byf(x,y)=e^{ax}\sin by. Here aa and bb are constants.

fx=a eaxsin⁡byfy=b eaxcos⁡byf_x=a\,e^{ax}\sin by\qquad f_y=b\,e^{ax}\cos by

Example 8. f(x,y)=x e−y+5yf(x,y)=x\,e^{-y}+5y

fx=e−yfy=x⋅e−y⋅(−1)+5=5−x e−yf_x=e^{-y}\qquad f_y=x\cdot e^{-y}\cdot(-1)+5=5-x\,e^{-y}

Example 9. f(x,y)=ex2y3sin⁡(x2−y2)f(x,y)=e^{x^2y^3}\sin(x^2-y^2). Use the product rule, and the chain rule inside each factor.

fx=ex2y3cos⁡(x2−y2)⋅2x+sin⁡(x2−y2)⋅ex2y3⋅2xy3=2x ex2y3cos⁡(x2−y2)+2xy3ex2y3sin⁡(x2−y2)\begin{aligned} f_x&=e^{x^2y^3}\cos(x^2-y^2)\cdot2x+\sin(x^2-y^2)\cdot e^{x^2y^3}\cdot2xy^3\\ &=2x\,e^{x^2y^3}\cos(x^2-y^2)+2xy^3e^{x^2y^3}\sin(x^2-y^2) \end{aligned} fy=ex2y3cos⁡(x2−y2)⋅(−2y)+sin⁡(x2−y2)⋅ex2y3⋅3x2y2=−2y ex2y3cos⁡(x2−y2)+3x2y2ex2y3sin⁡(x2−y2)\begin{aligned} f_y&=e^{x^2y^3}\cos(x^2-y^2)\cdot(-2y)+\sin(x^2-y^2)\cdot e^{x^2y^3}\cdot3x^2y^2\\ &=-2y\,e^{x^2y^3}\cos(x^2-y^2)+3x^2y^2e^{x^2y^3}\sin(x^2-y^2) \end{aligned}

Example 10. f(x,y)=x−yx2+y2f(x,y)=\dfrac{x-y}{x^2+y^2}. Use the quotient rule.

fx=(x2+y2)⋅1−(x−y)⋅2x(x2+y2)2=y2−x2+2xy(x2+y2)2f_x=\frac{(x^2+y^2)\cdot1-(x-y)\cdot2x}{(x^2+y^2)^2}=\frac{y^2-x^2+2xy}{(x^2+y^2)^2} fy=(x2+y2)⋅(−1)−(x−y)⋅2y(x2+y2)2=y2−x2−2xy(x2+y2)2f_y=\frac{(x^2+y^2)\cdot(-1)-(x-y)\cdot2y}{(x^2+y^2)^2}=\frac{y^2-x^2-2xy}{(x^2+y^2)^2}

Three or more variables

Nothing changes. For u=f(x,y,z)u=f(x,y,z), to find uxu_x treat both yy and zz as constants, and similarly for the others.

Watch out. Students often forget the chain-rule factors. In Example 5 the 33 and the 44 come from differentiating the inside part 3x+4y3x+4y. In Example 8 the −1-1 comes from differentiating −y-y. Also, never write dd where you should write ∂\partial.

Page 6 of 13

Slope and rate of change

The idea

Take the surface z=f(x,y)z=f(x,y) and a point (a,b)(a,b) in the plane.

  • Cut the surface with the vertical plane y=by=b. You get an ordinary curve z=f(x,b)z=f(x,b). Its slope at x=ax=a is fx(a,b)f_x(a,b).
  • Cut with the plane x=ax=a. The slope of that curve at y=by=b is fy(a,b)f_y(a,b).

Meaning. ∂z∂x\dfrac{\partial z}{\partial x} is the slope of the surface in the xx-direction, and also the rate of change of zz with respect to xx while yy is held fixed. Likewise ∂z∂y\dfrac{\partial z}{\partial y} for the yy-direction.

To find the value at a point, differentiate first and then substitute. The notation for "value at (a,b)(a,b)" is

∂z∂x∣(a,b)\left.\frac{\partial z}{\partial x}\right|_{(a,b)}

The sign tells the story. A positive value means zz is increasing as you move in the positive direction. A negative value means it is decreasing. Zero means the surface is flat in that direction.

Examples

Example 1. Find the slope of the surface z=10−4x2−2y2z=10-4x^2-2y^2 at (1,2)(1,2) in the xx-direction and the yy-direction.

∂z∂x=−8x ⇒ ∂z∂x∣(1,2)=−8(1)=−8\frac{\partial z}{\partial x}=-8x\ \Rightarrow\ \left.\frac{\partial z}{\partial x}\right|_{(1,2)}=-8(1)=\mathbf{-8} ∂z∂y=−4y ⇒ ∂z∂y∣(1,2)=−4(2)=−8\frac{\partial z}{\partial y}=-4y\ \Rightarrow\ \left.\frac{\partial z}{\partial y}\right|_{(1,2)}=-4(2)=\mathbf{-8}

The surface is a dome with its top at (0,0,10)(0,0,10). At (1,2)(1,2) it goes down with the same steepness in both directions.

Example 2. Find the rate of change of z=sin⁡(y2−4x)z=\sin(y^2-4x) with respect to yy at (3,1)(3,1).

∂z∂y=cos⁡(y2−4x)⋅2y=2ycos⁡(y2−4x)\frac{\partial z}{\partial y}=\cos(y^2-4x)\cdot2y=2y\cos(y^2-4x) ∂z∂y∣(3,1)=2(1)cos⁡(1−12)=2cos⁡(−11)=2cos⁡11\left.\frac{\partial z}{\partial y}\right|_{(3,1)}=2(1)\cos(1-12)=2\cos(-11)=\mathbf{2\cos 11}

Cosine is an even function, so cos⁡(−11)=cos⁡11\cos(-11)=\cos 11. In radians this is about 0.0090.009, so at that point zz is almost flat in the yy-direction.

Watch out. Put the point after differentiating. If you put y=1y=1 in zz first, then yy becomes a constant and differentiating with respect to yy just gives 00.

Page 7 of 13

Second-order partial derivatives

The idea

A partial derivative is also a function of xx and yy, so we can differentiate it again. A function of two variables has four second-order partial derivatives.

SymbolMeansIn words
fxx=∂2f∂x2f_{xx}=\dfrac{\partial^2f}{\partial x^2}∂∂x ⁣(∂f∂x)\dfrac{\partial}{\partial x}\!\left(\dfrac{\partial f}{\partial x}\right)differentiate with respect to xx twice
fyy=∂2f∂y2f_{yy}=\dfrac{\partial^2f}{\partial y^2}∂∂y ⁣(∂f∂y)\dfrac{\partial}{\partial y}\!\left(\dfrac{\partial f}{\partial y}\right)differentiate with respect to yy twice
fxy=∂2f∂y ∂xf_{xy}=\dfrac{\partial^2f}{\partial y\,\partial x}∂∂y ⁣(∂f∂x)\dfrac{\partial}{\partial y}\!\left(\dfrac{\partial f}{\partial x}\right)xx first, then yy
fyx=∂2f∂x ∂yf_{yx}=\dfrac{\partial^2f}{\partial x\,\partial y}∂∂x ⁣(∂f∂y)\dfrac{\partial}{\partial x}\!\left(\dfrac{\partial f}{\partial y}\right)yy first, then xx

The last two are the mixed derivatives. The subscripts in fxyf_{xy} are read left to right, but the ∂\partial notation is read right to left. Some books swap the names. This is not a problem here because of the next fact.

Mixed partials are equal. If fxyf_{xy} and fyxf_{yx} are continuous, then fxy=fyxf_{xy}=f_{yx}. Every function in this module satisfies this, so the order of differentiation does not matter. Use it to check your answer: find both mixed derivatives and see that they are equal.

Examples

Example 1. Find all second-order partial derivatives of f(x,y)=x3y+2xy2f(x,y)=x^3y+2xy^2.

First order:

fx=3x2y+2y2fy=x3+4xyf_x=3x^2y+2y^2\qquad f_y=x^3+4xy

Second order:

fxx=6xyfyy=4xf_{xx}=6xy\qquad f_{yy}=4x ∂2f∂y ∂x=∂∂y(3x2y+2y2)=3x2+4y∂2f∂x ∂y=∂∂x(x3+4xy)=3x2+4y\frac{\partial^2f}{\partial y\,\partial x}=\frac{\partial}{\partial y}(3x^2y+2y^2)=3x^2+4y \qquad \frac{\partial^2f}{\partial x\,\partial y}=\frac{\partial}{\partial x}(x^3+4xy)=3x^2+4y

The mixed derivatives agree.

Example 2. For f(x,y)=2x5y3+5x+7yf(x,y)=2x^5y^3+5x+7y find the mixed derivatives.

fx=10x4y3+5fy=6x5y2+7f_x=10x^4y^3+5\qquad f_y=6x^5y^2+7 ∂2f∂y ∂x=30x4y2∂2f∂x ∂y=30x4y2\frac{\partial^2f}{\partial y\,\partial x}=30x^4y^2\qquad\frac{\partial^2f}{\partial x\,\partial y}=30x^4y^2

(Also fxx=40x3y3f_{xx}=40x^3y^3 and fyy=12x5yf_{yy}=12x^5y.)

Example 3. For f(x,y)=x3y+exy2f(x,y)=x^3y+e^{xy^2} show that ∂2f∂y ∂x=∂2f∂x ∂y\dfrac{\partial^2f}{\partial y\,\partial x}=\dfrac{\partial^2f}{\partial x\,\partial y}.

fx=3x2y+y2exy2fy=x3+2xy exy2f_x=3x^2y+y^2e^{xy^2}\qquad f_y=x^3+2xy\,e^{xy^2}

Differentiate fxf_x with respect to yy (product rule on the second term):

∂2f∂y ∂x=3x2+2y exy2+y2⋅exy2⋅2xy=3x2+2y exy2+2xy3exy2\frac{\partial^2f}{\partial y\,\partial x}=3x^2+2y\,e^{xy^2}+y^2\cdot e^{xy^2}\cdot2xy=3x^2+2y\,e^{xy^2}+2xy^3e^{xy^2}

Differentiate fyf_y with respect to xx:

∂2f∂x ∂y=3x2+2y exy2+2xy⋅exy2⋅y2=3x2+2y exy2+2xy3exy2\frac{\partial^2f}{\partial x\,\partial y}=3x^2+2y\,e^{xy^2}+2xy\cdot e^{xy^2}\cdot y^2=3x^2+2y\,e^{xy^2}+2xy^3e^{xy^2}

They are equal. ✓\checkmark

Third order

Derivatives of any order work in the same way. In ∂3f∂x ∂y ∂z\dfrac{\partial^3f}{\partial x\,\partial y\,\partial z} read from right to left: first zz, then yy, then xx.

Example 4. If f(x,y,z)=exyzf(x,y,z)=e^{xyz}, find ∂3f∂x ∂y ∂z\dfrac{\partial^3f}{\partial x\,\partial y\,\partial z}.

∂f∂z=xy exyz\frac{\partial f}{\partial z}=xy\,e^{xyz} ∂2f∂y ∂z=x exyz+xy⋅xz exyz=(x+x2yz) exyz\frac{\partial^2f}{\partial y\,\partial z}=x\,e^{xyz}+xy\cdot xz\,e^{xyz}=(x+x^2yz)\,e^{xyz} ∂3f∂x ∂y ∂z=(1+2xyz) exyz+(x+x2yz) yz exyz=exyz(1+2xyz+xyz+x2y2z2)=exyz(1+3xyz+x2y2z2)\begin{aligned} \frac{\partial^3f}{\partial x\,\partial y\,\partial z}&=(1+2xyz)\,e^{xyz}+(x+x^2yz)\,yz\,e^{xyz}\\ &=e^{xyz}\left(1+2xyz+xyz+x^2y^2z^2\right)=\mathbf{e^{xyz}\left(1+3xyz+x^2y^2z^2\right)} \end{aligned}

Proving an equation with derivatives

Example 5. Laplace's equation. If u=1x2+y2+z2u=\dfrac{1}{\sqrt{x^2+y^2+z^2}}, prove that ∂2u∂x2+∂2u∂y2+∂2u∂z2=0\dfrac{\partial^2u}{\partial x^2}+\dfrac{\partial^2u}{\partial y^2}+\dfrac{\partial^2u}{\partial z^2}=0.

Write ρ=x2+y2+z2\rho=x^2+y^2+z^2, so u=ρ−1/2u=\rho^{-1/2} and ∂ρ∂x=2x\dfrac{\partial\rho}{\partial x}=2x. Then

∂u∂x=−12ρ−3/2⋅2x=−x ρ−3/2\frac{\partial u}{\partial x}=-\tfrac12\rho^{-3/2}\cdot2x=-x\,\rho^{-3/2} ∂2u∂x2=−ρ−3/2+x⋅32ρ−5/2⋅2x=3x2ρ−5/2−ρ−3/2\frac{\partial^2u}{\partial x^2}=-\rho^{-3/2}+x\cdot\tfrac32\rho^{-5/2}\cdot2x=3x^2\rho^{-5/2}-\rho^{-3/2}

By symmetry the yy and zz versions are 3y2ρ−5/2−ρ−3/23y^2\rho^{-5/2}-\rho^{-3/2} and 3z2ρ−5/2−ρ−3/23z^2\rho^{-5/2}-\rho^{-3/2}. Add all three:

uxx+uyy+uzz=3(x2+y2+z2)ρ−5/2−3ρ−3/2=3ρ⋅ρ−5/2−3ρ−3/2=3ρ−3/2−3ρ−3/2=0 ✓\begin{aligned} u_{xx}+u_{yy}+u_{zz}&=3(x^2+y^2+z^2)\rho^{-5/2}-3\rho^{-3/2}\\ &=3\rho\cdot\rho^{-5/2}-3\rho^{-3/2}=3\rho^{-3/2}-3\rho^{-3/2}=\mathbf{0}\ \checkmark \end{aligned}

Example 6. If u=x2tan⁡−1 ⁣yx−y2tan⁡−1 ⁣xyu=x^2\tan^{-1}\!\dfrac yx-y^2\tan^{-1}\!\dfrac xy, show that ∂2u∂x ∂y=x2−y2x2+y2\dfrac{\partial^2u}{\partial x\,\partial y}=\dfrac{x^2-y^2}{x^2+y^2}.

First differentiate with respect to yy. For the first term:

x2⋅11+y2/x2⋅1x=x3x2+y2x^2\cdot\frac{1}{1+y^2/x^2}\cdot\frac1x=\frac{x^3}{x^2+y^2}

For the second term (product rule):

∂∂y[y2tan⁡−1xy]=2ytan⁡−1xy+y2⋅11+x2/y2⋅(−xy2)=2ytan⁡−1xy−xy2x2+y2\frac{\partial}{\partial y}\left[y^2\tan^{-1}\frac xy\right]=2y\tan^{-1}\frac xy+y^2\cdot\frac{1}{1+x^2/y^2}\cdot\left(-\frac{x}{y^2}\right)=2y\tan^{-1}\frac xy-\frac{xy^2}{x^2+y^2}

Subtract the second from the first, and note that x3+xy2=x(x2+y2)x^3+xy^2=x(x^2+y^2):

∂u∂y=x3+xy2x2+y2−2ytan⁡−1xy=x−2ytan⁡−1xy\frac{\partial u}{\partial y}=\frac{x^3+xy^2}{x^2+y^2}-2y\tan^{-1}\frac xy=x-2y\tan^{-1}\frac xy

Now differentiate with respect to xx:

∂2u∂x ∂y=1−2y⋅11+x2/y2⋅1y=1−2y2x2+y2=x2+y2−2y2x2+y2=x2−y2x2+y2 ✓\frac{\partial^2u}{\partial x\,\partial y}=1-2y\cdot\frac{1}{1+x^2/y^2}\cdot\frac1y=1-\frac{2y^2}{x^2+y^2}=\frac{x^2+y^2-2y^2}{x^2+y^2}=\mathbf{\frac{x^2-y^2}{x^2+y^2}}\ \checkmark

Study tip. Simplify after the first derivative, before differentiating again. In Example 6 the whole expression becomes x−2ytan⁡−1(x/y)x-2y\tan^{-1}(x/y), which makes the second step easy.

Watch out. For fxxf_{xx} you differentiate with respect to xx again and still treat yy as a constant. Also, do not confuse fxxf_{xx} with (fx)2(f_x)^2. They are different things.

Page 8 of 13

Chain rule, part 1: one parameter

The idea

If z=f(x,y)z=f(x,y) and both xx and yy depend on one variable tt, then zz becomes a function of tt alone. The chain rule gives dzdt\dfrac{dz}{dt} without substituting first.

Chain rule (one parameter). If z=f(x,y)z=f(x,y), x=x(t)x=x(t), y=y(t)y=y(t), then

dzdt=∂z∂x⋅dxdt+∂z∂y⋅dydt\frac{dz}{dt}=\frac{\partial z}{\partial x}\cdot\frac{dx}{dt}+\frac{\partial z}{\partial y}\cdot\frac{dy}{dt}

The tree diagram

Draw the dependencies as a tree: zz at the top, the variables it depends on below it, and the parameter at the bottom.

graph TD z -->|∂z/∂x| x z -->|∂z/∂y| y x -->|dx/dt| t y -->|dy/dt| t

How to read the tree. For each path from zz down to tt, take the product of the derivatives along its branches. Then add all the paths. Here there are two paths (z→x→tz\to x\to t and z→y→tz\to y\to t), so there are two terms.

With three variables w=f(x,y,z)w=f(x,y,z) there are three paths:

dwdt=∂w∂xdxdt+∂w∂ydydt+∂w∂zdzdt\frac{dw}{dt}=\frac{\partial w}{\partial x}\frac{dx}{dt}+\frac{\partial w}{\partial y}\frac{dy}{dt}+\frac{\partial w}{\partial z}\frac{dz}{dt}

Method

  1. Draw the tree.
  2. Find the partial derivatives of the outer function with respect to each middle variable.
  3. Find the derivative of each middle variable with respect to tt.
  4. Multiply along each path, and then add.
  5. Put x(t)x(t), y(t)y(t), …\dots so that the answer is in terms of tt (or put the given value of tt).

Examples

Example 1. z=5x3y2z=5x^3y^2, x=t3x=t^3, y=t5y=t^5. Find dzdt\dfrac{dz}{dt}, and check by substituting first.

∂z∂x=15x2y2∂z∂y=10x3ydxdt=3t2dydt=5t4\frac{\partial z}{\partial x}=15x^2y^2\quad\frac{\partial z}{\partial y}=10x^3y\quad\frac{dx}{dt}=3t^2\quad\frac{dy}{dt}=5t^4 dzdt=15x2y2⋅3t2+10x3y⋅5t4=45(t3)2(t5)2 t2+50(t3)3 t5 t4=45t18+50t18=95t18\begin{aligned} \frac{dz}{dt}&=15x^2y^2\cdot3t^2+10x^3y\cdot5t^4\\ &=45(t^3)^2(t^5)^2\,t^2+50(t^3)^3\,t^5\,t^4\\ &=45t^{18}+50t^{18}=\mathbf{95t^{18}} \end{aligned}

Check. If we substitute first, z=5(t3)3(t5)2=5t19z=5(t^3)^3(t^5)^2=5t^{19}, so dzdt=95t18\dfrac{dz}{dt}=95t^{18}. ✓\checkmark

Example 2. z=log⁡(3x2+y)z=\log(3x^2+y), x=tx=\sqrt t, y=t1/3y=t^{1/3}. Find dzdt\dfrac{dz}{dt}.

∂z∂x=6x3x2+y∂z∂y=13x2+ydxdt=12tdydt=13t−2/3\frac{\partial z}{\partial x}=\frac{6x}{3x^2+y}\quad\frac{\partial z}{\partial y}=\frac{1}{3x^2+y}\quad\frac{dx}{dt}=\frac{1}{2\sqrt t}\quad\frac{dy}{dt}=\frac13t^{-2/3}

With x=tx=\sqrt t we get 3x2+y=3t+t1/33x^2+y=3t+t^{1/3}, so

dzdt=6t3t+t1/3⋅12t+13t+t1/3⋅13t−2/3=3+13t−2/33t+t1/3\frac{dz}{dt}=\frac{6\sqrt t}{3t+t^{1/3}}\cdot\frac{1}{2\sqrt t}+\frac{1}{3t+t^{1/3}}\cdot\frac13t^{-2/3} =\frac{3+\tfrac13t^{-2/3}}{3t+t^{1/3}}

Multiply the top and the bottom by 3t2/33t^{2/3} to simplify:

dzdt=9t2/3+13t(3t2/3+1)\frac{dz}{dt}=\mathbf{\frac{9t^{2/3}+1}{3t\left(3t^{2/3}+1\right)}}

Example 3. Find dwdt\dfrac{dw}{dt} for w=x2+y2w=x^2+y^2 along the path x=at2x=at^2, y=2aty=2at.

∂w∂x=2x∂w∂y=2ydxdt=2atdydt=2a\frac{\partial w}{\partial x}=2x\quad\frac{\partial w}{\partial y}=2y\quad\frac{dx}{dt}=2at\quad\frac{dy}{dt}=2a dwdt=2(at2)(2at)+2(2at)(2a)=4a2t3+8a2t\frac{dw}{dt}=2(at^2)(2at)+2(2at)(2a)=\mathbf{4a^2t^3+8a^2t}

(The path is a parabola, and ww is the square of the distance from the origin along it.)

Example 4. Find dwdt\dfrac{dw}{dt} at t=3t=3 if w=ln⁡(x2+y2+z2)w=\ln(x^2+y^2+z^2), x=cos⁡tx=\cos t, y=sin⁡ty=\sin t, z=4tz=4\sqrt t.

∂w∂x=2xx2+y2+z2and similarly for y,z;dxdt=−sin⁡tdydt=cos⁡tdzdt=2t\frac{\partial w}{\partial x}=\frac{2x}{x^2+y^2+z^2}\quad\text{and similarly for }y,z;\qquad \frac{dx}{dt}=-\sin t\quad\frac{dy}{dt}=\cos t\quad\frac{dz}{dt}=\frac{2}{\sqrt t}

Here x2+y2+z2=cos⁡2t+sin⁡2t+16t=1+16tx^2+y^2+z^2=\cos^2t+\sin^2t+16t=1+16t, so:

dwdt=2cos⁡t(−sin⁡t)+2sin⁡tcos⁡t+2(4t)⋅2t1+16t=−2sin⁡tcos⁡t+2sin⁡tcos⁡t+161+16t=161+16t\begin{aligned} \frac{dw}{dt}&=\frac{2\cos t(-\sin t)+2\sin t\cos t+2(4\sqrt t)\cdot\frac{2}{\sqrt t}}{1+16t}\\[4pt] &=\frac{-2\sin t\cos t+2\sin t\cos t+16}{1+16t}=\frac{16}{1+16t} \end{aligned}

At t=3t=3:

dwdt∣t=3=161+48=1649\left.\frac{dw}{dt}\right|_{t=3}=\frac{16}{1+48}=\mathbf{\frac{16}{49}}

Watch out. Use ∂\partial for the outer function (it has many variables) and dd for the inner ones (each has only tt). Do not forget the second path. Stopping after the xx term is the most common mistake.

Page 9 of 13

Chain rule, part 2: two parameters

The idea

Now let the middle variables depend on two parameters. If z=f(x,y)z=f(x,y) with x=x(u,v)x=x(u,v) and y=y(u,v)y=y(u,v), then zz is a function of uu and vv, and we need partial derivatives with respect to each.

Chain rule (two parameters).

∂z∂u=∂z∂x⋅∂x∂u+∂z∂y⋅∂y∂u\frac{\partial z}{\partial u}=\frac{\partial z}{\partial x}\cdot\frac{\partial x}{\partial u}+\frac{\partial z}{\partial y}\cdot\frac{\partial y}{\partial u}

∂z∂v=∂z∂x⋅∂x∂v+∂z∂y⋅∂y∂v\frac{\partial z}{\partial v}=\frac{\partial z}{\partial x}\cdot\frac{\partial x}{\partial v}+\frac{\partial z}{\partial y}\cdot\frac{\partial y}{\partial v}

flowchart TD Z[z] --- X[x] Z --- Y[y] X --- U1[u] X --- V1[v] Y --- U2[u] Y --- V2[v]

The tree rule is the same. For ∂z∂u\dfrac{\partial z}{\partial u}: take every path from zz down to uu, multiply along each path, and add. For ∂z∂v\dfrac{\partial z}{\partial v}: take every path down to vv.

Examples

Example 1. z=x2−ytan⁡xz=x^2-y\tan x, x=uvx=\dfrac uv, y=uvy=uv. Find ∂z∂u\dfrac{\partial z}{\partial u} and ∂z∂v\dfrac{\partial z}{\partial v}.

The pieces:

∂z∂x=2x−ysec⁡2x∂z∂y=−tan⁡x\frac{\partial z}{\partial x}=2x-y\sec^2x\quad\frac{\partial z}{\partial y}=-\tan x ∂x∂u=1v∂x∂v=−uv2∂y∂u=v∂y∂v=u\frac{\partial x}{\partial u}=\frac1v\quad\frac{\partial x}{\partial v}=-\frac{u}{v^2}\quad\frac{\partial y}{\partial u}=v\quad\frac{\partial y}{\partial v}=u

Combine:

∂z∂u=(2x−ysec⁡2x)⋅1v+(−tan⁡x)⋅v=2x−ysec⁡2xv−vtan⁡x\frac{\partial z}{\partial u}=(2x-y\sec^2x)\cdot\frac1v+(-\tan x)\cdot v =\frac{2x-y\sec^2x}{v}-v\tan x ∂z∂v=(2x−ysec⁡2x)⋅(−uv2)+(−tan⁡x)⋅u\frac{\partial z}{\partial v}=(2x-y\sec^2x)\cdot\left(-\frac{u}{v^2}\right)+(-\tan x)\cdot u

Finally, put x=uvx=\dfrac uv and y=uvy=uv to write the answers in terms of uu and vv:

∂z∂u=2uv2−usec⁡2uv−vtan⁡uv\frac{\partial z}{\partial u}=\mathbf{\frac{2u}{v^2}-u\sec^2\frac uv-v\tan\frac uv} ∂z∂v=−2u2v3+u2vsec⁡2uv−utan⁡uv\frac{\partial z}{\partial v}=\mathbf{-\frac{2u^2}{v^3}+\frac{u^2}{v}\sec^2\frac uv-u\tan\frac uv}

Example 2. z=ex2yz=e^{x^2y}, x=uvx=\sqrt{uv}, y=1vy=\dfrac1v. Find ∂z∂u\dfrac{\partial z}{\partial u} and ∂z∂v\dfrac{\partial z}{\partial v}.

∂z∂x=2xy ex2y∂z∂y=x2ex2y\frac{\partial z}{\partial x}=2xy\,e^{x^2y}\quad\frac{\partial z}{\partial y}=x^2e^{x^2y} ∂x∂u=v2uv∂x∂v=u2uv∂y∂u=0∂y∂v=−1v2\frac{\partial x}{\partial u}=\frac{v}{2\sqrt{uv}}\quad\frac{\partial x}{\partial v}=\frac{u}{2\sqrt{uv}}\quad\frac{\partial y}{\partial u}=0\quad\frac{\partial y}{\partial v}=-\frac1{v^2}

Note that x2y=uv⋅1v=ux^2y=uv\cdot\dfrac1v=u, so every exponential is eue^{u}.

∂z∂u=2xy eu⋅v2uv+0=2uv⋅1v⋅v2uv eu=eu\frac{\partial z}{\partial u}=2xy\,e^{u}\cdot\frac{v}{2\sqrt{uv}}+0 =2\sqrt{uv}\cdot\frac1v\cdot\frac{v}{2\sqrt{uv}}\,e^{u}=\mathbf{e^{u}} ∂z∂v=2xy eu⋅u2uv+x2eu⋅(−1v2)=uv eu−uvv2 eu=0\frac{\partial z}{\partial v}=2xy\,e^{u}\cdot\frac{u}{2\sqrt{uv}}+x^2e^{u}\cdot\left(-\frac1{v^2}\right) =\frac uv\,e^{u}-\frac{uv}{v^2}\,e^{u}=\mathbf{0}

Check. If we substitute first, z=ex2y=euz=e^{x^2y}=e^{u} depends on uu only, so zu=euz_u=e^u and zv=0z_v=0. ✓\checkmark

Example 3. Express ∂w∂r\dfrac{\partial w}{\partial r} and ∂w∂s\dfrac{\partial w}{\partial s} in terms of rr and ss, if w=x2+y2w=x^2+y^2, x=r−sx=r-s, y=r+sy=r+s.

∂w∂x=2x∂w∂y=2y∂x∂r=1∂y∂r=1∂x∂s=−1∂y∂s=1\frac{\partial w}{\partial x}=2x\quad\frac{\partial w}{\partial y}=2y\quad \frac{\partial x}{\partial r}=1\quad\frac{\partial y}{\partial r}=1\quad \frac{\partial x}{\partial s}=-1\quad\frac{\partial y}{\partial s}=1 ∂w∂r=2x⋅1+2y⋅1=2(r−s)+2(r+s)=4r\frac{\partial w}{\partial r}=2x\cdot1+2y\cdot1=2(r-s)+2(r+s)=\mathbf{4r} ∂w∂s=2x⋅(−1)+2y⋅1=−2(r−s)+2(r+s)=4s\frac{\partial w}{\partial s}=2x\cdot(-1)+2y\cdot1=-2(r-s)+2(r+s)=\mathbf{4s}

Check. w=(r−s)2+(r+s)2=2r2+2s2w=(r-s)^2+(r+s)^2=2r^2+2s^2, so wr=4rw_r=4r and ws=4sw_s=4s. ✓\checkmark

Example 4. Three middle variables. Find the first-order partial derivatives of w=x+2y+z2w=x+2y+z^2, where x=rsx=\dfrac rs, y=r2+ln⁡sy=r^2+\ln s, z=2rz=2r.

Here zz depends on rr only, so its branch goes to rr but not to ss.

flowchart TD W[w] --- X[x] W --- Y[y] W --- Z[z] X --- R1[r] X --- S1[s] Y --- R2[r] Y --- S2[s] Z --- R3[r]
∂w∂x=1∂w∂y=2∂w∂z=2z\frac{\partial w}{\partial x}=1\quad\frac{\partial w}{\partial y}=2\quad\frac{\partial w}{\partial z}=2z ∂x∂r=1s∂y∂r=2r∂z∂r=2∂x∂s=−rs2∂y∂s=1s\frac{\partial x}{\partial r}=\frac1s\quad\frac{\partial y}{\partial r}=2r\quad\frac{\partial z}{\partial r}=2\qquad \frac{\partial x}{\partial s}=-\frac{r}{s^2}\quad\frac{\partial y}{\partial s}=\frac1s

Three paths down to rr, two paths down to ss:

∂w∂r=1⋅1s+2⋅2r+2z⋅2=1s+4r+8r=1s+12r\frac{\partial w}{\partial r}=1\cdot\frac1s+2\cdot2r+2z\cdot2=\frac1s+4r+8r=\mathbf{\frac1s+12r} ∂w∂s=1⋅(−rs2)+2⋅1s=−rs2+2s\frac{\partial w}{\partial s}=1\cdot\left(-\frac{r}{s^2}\right)+2\cdot\frac1s=\mathbf{-\frac{r}{s^2}+\frac2s}

When a variable has two roles

Sometimes the last variable also appears directly in the function. Then it gives both a direct path and the paths through the other variables.

Example 5. Find dwdx\dfrac{dw}{dx} at x=0x=0 for w=xy+yzw=xy+yz, with y=sin⁡xy=\sin x and z=exz=e^x.

flowchart TD W[w] --- X1[x] W --- Y[y] W --- Z[z] Y --- X2[x] Z --- X3[x]

There are three paths from ww to xx: directly, through yy, and through zz.

dwdx=∂w∂x+∂w∂y⋅dydx+∂w∂z⋅dzdx\frac{dw}{dx}=\frac{\partial w}{\partial x}+\frac{\partial w}{\partial y}\cdot\frac{dy}{dx}+\frac{\partial w}{\partial z}\cdot\frac{dz}{dx}

With ∂w∂x=y\dfrac{\partial w}{\partial x}=y, ∂w∂y=x+z\dfrac{\partial w}{\partial y}=x+z, ∂w∂z=y\dfrac{\partial w}{\partial z}=y, dydx=cos⁡x\dfrac{dy}{dx}=\cos x, dzdx=ex\dfrac{dz}{dx}=e^x:

dwdx=y+(x+z)cos⁡x+y ex\frac{dw}{dx}=y+(x+z)\cos x+y\,e^x

At x=0x=0 we have y=sin⁡0=0y=\sin0=0 and z=e0=1z=e^0=1, so

dwdx∣x=0=0+(0+1)(1)+0=1\left.\frac{dw}{dx}\right|_{x=0}=0+(0+1)(1)+0=\mathbf{1}

Check. If we substitute first, w=xsin⁡x+exsin⁡xw=x\sin x+e^x\sin x. Its derivative at 00 is 0+0+1+0=10+0+1+0=1. ✓\checkmark

Watch out. In Example 5, ∂w∂x\dfrac{\partial w}{\partial x} (treat yy and zz as constants) and dwdx\dfrac{dw}{dx} (let them change with xx) are different quantities. Also, the point (0,1,2)(0,1,2) in the original question does not lie on this curve. The curve passes through (0,0,1)(0,0,1) at x=0x=0.

Page 10 of 13

Related rates

The idea

If a quantity zz depends on xx and yy, and xx and yy are changing with time, the chain rule gives the rate of change of zz:

dzdt=∂z∂x⋅dxdt+∂z∂y⋅dydt\frac{dz}{dt}=\frac{\partial z}{\partial x}\cdot\frac{dx}{dt}+\frac{\partial z}{\partial y}\cdot\frac{dy}{dt}

Method

  1. Name the variables and write the formula z=f(x,y)z=f(x,y) that connects them.
  2. Write the given rates dxdt\dfrac{dx}{dt}, dydt\dfrac{dy}{dt}. A quantity that is decreasing has a negative rate. A quantity that is constant has rate 00.
  3. Find ∂z∂x\dfrac{\partial z}{\partial x} and ∂z∂y\dfrac{\partial z}{\partial y}.
  4. Use the chain rule, and then put the values at that moment.
  5. Write the answer with units, and say whether the quantity is increasing or decreasing.

Examples

Example 1. Area of a rectangle. The length and width of a rectangle are increasing at 1.5 cm/s1.5\ \text{cm/s} and 0.5 cm/s0.5\ \text{cm/s}. How fast is the area increasing when the length is 40 cm40\ \text{cm} and the width is 30 cm30\ \text{cm}?

Let xx = length, yy = width, A=xyA=xy. Then dxdt=1.5\dfrac{dx}{dt}=1.5 and dydt=0.5\dfrac{dy}{dt}=0.5, with ∂A∂x=y\dfrac{\partial A}{\partial x}=y and ∂A∂y=x\dfrac{\partial A}{\partial y}=x.

dAdt=y⋅1.5+x⋅0.5=30(1.5)+40(0.5)=45+20=65 cm2/s\frac{dA}{dt}=y\cdot1.5+x\cdot0.5=30(1.5)+40(0.5)=45+20=\mathbf{65\ \text{cm}^2/\text{s}}

The unit is square centimetre per second, because AA is an area.

Example 2. Volume of a cone. The height of a right circular cone is increasing at 0.2 cm/s0.2\ \text{cm/s} and the radius of its base is decreasing at 0.3 cm/s0.3\ \text{cm/s}. How fast is the volume changing when the height is 15 cm15\ \text{cm} and the radius is 10 cm10\ \text{cm}?

Let xx = radius, yy = height, V=13πx2yV=\tfrac13\pi x^2y. The radius is decreasing, so dxdt=−0.3\dfrac{dx}{dt}=-0.3, and dydt=0.2\dfrac{dy}{dt}=0.2.

∂V∂x=2πxy3∂V∂y=πx23\frac{\partial V}{\partial x}=\frac{2\pi xy}{3}\qquad\frac{\partial V}{\partial y}=\frac{\pi x^2}{3} dVdt=2πxy3(−0.3)+πx23(0.2)\frac{dV}{dt}=\frac{2\pi xy}{3}(-0.3)+\frac{\pi x^2}{3}(0.2)

At x=10x=10, y=15y=15:

dVdt=2π(150)3(−0.3)+π(100)3(0.2)=−30π+20π3=−70π3 cm3/s≈−73.3 cm3/s\frac{dV}{dt}=\frac{2\pi(150)}{3}(-0.3)+\frac{\pi(100)}{3}(0.2)=-30\pi+\frac{20\pi}{3}=\mathbf{-\frac{70\pi}{3}\ \text{cm}^3/\text{s}}\approx-73.3\ \text{cm}^3/\text{s}

The volume is decreasing: the decreasing radius (which is squared in the formula) has more effect than the increasing height.

Example 3. A quantity kept constant. Given z=2xy2−3x2yz=2xy^2-3x^2y and that xx is increasing at 2 cm/s2\ \text{cm/s}, find the rate at which yy changes when x=3x=3 and y=1y=1, if zz stays constant.

Constant zz means dzdt=0\dfrac{dz}{dt}=0. With ∂z∂x=2y2−6xy\dfrac{\partial z}{\partial x}=2y^2-6xy and ∂z∂y=4xy−3x2\dfrac{\partial z}{\partial y}=4xy-3x^2:

0=(2y2−6xy)⋅2+(4xy−3x2)dydt0=(2y^2-6xy)\cdot2+(4xy-3x^2)\frac{dy}{dt}

At (3,1)(3,1): ∂z∂x=2−18=−16\dfrac{\partial z}{\partial x}=2-18=-16 and ∂z∂y=12−27=−15\dfrac{\partial z}{\partial y}=12-27=-15. So

0=(−16)(2)+(−15)dydt ⇒ dydt=−3215 cm/s0=(-16)(2)+(-15)\frac{dy}{dt}\ \Rightarrow\ \frac{dy}{dt}=\mathbf{-\frac{32}{15}\ \text{cm/s}}

So yy is decreasing at about 2.13 cm/s2.13\ \text{cm/s}.

Note on the source. The handwritten page moved a bracket to the other side of the equals sign without changing its sign, and ended with +3215+\tfrac{32}{15}. When we put the numbers first (as above), we get −3215-\tfrac{32}{15}. The page also gave the rate of the cone's height as 0.2 m/s0.2\ \text{m/s}, but it must be 0.2 cm/s0.2\ \text{cm/s} to match the other units. One middle line in the cone problem had 140π3\tfrac{140\pi}{3} before reaching the correct 70π3\tfrac{70\pi}{3}.

Watch out. Check signs and units at the end. A decreasing quantity needs a negative rate in the beginning. Also, all rates must be in the same units (here all in cm and seconds).

Page 11 of 13

Implicit differentiation

The idea

Sometimes yy is given implicitly by an equation such as x3+y3=3axyx^3+y^3=3axy, which cannot be solved easily for yy. Partial derivatives give a one-step formula for dydx\dfrac{dy}{dx}.

Implicit differentiation formula. If f(x,y)=cf(x,y)=c defines yy as a function of xx, then

dydx=−∂f/∂x∂f/∂y=−fxfy(fy≠0)\frac{dy}{dx}=-\frac{\partial f/\partial x}{\partial f/\partial y}=-\frac{f_x}{f_y}\qquad(f_y\neq0)

Why it works

Along the curve f(x,y)=cf(x,y)=c the value of ff does not change, so ddxf(x,y)=0\dfrac{d}{dx}f(x,y)=0. The chain rule (with xx having both roles, as on the previous page) gives

fx⋅1+fy⋅dydx=0f_x\cdot1+f_y\cdot\frac{dy}{dx}=0

and solving for dydx\dfrac{dy}{dx} gives the formula.

Method

  1. Take everything to one side so that the equation becomes f(x,y)=0f(x,y)=0 (or =c=c).
  2. Find fxf_x and fyf_y as normal partial derivatives.
  3. Write dydx=−fxfy\dfrac{dy}{dx}=-\dfrac{f_x}{f_y}. Keep the minus sign in front of the whole fraction.

Examples

Example 1. Using partial derivatives, find dydx\dfrac{dy}{dx} if x3+y3=3axyx^3+y^3=3axy. Then verify using ordinary implicit differentiation.

Let f(x,y)=x3+y3−3axyf(x,y)=x^3+y^3-3axy. Then

fx=3x2−3ayfy=3y2−3axf_x=3x^2-3ay\qquad f_y=3y^2-3ax dydx=−3x2−3ay3y2−3ax=ay−x2y2−ax\frac{dy}{dx}=-\frac{3x^2-3ay}{3y^2-3ax}=\mathbf{\frac{ay-x^2}{y^2-ax}}

Verification. Differentiate both sides of x3+y3=3axyx^3+y^3=3axy with respect to xx:

3x2+3y2dydx=3a(xdydx+y)3x^2+3y^2\frac{dy}{dx}=3a\left(x\frac{dy}{dx}+y\right)

Collect the dydx\dfrac{dy}{dx} terms:

dydx(3y2−3ax)=3ay−3x2 ⇒ dydx=3ay−3x23y2−3ax=ay−x2y2−ax\frac{dy}{dx}\left(3y^2-3ax\right)=3ay-3x^2\ \Rightarrow\ \frac{dy}{dx}=\frac{3ay-3x^2}{3y^2-3ax}=\frac{ay-x^2}{y^2-ax}

Both methods agree. ✓\checkmark

Note on the source. The handwritten page wrote the first answer as −3x2−3ay3y2−3ax\dfrac{-3x^2-3ay}{3y^2-3ax}, where the minus sign was applied wrongly. It should be −(3x2−3ay)=−3x2+3ay-(3x^2-3ay)=-3x^2+3ay. The second method on the page gave the correct result.

Example 2. Find dydx\dfrac{dy}{dx} for the circle x2+y2=a2x^2+y^2=a^2.

Let f(x,y)=x2+y2−a2f(x,y)=x^2+y^2-a^2, so fx=2xf_x=2x and fy=2yf_y=2y:

dydx=−2x2y=−xy\frac{dy}{dx}=-\frac{2x}{2y}=\mathbf{-\frac xy}

This is the slope of the circle at (x,y)(x,y). It agrees with geometry: the tangent to a circle is perpendicular to the radius, which has slope y/xy/x.

Watch out. Students make three mistakes here. (1) Missing the minus sign. (2) Writing fyf_y on top and fxf_x at the bottom. It is fxf_x over fyf_y. (3) Forgetting that the formula needs the equation in the form f(x,y)=cf(x,y)=c, with all terms taken to one side first.

Page 12 of 13

Level curves

The idea

A level curve is the set of points where a function has one fixed value. Think of the contour lines on a map: each line joins the places that have the same height.

Definition. A level curve of f(x,y)f(x,y) is the curve

f(x,y)=kf(x,y)=k

for a constant kk.

Level curves never cross (a point cannot have two different values of ff). Where the curves are close together, the surface is steep. Where they are far apart, the surface is gentle.

Method

  1. Set f(x,y)=kf(x,y)=k for each requested value of kk.
  2. Simplify each equation to a known curve: a line, circle, parabola, ellipse, and so on.
  3. Draw all the curves together, and write the kk value on each.
  4. To find the level curve through a given point, put the point in ff. That value is kk.

Examples

Example 1. Find the level curves of f(x,y)=9−x2−y2f(x,y)=\sqrt{9-x^2-y^2} for c=0,1,2,3c=0,1,2,3.

Set 9−x2−y2=c\sqrt{9-x^2-y^2}=c and square both sides:

9−x2−y2=c2 ⇒ x2+y2=9−c29-x^2-y^2=c^2\ \Rightarrow\ x^2+y^2=9-c^2
ccEquationCurve
00x2+y2=9x^2+y^2=9circle of radius 33
11x2+y2=8x^2+y^2=8circle of radius 22≈2.832\sqrt2\approx2.83
22x2+y2=5x^2+y^2=5circle of radius 5≈2.24\sqrt5\approx2.24
33x2+y2=0x^2+y^2=0the single point (0,0)(0,0)
{ "boundingBox": [-3.5, 3.5, 3.5, -3.5], "axis": true, "points": [ { "id": "O", "x": 0, "y": 0, "label": "c = 3" } ], "segments": [], "circles": [ { "center": "O", "radius": 3 }, { "center": "O", "radius": 2.8284 }, { "center": "O", "radius": 2.2361 } ], "functions": [], "title": "Level curves of f(x, y) = √(9 − x² − y²): from the outside in, c = 0, 1, 2; the point at the centre is c = 3" }

The graph of ff is the upper half of a sphere of radius 33, and its level curves are the circles at each height. Notice that they come close together near the edge, where the surface is steepest.

Watch out. For c>3c>3 there is no level curve, because x2+y2=9−c2x^2+y^2=9-c^2 would be negative. This agrees with the range [0,3][0,3] found on the domain page. Also, cc must be ≥0\ge0, because a square root cannot be negative.

Example 2. Find the level curves of f(x,y)=x2+2yf(x,y)=x^2+2y for k=−2,0,2k=-2,0,2.

Set x2+2y=kx^2+2y=k. Solving for yy gives a parabola:

y=k−x22y=\frac{k-x^2}{2}
kkEquationVertex
−2-2x2=−2(y+1)x^2=-2(y+1)(0,−1)(0,-1)
00x2=−2yx^2=-2y(0,0)(0,0)
22x2=−2(y−1)x^2=-2(y-1)(0,1)(0,1)
{ "boundingBox": [-3, 2.5, 3, -3.5], "axis": true, "points": [], "segments": [], "circles": [], "parabolas": [ { "vertex": [0, 1], "a": -0.5, "label": "k = 2" }, { "vertex": [0, 0], "a": -0.5, "label": "k = 0" }, { "vertex": [0, -1], "a": -0.5, "label": "k = −2" } ], "functions": [], "title": "Level curves of f(x, y) = x² + 2y: parabolas opening downward" }

These are identical parabolas. Each one moves up by one unit when kk increases by 22.

Parabola shape. x2=4ayx^2=4ay opens upward and x2=−4ayx^2=-4ay opens downward (here 4a=24a=2, and the minus sign gives downward).

Example 3. Find and sketch the level curve of f(x,y)=x2+y2f(x,y)=x^2+y^2 that passes through (2,0)(2,0).

Put the point to find the level:

k=f(2,0)=22+02=4k=f(2,0)=2^2+0^2=4

so the level curve is x2+y2=4x^2+y^2=4: a circle of radius 22 centred at the origin.

{ "boundingBox": [-3.5, 3.5, 3.5, -3.5], "axis": true, "points": [ { "id": "O", "x": 0, "y": 0, "label": "" }, { "id": "P1", "x": 2, "y": 0, "label": "(2,0)" }, { "id": "P2", "x": 0, "y": 2, "label": "(0,2)" }, { "id": "P3", "x": -2, "y": 0, "label": "(-2,0)" }, { "id": "P4", "x": 0, "y": -2, "label": "(0,-2)" } ], "segments": [], "circles": [ { "center": "O", "radius": 2 } ], "functions": [], "title": "Level curve x² + y² = 4: a circle of radius 2" }

Page 13 of 13

Practice questions and formula sheet

Practice questions

Try these without looking at the answers. The answers are given below.

A. Limits and continuity

  1. lim⁡(x,y)→(1,2)x2yx+y\displaystyle\lim_{(x,y)\to(1,2)}\frac{x^2y}{x+y}
  2. Show that lim⁡(x,y)→(0,0)x2x2+y2\displaystyle\lim_{(x,y)\to(0,0)}\frac{x^2}{x^2+y^2} does not exist.
  3. lim⁡(x,y)→(0,0)x2−y2x−y\displaystyle\lim_{(x,y)\to(0,0)}\frac{x^2-y^2}{x-y}
  4. Let f(x,y)=x3x2+y2f(x,y)=\dfrac{x^3}{x^2+y^2} for (x,y)≠(0,0)(x,y)\ne(0,0) and f(0,0)=0f(0,0)=0. Is ff continuous at the origin? (Hint: compare ∣f∣|f| with ∣x∣|x|.)

B. Partial derivatives

  1. Find fxf_x and fyf_y for f=x3−3xy2+exyf=x^3-3xy^2+e^{xy}.
  2. Find zxz_x and zyz_y for z=xx2+y2z=\dfrac{x}{x^2+y^2}.
  3. Verify that fxy=fyxf_{xy}=f_{yx} for f=x2y3+sin⁡(xy)f=x^2y^3+\sin(xy).
  4. Show that z=ln⁡(x2+y2)z=\ln(x^2+y^2) satisfies zxx+zyy=0z_{xx}+z_{yy}=0.

C. Chain rule

  1. Find dzdt\dfrac{dz}{dt} for z=x2yz=x^2y, x=cos⁡tx=\cos t, y=sin⁡ty=\sin t.
  2. Find ∂w∂u\dfrac{\partial w}{\partial u} and ∂w∂v\dfrac{\partial w}{\partial v} for w=xyw=xy, x=u+vx=u+v, y=u−vy=u-v.

D. Implicit differentiation. Find dydx\dfrac{dy}{dx}:

  1. x2+xy+y2=7x^2+xy+y^2=7
  2. sin⁡(xy)=x+y\sin(xy)=x+y

E. Rates, level curves, revision

  1. The radius of a cylinder is increasing at 0.5 cm/s0.5\ \text{cm/s} and its height is decreasing at 1 cm/s1\ \text{cm/s}. How fast is the volume V=πr2hV=\pi r^2h changing when r=3 cmr=3\ \text{cm} and h=10 cmh=10\ \text{cm}?
  2. Find the level curve of f(x,y)=x2+4y2f(x,y)=x^2+4y^2 through (2,1)(2,1) and say what shape it is.
  3. From Module 1. Find d2ydx2\dfrac{d^2y}{dx^2} for y=(3x3+2x)(3x+5)x4y=\dfrac{(3x^3+2x)(3x+5)}{x^4}.

Answers

  1. 23\dfrac{2}{3}. Put the values: 1⋅21+2\dfrac{1\cdot2}{1+2}.
  2. Along y=mxy=mx the value is 11+m2\dfrac1{1+m^2}. It is 11 for m=0m=0 and 12\tfrac12 for m=1m=1. The values are different, so the limit does not exist.
  3. 00. Factorise: (x−y)(x+y)x−y=x+y→0\dfrac{(x-y)(x+y)}{x-y}=x+y\to0.
  4. Continuous. ∣x3x2+y2∣≤∣x∣3x2=∣x∣→0=f(0,0)\left|\dfrac{x^3}{x^2+y^2}\right|\le\dfrac{|x|^3}{x^2}=|x|\to0=f(0,0), so by the sandwich theorem the limit equals f(0,0)f(0,0).
  5. fx=3x2−3y2+y exyf_x=3x^2-3y^2+y\,e^{xy}, fy=−6xy+x exy\quad f_y=-6xy+x\,e^{xy}
  6. zx=y2−x2(x2+y2)2z_x=\dfrac{y^2-x^2}{(x^2+y^2)^2}, zy=−2xy(x2+y2)2\quad z_y=-\dfrac{2xy}{(x^2+y^2)^2}
  7. fx=2xy3+ycos⁡(xy)f_x=2xy^3+y\cos(xy) and fy=3x2y2+xcos⁡(xy)f_y=3x^2y^2+x\cos(xy). Both mixed derivatives equal 6xy2+cos⁡(xy)−xysin⁡(xy)6xy^2+\cos(xy)-xy\sin(xy).
  8. zx=2xx2+y2z_x=\dfrac{2x}{x^2+y^2} gives zxx=2y2−2x2(x2+y2)2z_{xx}=\dfrac{2y^2-2x^2}{(x^2+y^2)^2}. By symmetry zyy=2x2−2y2(x2+y2)2z_{yy}=\dfrac{2x^2-2y^2}{(x^2+y^2)^2}. The sum is 00.
  9. dzdt=2xy(−sin⁡t)+x2cos⁡t=cos⁡3t−2sin⁡2tcos⁡t\dfrac{dz}{dt}=2xy(-\sin t)+x^2\cos t=\cos^3t-2\sin^2t\cos t. (Check: z=cos⁡2tsin⁡tz=\cos^2t\sin t.)
  10. wu=y+x=2uw_u=y+x=2u, wv=y−x=−2v\quad w_v=y-x=-2v. (Check: w=u2−v2w=u^2-v^2.)
  11. dydx=−2x+yx+2y\dfrac{dy}{dx}=-\dfrac{2x+y}{x+2y}
  12. With f=sin⁡(xy)−x−yf=\sin(xy)-x-y: dydx=−ycos⁡(xy)−1xcos⁡(xy)−1=1−ycos⁡(xy)xcos⁡(xy)−1\dfrac{dy}{dx}=-\dfrac{y\cos(xy)-1}{x\cos(xy)-1}=\dfrac{1-y\cos(xy)}{x\cos(xy)-1}
  13. dVdt=2πrh⋅drdt+πr2⋅dhdt=2π(30)(0.5)+π(9)(−1)=30π−9π=21π≈66.0 cm3/s\dfrac{dV}{dt}=2\pi rh\cdot\dfrac{dr}{dt}+\pi r^2\cdot\dfrac{dh}{dt}=2\pi(30)(0.5)+\pi(9)(-1)=30\pi-9\pi=21\pi\approx66.0\ \text{cm}^3/\text{s} (increasing).
  14. k=4+4=8k=4+4=8. The level curve is x2+4y2=8x^2+4y^2=8, that is x28+y22=1\dfrac{x^2}{8}+\dfrac{y^2}{2}=1: an ellipse with semi-axes 222\sqrt2 (along xx) and 2\sqrt2 (along yy).
  15. Simplify first: y=9+15x+6x2+10x3y=9+\dfrac{15}{x}+\dfrac{6}{x^2}+\dfrac{10}{x^3}. Then y′=−15x2−12x3−30x4y'=-\dfrac{15}{x^2}-\dfrac{12}{x^3}-\dfrac{30}{x^4} and y′′=30x3+36x4+120x5=30x2+36x+120x5y''=\dfrac{30}{x^3}+\dfrac{36}{x^4}+\dfrac{120}{x^5}=\dfrac{30x^2+36x+120}{x^5}.

Study tip. In 15, if you expand and divide before differentiating, you can use the simple power rule instead of a long quotient rule. Use this shortcut whenever the denominator has only one term.


Formula sheet

Functions, limits and continuity

Domainno zero denominators, no even roots of negative numbers, no logs of zero or negative numbers
Limitlim⁡(x,y)→(a,b)f=L\lim_{(x,y)\to(a,b)}f=L along every path
Substitutionworks for polynomials, and for rational functions with non-zero denominator
0/00/0factorise and cancel, or use x−y=(x−y)(x+y)x-y=(\sqrt x-\sqrt y)(\sqrt x+\sqrt y)
Does not existtwo paths give different values; try y=mxy=mx
Continuous at (a,b)(a,b)f(a,b)f(a,b) defined, limit exists, limit =f(a,b)=f(a,b)

Partial derivatives

fx=lim⁡h→0f(x+h,y)−f(x,y)hfy=lim⁡h→0f(x,y+h)−f(x,y)hf_x=\lim_{h\to0}\frac{f(x+h,y)-f(x,y)}{h}\qquad f_y=\lim_{h\to0}\frac{f(x,y+h)-f(x,y)}{h}
fxf_xdifferentiate in xx, treat yy as a constant
fyf_ydifferentiate in yy, treat xx as a constant
Slope of surfacefxf_x in the xx-direction, fyf_y in the yy-direction
Second orderfxxf_{xx}, fyyf_{yy}, and mixed fxy=∂2f∂y ∂xf_{xy}=\dfrac{\partial^2f}{\partial y\,\partial x}, fyx=∂2f∂x ∂yf_{yx}=\dfrac{\partial^2f}{\partial x\,\partial y}
Mixed partialsfxy=fyxf_{xy}=f_{yx} when they are continuous
Laplace's equationuxx+uyy+uzz=0u_{xx}+u_{yy}+u_{zz}=0

Chain rule

SituationFormula
z=f(x,y)z=f(x,y), x(t)x(t), y(t)y(t)dzdt=zxdxdt+zydydt\dfrac{dz}{dt}=z_x\dfrac{dx}{dt}+z_y\dfrac{dy}{dt}
z=f(x,y)z=f(x,y), x(u,v)x(u,v), y(u,v)y(u,v)∂z∂u=zx∂x∂u+zy∂y∂u\dfrac{\partial z}{\partial u}=z_x\dfrac{\partial x}{\partial u}+z_y\dfrac{\partial y}{\partial u}, and the same with vv
w=f(x,y,z)w=f(x,y,z), all depend on ttdwdt=wxdxdt+wydydt+wzdzdt\dfrac{dw}{dt}=w_x\dfrac{dx}{dt}+w_y\dfrac{dy}{dt}+w_z\dfrac{dz}{dt}
Variable in two rolesdwdx=∂w∂x+∂w∂ydydx+∂w∂zdzdx\dfrac{dw}{dx}=\dfrac{\partial w}{\partial x}+\dfrac{\partial w}{\partial y}\dfrac{dy}{dx}+\dfrac{\partial w}{\partial z}\dfrac{dz}{dx}
Tree rulemultiply along each path, add the paths

Implicit differentiation and level curves

Implicitf(x,y)=c ⇒ dydx=−fxfyf(x,y)=c\ \Rightarrow\ \dfrac{dy}{dx}=-\dfrac{f_x}{f_y}
Level curvef(x,y)=kf(x,y)=k
Through a point (a,b)(a,b)take k=f(a,b)k=f(a,b)
Related ratesquantity decreasing: negative rate. Held constant: rate 00

You’ve reached the end of S1 CSE Maths · Module 2.

Source: ktunotes.in · GAMAT101, Module 2. Reorganised and rewritten from the class notes, with every worked example re-checked. Check the original material if a step looks unclear.