Normal (geometry)

From HandWiki
Short description: Line or vector perpendicular to a curve or a surface
A polygon and its two normal vectors
A normal to a surface at a point is the same as a normal to the tangent plane to the surface at the same point.

In geometry, a normal is an object (e.g. a line, ray, or vector) that is perpendicular to a given object. For example, the normal line to a plane curve at a given point is the line perpendicular to the tangent line to the curve at the point.

A normal vector of length one is called a unit normal vector. A curvature vector is a normal vector whose length is the curvature of the object. Multiplying a normal vector by -1 results in the opposite vector, which may be used for indicating sides (e.g., interior or exterior).

In three-dimensional space, a surface normal, or simply normal, to a surface at point P is a vector perpendicular to the tangent plane of the surface at P. The word normal is also used as an adjective: a line normal to a plane, the normal component of a force, the normal vector, etc. The concept of normality generalizes to orthogonality (right angles).

The concept has been generalized to differentiable manifolds of arbitrary dimension embedded in a Euclidean space. The normal vector space or normal space of a manifold at point [math]\displaystyle{ P }[/math] is the set of vectors which are orthogonal to the tangent space at [math]\displaystyle{ P. }[/math] Normal vectors are of special interest in the case of smooth curves and smooth surfaces.

The normal is often used in 3D computer graphics (notice the singular, as only one normal will be defined) to determine a surface's orientation toward a light source for flat shading, or the orientation of each of the surface's corners (vertices) to mimic a curved surface with Phong shading.

The foot of a normal at a point of interest Q (analogous to the foot of a perpendicular) can be defined at the point P on the surface where the normal vector contains Q. The normal distance of a point Q to a curve or to a surface is the Euclidean distance between Q and its foot P.

Normal to surfaces in 3D space

A curved surface showing the unit normal vectors (blue arrows) to the surface

Calculating a surface normal

For a convex polygon (such as a triangle), a surface normal can be calculated as the vector cross product of two (non-parallel) edges of the polygon.

For a plane given by the equation [math]\displaystyle{ ax + by + cz + d = 0, }[/math] the vector [math]\displaystyle{ \mathbf n = (a, b, c) }[/math] is a normal.

For a plane whose equation is given in parametric form [math]\displaystyle{ \mathbf{r}(s,t) = \mathbf{r}_0 + s \mathbf{p} + t \mathbf{q}, }[/math] where [math]\displaystyle{ \mathbf{r}_0 }[/math] is a point on the plane and [math]\displaystyle{ \mathbf{p}, \mathbf{q} }[/math] are non-parallel vectors pointing along the plane, a normal to the plane is a vector normal to both [math]\displaystyle{ \mathbf{p} }[/math] and [math]\displaystyle{ \mathbf{q}, }[/math] which can be found as the cross product [math]\displaystyle{ \mathbf{n}=\mathbf{p}\times\mathbf{q}. }[/math]

If a (possibly non-flat) surface [math]\displaystyle{ S }[/math] in 3D space [math]\displaystyle{ \R^3 }[/math] is parameterized by a system of curvilinear coordinates [math]\displaystyle{ \mathbf{r}(s, t) = (x(s, t), y(s, t), z(s, t)), }[/math] with [math]\displaystyle{ s }[/math] and [math]\displaystyle{ t }[/math] real variables, then a normal to S is by definition a normal to a tangent plane, given by the cross product of the partial derivatives [math]\displaystyle{ \mathbf{n}=\frac{\partial \mathbf{r}}{\partial s} \times \frac{\partial \mathbf{r}}{\partial t}. }[/math]

If a surface [math]\displaystyle{ S }[/math] is given implicitly as the set of points [math]\displaystyle{ (x, y, z) }[/math] satisfying [math]\displaystyle{ F(x, y, z) = 0, }[/math] then a normal at a point [math]\displaystyle{ (x, y, z) }[/math] on the surface is given by the gradient [math]\displaystyle{ \mathbf{n} = \nabla F(x, y, z). }[/math] since the gradient at any point is perpendicular to the level set [math]\displaystyle{ S. }[/math]

For a surface [math]\displaystyle{ S }[/math] in [math]\displaystyle{ \R^3 }[/math] given as the graph of a function [math]\displaystyle{ z = f(x, y), }[/math] an upward-pointing normal can be found either from the parametrization [math]\displaystyle{ \mathbf{r}(x,y)=(x,y,f(x,y)), }[/math] giving [math]\displaystyle{ \mathbf{n} = \frac{\partial \mathbf{r}}{\partial x} \times \frac{\partial \mathbf{r}}{\partial y} = \left(1,0,\tfrac{\partial f}{\partial x}\right) \times \left(0,1,\tfrac{\partial f}{\partial y}\right) = \left(-\tfrac{\partial f}{\partial x}, -\tfrac{\partial f}{\partial y},1\right); }[/math] or more simply from its implicit form [math]\displaystyle{ F(x, y, z) = z-f(x,y) = 0, }[/math] giving [math]\displaystyle{ \mathbf{n} = \nabla F(x, y, z) = \left(-\tfrac{\partial f}{\partial x}, -\tfrac{\partial f}{\partial y}, 1 \right). }[/math] Since a surface does not have a tangent plane at a singular point, it has no well-defined normal at that point: for example, the vertex of a cone. In general, it is possible to define a normal almost everywhere for a surface that is Lipschitz continuous.

Orientation

A vector field of normals to a surface

The normal to a (hyper)surface is usually scaled to have unit length, but it does not have a unique direction, since its opposite is also a unit normal. For a surface which is the topological boundary of a set in three dimensions, one can distinguish between two normal orientations, the inward-pointing normal and outer-pointing normal. For an oriented surface, the normal is usually determined by the right-hand rule or its analog in higher dimensions.

If the normal is constructed as the cross product of tangent vectors (as described in the text above), it is a pseudovector.

Transforming normals

When applying a transform to a surface it is often useful to derive normals for the resulting surface from the original normals.

Specifically, given a 3×3 transformation matrix [math]\displaystyle{ \mathbf{M}, }[/math] we can determine the matrix [math]\displaystyle{ \mathbf{W} }[/math] that transforms a vector [math]\displaystyle{ \mathbf{n} }[/math] perpendicular to the tangent plane [math]\displaystyle{ \mathbf{t} }[/math] into a vector [math]\displaystyle{ \mathbf{n}^{\prime} }[/math] perpendicular to the transformed tangent plane [math]\displaystyle{ \mathbf{Mt}, }[/math] by the following logic:

Write n′ as [math]\displaystyle{ \mathbf{Wn}. }[/math] We must find [math]\displaystyle{ \mathbf{W}. }[/math] [math]\displaystyle{ \begin{alignat}{5} W\mathbb n \text{ is perpendicular to } M\mathbb t \quad \, &\text{ if and only if } \quad 0 = (W \mathbb n) \cdot (M \mathbb t) \\ &\text{ if and only if } \quad 0 = (W \mathbb{n})^\mathrm{T} (M \mathbb{t}) \\ &\text{ if and only if } \quad 0 = \left(\mathbb{n}^\mathrm{T} W^\mathrm{T}\right) (M \mathbb{t}) \\ &\text{ if and only if } \quad 0 = \mathbb{n}^\mathrm{T} \left(W^\mathrm{T} M\right) \mathbb{t} \\ \end{alignat} }[/math]

Choosing [math]\displaystyle{ \mathbf{W} }[/math] such that [math]\displaystyle{ W^\mathrm{T} M = I, }[/math] or [math]\displaystyle{ W = (M^{-1})^\mathrm{T}, }[/math] will satisfy the above equation, giving a [math]\displaystyle{ W \mathbb n }[/math] perpendicular to [math]\displaystyle{ M \mathbb t, }[/math] or an [math]\displaystyle{ \mathbf{n}^{\prime} }[/math] perpendicular to [math]\displaystyle{ \mathbf{t}^{\prime}, }[/math] as required.

Therefore, one should use the inverse transpose of the linear transformation when transforming surface normals. The inverse transpose is equal to the original matrix if the matrix is orthonormal, that is, purely rotational with no scaling or shearing.

Hypersurfaces in n-dimensional space

For an [math]\displaystyle{ (n-1) }[/math]-dimensional hyperplane in [math]\displaystyle{ n }[/math]-dimensional space [math]\displaystyle{ \R^n }[/math] given by its parametric representation [math]\displaystyle{ \mathbf{r}\left(t_1, \ldots, t_{n-1}\right) = \mathbf{p}_0 + t_1 \mathbf{p}_1 + \cdots + t_{n-1}\mathbf{p}_{n-1}, }[/math] where [math]\displaystyle{ \mathbf{p}_0 }[/math] is a point on the hyperplane and [math]\displaystyle{ \mathbf{p}_i }[/math] for [math]\displaystyle{ i = 1, \ldots, n - 1 }[/math] are linearly independent vectors pointing along the hyperplane, a normal to the hyperplane is any vector [math]\displaystyle{ \mathbf n }[/math] in the null space of the matrix [math]\displaystyle{ P = \begin{bmatrix}\mathbf{p}_1 & \cdots &\mathbf{p}_{n-1}\end{bmatrix}, }[/math] meaning [math]\displaystyle{ P\mathbf n = \mathbf 0. }[/math] That is, any vector orthogonal to all in-plane vectors is by definition a surface normal. Alternatively, if the hyperplane is defined as the solution set of a single linear equation [math]\displaystyle{ a_1x_1+\cdots+a_nx_n = c, }[/math] then the vector [math]\displaystyle{ \mathbb{n} = \left(a_1, \ldots, a_n\right) }[/math] is a normal.

The definition of a normal to a surface in three-dimensional space can be extended to [math]\displaystyle{ (n - 1) }[/math]-dimensional hypersurfaces in [math]\displaystyle{ \R^n. }[/math] A hypersurface may be locally defined implicitly as the set of points [math]\displaystyle{ (x_1, x_2, \ldots, x_n) }[/math] satisfying an equation [math]\displaystyle{ F(x_1, x_2, \ldots, x_n) = 0, }[/math] where [math]\displaystyle{ F }[/math] is a given scalar function. If [math]\displaystyle{ F }[/math] is continuously differentiable then the hypersurface is a differentiable manifold in the neighbourhood of the points where the gradient is not zero. At these points a normal vector is given by the gradient: [math]\displaystyle{ \mathbb n = \nabla F\left(x_1, x_2, \ldots, x_n\right) = \left( \tfrac{\partial F}{\partial x_1}, \tfrac{\partial F}{\partial x_2}, \ldots, \tfrac{\partial F}{\partial x_n} \right)\,. }[/math]

The normal line is the one-dimensional subspace with basis [math]\displaystyle{ \{\mathbf{n}\}. }[/math]

Varieties defined by implicit equations in n-dimensional space

A differential variety defined by implicit equations in the [math]\displaystyle{ n }[/math]-dimensional space [math]\displaystyle{ \R^n }[/math] is the set of the common zeros of a finite set of differentiable functions in [math]\displaystyle{ n }[/math] variables [math]\displaystyle{ f_1\left(x_1, \ldots, x_n\right), \ldots, f_k\left(x_1, \ldots, x_n\right). }[/math] The Jacobian matrix of the variety is the [math]\displaystyle{ k \times n }[/math] matrix whose [math]\displaystyle{ i }[/math]-th row is the gradient of [math]\displaystyle{ f_i. }[/math] By the implicit function theorem, the variety is a manifold in the neighborhood of a point where the Jacobian matrix has rank [math]\displaystyle{ k. }[/math] At such a point [math]\displaystyle{ P, }[/math] the normal vector space is the vector space generated by the values at [math]\displaystyle{ P }[/math] of the gradient vectors of the [math]\displaystyle{ f_i. }[/math]

In other words, a variety is defined as the intersection of [math]\displaystyle{ k }[/math] hypersurfaces, and the normal vector space at a point is the vector space generated by the normal vectors of the hypersurfaces at the point.

The normal (affine) space at a point [math]\displaystyle{ P }[/math] of the variety is the affine subspace passing through [math]\displaystyle{ P }[/math] and generated by the normal vector space at [math]\displaystyle{ P. }[/math]

These definitions may be extended verbatim to the points where the variety is not a manifold.

Example

Let V be the variety defined in the 3-dimensional space by the equations [math]\displaystyle{ x\,y = 0, \quad z = 0. }[/math] This variety is the union of the [math]\displaystyle{ x }[/math]-axis and the [math]\displaystyle{ y }[/math]-axis.

At a point [math]\displaystyle{ (a, 0, 0), }[/math] where [math]\displaystyle{ a \neq 0, }[/math] the rows of the Jacobian matrix are [math]\displaystyle{ (0, 0, 1) }[/math] and [math]\displaystyle{ (0, a, 0). }[/math] Thus the normal affine space is the plane of equation [math]\displaystyle{ x = a. }[/math] Similarly, if [math]\displaystyle{ b \neq 0, }[/math] the normal plane at [math]\displaystyle{ (0, b, 0) }[/math] is the plane of equation [math]\displaystyle{ y = b. }[/math]

At the point [math]\displaystyle{ (0, 0, 0) }[/math] the rows of the Jacobian matrix are [math]\displaystyle{ (0, 0, 1) }[/math] and [math]\displaystyle{ (0, 0, 0). }[/math] Thus the normal vector space and the normal affine space have dimension 1 and the normal affine space is the [math]\displaystyle{ z }[/math]-axis.

Uses

Normal in geometric optics

Main page: Physics:Specular reflection
Diagram of specular reflection

The normal ray is the outward-pointing ray perpendicular to the surface of an optical medium at a given point.[2] In reflection of light, the angle of incidence and the angle of reflection are respectively the angle between the normal and the incident ray (on the plane of incidence) and the angle between the normal and the reflected ray.

See also

References

External links