← Chapter 4 §4.1 Functions of Several Variables 多元函数 · Chapter 4 · Differentiation of Functions of Several Variables

Calculus Volume 3 · Chapter 4 · Section 4.1

Functions of Several Variables

Two inputs, one output. The graph is a landscape; its level curves are the landscape's map.

Colour key surface, domain level curve vertical trace point, cutting plane key idea · 3D figures turn when dragged · page links open the textbook

Level 1 · see itWhat a function of two variables looks likebefore any formula

A profit landscape

A hardware maker sells xx thousand nuts and yy thousand bolts a month. Profit, in thousands of dollars, is f(x,y)=16(x3)2(y2)2f(x,y)=16-(x-3)^2-(y-2)^2 (Example 4.3).

16

thousand dollars at (3,2)(3,2): the top of the hill. Two inputs make a surface, and every height on it has a curve on the ground below.

Heights drawn at 0.4 scale. Drag to turn.

Two numbers in, one number out

  1. A function of two variables z=f(x,y)z=f(x,y) gives each point (x,y)(x,y) of a set DD exactly one number (p302).
  2. Domain DD: the points allowed in. A square root needs something 0\ge 0, a fraction a nonzero bottom, a logarithm something >0>0.
  3. Range: every output that actually happens.

Drag PP. Inside the disk g(P)g(P) is a height from 0 to 3; outside, the square root has nothing to take. Dashed: where g=1g=1 and g=2g=2.

Example 4.1b (p303): g(x,y)=9x2y2g(x,y)=\sqrt{9-x^2-y^2}, domain x2+y29x^2+y^2\le 9.

Slice it flat: level curves

Cut the surface with the plane z=cz=c and drop the cut to the floor: that is the level curve f(x,y)=cf(x,y)=c (p308). Every level at once is a contour map.

function
2

Try: the hemisphere, c up to 3 — the circles shrink to a point. The saddle, c through 0 — the hyperbolas switch sides. A level curve is a height you can walk along without climbing.

One picture

Horizontal cuts give the map; upright cuts give the profiles. Both are ordinary curves.

A function of two variables is a landscape: read it from above, or cut it and look from the side.

Level 2 · compute itDomains, level curves, traces, level surfacesand three labs

The five definitions

Domain and range · p302 z=f(x,y),(x,y)DR2 z=f(x,y),\qquad (x,y)\in D\subseteq\mathbb R^2

Range: every zz some point of DD reaches.

Graph · p304 {(x,y,f(x,y)):(x,y)D} \{(x,y,f(x,y)) : (x,y)\in D\}

A surface in space.

Level curve · p308 f(x,y)=c f(x,y)=c

cc in the range; all of them: a contour map.

Vertical trace · p310 z=f(a,y)  or  z=f(x,b) z=f(a,y)\ \text{ or }\ z=f(x,b)

The cut by the plane x=ax=a or y=by=b.

Level surface · p313 f(x,y,z)=c f(x,y,z)=c

Three inputs: the level sets are surfaces.

Level curves slice horizontally, traces slice upright; each is a curve you already know how to draw.

Finding a domain

the formula hasso we needexample
a square rootinside 0\ge 0Ex 4.1b: 9x2y209-x^2-y^2\ge 0, a closed disk
a fractionbottom 0\ne 0Ex 4.6b: x2y20x^2-y^2\ne 0, so y±xy\ne\pm x
a square root in the bottominside >0>0Ex 4.6a: x2+y2+z2<9x^2+y^2+z^2<9, an open ball
a logarithminside >0>0Exercise 7: y2x>0y^2-x>0, so x<y2x<y^2
only polynomials, cube rootsnothingExercise 37: all of space

Write each restriction as an inequality; the edge of the region is where the inside expression equals 0.

Examples 4.1–4.7

Examplegivenresult
4.1 · p302f=3x+5y+2f=3x+5y+2; g=9x2y2g=\sqrt{9-x^2-y^2}ff: domain R2\mathbb R^2, range R\mathbb R · gg: disk x2+y29x^2+y^2\le 9, range [0,3][0,3]
4.2 · p304graph gg; graph x2+y2x^2+y^2a hemisphere of radius 3; a paraboloid
4.3 · p30616(x3)2(y2)216-(x-3)^2-(y-2)^2disk of radius 4 about (3,2)(3,2); level circles of radius 16z\sqrt{16-z}; top 16 at (3,2)(3,2)
4.4 · p3088+8x4y4x2y2\sqrt{8+8x-4y-4x^2-y^2}, c=0c=0(x1)24+(y+2)216=1\frac{(x-1)^2}{4}+\frac{(y+2)^2}{16}=1; domain: the ellipse and its inside; range [0,4][0,4]*
4.5 · p310sinxcosy\sin x\cos y at x,y=π4,0,π4x,y=-\frac\pi4,0,\frac\pi4x=π4x=\mp\frac\pi4: z=22cosyz=\mp\frac{\sqrt2}{2}\cos y; x=0x=0: z=0z=0 · y=±π4y=\pm\frac\pi4: z=22sinxz=\frac{\sqrt2}{2}\sin x; y=0y=0: z=sinxz=\sin x
4.6 · p3123x4y+2z9x2y2z2\frac{3x-4y+2z}{\sqrt{9-x^2-y^2-z^2}}; 2t4x2y2\frac{\sqrt{2t-4}}{x^2-y^2}open ball x2+y2+z2<9x^2+y^2+z^2<9; t2t\ge 2, y±xy\ne\pm x
4.7 · p3134x2+9y2z2=14x^2+9y^2-z^2=1a hyperboloid of one sheet

* The book prints the range of Example 4.4 as [0,4)[0,4). But f(1,2)=16=4f(1,-2)=\sqrt{16}=4 is reached, so the range is [0,4][0,4].

Lab 1 · domains you can drag

function

Shaded: the domain. A solid edge belongs to it; a dotted edge does not.

Try: Exercise 7 — drag across the parabola x=y2x=y^2 and the logarithm stops. Every edge here is a level curve of the expression under the root or inside the log.

Lab 2 · vertical traces

function
cut by

Try: Example 4.5 at x=π4, 0, π4x=-\frac\pi4,\ 0,\ \frac\pi4 — cosine curves that flip through z=0z=0. Fixing one input leaves a function of one variable: its graph is the trace.

Lab 3 · level surfaces

function
1

Three inputs leave no room to draw the graph; instead, draw the set where the output is cc (Figure 4.13).

Try: Example 4.7 from 3 down to −3 — one sheet, a cone at 0, then two sheets. Nested level surfaces fill space the way nested level curves fill the plane.

Common mistakes

MistakeResultFix
Squaring 9x2y2=2\sqrt{9-x^2-y^2}=-2a "level curve" x2+y2=5x^2+y^2=5a square root is never negative: levels need c0c\ge 0 (p308)
\le with a root in the bottomthe sphere x2+y2+z2=9x^2+y^2+z^2=9 put in the domain of Ex 4.6athe bottom cannot be 0: strict <<
x2y2x^2\ne y^2 read as yxy\ne xthe line y=xy=-x left iny±xy\ne\pm x
Range read off the domaing=9x2y2g=\sqrt{9-x^2-y^2} given range [3,3][-3,3]range is outputs: heights 0 to 3
4(x22x+1)4(x^2-2x+1) balanced by +1+14(x1)2+(y+2)2=134(x-1)^2+(y+2)^2=13 in Ex 4.4add 414\cdot 1: the right side is 16
A trace drawn in the xyxy-planethe curve z=f(a,y)z=f(a,y) lostit lives in the plane x=ax=a, with axes yy and zz
Level surface named without the sign of cc4x2+9y2z2=14x^2+9y^2-z^2=-1 called one sheetc<0c<0: two sheets; c=0c=0: a cone

Practice and answers

Exercises from p315; the book's key: p861, p864866.

Checkpoints 4.1–4.5
#taskanswer
4.1domain and range of 369x29y2\sqrt{36-9x^2-9y^2}x2+y24x^2+y^2\le 4, a disk of radius 2; range [0,6][0,6]
4.2level curve of x2+y26x+2yx^2+y^2-6x+2y at c=15c=15(x3)2+(y+1)2=25(x-3)^2+(y+1)^2=25: circle, centre (3,1)(3,-1), radius 5
4.3trace of x2y2+2x+4y1-x^2-y^2+2x+4y-1 at y=3y=3z=3(x1)2z=3-(x-1)^2: a parabola opening down in the plane y=3y=3
4.4domain of (3t6)y4x2+4(3t-6)\sqrt{y-4x^2+4}{(x,y,t):y4x24}\{(x,y,t): y\ge 4x^2-4\}
4.5level surface of x2+y2+z22x+4y6zx^2+y^2+z^2-2x+4y-6z at c=2c=2(x1)2+(y+2)2+(z3)2=16(x-1)^2+(y+2)^2+(z-3)^2=16: sphere, centre (1,2,3)(1,-2,3), radius 4
Exercises
#taskanswerkey step
1W=4x2+y2W=4x^2+y^2: W(2,1)W(2,-1), W(3,6)W(-3,6)17, 7216+116+1; 36+3636+36
3V=πx2yV=\pi x^2y: V(2,5)V(2,5)20π62.8320\pi\approx 62.83a cylinder of radius 2, height 5
7domain of 4ln(y2x)4\ln(y^2-x)x<y2x<y^2Lab 1
9domain of y2x2y^2-x^2all of R2\mathbb R^2a polynomial
11range of 164x2y2\sqrt{16-4x^2-y^2}[0,4][0,4]largest at (0,0)(0,0)
13range of y2x2y^2-x^2R\mathbb Ry2y^2 alone, x2-x^2 alone
15y2x2=4y^2-x^2=4a hyperbolathe saddle at c=4c=4
174xy4-x-y at c=0,4c=0,4x+y=4x+y=4; x+y=0x+y=0lines
192xy2x-y at c=0,2,2c=0,-2,22xy=0, 2, 22x-y=0,\ -2,\ 2three parallel lines
23exye^{xy} at c=12,3c=\frac12,3exy=12e^{xy}=\frac12, exy=3e^{xy}=3hyperbolas xy=ln2xy=-\ln 2, xy=ln3xy=\ln 3
27ln(y/x2)\ln(y/x^2) at c=2,0,2c=-2,0,2y=e2x2y=e^{-2}x^2, y=x2y=x^2, y=e2x2y=e^2x^2parabolas
29(y+2)/x2(y+2)/x^2, any ccy=cx22y=cx^2-2parabolas through (0,2)(0,-2)
313x+y33x+y^3 at x=1x=1z=3+y3z=3+y^3Lab 2
33domain of 1004x225y2\sqrt{100-4x^2-25y^2}x225+y241\frac{x^2}{25}+\frac{y^2}{4}\le 1Lab 1
35domain of 1/364x29y2z21/\sqrt{36-4x^2-9y^2-z^2}x29+y24+z236<1\frac{x^2}{9}+\frac{y^2}{4}+\frac{z^2}{36}<1root in the bottom: strict
37domain of 16x2y2z23\sqrt[3]{16-x^2-y^2-z^2}all of spacecube roots take negatives
47contours of x2+y22x2yx^2+y^2-2x-2ycircles(x1)2+(y1)2=c+2(x-1)^2+(y-1)^2=c+2
49x2+y2+z2=9x^2+y^2+z^2=9a sphere of radius 3Lab 3
51x2+y2z2=4x^2+y^2-z^2=4a hyperboloid of one sheetc>0c>0
5314x2y21-4x^2-y^2 through P(0,1)P(0,1)4x2+y2=14x^2+y^2=1f(0,1)=0f(0,1)=0
55exy(x2+y2)e^{xy}(x^2+y^2) through P(1,0)P(1,0)1=exy(x2+y2)1=e^{xy}(x^2+y^2)g(1,0)=1g(1,0)=1
57TT inversely proportional to distance squaredT=kx2+y2T=\dfrac{k}{x^2+y^2}
59level curves T=40T=40, T=100T=100x2+y2=k40x^2+y^2=\frac{k}{40}, x2+y2=k100x^2+y^2=\frac{k}{100}circles of radius 10k20\frac{\sqrt{10k}}{20}, k10\frac{\sqrt k}{10}
Level 3 · why it worksWhat level sets tell youshort arguments

Why the range of g is [0, 3]

9x2y2=cx2+y2=9c2  and  c0 \sqrt{9-x^2-y^2}=c\quad\Longleftrightarrow\quad x^2+y^2=9-c^2\ \text{ and }\ c\ge 0

A circle of radius 9c2\sqrt{9-c^2} exists exactly when 0c30\le c\le 3 (p303). Squaring alone would accept c=2c=-2, giving x2+y2=5x^2+y^2=5 — but no point has a negative square root.

cc is in the range exactly when its level curve is not empty.

How far apart level curves sit

A point has one height, so it lies on one level curve: level curves never cross. Their spacing shows steepness (p307).

Bowl x2+y2=cx^2+y^2=c, c=1,2,3,4c=1,2,3,4: radii 1, 1.41, 1.73, 21,\ 1.41,\ 1.73,\ 2; gaps 0.41, 0.32, 0.270.41,\ 0.32,\ 0.27.

Equal steps in height, shrinking steps on the ground: the bowl gets steeper as you climb.

One function, three kinds of surface

4x2+9y2z2=c4x^2+9y^2-z^2=c changes type as cc crosses 0:

c < 0 · two sheets

z2=4x2+9y2cc>0z^2=4x^2+9y^2-c\ge -c>0: no point near z=0z=0.

c = 0 · a cone

z=±4x2+9y2z=\pm\sqrt{4x^2+9y^2}: one point at the origin.

c > 0 · one sheet

At z=0z=0 the ellipse 4x2+9y2=c4x^2+9y^2=c: a waist.

Different levels of one function never meet, so the cone is the wall between the two families.

Next: limits in two variables

§4.2 asks what f(x,y)f(x,y) approaches as (x,y)(x,y) nears a point. On a line there are two directions to come from; in the plane there are infinitely many paths. The contour map shows when the paths disagree: level curves crowding into one point.