# 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 $\vec{\textbf{v}}(t, s)$, 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 $-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 $\vec{\textbf{v}}$ at the point $\vec{\textbf{v}}(1, -2)$?

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 $\vec{\textbf{v}}(t, s)$ is defined:

**Concept check**: Now compute the cross product of the partial derivatives of $\vec{\textbf{v}}$. Do this for a general point $(t, s)$, 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 $(t, s) = (1, -2)$, here's what we'd get:

This is a vector which is perpendicular to the surface at the point $\vec{\textbf{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{aligned}
\left[
\begin{array}{c}
2t \\
-2s \\
1
\end{array}
\right]
\end{aligned}$ that gives us a normal vector for each point $\vec{\textbf{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 $\vec{\textbf{v}}(1, -2)$?

**Concept check**: More generally, what is the unit normal vector to our surface at an arbitrary point $\vec{\textbf{v}}(t, s)$, 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 $(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 $\vec{\textbf{v}}$ at the point $\vec{\textbf{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 $\vec{\textbf{v}}(t, s)$, 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 $\vec{\textbf{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 $-1$, and it will still give unit normal vectors.
- The main reason for learning this skill is to compute three-dimensional flux.