Tutorials › Calculus III › Deriving The Normal Formula For Graphs

Parametrized Surfaces · Tutorial 848 of 999

Deriving The Normal Formula For Graphs

Learn how the tangent directions of a graph determine its upward normal, and verify the formula on quadratic surfaces and planes.

Intermediate 9 min read

What You'll Learn

  • Parametrize a graph using its two independent coordinates
  • Find the coordinate tangent vectors by partial differentiation
  • Derive the upward normal from tangent-vector orthogonality
  • Check the normal’s direction and orientation at a point
  • Distinguish an upward normal vector from the corresponding unit normal
  • Identify and correct a cross-product order error

Why a Graph Has a Simple Normal Formula

A surface given by an equation \(z=f(x,y)\) is determined by a function of two coordinates. At each point where \(f\) is differentiable, small changes in \(x\) and \(y\) produce two natural directions along the surface: one follows a coordinate curve while \(y\) is fixed, and the other follows a coordinate curve while \(x\) is fixed.

These directions are tangent to the surface. A vector perpendicular to both is normal to the surface. Computing that vector gives a compact formula that is useful whenever a surface is presented as a graph. The sign in the formula also records which of the two possible normal directions points upward.

Key idea: For the graph \(z=f(x,y)\), the coordinate tangent vectors are \((1,0,f_x)\) and \((0,1,f_y)\). Their cross product, in that order, is the upward normal \((-f_x,-f_y,1)\).

Parametrizing the Graph and Finding Its Tangents

Let \(D\) be an open subset of the \(xy\)-plane, and suppose \(f:D\to\mathbb{R}\) is differentiable. The graph of \(f\) consists of points \((x,y,z)\) with \(z=f(x,y)\). It can be parametrized by using \(x\) and \(y\) themselves as parameters:

$$ \mathbf{r}(x,y)=(x,y,f(x,y)). $$

Holding \(y\) fixed and varying \(x\) traces a coordinate curve on the graph. Its tangent direction is the partial derivative of \(\mathbf{r}\) with respect to \(x\). Holding \(x\) fixed and varying \(y\) gives the other coordinate curve and its tangent. Differentiating each component gives

$$ \mathbf{r}_x(x,y)=(1,0,f_x(x,y)), \qquad \mathbf{r}_y(x,y)=(0,1,f_y(x,y)). $$

Both vectors are tangent to the surface at \(\mathbf{r}(x,y)\). They are also linearly independent at every point: if \(a\mathbf{r}_x+b\mathbf{r}_y=\mathbf{0}\), the first coordinate gives \(a=0\), and the second gives \(b=0\). Thus they span the tangent plane of this graph at the point.

Deriving the Upward Normal

A normal vector must be perpendicular to every tangent direction, so it must in particular be perpendicular to both coordinate tangent vectors. The cross product of two vectors is perpendicular to each of them. Taking the cross product in the order \(\mathbf{r}_x\times\mathbf{r}_y\) gives

$$ \begin{aligned} \mathbf{r}_x\times\mathbf{r}_y &= \begin{vmatrix} \mathbf{i}&\mathbf{j}&\mathbf{k}\\ 1&0&f_x\\ 0&1&f_y \end{vmatrix}\\ &=(-f_x,-f_y,1). \end{aligned} $$

The last component is \(1\), which is positive. Therefore this normal points upward, meaning that its vertical component points in the positive \(z\)-direction. The reversed cross product \(\mathbf{r}_y\times\mathbf{r}_x\) has the opposite direction and points downward.

Formula: If \(f\) is differentiable, then an upward normal vector to the graph \(z=f(x,y)\) at \((x,y,f(x,y))\) is \(\mathbf{n}=(-f_x,-f_y,1)\). The derivatives are evaluated at the corresponding \((x,y)\).

This is a normal vector, not necessarily a unit vector. Its length is \(\sqrt{f_x^2+f_y^2+1}\), so it is never the zero vector. If a unit normal is needed, divide by that positive length:

$$ \widehat{\mathbf{n}} = \frac{(-f_x,-f_y,1)} {\sqrt{f_x^2+f_y^2+1}}. $$

Dividing by a positive number changes the length but not the direction, so the normalized vector is still upward. The formula applies wherever the graph function is differentiable; at points where the relevant derivatives do not exist, this derivation does not establish a tangent plane or this normal formula.

Why the Formula Is the Only Upward Normal Direction

The cross product gives a normal, but orthogonality also shows why its components must have this form. Write a general vector as \(\mathbf{m}=(a,b,c)\). For it to be perpendicular to both tangent vectors, it must satisfy two equations:

$$ \mathbf{m}\cdot\mathbf{r}_x=a+c f_x=0, \qquad \mathbf{m}\cdot\mathbf{r}_y=b+c f_y=0. $$

Solving gives \(a=-c f_x\) and \(b=-c f_y\), so every normal vector is \(c(-f_x,-f_y,1)\). If the normal is upward, its vertical component satisfies \(c>0\); hence it is a positive multiple of \((-f_x,-f_y,1)\). This proves that the formula gives the unique upward normal direction, even though infinitely many upward normal vectors of different lengths are possible.

1
Represent the graph.
Use \(\mathbf{r}(x,y)=(x,y,f(x,y))\).
2
Find its coordinate tangents.
Differentiate with respect to \(x\) and \(y\) to obtain \((1,0,f_x)\) and \((0,1,f_y)\).
3
Form an upward perpendicular vector.
Compute \(\mathbf{r}_x\times\mathbf{r}_y=(-f_x,-f_y,1)\); its positive third component confirms upward orientation.

Worked Examples

Worked Example: A Quadratic Bowl

Find an upward normal to the graph \(z=x^2+y^2\) at the point with \(x=1\) and \(y=-1\), and check that it is perpendicular to both coordinate tangents.

For \(f(x,y)=x^2+y^2\), the partial derivatives are

$$ f_x=2x,\qquad f_y=2y. $$

At \((1,-1)\), these values are \(f_x=2(1)=2\) and \(f_y=2(-1)=-2\). The surface point has height \(f(1,-1)=1^2+(-1)^2=2\), so it is \((1,-1,2)\). The tangent vectors there are

$$ \mathbf{r}_x=(1,0,2),\qquad \mathbf{r}_y=(0,1,-2). $$

Their cross product is

$$ \mathbf{r}_x\times\mathbf{r}_y = (0(-2)-2(1),\;2(0)-1(-2),\;1(1)-0(0)) =(-2,2,1). $$

The third component is positive, so this vector points upward. The dot-product checks give \((-2,2,1)\cdot(1,0,2)=-2+2=0\) and \((-2,2,1)\cdot(0,1,-2)=2-2=0\). Thus it is perpendicular to both tangent directions. Its length is \(\sqrt{4+4+1}=3\), so the unit upward normal is \((-2/3,2/3,1/3)\).

Worked Example: A Tilted Plane

Find an upward normal to \(z=2x-3y+4\), and verify it at the point corresponding to \((x,y)=(0,1)\).

Here \(f_x=2\) and \(f_y=-3\) everywhere. The point on the plane above \((0,1)\) has height \(f(0,1)=2(0)-3(1)+4=1\), so it is \((0,1,1)\). The coordinate tangent vectors at this point are

$$ \mathbf{r}_x=(1,0,2),\qquad \mathbf{r}_y=(0,1,-3). $$

The cross product and formula both give

$$ \mathbf{r}_x\times\mathbf{r}_y = (0(-3)-2(1),\;2(0)-1(-3),\;1(1)-0(0)) =(-2,3,1) =(-f_x,-f_y,1). $$

The vertical component is \(1>0\), so it is upward. Direct checks are \((-2,3,1)\cdot(1,0,2)=-2+2=0\) and \((-2,3,1)\cdot(0,1,-3)=3-3=0\). The length is \(\sqrt{4+9+1}=\sqrt{14}\), so the unit upward normal is \((-2,3,1)/\sqrt{14}\).

Worked Example: A Quadratic with a Linear Term

For \(z=x^2-y\), find an upward normal at \((x,y)=(2,1)\), and verify the result using the tangent vectors.

The height is \(f(2,1)=2^2-1=3\), so the surface point is \((2,1,3)\). The derivatives are \(f_x=2x\) and \(f_y=-1\), giving \(f_x(2,1)=4\) and \(f_y(2,1)=-1\). Consequently,

$$ \mathbf{r}_x=(1,0,4),\qquad \mathbf{r}_y=(0,1,-1),\qquad \mathbf{r}_x\times\mathbf{r}_y=(-4,1,1). $$

The cross product has positive third component. Its dot products with the tangent vectors are \((-4,1,1)\cdot(1,0,4)=-4+4=0\) and \((-4,1,1)\cdot(0,1,-1)=1-1=0\). This verifies that \((-4,1,1)\) is an upward normal. Its length is \(\sqrt{16+1+1}=\sqrt{18}=3\sqrt{2}\), so its unit version is \((-4,1,1)/(3\sqrt{2})\).

Common Pitfall: Reversing the Cross Product

The cross product is order-sensitive: reversing its two inputs reverses the resulting vector. For the tilted plane above, a common error is to calculate \(\mathbf{r}_y\times\mathbf{r}_x\) but then report the result as upward:

$$ \mathbf{r}_y\times\mathbf{r}_x =(2,-3,-1). $$

This vector is perpendicular to both tangent directions, but its third component is \(-1\), so it points downward, not upward. The correction is to use \(\mathbf{r}_x\times\mathbf{r}_y=(-2,3,1)\), or to multiply the reversed result by \(-1\). Perpendicularity alone does not determine orientation; the sign of the vertical component does.

When the Formula Is Useful

The formula turns partial derivatives of a graph function directly into a normal direction. It also gives a quick consistency check: the first two components are the negatives of the slopes in the coordinate directions, while the third component is \(1\). A sign error in either derivative, or a reversed cross-product order, can be detected by checking orthogonality and the sign of the third component.

Keep the distinction between direction and length clear. The vector \((-f_x,-f_y,1)\) is convenient because it is simple and always nonzero; the unit normal has length one and is obtained by normalization. Which form is needed depends on the calculation, but both describe the same upward direction.

Check Your Understanding

Use the graph parametrization and the orientation check to answer these questions.

  1. For \(z=f(x,y)\), what are the two coordinate tangent vectors?
  2. Why does \(\mathbf{r}_x\times\mathbf{r}_y\) point upward?
  3. What is an upward normal for \(z=3x+y^2\) at \((x,y)=(1,2)\)?
  4. How does reversing the order of the cross product change the result?
  5. How do you convert \((-f_x,-f_y,1)\) into a unit normal?