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 start bold text, v, end bold text, with, vector, on top, left parenthesis, t, comma, s, right parenthesis, the unit normal vector to this surface is given by the expression
- 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

**normal vector**(of S at that point). More precisely, you might say it is perpendicular to the*tangent plane*of S at that point, or that it is perpendicular to all possible tangent*vectors*of S at that point.When 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 minus, 2, is less than or equal to, t, is less than or equal to, 2 and minus, 2, is less than or equal to, s, is less than or equal to, 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 start bold text, v, end bold text, with, vector, on top at the point start bold text, v, end bold text, with, vector, on top, left parenthesis, 1, comma, minus, 2, right parenthesis?

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 start bold text, v, end bold text, with, vector, on top, left parenthesis, t, comma, s, right parenthesis is defined:

**Concept check**: Now compute the cross product of the partial derivatives of start bold text, v, end bold text, with, vector, on top. Do this for a general point left parenthesis, t, comma, s, right parenthesis, meaning each component of your answer will be a function of t and s. As described in the previous problem, this will give you a function for normal vectors of the surface.

For example, if we plugged in left parenthesis, t, comma, s, right parenthesis, equals, left parenthesis, 1, comma, minus, 2, right parenthesis, here's what we'd get:

This is a vector which is perpendicular to the surface at the point start bold text, v, end bold text, with, vector, on top, left parenthesis, 1, comma, minus, 2, right parenthesis. 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{aligned}
\left[
\begin{array}{c}
2t \\
-2s \\
1
\end{array}
\right]
\end{aligned}$ that gives us a normal vector for each point start bold text, v, end bold text, with, vector, on top, left parenthesis, t, comma, s, right parenthesis. 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 start bold text, v, end bold text, with, vector, on top, left parenthesis, 1, comma, minus, 2, right parenthesis?

**Concept check**: More generally, what is the unit normal vector to our surface at an arbitrary point start bold text, v, end bold text, with, vector, on top, left parenthesis, t, comma, s, right parenthesis, as a function of t and s?

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

If you plug in any value left parenthesis, t, start subscript, 0, end subscript, comma, s, start subscript, 0, end subscript, right parenthesis to this expression, you will get a vector which has magnitude 1, and is normal to the surface parameterized by the function start bold text, v, end bold text, with, vector, on top at the point start bold text, v, end bold text, with, vector, on top, left parenthesis, t, start subscript, 0, end subscript, comma, s, start subscript, 0, end subscript, right parenthesis.

## Choosing orientation

Notice, if you multiply your function for a unit normal vector by minus, 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 start bold text, v, end bold text, with, vector, on top, left parenthesis, t, comma, s, right parenthesis, to find an expression for the unit normal vector to this surface, take the following steps:
**Step 1**: Get a (non necessarily unit) normal vector by taking the cross product of both partial derivatives of start bold text, v, end bold text, with, vector, on top, left parenthesis, t, comma, s, right parenthesis:**Step 2**: Turn this vector-expression into a unit vector by dividing it by its own magnitude:

- You can also multiply this expression by minus, 1, and it will still give unit normal vectors.
- 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) - I think the cross product result in explanation's picture of step 1 question has wrong direction(2 votes)