evan's notes
cal 3discreteodeenv systems

On this page

  • From a tangent line to a tangent plane
  • Differentiability means small relative error
  • Example: a downward paraboloid
  • A normal vector to the tangent plane
  • When continuous partials are enough
  • A cone has no tangent-plane approximation at its tip

Intermediate Calculus

§11 Differentiability and Tangent Planes

Evan Luo · Oct 23, 2026

Intermediate Calculus

§11 Differentiability and Tangent Planes

Evan Luo3 days ago

6 min read

Partial derivatives tell us the slopes of two coordinate traces through a surface. To approximate the whole surface near a point, we need more: one plane must work for every nearby direction, not just along those two traces. That is what differentiability requires.

From a tangent line to a tangent plane

For a one-variable function, the tangent line at x=ax=ax=a is the graph of

L(x)=f(a)+f′(a)(x−a).L(x)=f(a)+f'(a)(x-a). L(x)=f(a)+f′(a)(x−a).

Its value agrees with fff at aaa, and its slope agrees with f′(a)f'(a)f′(a). But matching a value and a slope is not the whole story. The definition of the derivative says that the approximation error is small compared with the input change:

f′(a)=lim⁡h→0f(a+h)−f(a)h,0=lim⁡h→0f(a+h)−f(a)−f′(a)hh.\begin{aligned} f'(a)&=\lim_{h\to0}\frac{f(a+h)-f(a)}{h},\\ 0&=\lim_{h\to0}\frac{f(a+h)-f(a)-f'(a)h}{h}. \end{aligned} f′(a)0​=h→0lim​hf(a+h)−f(a)​,=h→0lim​hf(a+h)−f(a)−f′(a)h​.​

Equivalently, the absolute error divided by ∣h∣|h|∣h∣ tends to zero.

A tangent line gives a first-order approximation

A tangent line gives a first-order approximationThe parabola y equals negative x squared and its tangent line at x equals one. The curve lies below the line, with quadratic error.
xxx
yyy

Solid curve: y=−x2y=-x^2y=−x2. Dashed tangent: y=1−2xy=1-2xy=1−2x.

Contact point: (1,−1)(1,-1)(1,−1). Error: −(x−1)2-(x-1)^2−(x−1)2.

Now let z=f(x,y)z=f(x,y)z=f(x,y) be a surface, and fix a point (a,b)(a,b)(a,b) in an open region where fff is defined. The corresponding point on the surface is (a,b,f(a,b))(a,b,f(a,b))(a,b,f(a,b)). If the partial derivatives exist, they suggest a plane with slopes fx(a,b)f_x(a,b)fx​(a,b) and fy(a,b)f_y(a,b)fy​(a,b):

L(x,y)=f(a,b)+fx(a,b)(x−a)+fy(a,b)(y−b).\boxed{L(x,y)=f(a,b)+f_x(a,b)(x-a)+f_y(a,b)(y-b).} L(x,y)=f(a,b)+fx​(a,b)(x−a)+fy​(a,b)(y−b).​

Fixing y=by=by=b gives the tangent line to the y=by=by=b coordinate trace; fixing x=ax=ax=a gives the tangent line to the x=ax=ax=a trace. The candidate plane contains both lines. We still need to check whether it approximates the surface for changes in both variables together.

Differentiability means small relative error

Write h=x−ah=x-ah=x−a and k=y−bk=y-bk=y−b for the changes in the inputs. The actual output minus the candidate approximation is

E(h,k)=f(a+h,b+k)−[f(a,b)+fx(a,b)h+fy(a,b)k].\boxed{E(h,k)=f(a+h,b+k)-[f(a,b)+f_x(a,b)h+f_y(a,b)k].} E(h,k)=f(a+h,b+k)−[f(a,b)+fx​(a,b)h+fy​(a,b)k].​

The function is differentiable at (a,b)(a,b)(a,b) when its first partials exist there and

lim⁡(h,k)→(0,0)∣E(h,k)∣h2+k2=0.\boxed{\lim_{(h,k)\to(0,0)}\frac{|E(h,k)|}{\sqrt{h^2+k^2}}=0.} (h,k)→(0,0)lim​h2+k2​∣E(h,k)∣​=0.​

The denominator is the distance moved in the input plane. So the condition says that the error becomes negligible compared with the size of the input change. Merely showing E(h,k)→0E(h,k)\to0E(h,k)→0 is weaker and is not enough. This is a two-variable limit: checking only the hhh- and kkk-axes cannot prove it.

When differentiability holds, LLL is called the linearization, or linear approximation, at (a,b)(a,b)(a,b). Its graph is the tangent plane:

z=f(a,b)+fx(a,b)(x−a)+fy(a,b)(y−b).\boxed{z=f(a,b)+f_x(a,b)(x-a)+f_y(a,b)(y-b).} z=f(a,b)+fx​(a,b)(x−a)+fy​(a,b)(y−b).​

The coefficients are evaluated at the fixed base point, not at the nearby input. Near that point, we use f(x,y)≈L(x,y)f(x,y)\approx L(x,y)f(x,y)≈L(x,y). The part fx(a,b)h+fy(a,b)kf_x(a,b)h+f_y(a,b)kfx​(a,b)h+fy​(a,b)k is linear in the increments; the constant f(a,b)f(a,b)f(a,b) places the plane at the correct height.

Differentiability also implies continuity. Indeed,

f(a+h,b+k)−f(a,b)=fx(a,b)h+fy(a,b)k+E(h,k).f(a+h,b+k)-f(a,b)=f_x(a,b)h+f_y(a,b)k+E(h,k). f(a+h,b+k)−f(a,b)=fx​(a,b)h+fy​(a,b)k+E(h,k).

The first two terms tend to zero. The last does too, because it is the input distance times a quantity tending to zero. Thus f(a+h,b+k)→f(a,b)f(a+h,b+k)\to f(a,b)f(a+h,b+k)→f(a,b).

Example: a downward paraboloid

Find the tangent plane to

f(x,y)=−x2−y2f(x,y)=-x^2-y^2 f(x,y)=−x2−y2

at (1,1,−2)(1,1,-2)(1,1,−2). First check the height and compute the two slopes:

f(1,1)=−2,fx(x,y)=−2x,fx(1,1)=−2,fy(x,y)=−2y,fy(1,1)=−2.\begin{aligned} f(1,1)&=-2,\\ f_x(x,y)&=-2x,&f_x(1,1)&=-2,\\ f_y(x,y)&=-2y,&f_y(1,1)&=-2. \end{aligned} f(1,1)fx​(x,y)fy​(x,y)​=−2,=−2x,=−2y,​fx​(1,1)fy​(1,1)​=−2,=−2.​

The candidate linearization is therefore

L(x,y)=−2−2(x−1)−2(y−1)=2−2x−2y.\begin{aligned} L(x,y)&=-2-2(x-1)-2(y-1)\\ &=2-2x-2y. \end{aligned} L(x,y)​=−2−2(x−1)−2(y−1)=2−2x−2y.​

We can verify differentiability directly here, rather than just write down the plane. Expanding the true value gives

f(1+h,1+k)=−2−2h−2k−h2−k2.f(1+h,1+k)=-2-2h-2k-h^2-k^2. f(1+h,1+k)=−2−2h−2k−h2−k2.

The linear part is −2−2h−2k-2-2h-2k−2−2h−2k, so

E(h,k)=−h2−k2,∣E(h,k)∣h2+k2=h2+k2⟶0.E(h,k)=-h^2-k^2, \qquad \frac{|E(h,k)|}{\sqrt{h^2+k^2}} =\sqrt{h^2+k^2}\longrightarrow0. E(h,k)=−h2−k2,h2+k2​∣E(h,k)∣​=h2+k2​⟶0.

The approximation works in every direction. The tangent plane is

z=2−2x−2y,or equivalently2x+2y+z=2.\boxed{z=2-2x-2y}, \qquad\text{or equivalently}\qquad \boxed{2x+2y+z=2}. z=2−2x−2y​,or equivalently2x+2y+z=2​.

A plane approximates the surface in both input directions

A plane approximates the surface in both input directionsThe downward paraboloid z equals negative x squared minus y squared lies below its tangent plane at (1,1,-2). Two highlighted coordinate-trace tangent lines meet at that point. The drawing is an oblique projection, not an equal-length view of space.
xxx
yyy
zzz

Wire surface: z=−x2−y2z=-x^2-y^2z=−x2−y2. Shaded plane: z=2−2x−2yz=2-2x-2yz=2−2x−2y.

Contact point: (1,1,−2)(1,1,-2)(1,1,−2). Highlighted lines are tangent to the x=1x=1x=1 and y=1y=1y=1 traces.

There is also an exact comparison between the surface and this plane:

f(x,y)−L(x,y)=−(x−1)2−(y−1)2.f(x,y)-L(x,y)=-(x-1)^2-(y-1)^2. f(x,y)−L(x,y)=−(x−1)2−(y−1)2.

The surface lies below the plane, touching it at (1,1,−2)(1,1,-2)(1,1,−2). That sign is a useful check on the drawing and the algebra.

A normal vector to the tangent plane

Rearrange the general tangent-plane equation as

−fx(a,b)(x−a)−fy(a,b)(y−b)+z−f(a,b)=0.-f_x(a,b)(x-a)-f_y(a,b)(y-b)+z-f(a,b)=0. −fx​(a,b)(x−a)−fy​(a,b)(y−b)+z−f(a,b)=0.

Reading off the coefficients gives a normal vector

n=⟨−fx(a,b),−fy(a,b),1⟩.\boxed{\mathbf n=\langle-f_x(a,b),-f_y(a,b),1\rangle.} n=⟨−fx​(a,b),−fy​(a,b),1⟩.​

Its negative is another valid normal. The coordinate-trace tangent directions are

vx=⟨1,0,fx(a,b)⟩,vy=⟨0,1,fy(a,b)⟩.\mathbf v_x=\langle1,0,f_x(a,b)\rangle, \qquad \mathbf v_y=\langle0,1,f_y(a,b)\rangle. vx​=⟨1,0,fx​(a,b)⟩,vy​=⟨0,1,fy​(a,b)⟩.

Their dot products with n\mathbf nn are both zero. For the paraboloid example, n=⟨2,2,1⟩\mathbf n=\langle2,2,1\ranglen=⟨2,2,1⟩, which agrees with the coefficients of 2x+2y+z=22x+2y+z=22x+2y+z=2.

When continuous partials are enough

Checking the error limit from scratch is not usually necessary. A standard sufficient condition is:

If fxf_xfx​ and fyf_yfy​ exist in an open neighborhood of (a,b)(a,b)(a,b) and are continuous there, then fff is differentiable at (a,b)(a,b)(a,b).

The neighborhood matters: knowing only two partial-derivative values at one point does not establish a good plane approximation. The condition is sufficient, not necessary; failure of continuity of a partial derivative does not by itself prove failure of differentiability.

For example,

f(x,y)=xy3+xy+sin⁡(xy)f(x,y)=xy^3+xy+\sin(xy) f(x,y)=xy3+xy+sin(xy)

has

fx(x,y)=y3+y+ycos⁡(xy),fy(x,y)=3xy2+x+xcos⁡(xy).\begin{aligned} f_x(x,y)&=y^3+y+y\cos(xy),\\ f_y(x,y)&=3xy^2+x+x\cos(xy). \end{aligned} fx​(x,y)fy​(x,y)​=y3+y+ycos(xy),=3xy2+x+xcos(xy).​

Both partials are continuous on all of R2\mathbb R^2R2, so fff is differentiable everywhere. The same reasoning applies to the polynomial in the paraboloid example.

A cone has no tangent-plane approximation at its tip

Consider

f(x,y)=x2+y2.f(x,y)=\sqrt{x^2+y^2}. f(x,y)=x2+y2​.

Its graph is the upper circular cone. It is continuous at the origin, but a sharp tip prevents a single first-order plane approximation there.

The cone's coordinate trace has a corner

The cone's coordinate trace has a cornerThe upper cone z equals the square root of x squared plus y squared. The highlighted y equals zero trace has a corner at the origin: its left slope is negative one and its right slope is positive one. No tangent plane is drawn at the tip.
xxx
yyy
zzz

Upper cone: z=x2+y2z=\sqrt{x^2+y^2}z=x2+y2​.

Highlighted trace: y=0,z=∣x∣y=0,\quad z=|x|y=0,z=∣x∣. Its two one-sided slopes disagree at the tip.

The failure already appears in a coordinate trace. Along y=0y=0y=0, we have f(x,0)=∣x∣f(x,0)=|x|f(x,0)=∣x∣, so the candidate xxx-partial at the origin would be

lim⁡h→0f(h,0)−f(0,0)h=lim⁡h→0∣h∣h.\lim_{h\to0}\frac{f(h,0)-f(0,0)}h =\lim_{h\to0}\frac{|h|}{h}. h→0lim​hf(h,0)−f(0,0)​=h→0lim​h∣h∣​.

The quotient is 111 for positive hhh and −1-1−1 for negative hhh. The two-sided limit does not exist. Hence fx(0,0)f_x(0,0)fx​(0,0) does not exist, and fff cannot be differentiable there. The same argument works for fy(0,0)f_y(0,0)fy​(0,0).

Away from the origin, the partial derivatives are

fx(x,y)=xx2+y2,fy(x,y)=yx2+y2.f_x(x,y)=\frac{x}{\sqrt{x^2+y^2}}, \qquad f_y(x,y)=\frac{y}{\sqrt{x^2+y^2}}. fx​(x,y)=x2+y2​x​,fy​(x,y)=x2+y2​y​.

They are continuous wherever (x,y)≠(0,0)(x,y)\ne(0,0)(x,y)=(0,0), so the cone is differentiable away from its tip. This example separates continuity from differentiability; it is not an example with existing partial derivatives at the origin.

Source: https://notes.ohevan.com/notes/intermediate-calculus/11-differentiability-and-tangent-planes

© 2026 Evan Luo. All rights reserved.

Back to Intermediate Calculus

0 reads

·Last edited Today
  • newsletter

  • about me

  • sponsor

© 2026 Evan Luo. All rights reserved.