
In
geometry
Geometry (; ) is a branch of mathematics concerned with properties of space such as the distance, shape, size, and relative position of figures. Geometry is, along with arithmetic, one of the oldest branches of mathematics. A mathematician w ...
, a normal is an
object (e.g. a
line,
ray, or
vector) that is
perpendicular
In geometry, two geometric objects are perpendicular if they intersect at right angles, i.e. at an angle of 90 degrees or π/2 radians. The condition of perpendicularity may be represented graphically using the '' perpendicular symbol'', � ...
to a given object. For example, the normal line to a
plane curve at a given point is the infinite straight line perpendicular to the
tangent line
In geometry, the tangent line (or simply tangent) to a plane curve at a given point is, intuitively, the straight line that "just touches" the curve at that point. Leibniz defined it as the line through a pair of infinitely close points o ...
to the curve at the point.
A normal vector is a
vector perpendicular to a given object at a particular point.
A normal
vector of length one is called a unit normal vector or normal direction. A
curvature vector is a normal vector whose length is the
curvature
In mathematics, curvature is any of several strongly related concepts in geometry that intuitively measure the amount by which a curve deviates from being a straight line or by which a surface deviates from being a plane. If a curve or su ...
of the object.
Multiplying a normal vector by results in the
opposite vector
In mathematics, physics, and engineering, a Euclidean vector or simply a vector (sometimes called a geometric vector or spatial vector) is a geometric object that has Magnitude (mathematics), magnitude (or Euclidean norm, length) and Direction ( ...
, which may be used for indicating sides (e.g., interior or exterior).
In
three-dimensional space
In geometry, a three-dimensional space (3D space, 3-space or, rarely, tri-dimensional space) is a mathematical space in which three values ('' coordinates'') are required to determine the position of a point. Most commonly, it is the three- ...
, a surface normal, or simply normal, to a
surface at point is a vector perpendicular to the
tangent plane
In geometry, the tangent line (or simply tangent) to a plane curve at a given point is, intuitively, the straight line that "just touches" the curve at that point. Leibniz defined it as the line through a pair of infinitely close points o ...
of the surface at . The
vector field of normal directions to a surface is known as ''
Gauss map''. The word "normal" is also used as an adjective: a line ''normal'' to a
plane, the ''normal'' component of a
force
In physics, a force is an influence that can cause an Physical object, object to change its velocity unless counterbalanced by other forces. In mechanics, force makes ideas like 'pushing' or 'pulling' mathematically precise. Because the Magnitu ...
, etc. The concept of normality generalizes to
orthogonality
In mathematics, orthogonality is the generalization of the geometric notion of '' perpendicularity''. Although many authors use the two terms ''perpendicular'' and ''orthogonal'' interchangeably, the term ''perpendicular'' is more specifically ...
(
right angle
In geometry and trigonometry, a right angle is an angle of exactly 90 Degree (angle), degrees or radians corresponding to a quarter turn (geometry), turn. If a Line (mathematics)#Ray, ray is placed so that its endpoint is on a line and the ad ...
s).
The concept has been generalized to
differentiable manifold
In mathematics, a differentiable manifold (also differential manifold) is a type of manifold that is locally similar enough to a vector space to allow one to apply calculus. Any manifold can be described by a collection of charts (atlas). One ...
s of arbitrary dimension embedded in a
Euclidean space
Euclidean space is the fundamental space of geometry, intended to represent physical space. Originally, in Euclid's ''Elements'', it was the three-dimensional space of Euclidean geometry, but in modern mathematics there are ''Euclidean spaces ...
. The normal vector space or normal space of a manifold at point
is the set of vectors which are orthogonal to the
tangent space at
Normal vectors are of special interest in the case of
smooth curves and
smooth surfaces.
The normal is often used in
3D computer graphics
3D computer graphics, sometimes called Computer-generated imagery, CGI, 3D-CGI or three-dimensional Computer-generated imagery, computer graphics, are graphics that use a three-dimensional representation of geometric data (often Cartesian coor ...
(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
In mathematics, the Euclidean distance between two points in Euclidean space is the length of the line segment between them. It can be calculated from the Cartesian coordinates of the points using the Pythagorean theorem, and therefore is o ...
between ''Q'' and its foot ''P''.
Normal to space curves

The normal direction to a
space curve
In mathematics, a curve (also called a curved line in older texts) is an object similar to a line, but that does not have to be straight.
Intuitively, a curve may be thought of as the trace left by a moving point. This is the definition that ...
is:
:
where
is the
radius of curvature (reciprocal
curvature
In mathematics, curvature is any of several strongly related concepts in geometry that intuitively measure the amount by which a curve deviates from being a straight line or by which a surface deviates from being a plane. If a curve or su ...
);
is the
tangent vector
In mathematics, a tangent vector is a vector that is tangent to a curve or surface at a given point. Tangent vectors are described in the differential geometry of curves in the context of curves in R''n''. More generally, tangent vectors are ...
,
in terms of the curve position
and arc-length
:
:
Normal to planes and polygons

For a
convex polygon
In geometry, a polygon () is a plane figure made up of line segments connected to form a closed polygonal chain.
The segments of a closed polygonal chain are called its '' edges'' or ''sides''. The points where two edges meet are the polygon ...
(such as a
triangle
A triangle is a polygon with three corners and three sides, one of the basic shapes in geometry. The corners, also called ''vertices'', are zero-dimensional points while the sides connecting them, also called ''edges'', are one-dimension ...
), a surface normal can be calculated as the vector
cross product
In mathematics, the cross product or vector product (occasionally directed area product, to emphasize its geometric significance) is a binary operation on two vectors in a three-dimensional oriented Euclidean vector space (named here E), and ...
of two (non-parallel) edges of the polygon.
For a
plane given by the general form
plane equation the vector
is a normal.
For a plane whose equation is given in parametric form
where
is a point on the plane and
are non-parallel vectors pointing along the plane, a normal to the plane is a vector normal to both
and
which can be found as the
cross product
In mathematics, the cross product or vector product (occasionally directed area product, to emphasize its geometric significance) is a binary operation on two vectors in a three-dimensional oriented Euclidean vector space (named here E), and ...
Normal to general surfaces in 3D space

If a (possibly non-flat) surface
in 3D space
is
parameterized by a system of
curvilinear coordinates
In geometry, curvilinear coordinates are a coordinate system for Euclidean space in which the coordinate lines may be curved. These coordinates may be derived from a set of Cartesian coordinates by using a transformation that is invertible, l ...
with
and
real variables, then a normal to ''S'' is by definition a normal to a tangent plane, given by the cross product of the
partial derivative
In mathematics, a partial derivative of a function of several variables is its derivative with respect to one of those variables, with the others held constant (as opposed to the total derivative, in which all variables are allowed to vary). P ...
s
If a surface
is given
implicitly as the set of points
satisfying
then a normal at a point
on the surface is given by the
gradient
since
the gradient at any point is perpendicular to the level set
For a surface
in
given as the graph of a function
an upward-pointing normal can be found either from the parametrization
giving
or more simply from its implicit form
giving
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
In mathematical analysis, Lipschitz continuity, named after Germany, German mathematician Rudolf Lipschitz, is a strong form of uniform continuity for function (mathematics), functions. Intuitively, a Lipschitz continuous function is limited in h ...
.
Orientation
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
we can determine the matrix
that transforms a vector
perpendicular to the tangent plane
into a vector
perpendicular to the transformed tangent plane
by the following logic:
Write n′ as
We must find
Choosing
such that
or
will satisfy the above equation, giving a
perpendicular to
or an
perpendicular to
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
-dimensional
hyperplane
In geometry, a hyperplane is a generalization of a two-dimensional plane in three-dimensional space to mathematical spaces of arbitrary dimension. Like a plane in space, a hyperplane is a flat hypersurface, a subspace whose dimension is ...
in
-dimensional space given by its parametric representation
where
is a point on the hyperplane and
for
are linearly independent vectors pointing along the hyperplane, a normal to the hyperplane is any vector
in the
null space of the matrix
meaning . 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 , then the vector
is a normal.
The definition of a normal to a surface in three-dimensional space can be extended to
-dimensional
hypersurfaces in . A hypersurface may be
locally defined implicitly as the set of points
satisfying an equation , where
is a given
scalar function. If
is
continuously differentiable then the hypersurface is a
differentiable manifold
In mathematics, a differentiable manifold (also differential manifold) is a type of manifold that is locally similar enough to a vector space to allow one to apply calculus. Any manifold can be described by a collection of charts (atlas). One ...
in the
neighbourhood
A neighbourhood (Commonwealth English) or neighborhood (American English) is a geographically localized community within a larger town, city, suburb or rural area, sometimes consisting of a single street and the buildings lining it. Neighbourh ...
of the points where the
gradient is not zero. At these points a normal vector is given by the gradient:
The normal line is the one-dimensional subspace with basis
A vector that is normal to the space spanned by the linearly independent vectors and falls within the space spanned by the linearly independent vectors is given by the column of the matrix , where the matrix is the juxtaposition of the column vectors. (Proof: so each of is perpendicular to the last column of .) This formula works even when is less than the dimension of the Euclidean The formula simplifies to when .
Varieties defined by implicit equations in ''n''-dimensional space
A
differential variety defined by implicit equations in the
-dimensional space
is the set of the common zeros of a finite set of differentiable functions in
variables
The
Jacobian matrix
In vector calculus, the Jacobian matrix (, ) of a vector-valued function of several variables is the matrix of all its first-order partial derivatives. If this matrix is square, that is, if the number of variables equals the number of component ...
of the variety is the
matrix whose
-th row is the gradient of
By the
implicit function theorem, the variety is a
manifold
In mathematics, a manifold is a topological space that locally resembles Euclidean space near each point. More precisely, an n-dimensional manifold, or ''n-manifold'' for short, is a topological space with the property that each point has a N ...
in the neighborhood of a point where the Jacobian matrix has rank
At such a point
the normal vector space is the vector space generated by the values at
of the gradient vectors of the
In other words, a variety is defined as the intersection of
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
of the variety is the
affine subspace
In mathematics, an affine space is a geometry, geometric structure (mathematics), structure that generalizes some of the properties of Euclidean spaces in such a way that these are independent of the concepts of distance (mathematics), distance ...
passing through
and generated by the normal vector space at
These definitions may be extended 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
This variety is the union of the
-axis and the
-axis.
At a point
where
the rows of the Jacobian matrix are
and
Thus the normal affine space is the plane of equation
Similarly, if
the ''
normal plane'' at
is the plane of equation
At the point
the rows of the Jacobian matrix are
and
Thus the normal vector space and the normal affine space have dimension 1 and the normal affine space is the
-axis.
Uses
* Surface normals are useful in defining
surface integral
In mathematics, particularly multivariable calculus, a surface integral is a generalization of multiple integrals to integration over surfaces. It can be thought of as the double integral analogue of the line integral. Given a surface, o ...
s of
vector fields.
* Surface normals are commonly used in
3D computer graphics
3D computer graphics, sometimes called Computer-generated imagery, CGI, 3D-CGI or three-dimensional Computer-generated imagery, computer graphics, are graphics that use a three-dimensional representation of geometric data (often Cartesian coor ...
for
lighting
Lighting or illumination is the deliberate use of light to achieve practical or aesthetic effects. Lighting includes the use of both artificial light sources like lamps and light fixtures, as well as natural illumination by capturing daylight. ...
calculations (see
Lambert's cosine law), often adjusted by
normal mapping.
*
Render layers containing surface normal information may be used in
digital compositing to change the apparent lighting of rendered elements.
* In
computer vision
Computer vision tasks include methods for image sensor, acquiring, Image processing, processing, Image analysis, analyzing, and understanding digital images, and extraction of high-dimensional data from the real world in order to produce numerical ...
, the shapes of 3D objects are estimated from surface normals using
photometric stereo.
*The normal vector may be obtained as the gradient of the
signed distance function.
Normal in geometric optics
The is the outward-pointing ray
perpendicular
In geometry, two geometric objects are perpendicular if they intersect at right angles, i.e. at an angle of 90 degrees or π/2 radians. The condition of perpendicularity may be represented graphically using the '' perpendicular symbol'', � ...
to the surface of an
optical medium at a given point.
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
*
* A
explanation of normal vectorsfrom Microsoft's MSDN
* Clear pseudocode fo
calculating a surface normal from either a triangle or polygon.
{{Authority control
Surfaces
Vector calculus
3D computer graphics
Orthogonality