Main content

## Multivariable calculus

### Course: Multivariable calculus > Unit 4

Lesson 14: Flux in 3D (articles)# Unit normal vector of a surface

Learn how to find the vector that is perpendicular, or "normal", to a surface. You will need this skill for computing flux in three dimensions.

## Background

- Partial derivatives of parametric surfaces
- In particular, make sure you have a strong intuition for the partial derivatives of a function parameterizing a surface, and what they represent.

- Cross product (video)

## What we're building to

- If a surface is parameterized by a function
, the unit normal vector to this surface is given by the expression$\overrightarrow{\mathbf{\text{v}}}(t,s)$ - You always have two choices for a unit vector function. If a surface is closed, like a sphere or a torus, those choices can be interpreted as outward-facing and inward-facing vectors.
- This is useful for the idea of flux in three-dimensions, covered in the next article.

## Unit normal vector

Let's say you have some surface, $S$ . If a vector at some point on $S$ is perpendicular to $S$ at that point, it is called a $S$ at that point). More precisely, you might say it is perpendicular to the $S$ at that point, or that it is perpendicular to all possible tangent $S$ at that point.

**normal vector**(of*tangent plane*of*vectors*ofWhen a normal vector has magnitude $1$ , it is called a

**unit normal vector**. Notice, there will always be two unit normal vectors, each pointing in opposite directions:Why do we care? To compute surface integrals in a vector field, also known as three-dimensional flux, you will need to find an expression for the unit normal vectors on a given surface. This will take the form of a multivariable, vector-valued function, whose inputs live in three dimensions (where the surface lives), and whose outputs are three-dimensional vectors.

## Example: How to compute a unit normal vector

Consider the surface described by the following parametric function:

In the range where $-2\le t\le 2$ and $-2\le s\le 2$ , here's what that surface looks like:

For what follows, I am assuming you know that the two partial derivatives of a parametric surface give vectors which are each tangent to the surface, but in different directions.

#### Step 1: Find a (not necessarily unit) normal vector

**Concept check**: Which of the following will give a vector which is perpendicular to the surface parameterized by

This is a pretty complicated expression, with two vector-valued partial derivatives and a cross product. If you have computed some surface integrals before, you are all-too familiar with the expression and how ugly it can be to compute.

Once again, here's how $\overrightarrow{\mathbf{\text{v}}}(t,s)$ is defined:

**Concept check**: Now compute the cross product of the partial derivatives of

For example, if we plugged in $(t,s)=(1,-2)$ , here's what we'd get:

This is a vector which is perpendicular to the surface at the point $\overrightarrow{\mathbf{\text{v}}}(1,-2)$ . However, it is not a unit vector, as you can see by computing its magnitude:

#### Step 2: Make that a unit normal vector

So we have this expression $\begin{array}{r}\left[\begin{array}{c}2t\\ -2s\\ 1\end{array}\right]\end{array}$ that gives us a normal vector for each point $\overrightarrow{\mathbf{\text{v}}}(t,s)$ . The next step is to massage this a bit to get an expression for a

**unit normal vector**.**Concept check**: What is the unit normal vector to our surface at the point

**Concept check**: More generally, what is the unit normal vector to our surface at an arbitrary point

Bada boom bada bang, you've got yourself a unit normal vector.

If you plug in any value $({t}_{0},{s}_{0})$ to this expression, you will get a vector which has magnitude $1$ , and is normal to the surface parameterized by the function $\overrightarrow{\mathbf{\text{v}}}$ at the point $\overrightarrow{\mathbf{\text{v}}}({t}_{0},{s}_{0})$ .

## Choosing orientation

Notice, if you multiply your function for a unit normal vector by $-1$ , it will still produce unit normal vectors. They will all just point in the opposite directions. The choice of direction for the unit normal vectors of your surface is what's called an

**orientation of that surface**.You will see the significance of this in the next article on three-dimensional flux. In short, orienting your surface is analogous to giving a one-dimensional curve a direction.

When your surface is closed, like a sphere or a torus, the two choices for unit normal vectors are often called outward-facing and inward-facing unit normal vectors.

## Summary

- Given a surface parameterized by a function
, to find an expression for the unit normal vector to this surface, take the following steps:$\overrightarrow{\mathbf{\text{v}}}(t,s)$ **Step 1**: Get a (non necessarily unit) normal vector by taking the cross product of both partial derivatives of :$\overrightarrow{\mathbf{\text{v}}}(t,s)$ **Step 2**: Turn this vector-expression into a unit vector by dividing it by its own magnitude:

- You can also multiply this expression by
, and it will still give unit normal vectors.$-1$ - The main reason for learning this skill is to compute three-dimensional flux.

## Want to join the conversation?

- Is there any source code for the formulas on this page? I want to work with calculating the xyz points representing the 3D surface.

If you look at the page below there is some Javascript code for rotating 3D shapes. Is there code like this for the current page?

https://www.khanacademy.org/computing/computer-programming/programming-games-visualizations/programming-3d-shapes/a/rotating-3d-shapes(8 votes) - one day ill be here. ill reply to this in the future(3 votes)
- I think the cross product result in explanation's picture of step 1 question has wrong direction(3 votes)
- Is it possible to just utilize the gradient vector since it s intrinsically perpendicular to the function and then scale it down to a unit vector?(1 vote)