evan's notes
cal 3discreteodeenv systems

On this page

  • Domains and graphs
  • Example: combine two domain restrictions
  • Level curves and contour maps
  • Example: the contours of xy\sqrt{xy}xy​
  • Functions of three variables
  • From one-variable limits to two variables
  • Formal definition
  • A warning from a surface
  • Example: prove a limit from the definition
  • The squeeze theorem
  • Continuity
  • Limits of compositions
  • Example: a continuous extension
  • Proving that a limit does not exist
  • Example: two coordinate axes are enough
  • Agreement along every line is still not a proof
  • Partial derivatives
  • Coordinate traces and tangent slopes
  • Example: differentiate one variable at a time
  • Implicit partial differentiation
  • Higher partial derivatives
  • Choose the easier order
  • Equations involving derivatives

Intermediate Calculus

§10 Functions and Multivariable Limits

Evan Luo · Oct 16, 2026

Intermediate Calculus

§10 Functions and Multivariable Limits

Evan LuoOct 16, 2026

14 min read

A function of several variables takes a point as its input. The first job is to find which points are allowed. We can then study the function through its graph, level sets, and limits.

Domains and graphs

For a function f:R2→Rf:\mathbb R^2\to\mathbb Rf:R2→R, the domain is the set of pairs (x,y)(x,y)(x,y) for which the formula makes sense. Its graph is the surface

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

in R3\mathbb R^3R3.

Example: combine two domain restrictions

Consider

f(x,y)=1−x2−y2+ln⁡(y+12).f(x,y)=\sqrt{1-x^2-y^2}+\ln\left(y+\frac12\right). f(x,y)=1−x2−y2​+ln(y+21​).

The square root requires

1−x2−y2≥0⟺x2+y2≤1.1-x^2-y^2\ge0 \quad\Longleftrightarrow\quad x^2+y^2\le1. 1−x2−y2≥0⟺x2+y2≤1.

The logarithm requires a strictly positive input:

y+12>0⟺y>−12.y+\frac12>0 \quad\Longleftrightarrow\quad y>-\frac12. y+21​>0⟺y>−21​.

Both conditions must hold at once, so

Dom⁡(f)={(x,y)∈R2:x2+y2≤1 and y>−12}.\boxed{ \operatorname{Dom}(f) =\left\{(x,y)\in\mathbb R^2: x^2+y^2\le1\text{ and }y>-\frac12 \right\}. } Dom(f)={(x,y)∈R2:x2+y2≤1 and y>−21​}.​

This is the part of the closed unit disk above y=−1/2y=-1/2y=−1/2. The circular boundary is included wherever it also satisfies the logarithm condition. The horizontal chord at y=−1/2y=-1/2y=−1/2 is excluded.

The domain is an intersection of two restrictions

The domain is an intersection of two restrictionsThe included part of the unit disk lies strictly above y equals negative one half. The circular boundary is solid and included, while the horizontal chord is dashed and excluded.
xxx
yyy
y=−12y=-\frac12y=−21​
x2+y2≤1x^2+y^2\le1x2+y2≤1

Level curves and contour maps

A level curve of f(x,y)f(x,y)f(x,y) is a set of inputs where the function has one fixed value:

f(x,y)=c.f(x,y)=c. f(x,y)=c.

On the graph z=f(x,y)z=f(x,y)z=f(x,y), this comes from the horizontal trace at height z=cz=cz=c. The trace is a curve in the plane z=cz=cz=c; the level curve records the same (x,y)(x,y)(x,y) coordinates in the input plane. For more background on traces, see Distance and Quadric Surfaces.

A collection of level curves is called a contour map. It shows how the output changes without requiring a three-dimensional surface drawing.

Example: the contours of xy\sqrt{xy}xy​

Let

f(x,y)=xy.f(x,y)=\sqrt{xy}. f(x,y)=xy​.

The square root is real when xy≥0xy\ge0xy≥0. Thus the domain is

(x≥0 and y≥0)or(x≤0 and y≤0).(x\ge0\text{ and }y\ge0) \quad\text{or}\quad (x\le0\text{ and }y\le0). (x≥0 and y≥0)or(x≤0 and y≤0).

It consists of quadrants I and III together with the coordinate axes.

Because a principal square root is nonnegative, a level value must satisfy c≥0c\ge0c≥0. The equation f(x,y)=cf(x,y)=cf(x,y)=c becomes

xy=c⟺xy=c2.\sqrt{xy}=c \quad\Longleftrightarrow\quad xy=c^2. xy​=c⟺xy=c2.

For the first few levels:

c=0:x=0 or y=0,c=1:xy=1,c=2:xy=4.\begin{aligned} c=0&:\quad x=0\text{ or }y=0,\\ c=1&:\quad xy=1,\\ c=2&:\quad xy=4. \end{aligned} c=0c=1c=2​:x=0 or y=0,:xy=1,:xy=4.​

For c>0c>0c>0, the level curve is a hyperbola with one branch in quadrant I and one in quadrant III. Larger values of ccc lie farther from the axes.

Contour map for the square root of xy

Contour map for the square root of xyThe level zero is the pair of coordinate axes. Levels one and two are hyperbolas in quadrants one and three. The level two branches lie farther from the axes, and arrows point toward increasing function values.
xxx
yyy
000
111
222
higher z\text{higher }zhigher z

Functions of three variables

For a function f:R3→Rf:\mathbb R^3\to\mathbb Rf:R3→R, the full graph

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

lives in R4\mathbb R^4R4, so we cannot draw it directly in ordinary space. We can still study the three-dimensional level surfaces

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

For example, take

f(x,y,z)=1000−x2−y2−z2.f(x,y,z)=1000-x^2-y^2-z^2. f(x,y,z)=1000−x2−y2−z2.

The level equation is

x2+y2+z2=1000−c.x^2+y^2+z^2=1000-c. x2+y2+z2=1000−c.

This gives

c=0:x2+y2+z2=1000,a sphere of radius 1000,c=500:x2+y2+z2=500,a sphere of radius 500,c=1000:x2+y2+z2=0,the single point (0,0,0).\begin{aligned} c=0&:\quad x^2+y^2+z^2=1000, &&\text{a sphere of radius }\sqrt{1000},\\ c=500&:\quad x^2+y^2+z^2=500, &&\text{a sphere of radius }\sqrt{500},\\ c=1000&:\quad x^2+y^2+z^2=0, &&\text{the single point }(0,0,0). \end{aligned} c=0c=500c=1000​:x2+y2+z2=1000,:x2+y2+z2=500,:x2+y2+z2=0,​​a sphere of radius 1000​,a sphere of radius 500​,the single point (0,0,0).​

The last level set is a degenerate sphere of radius 000. A level set need not be an ordinary surface; it can collapse to a point or even be empty.

From one-variable limits to two variables

For a one-variable function, the statement

lim⁡x→af(x)=L\lim_{x\to a}f(x)=L x→alim​f(x)=L

means that every requested output tolerance ε>0\varepsilon>0ε>0 can be met by choosing an input tolerance δ>0\delta>0δ>0 such that

0<∣x−a∣<δ⟹∣f(x)−L∣<ε.0<|x-a|<\delta \quad\Longrightarrow\quad |f(x)-L|<\varepsilon. 0<∣x−a∣<δ⟹∣f(x)−L∣<ε.

In two variables, replace the one-dimensional distance ∣x−a∣|x-a|∣x−a∣ with the Euclidean distance between (x,y)(x,y)(x,y) and (a,b)(a,b)(a,b):

∥(x,y)−(a,b)∥=(x−a)2+(y−b)2.\lVert(x,y)-(a,b)\rVert =\sqrt{(x-a)^2+(y-b)^2}. ∥(x,y)−(a,b)∥=(x−a)2+(y−b)2​.

Formal definition

Let f:D→Rf:D\to\mathbb Rf:D→R, where D⊆R2D\subseteq\mathbb R^2D⊆R2, and let (a,b)(a,b)(a,b) be an accumulation point of DDD. We write

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

if, for every ε>0\varepsilon>0ε>0, there is a δ>0\delta>0δ>0 such that every (x,y)∈D(x,y)\in D(x,y)∈D satisfies

0<(x−a)2+(y−b)2<δ⟹∣f(x,y)−L∣<ε.\boxed{ 0<\sqrt{(x-a)^2+(y-b)^2}<\delta \quad\Longrightarrow\quad |f(x,y)-L|<\varepsilon. } 0<(x−a)2+(y−b)2​<δ⟹∣f(x,y)−L∣<ε.​

The input condition describes a punctured disk: points within radius δ\deltaδ of (a,b)(a,b)(a,b), with the center removed. The output condition requires the corresponding heights to lie in the band

L−ε<f(x,y)<L+ε.L-\varepsilon<f(x,y)<L+\varepsilon. L−ε<f(x,y)<L+ε.

A punctured input disk controls an output band

A punctured input disk controls an output bandA punctured disk of radius delta around the input point maps into the horizontal output band from L minus epsilon to L plus epsilon. The center is excluded because a limit does not use the function value at the center.Input plane
(a,b)(a,b)(a,b)
δ\deltaδ
fff
Output values
L+εL+\varepsilonL+ε
LLL
L−εL-\varepsilonL−ε
∣f(x,y)−L∣<ε|f(x,y)-L|<\varepsilon∣f(x,y)−L∣<ε

The puncture matters. A limit depends on nearby values, not on the value at the center. The function may have a different value at (a,b)(a,b)(a,b) or be undefined there.

A warning from a surface

The function

g(x,y)=x2−y2x2+y2g(x,y)=\frac{x^2-y^2}{x^2+y^2} g(x,y)=x2+y2x2−y2​

is undefined at (0,0)(0,0)(0,0). Its graph near the origin suggests that approaching from different directions may produce incompatible values, so a single limit should not be assumed from a picture. A proof of nonexistence must exhibit the contradiction formally; that argument comes after the definition-based example below.

Example: prove a limit from the definition

We will prove

lim⁡(x,y)→(0,0)3x2yx2+y2=0.\lim_{(x,y)\to(0,0)} \frac{3x^2y}{x^2+y^2}=0. (x,y)→(0,0)lim​x2+y23x2y​=0.

The expression is undefined at the origin, but the punctured-neighborhood condition excludes that point.

To determine how small δ\deltaδ must be for a given ε\varepsilonε, first bound the error in terms of the distance x2+y2\sqrt{x^2+y^2}x2+y2​. For (x,y)≠(0,0)(x,y)\ne(0,0)(x,y)=(0,0),

∣3x2yx2+y2−0∣=3∣y∣x2x2+y2≤3∣y∣≤3x2+y2.\begin{aligned} \left|\frac{3x^2y}{x^2+y^2}-0\right| &=3|y|\frac{x^2}{x^2+y^2}\\ &\le3|y|\\ &\le3\sqrt{x^2+y^2}. \end{aligned} ​x2+y23x2y​−0​​=3∣y∣x2+y2x2​≤3∣y∣≤3x2+y2​.​

The first inequality uses 0≤x2/(x2+y2)≤10\le x^2/(x^2+y^2)\le10≤x2/(x2+y2)≤1. The second uses y2≤x2+y2y^2\le x^2+y^2y2≤x2+y2.

Now let ε>0\varepsilon>0ε>0 and choose

δ=ε3.\delta=\frac{\varepsilon}{3}. δ=3ε​.

If

0<x2+y2<δ,0<\sqrt{x^2+y^2}<\delta, 0<x2+y2​<δ,

then

∣3x2yx2+y2−0∣≤3x2+y2<3δ=ε.\begin{aligned} \left|\frac{3x^2y}{x^2+y^2}-0\right| &\le3\sqrt{x^2+y^2}\\ &<3\delta\\ &=\varepsilon. \end{aligned} ​x2+y23x2y​−0​​≤3x2+y2​<3δ=ε.​

This is exactly the implication required by the definition. Therefore,

lim⁡(x,y)→(0,0)3x2yx2+y2=0.\boxed{ \lim_{(x,y)\to(0,0)} \frac{3x^2y}{x^2+y^2}=0. } (x,y)→(0,0)lim​x2+y23x2y​=0.​

The squeeze theorem

The estimate in the previous proof also fits a general principle. Suppose that, for all points sufficiently close to (a,b)(a,b)(a,b) except possibly the point itself,

g(x,y)≤f(x,y)≤h(x,y).g(x,y)\le f(x,y)\le h(x,y). g(x,y)≤f(x,y)≤h(x,y).

If

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

then the squeeze theorem gives

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

For the function in the previous example,

−3∣y∣≤3x2yx2+y2≤3∣y∣.-3|y| \le \frac{3x^2y}{x^2+y^2} \le 3|y|. −3∣y∣≤x2+y23x2y​≤3∣y∣.

Both bounding functions tend to 000 as (x,y)→(0,0)(x,y)\to(0,0)(x,y)→(0,0), so the middle function does too. This proves the same limit without choosing particular paths.

Continuity

A function f:D→Rf:D\to\mathbb Rf:D→R, where D⊆R2D\subseteq\mathbb R^2D⊆R2, is continuous at (a,b)∈D(a,b)\in D(a,b)∈D when

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

The function is continuous on a set when it is continuous at every point of that set. Saying simply that a function is continuous usually means that it is continuous throughout its domain.

Polynomials are continuous everywhere. Sums, differences, products, and compositions of continuous functions remain continuous wherever the resulting expression is defined. A quotient of continuous functions is continuous wherever its denominator is nonzero. For example, if ppp and qqq are polynomials and q(a,b)≠0q(a,b)\ne0q(a,b)=0, then

lim⁡(x,y)→(a,b)p(x,y)q(x,y)=p(a,b)q(a,b).\lim_{(x,y)\to(a,b)}\frac{p(x,y)}{q(x,y)} = \frac{p(a,b)}{q(a,b)}. (x,y)→(a,b)lim​q(x,y)p(x,y)​=q(a,b)p(a,b)​.

This is why direct substitution works for rational and other elementary expressions at points in their domains.

Limits of compositions

Suppose

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

and the one-variable function hhh is continuous at LLL. Then

lim⁡(x,y)→(a,b)h(g(x,y))=h(L).\boxed{ \lim_{(x,y)\to(a,b)}h(g(x,y))=h(L). } (x,y)→(a,b)lim​h(g(x,y))=h(L).​

This lets us reduce some multivariable limits to familiar one-variable limits.

Example: a continuous extension

Consider

f(x,y)=sin⁡(xy)xy,f(x,y)=\frac{\sin(xy)}{xy}, f(x,y)=xysin(xy)​,

which is originally defined only when xy≠0xy\ne0xy=0. Set t=xyt=xyt=xy. From one-variable calculus,

lim⁡t→0sin⁡tt=1.\lim_{t\to0}\frac{\sin t}{t}=1. t→0lim​tsint​=1.

Define the continuous one-variable extension

h(t)={sin⁡tt,t≠0,1,t=0.h(t)= \begin{cases} \dfrac{\sin t}{t},&t\ne0,\\ 1,&t=0. \end{cases} h(t)=⎩⎨⎧​tsint​,1,​t=0,t=0.​

Because (x,y)↦xy(x,y)\mapsto xy(x,y)↦xy and hhh are continuous, their composition is continuous on all of R2\mathbb R^2R2. The extended two-variable function is

F(x,y)={sin⁡(xy)xy,xy≠0,1,xy=0.\boxed{ F(x,y)= \begin{cases} \dfrac{\sin(xy)}{xy},&xy\ne0,\\ 1,&xy=0. \end{cases} } F(x,y)=⎩⎨⎧​xysin(xy)​,1,​xy=0,xy=0.​​

The second case fills in both coordinate axes, since xy=0xy=0xy=0 exactly when x=0x=0x=0 or y=0y=0y=0.

Proving that a limit does not exist

If a full two-variable limit exists, every curve approaching the point must give the same value. More precisely, suppose

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

and r(t)=⟨x(t),y(t)⟩\mathbf r(t)=\langle x(t),y(t)\rangler(t)=⟨x(t),y(t)⟩ approaches (a,b)(a,b)(a,b) as t→t0t\to t_0t→t0​. Assume that r(t)\mathbf r(t)r(t) stays in the domain of fff and does not equal (a,b)(a,b)(a,b) for nearby t≠t0t\ne t_0t=t0​. Then

lim⁡t→t0f(r(t))=L.\lim_{t\to t_0}f(\mathbf r(t))=L. t→t0​lim​f(r(t))=L.

The contrapositive is the useful test: if two valid paths approach the same point but give different limits, then the full multivariable limit does not exist.

Example: two coordinate axes are enough

Return to

g(x,y)=x2−y2x2+y2.g(x,y)=\frac{x^2-y^2}{x^2+y^2}. g(x,y)=x2+y2x2−y2​.

Along the xxx-axis, use the path r1(t)=⟨t,0⟩\mathbf r_1(t)=\langle t,0\rangler1​(t)=⟨t,0⟩:

lim⁡t→0g(t,0)=lim⁡t→0t2t2=1.\lim_{t\to0}g(t,0) = \lim_{t\to0}\frac{t^2}{t^2} =1. t→0lim​g(t,0)=t→0lim​t2t2​=1.

Along the yyy-axis, use r2(t)=⟨0,t⟩\mathbf r_2(t)=\langle0,t\rangler2​(t)=⟨0,t⟩:

lim⁡t→0g(0,t)=lim⁡t→0−t2t2=−1.\lim_{t\to0}g(0,t) = \lim_{t\to0}\frac{-t^2}{t^2} =-1. t→0lim​g(0,t)=t→0lim​t2−t2​=−1.

The path limits disagree, so

lim⁡(x,y)→(0,0)x2−y2x2+y2 does not exist.\boxed{ \lim_{(x,y)\to(0,0)} \frac{x^2-y^2}{x^2+y^2} \text{ does not exist.} } (x,y)→(0,0)lim​x2+y2x2−y2​ does not exist.​

Agreement along every line is still not a proof

Checking paths is decisive when two limits disagree. Agreement along a collection of paths does not prove that the full limit exists, even if the collection contains every straight line through the point.

For example, let

f(x,y)=xy2x2+y4.f(x,y)=\frac{xy^2}{x^2+y^4}. f(x,y)=x2+y4xy2​.

Along an arbitrary nonvertical line y=cxy=cxy=cx, where ccc is fixed,

f(x,cx)=x(cx)2x2+(cx)4=c2x1+c4x2⟶0.\begin{aligned} f(x,cx) &=\frac{x(cx)^2}{x^2+(cx)^4}\\ &=\frac{c^2x}{1+c^4x^2} \longrightarrow0. \end{aligned} f(x,cx)​=x2+(cx)4x(cx)2​=1+c4x2c2x​⟶0.​

The vertical line x=0x=0x=0 also gives 000. Nevertheless, along the parabola x=y2x=y^2x=y2,

f(y2,y)=y4y4+y4=12f(y^2,y) = \frac{y^4}{y^4+y^4} =\frac12 f(y2,y)=y4+y4y4​=21​

for y≠0y\ne0y=0. Thus

lim⁡(x,y)→(0,0)xy2x2+y4 does not exist.\boxed{ \lim_{(x,y)\to(0,0)} \frac{xy^2}{x^2+y^4} \text{ does not exist.} } (x,y)→(0,0)lim​x2+y4xy2​ does not exist.​

Straight lines missed the curved approach on which the function tends to 1/21/21/2.

Partial derivatives

A partial derivative measures change in one input direction while the other inputs are held fixed. For a function f(x,y)f(x,y)f(x,y), the partial derivative with respect to xxx is

fx(x,y)=∂f∂x(x,y)=lim⁡h→0f(x+h,y)−f(x,y)h,\boxed{ f_x(x,y) = \frac{\partial f}{\partial x}(x,y) = \lim_{h\to0} \frac{f(x+h,y)-f(x,y)}{h}, } fx​(x,y)=∂x∂f​(x,y)=h→0lim​hf(x+h,y)−f(x,y)​,​

provided the limit exists. Here yyy stays fixed. Similarly,

fy(x,y)=∂f∂y(x,y)=lim⁡h→0f(x,y+h)−f(x,y)h,\boxed{ f_y(x,y) = \frac{\partial f}{\partial y}(x,y) = \lim_{h\to0} \frac{f(x,y+h)-f(x,y)}{h}, } fy​(x,y)=∂y∂f​(x,y)=h→0lim​hf(x,y+h)−f(x,y)​,​

with xxx fixed.

Coordinate traces and tangent slopes

For the graph z=f(x,y)z=f(x,y)z=f(x,y), fixing y=by=by=b produces the coordinate trace

z=f(x,b).z=f(x,b). z=f(x,b).

Its tangent slope at x=ax=ax=a is fx(a,b)f_x(a,b)fx​(a,b). Fixing x=ax=ax=a instead produces

z=f(a,y),z=f(a,y), z=f(a,y),

whose tangent slope at y=by=by=b is fy(a,b)f_y(a,b)fy​(a,b). Thus the two first partials record the slopes of the surface along the two coordinate directions.

Example: differentiate one variable at a time

Let

f(x,y)=x−xy2+y3.f(x,y)=x-xy^2+y^3. f(x,y)=x−xy2+y3.

Holding yyy fixed while differentiating with respect to xxx gives

fx(x,y)=1−y2.f_x(x,y)=1-y^2. fx​(x,y)=1−y2.

Holding xxx fixed while differentiating with respect to yyy gives

fy(x,y)=−2xy+3y2.f_y(x,y)=-2xy+3y^2. fy​(x,y)=−2xy+3y2.

The variable being held fixed behaves like a constant during that calculation.

Implicit partial differentiation

Partial derivatives can also be found when z=z(x,y)z=z(x,y)z=z(x,y) is defined by an equation rather than an explicit formula. Consider

zy2=x3+xz2+z3.zy^2=x^3+xz^2+z^3. zy2=x3+xz2+z3.

To find zx=∂z/∂xz_x=\partial z/\partial xzx​=∂z/∂x, hold yyy fixed and treat every occurrence of zzz as a function of xxx. Differentiating both sides gives

y2zx=3x2+∂∂x(xz2)+∂∂x(z3)=3x2+z2+2xz zx+3z2zx.\begin{aligned} y^2z_x &=3x^2+\frac{\partial}{\partial x}(xz^2) +\frac{\partial}{\partial x}(z^3)\\ &=3x^2+z^2+2xz\,z_x+3z^2z_x. \end{aligned} y2zx​​=3x2+∂x∂​(xz2)+∂x∂​(z3)=3x2+z2+2xzzx​+3z2zx​.​

Move every term containing zxz_xzx​ to the left and factor:

zx(y2−2xz−3z2)=3x2+z2.z_x\left(y^2-2xz-3z^2\right)=3x^2+z^2. zx​(y2−2xz−3z2)=3x2+z2.

Therefore, wherever the denominator is nonzero,

∂z∂x=3x2+z2y2−2xz−3z2.\boxed{ \frac{\partial z}{\partial x} = \frac{3x^2+z^2}{y^2-2xz-3z^2}. } ∂x∂z​=y2−2xz−3z23x2+z2​.​

The factor 2xz2xz2xz comes from differentiating xz2xz^2xz2 with the product and chain rules.

Higher partial derivatives

Differentiate a first partial again to obtain a second partial:

fxx=(fx)x,fxy=(fx)y,fyx=(fy)x,fyy=(fy)y.\begin{aligned} f_{xx}&=(f_x)_x, &f_{xy}&=(f_x)_y,\\ f_{yx}&=(f_y)_x, &f_{yy}&=(f_y)_y. \end{aligned} fxx​fyx​​=(fx​)x​,=(fy​)x​,​fxy​fyy​​=(fx​)y​,=(fy​)y​.​

For example, take

f(x,y)=sin⁡(xy)+yex.f(x,y)=\sin(xy)+ye^x. f(x,y)=sin(xy)+yex.

The first partials are

fx(x,y)=ycos⁡(xy)+yex,fy(x,y)=xcos⁡(xy)+ex.\begin{aligned} f_x(x,y)&=y\cos(xy)+ye^x,\\ f_y(x,y)&=x\cos(xy)+e^x. \end{aligned} fx​(x,y)fy​(x,y)​=ycos(xy)+yex,=xcos(xy)+ex.​

Differentiating again gives

fxx(x,y)=−y2sin⁡(xy)+yex,fxy(x,y)=cos⁡(xy)−xysin⁡(xy)+ex,fyx(x,y)=cos⁡(xy)−xysin⁡(xy)+ex,fyy(x,y)=−x2sin⁡(xy).\begin{aligned} f_{xx}(x,y)&=-y^2\sin(xy)+ye^x,\\ f_{xy}(x,y)&=\cos(xy)-xy\sin(xy)+e^x,\\ f_{yx}(x,y)&=\cos(xy)-xy\sin(xy)+e^x,\\ f_{yy}(x,y)&=-x^2\sin(xy). \end{aligned} fxx​(x,y)fxy​(x,y)fyx​(x,y)fyy​(x,y)​=−y2sin(xy)+yex,=cos(xy)−xysin(xy)+ex,=cos(xy)−xysin(xy)+ex,=−x2sin(xy).​

In this example the two mixed partials are equal. Clairaut's theorem explains when that agreement is guaranteed: if fxyf_{xy}fxy​ and fyxf_{yx}fyx​ exist and are continuous on a disk around (a,b)(a,b)(a,b), then

fxy(a,b)=fyx(a,b).\boxed{f_{xy}(a,b)=f_{yx}(a,b).} fxy​(a,b)=fyx​(a,b).​

The continuity-near-the-point hypothesis matters. Without suitable regularity, mixed partials can exist at a point and still be unequal there. With sufficiently continuous higher partial derivatives, the same principle allows the order of differentiation to be rearranged for more variables and higher orders.

Choose the easier order

Clairaut's theorem can save work. Suppose

f(x,y)=g(x)+x2y3,f(x,y)=g(x)+x^2y^3, f(x,y)=g(x)+x2y3,

where ggg is twice continuously differentiable. The term g(x)g(x)g(x) may have a complicated derivative, but it disappears when we differentiate with respect to yyy. Thus

fy=3x2y2,fyx=6xy2,fxy=fyx=6xy2.f_y=3x^2y^2, \qquad f_{yx}=6xy^2, \qquad \boxed{f_{xy}=f_{yx}=6xy^2.} fy​=3x2y2,fyx​=6xy2,fxy​=fyx​=6xy2.​

For instance, g(x)=ex2sin⁡(tan⁡(x2+x)+x)g(x)=e^{x^2}\sin(\tan(x^2+x)+x)g(x)=ex2sin(tan(x2+x)+x) is smooth on any open region where the tangent is defined. We do not need to expand its derivatives to find the mixed partial. Check the theorem's hypotheses before changing the order.

Equations involving derivatives

A differential equation relates an unknown function to its derivatives. If the function depends on a single variable, its derivatives are ordinary derivatives. For example, a population p(t)p(t)p(t) with constant per-capita growth rate ccc satisfies

dpdt=cp(t),p(0)=p0,p(t)=p0ect.\frac{dp}{dt}=cp(t), \qquad p(0)=p_0, \qquad p(t)=p_0e^{ct}. dtdp​=cp(t),p(0)=p0​,p(t)=p0​ect.

This is an ordinary differential equation, or ODE. Differentiating the proposed solution verifies the equation, and setting t=0t=0t=0 verifies the initial value.

If the unknown depends on several inputs, partial derivatives let the equation describe change in each input separately. For a rod heated at one end and cooled at the other, let u(x,t)u(x,t)u(x,t) be the temperature at position xxx and time ttt. A normalized one-dimensional heat equation is

∂u∂t=∂2u∂x2.\boxed{\frac{\partial u}{\partial t}=\frac{\partial^2u}{\partial x^2}.} ∂t∂u​=∂x2∂2u​.​

Here utu_tut​ measures temperature change with time at a fixed position, while uxxu_{xx}uxx​ measures the spatial curvature of the temperature profile at a fixed time. This is a partial differential equation, or PDE. Its unknown is the whole function u(x,t)u(x,t)u(x,t), rather than a single number. We are identifying the equation and its derivatives here, not solving a heat-flow problem.

Partial derivatives also supply the candidate slopes for a tangent plane. To justify that approximation, we must control the error for all directions of approach.

Source: https://notes.ohevan.com/notes/intermediate-calculus/10-functions-and-multivariable-limits

© 2026 Evan Luo. All rights reserved.

Back to Intermediate Calculus

0 reads

·Last edited 3 days ago
  • newsletter

  • about me

  • sponsor

© 2026 Evan Luo. All rights reserved.