The concept of
angle
In Euclidean geometry, an angle can refer to a number of concepts relating to the intersection of two straight Line (geometry), lines at a Point (geometry), point. Formally, an angle is a figure lying in a Euclidean plane, plane formed by two R ...
s between
lines (in the
plane or in
space
Space is a three-dimensional continuum containing positions and directions. In classical physics, physical space is often conceived in three linear dimensions. Modern physicists usually consider it, with time, to be part of a boundless ...
), between two planes (''
dihedral angle'') or between a line and a plane can be generalized to arbitrary
dimension
In physics and mathematics, the dimension of a mathematical space (or object) is informally defined as the minimum number of coordinates needed to specify any point within it. Thus, a line has a dimension of one (1D) because only one coo ...
s. This generalization was first discussed by
Camille Jordan
Marie Ennemond Camille Jordan (; 5 January 1838 – 22 January 1922) was a French mathematician, known both for his foundational work in group theory and for his influential ''Cours d'analyse''.
Biography
Jordan was born in Lyon and educated at ...
.
For any pair of
flats 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 ...
of arbitrary dimension one can define a set of mutual angles which are
invariant under
isometric transformation of the Euclidean space. If the flats do not intersect, their shortest
distance
Distance is a numerical or occasionally qualitative measurement of how far apart objects, points, people, or ideas are. In physics or everyday usage, distance may refer to a physical length or an estimation based on other criteria (e.g. "two co ...
is one more invariant.
These angles are called canonical
or principal.
The concept of angles can be generalized to pairs of flats in a finite-dimensional
inner product space
In mathematics, an inner product space (or, rarely, a Hausdorff pre-Hilbert space) is a real vector space or a complex vector space with an operation called an inner product. The inner product of two vectors in the space is a scalar, ofte ...
over the
complex number
In mathematics, a complex number is an element of a number system that extends the real numbers with a specific element denoted , called the imaginary unit and satisfying the equation i^= -1; every complex number can be expressed in the for ...
s.
Jordan's definition
Let
and
be flats of dimensions
and
in the
-dimensional Euclidean space
. By definition, a
translation
Translation is the communication of the semantics, meaning of a #Source and target languages, source-language text by means of an Dynamic and formal equivalence, equivalent #Source and target languages, target-language text. The English la ...
of
or
does not alter their mutual angles. If
and
do not intersect, they will do so upon any translation of
which maps some point in
to some point in
. It can therefore be assumed without loss of generality that
and
intersect.
Jordan shows that
Cartesian coordinates
In geometry, a Cartesian coordinate system (, ) in a plane is a coordinate system that specifies each point uniquely by a pair of real numbers called ''coordinates'', which are the signed distances to the point from two fixed perpendicular o ...
in
can then be defined such that
and
are described, respectively, by the sets of equations
:
:
:
and
:
:
:
with
. Jordan calls these coordinates canonical. By definition, the angles
are the angles between
and
.
The non-negative integers
are constrained by
:
:
:
For these equations to determine the five non-negative integers completely, besides the dimensions
and
and the number
of angles
, the non-negative integer
must be given. This is the number of coordinates
, whose corresponding axes are those lying entirely within both
and
. The integer
is thus the dimension of
. The set of angles
may be supplemented with
angles
to indicate that
has that dimension.
Jordan's proof applies essentially unaltered when
is replaced with the
-dimensional inner product space
over the complex numbers. (For
angles between subspaces, the generalization to
is discussed by Galántai and Hegedũs in terms of the below
variational characterization.
)
Angles between subspaces
Now let
and
be
subspaces of the
-dimensional inner product space over the
real or complex numbers. Geometrically,
and
are flats, so Jordan's definition of mutual angles applies. When for any canonical coordinate
the symbol
denotes the
unit vector
In mathematics, a unit vector in a normed vector space is a Vector (mathematics and physics), vector (often a vector (geometry), spatial vector) of Norm (mathematics), length 1. A unit vector is often denoted by a lowercase letter with a circumfle ...
of the
axis, the vectors
form an
orthonormal
In linear algebra, two vectors in an inner product space are orthonormal if they are orthogonal unit vectors. A unit vector means that the vector has a length of 1, which is also known as normalized. Orthogonal means that the vectors are all perpe ...
basis for
and the vectors
form an orthonormal basis for
, where
:
Being related to canonical coordinates, these basic vectors may be called canonical.
When
denote the canonical basic vectors for
and
the canonical basic vectors for
then the inner product
vanishes for any pair of
and
except the following ones.
:
With the above ordering of the basic vectors, the
matrix
Matrix (: matrices or matrixes) or MATRIX may refer to:
Science and mathematics
* Matrix (mathematics), a rectangular array of numbers, symbols or expressions
* Matrix (logic), part of a formula in prenex normal form
* Matrix (biology), the m ...
of the inner products
is thus
diagonal
In geometry, a diagonal is a line segment joining two vertices of a polygon or polyhedron, when those vertices are not on the same edge. Informally, any sloping line is called diagonal. The word ''diagonal'' derives from the ancient Greek � ...
. In other words, if
and
are arbitrary orthonormal bases in
and
then the
real, orthogonal or
unitary
Unitary may refer to:
Mathematics
* Unitary divisor
* Unitary element
* Unitary group
* Unitary matrix
* Unitary morphism
* Unitary operator
* Unitary transformation
* Unitary representation
* Unitarity (physics)
* ''E''-unitary inverse semigr ...
transformations from the basis
to the basis
and from the basis
to the basis
realize a
singular value decomposition
In linear algebra, the singular value decomposition (SVD) is a Matrix decomposition, factorization of a real number, real or complex number, complex matrix (mathematics), matrix into a rotation, followed by a rescaling followed by another rota ...
of the matrix of inner products
. The diagonal matrix elements
are the singular values of the latter matrix. By the uniqueness of the singular value decomposition, the vectors
are then unique up to a real, orthogonal or unitary transformation among them, and the vectors
and
(and hence
) are unique up to equal real, orthogonal or unitary transformations applied simultaneously to the sets of the vectors
associated with a common value of
and to the corresponding sets of vectors
(and hence to the corresponding sets of
).
A singular value
can be interpreted as
corresponding to the angles
introduced above and associated with
and a singular value
can be interpreted as
corresponding to right angles between the
orthogonal
In mathematics, orthogonality (mathematics), orthogonality is the generalization of the geometric notion of ''perpendicularity''. Although many authors use the two terms ''perpendicular'' and ''orthogonal'' interchangeably, the term ''perpendic ...
spaces
and
, where superscript
denotes the
orthogonal complement
In the mathematical fields of linear algebra and functional analysis, the orthogonal complement of a subspace W of a vector space V equipped with a bilinear form B is the set W^\perp of all vectors in V that are orthogonal to every vector in W. I ...
.
Variational characterization
The
variational characterization of singular values and vectors implies as a special case a variational characterization of the angles between subspaces and their associated canonical vectors. This characterization includes the angles
and
introduced above and orders the angles by increasing value. It can be given the form of the below alternative definition. In this context, it is customary to talk of principal angles and vectors.
Definition
Let
be an inner product space. Given two subspaces
with
, there exists then a sequence of
angles
called the principal angles, the first one defined as
:
where
is the
inner product
In mathematics, an inner product space (or, rarely, a Hausdorff pre-Hilbert space) is a real vector space or a complex vector space with an operation called an inner product. The inner product of two vectors in the space is a scalar, ofte ...
and
the induced
norm. The vectors
and
are the corresponding ''principal vectors.''
The other principal angles and vectors are then defined recursively via
:
This means that the principal angles
form a set of minimized angles between the two subspaces, and the principal vectors in each subspace are orthogonal to each other.
Examples
Geometric example
Geometrically, subspaces are
flats (points, lines, planes etc.) that include the origin, thus any two subspaces intersect at least in the origin. Two two-dimensional subspaces
and
generate a set of two angles. In a three-dimensional
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 subspaces
and
are either identical, or their intersection forms a line. In the former case, both
. In the latter case, only
, where vectors
and
are on the line of the intersection
and have the same direction. The angle
will be the angle between the subspaces
and
in the
orthogonal complement
In the mathematical fields of linear algebra and functional analysis, the orthogonal complement of a subspace W of a vector space V equipped with a bilinear form B is the set W^\perp of all vectors in V that are orthogonal to every vector in W. I ...
to
. Imagining the angle between two planes in 3D, one intuitively thinks of the largest angle,
.
Algebraic example
In 4-dimensional real coordinate space R
4, let the two-dimensional subspace
be
spanned by
and
, and let the two-dimensional subspace
be
spanned by
and
with some real
and
such that
. Then
and
are, in fact, the pair of principal vectors corresponding to the angle
with
, and
and
are the principal vectors corresponding to the angle
with
To construct a pair of subspaces with any given set of
angles
in a
(or larger) dimensional
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 ...
, take a subspace
with an orthonormal basis
and complete it to an orthonormal basis
of the Euclidean space, where
. Then, an orthonormal basis of the other subspace
is, e.g.,
:
Basic properties
* If the largest angle is zero, one subspace is a subset of the other.
* If the largest angle is
, there is at least one vector in one subspace perpendicular to the other subspace.
* If the smallest angle is zero, the subspaces intersect at least in a line.
* If the smallest angle is
, the subspaces are orthogonal.
* The number of angles equal to zero is the dimension of the space where the two subspaces intersect.
Advanced properties
* Non-trivial (different from
and
) angles between two subspaces are the same as the non-trivial angles between their orthogonal complements.
* Non-trivial angles between the subspaces
and
and the corresponding non-trivial angles between the subspaces
and
sum up to
.
* The angles between subspaces satisfy the
triangle inequality
In mathematics, the triangle inequality states that for any triangle, the sum of the lengths of any two sides must be greater than or equal to the length of the remaining side.
This statement permits the inclusion of Degeneracy (mathematics)#T ...
in terms of
majorization and thus can be used to define a
distance
Distance is a numerical or occasionally qualitative measurement of how far apart objects, points, people, or ideas are. In physics or everyday usage, distance may refer to a physical length or an estimation based on other criteria (e.g. "two co ...
on the set of all subspaces turning the set into a
metric space
In mathematics, a metric space is a Set (mathematics), set together with a notion of ''distance'' between its Element (mathematics), elements, usually called point (geometry), points. The distance is measured by a function (mathematics), functi ...
.
* The
sine
In mathematics, sine and cosine are trigonometric functions of an angle. The sine and cosine of an acute angle are defined in the context of a right triangle: for the specified angle, its sine is the ratio of the length of the side opposite th ...
of the angles between subspaces satisfy the
triangle inequality
In mathematics, the triangle inequality states that for any triangle, the sum of the lengths of any two sides must be greater than or equal to the length of the remaining side.
This statement permits the inclusion of Degeneracy (mathematics)#T ...
in terms of
majorization and thus can be used to define a
distance
Distance is a numerical or occasionally qualitative measurement of how far apart objects, points, people, or ideas are. In physics or everyday usage, distance may refer to a physical length or an estimation based on other criteria (e.g. "two co ...
on the set of all subspaces turning the set into a
metric space
In mathematics, a metric space is a Set (mathematics), set together with a notion of ''distance'' between its Element (mathematics), elements, usually called point (geometry), points. The distance is measured by a function (mathematics), functi ...
.
For example, the
sine
In mathematics, sine and cosine are trigonometric functions of an angle. The sine and cosine of an acute angle are defined in the context of a right triangle: for the specified angle, its sine is the ratio of the length of the side opposite th ...
of the largest angle is known as a
gap between subspaces.
Extensions
The notion of the angles and some of the variational properties can be naturally extended to arbitrary
inner products and subspaces with infinite
dimensions.
Computation
Historically, the principal angles and vectors first appear in the context of
canonical correlation
In statistics, canonical-correlation analysis (CCA), also called canonical variates analysis, is a way of inferring information from cross-covariance matrices. If we have two vectors ''X'' = (''X''1, ..., ''X'n'') and ''Y'' ...
and were
originally computed using
SVD of corresponding
covariance
In probability theory and statistics, covariance is a measure of the joint variability of two random variables.
The sign of the covariance, therefore, shows the tendency in the linear relationship between the variables. If greater values of one ...
matrices. However, as first noticed in,
the
canonical correlation
In statistics, canonical-correlation analysis (CCA), also called canonical variates analysis, is a way of inferring information from cross-covariance matrices. If we have two vectors ''X'' = (''X''1, ..., ''X'n'') and ''Y'' ...
is related to the
cosine
In mathematics, sine and cosine are trigonometric functions of an angle. The sine and cosine of an acute angle are defined in the context of a right triangle: for the specified angle, its sine is the ratio of the length of the side opposite that ...
of the principal angles, which is
ill-conditioned
In numerical analysis, the condition number of a function measures how much the output value of the function can change for a small change in the input argument. This is used to measure how sensitive a function is to changes or errors in the inpu ...
for small angles, leading to very inaccurate computation of highly correlated principal vectors in finite
precision computer arithmetic. The
sine
In mathematics, sine and cosine are trigonometric functions of an angle. The sine and cosine of an acute angle are defined in the context of a right triangle: for the specified angle, its sine is the ratio of the length of the side opposite th ...
-based algorithm
fixes this issue, but creates a new problem of very inaccurate computation of highly uncorrelated principal vectors, since the
sine
In mathematics, sine and cosine are trigonometric functions of an angle. The sine and cosine of an acute angle are defined in the context of a right triangle: for the specified angle, its sine is the ratio of the length of the side opposite th ...
function is
ill-conditioned
In numerical analysis, the condition number of a function measures how much the output value of the function can change for a small change in the input argument. This is used to measure how sensitive a function is to changes or errors in the inpu ...
for angles close to /2. To produce accurate principal vectors in
computer arithmetic for the full range of the principal angles, the combined technique
first compute all principal angles and vectors using the classical
cosine
In mathematics, sine and cosine are trigonometric functions of an angle. The sine and cosine of an acute angle are defined in the context of a right triangle: for the specified angle, its sine is the ratio of the length of the side opposite that ...
-based approach, and then recomputes the principal angles smaller than /4 and the corresponding principal vectors using the
sine
In mathematics, sine and cosine are trigonometric functions of an angle. The sine and cosine of an acute angle are defined in the context of a right triangle: for the specified angle, its sine is the ratio of the length of the side opposite th ...
-based approach.
The combined technique
is implemented in
open-source
Open source is source code that is made freely available for possible modification and redistribution. Products include permission to use and view the source code, design documents, or content of the product. The open source model is a decentrali ...
libraries
Octave
In music, an octave (: eighth) or perfect octave (sometimes called the diapason) is an interval between two notes, one having twice the frequency of vibration of the other. The octave relationship is a natural phenomenon that has been referr ...
and
SciPy
SciPy (pronounced "sigh pie") is a free and open-source Python library used for scientific computing and technical computing.
SciPy contains modules for optimization, linear algebra, integration, interpolation, special functions, fast Fourier ...
and contributed and
MATLAB FileExchange function subspacea
/ref> to MATLAB
MATLAB (an abbreviation of "MATrix LABoratory") is a proprietary multi-paradigm programming language and numeric computing environment developed by MathWorks. MATLAB allows matrix manipulations, plotting of functions and data, implementat ...
.
See also
*Singular value decomposition
In linear algebra, the singular value decomposition (SVD) is a Matrix decomposition, factorization of a real number, real or complex number, complex matrix (mathematics), matrix into a rotation, followed by a rescaling followed by another rota ...
*Canonical correlation
In statistics, canonical-correlation analysis (CCA), also called canonical variates analysis, is a way of inferring information from cross-covariance matrices. If we have two vectors ''X'' = (''X''1, ..., ''X'n'') and ''Y'' ...
References
[
]
[{{Citation
, last = Kato
, first =D.T.
, publisher = Springer, New York
, title = Perturbation Theory for Linear Operators
, year = 1996
]
Analytic geometry
Linear algebra
Angle