HOME

TheInfoList



OR:

The concept of
angle In Euclidean geometry, an angle is the figure formed by two rays, called the '' sides'' of the angle, sharing a common endpoint, called the ''vertex'' of the angle. Angles formed by two rays lie in the plane that contains the rays. Angles a ...
s between
line Line most often refers to: * Line (geometry), object with zero thickness and curvature that stretches to infinity * Telephone line, a single-user circuit on a telephone communication system Line, lines, The Line, or LINE may also refer to: Art ...
s in the
plane Plane(s) most often refers to: * Aero- or airplane, a powered, fixed-wing aircraft * Plane (geometry), a flat, 2-dimensional surface Plane or planes may also refer to: Biology * Plane (tree) or ''Platanus'', wetland native plant * ''Planes' ...
and between pairs of two lines, two planes or a line and a plane in
space Space is the boundless three-dimensional extent in which objects and events have relative position and direction. In classical physics, physical space is often conceived in three linear dimensions, although modern physicists usually consider ...
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 coordin ...
. This generalization was first discussed by
Jordan Jordan ( ar, الأردن; tr. ' ), officially the Hashemite Kingdom of Jordan,; tr. ' is a country in Western Asia. It is situated at the crossroads of Asia, Africa, and Europe, within the Levant region, on the East Bank of the Jordan Rive ...
. For any pair of flats in a
Euclidean space Euclidean space is the fundamental space of geometry, intended to represent physical space. Originally, that is, in Euclid's ''Elements'', it was the three-dimensional space of Euclidean geometry, but in modern mathematics there are Euclidean s ...
of arbitrary dimension one can define a set of mutual angles which are
invariant Invariant and invariance may refer to: Computer science * Invariant (computer science), an expression whose value doesn't change during program execution ** Loop invariant, a property of a program loop that is true before (and after) each iterat ...
under
isometric The term ''isometric'' comes from the Greek for "having equal measurement". isometric may mean: * Cubic crystal system, also called isometric crystal system * Isometre, a rhythmic technique in music. * "Isometric (Intro)", a song by Madeon from ...
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 or points are. In physics or everyday usage, distance may refer to a physical length or an estimation based on other criteria (e.g. "two counties over"). ...
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, often ...
over the complex numbers.


Jordan's definition

Let F and G be flats of dimensions k and l in the n-dimensional Euclidean space E^n. By definition, a
translation Translation is the communication of the Meaning (linguistic), 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 ...
of F or G does not alter their mutual angles. If F and G do not intersect, they will do so upon any translation of G which maps some point in G to some point in F. It can therefore be assumed without loss of generality that F and G intersect. Jordan shows that
Cartesian coordinates A Cartesian coordinate system (, ) in a plane is a coordinate system that specifies each point uniquely by a pair of numerical coordinates, which are the signed distances to the point from two fixed perpendicular oriented lines, measured in ...
x_1,\dots,x_\rho, y_1,\dots,y_\sigma, z_1,\dots,z_\tau, u_1,\dots,u_\upsilon, v_1,\dots,v_\alpha, w_1,\dots,w_\alpha in E^n can then be defined such that F and G are described, respectively, by the sets of equations : x_1=0,\dots,x_\rho=0, : u_1=0,\dots,u_\upsilon=0, : v_1=0,\dots,v_\alpha=0 and : x_1=0,\dots,x_\rho=0, : z_1=0,\dots,z_\tau=0, : v_1\cos\theta_1+w_1\sin\theta_1=0,\dots,v_\alpha\cos\theta_\alpha+w_\alpha\sin\theta_\alpha=0 with 0<\theta_i<\pi/2,i=1,\dots,\alpha. Jordan calls these coordinates canonical. By definition, the angles \theta_i are the angles between F and G. The non-negative integers \rho,\sigma,\tau,\upsilon,\alpha are constrained by : \rho+\sigma+\tau+\upsilon+2\alpha=n, : \sigma+\tau+\alpha=k, : \sigma+\upsilon+\alpha=\ell. For these equations to determine the five non-negative integers completely, besides the dimensions n,k and \ell and the number \alpha of angles \theta_i, the non-negative integer \sigma must be given. This is the number of coordinates y_i, whose corresponding axes are those lying entirely within both F and G. The integer \sigma is thus the dimension of F\cap G. The set of angles \theta_i may be supplemented with \sigma angles 0 to indicate that F\cap G has that dimension. Jordan's proof applies essentially unaltered when E^n is replaced with the n-dimensional inner product space \mathbb C^n over the complex numbers. (For angles between subspaces, the generalization to \mathbb C^n is discussed by Galántai and Hegedũs in terms of the below variational characterization.)


Angles between subspaces

Now let F and G be subspaces of the n-dimensional inner product space over the
real Real may refer to: Currencies * Brazilian real (R$) * Central American Republic real * Mexican real * Portuguese real * Spanish real * Spanish colonial real Music Albums * ''Real'' (L'Arc-en-Ciel album) (2000) * ''Real'' (Bright album) (2010) ...
or complex numbers. Geometrically, F and G are flats, so Jordan's definition of mutual angles applies. When for any canonical coordinate \xi the symbol \hat\xi denotes the
unit vector In mathematics, a unit vector in a normed vector space is a vector (often a spatial vector) of length 1. A unit vector is often denoted by a lowercase letter with a circumflex, or "hat", as in \hat (pronounced "v-hat"). The term ''direction vec ...
of the \xi axis, the vectors \hat y_1,\dots,\hat y_\sigma, \hat w_1,\dots,\hat w_\alpha, \hat z_1,\dots,\hat z_\tau form an
orthonormal In linear algebra, two vectors in an inner product space are orthonormal if they are orthogonal (or perpendicular along a line) unit vectors. A set of vectors form an orthonormal set if all vectors in the set are mutually orthogonal and all of uni ...
basis Basis may refer to: Finance and accounting *Adjusted basis, the net cost of an asset after adjusting for various tax-related items *Basis point, 0.01%, often used in the context of interest rates *Basis trading, a trading strategy consisting of ...
for F and the vectors \hat y_1,\dots,\hat y_\sigma, \hat w'_1,\dots,\hat w'_\alpha, \hat u_1,\dots,\hat u_\upsilon form an orthonormal basis for G, where :\hat w'_i=\hat w_i\cos\theta_i+\hat v_i\sin\theta_i,\quad i=1,\dots,\alpha. Being related to canonical coordinates, these basic vectors may be called canonical. When a_i,i=1,\dots,k denote the canonical basic vectors for F and b_i,i=1,\dots,l the canonical basic vectors for G then the inner product \langle a_i,b_j\rangle vanishes for any pair of i and j except the following ones. : \begin & \langle\hat y_i,\hat y_i\rangle=1, & & i=1,\dots,\sigma, \\ & \langle\hat w_i,\hat w'_i\rangle=\cos\theta_i, & & i=1,\dots,\alpha. \end With the above ordering of the basic vectors, the
matrix Matrix most commonly refers to: * ''The Matrix'' (franchise), an American media franchise ** ''The Matrix'', a 1999 science-fiction action film ** "The Matrix", a fictional setting, a virtual reality environment, within ''The Matrix'' (franchis ...
of the inner products \langle a_i,b_j\rangle 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 (a'_i,i=1,\dots,k) and (b'_i,i=1,\dots,\ell) are arbitrary orthonormal bases in F and G 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 semigrou ...
transformations from the basis (a'_i) to the basis (a_i) and from the basis (b'_i) to the basis (b_i) realize a
singular value decomposition In linear algebra, the singular value decomposition (SVD) is a factorization of a real or complex matrix. It generalizes the eigendecomposition of a square normal matrix with an orthonormal eigenbasis to any \ m \times n\ matrix. It is related ...
of the matrix of inner products \langle a'_i,b'_j\rangle. The diagonal matrix elements \langle a_i,b_i\rangle are the singular values of the latter matrix. By the uniqueness of the singular value decomposition, the vectors \hat y_i are then unique up to a real, orthogonal or unitary transformation among them, and the vectors \hat w_i and \hat w'_i (and hence \hat v_i) are unique up to equal real, orthogonal or unitary transformations applied simultaneously to the sets of the vectors \hat w_i associated with a common value of \theta_i and to the corresponding sets of vectors \hat w'_i (and hence to the corresponding sets of \hat v_i). A singular value 1 can be interpreted as \cos\,0 corresponding to the angles 0 introduced above and associated with F\cap G and a singular value 0 can be interpreted as \cos \pi/2 corresponding to right angles between the
orthogonal In mathematics, orthogonality is the generalization of the geometric notion of ''perpendicularity''. By extension, orthogonality is also used to refer to the separation of specific features of a system. The term also has specialized meanings in ...
spaces F\cap G^\bot and F^\bot\cap G, where superscript \bot 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''⊥ of all vectors in ''V'' that are orthogonal to every ...
.


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 0 and \pi/2 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 V be an inner product space. Given two subspaces \mathcal,\mathcal with \dim(\mathcal)=k\leq \dim(\mathcal):=\ell, there exists then a sequence of k angles 0 \le \theta_1 \le \theta_2 \le \cdots \le \theta_k \le \pi/2 called the principal angles, the first one defined as : \theta_1:=\min \left\=\angle(u_1,w_1), where \langle \cdot , \cdot \rangle 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, often ...
and \, \cdot\, the induced
norm Naturally occurring radioactive materials (NORM) and technologically enhanced naturally occurring radioactive materials (TENORM) consist of materials, usually industrial wastes or by-products enriched with radioactive elements found in the envi ...
. The vectors u_1 and w_1 are the corresponding ''principal vectors.'' The other principal angles and vectors are then defined recursively via : \theta_i:=\min \left\. This means that the principal angles (\theta_1,\ldots, \theta_k) 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 \mathcal and \mathcal 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, that is, in Euclid's ''Elements'', it was the three-dimensional space of Euclidean geometry, but in modern mathematics there are Euclidean s ...
, the subspaces \mathcal and \mathcal are either identical, or their intersection forms a line. In the former case, both \theta_1=\theta_2=0. In the latter case, only \theta_1=0, where vectors u_1 and w_1 are on the line of the intersection \mathcal\cap\mathcal and have the same direction. The angle \theta_2>0 will be the angle between the subspaces \mathcal and \mathcal 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''⊥ of all vectors in ''V'' that are orthogonal to every ...
to \mathcal\cap\mathcal. Imagining the angle between two planes in 3D, one intuitively thinks of the largest angle, \theta_2>0.


Algebraic example

In 4-dimensional real coordinate space R4, let the two-dimensional subspace \mathcal be spanned by u_1=(1,0,0,0) and u_2=(0,1,0,0), and let the two-dimensional subspace \mathcal be spanned by w_1=(1,0,0,a)/\sqrt and w_2=(0,1,b,0)/\sqrt with some real a and b such that , a, <, b, . Then u_1 and w_1 are, in fact, the pair of principal vectors corresponding to the angle \theta_1 with \cos(\theta_1)=1/\sqrt, and u_2 and w_2 are the principal vectors corresponding to the angle \theta_2 with \cos(\theta_2)=1/\sqrt. To construct a pair of subspaces with any given set of k angles \theta_1,\ldots,\theta_k in a 2k (or larger) dimensional
Euclidean space Euclidean space is the fundamental space of geometry, intended to represent physical space. Originally, that is, in Euclid's ''Elements'', it was the three-dimensional space of Euclidean geometry, but in modern mathematics there are Euclidean s ...
, take a subspace \mathcal with an orthonormal basis (e_1,\ldots,e_k) and complete it to an orthonormal basis (e_1,\ldots, e_n) of the Euclidean space, where n\geq 2k. Then, an orthonormal basis of the other subspace \mathcal is, e.g., : (\cos(\theta_1)e_1+\sin(\theta_1)e_,\ldots,\cos(\theta_k)e_k+\sin(\theta_k)e_).


Basic properties

* If the largest angle is zero, one subspace is a subset of the other. * If the largest angle is \pi/2, 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 \pi/2, 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 0 and \pi/2 ) angles between two subspaces are the same as the non-trivial angles between their orthogonal complements. * Non-trivial angles between the subspaces \mathcal and \mathcal and the corresponding non-trivial angles between the subspaces \mathcal and \mathcal^\perp sum up to \pi/2. * 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 degenerate triangles, bu ...
in terms of
majorization In mathematics, majorization is a preorder on vectors of real numbers. Let ^_,\ i=1,\,\ldots,\,n denote the i-th largest element of the vector \mathbf\in\mathbb^n. Given \mathbf,\ \mathbf \in \mathbb^n, we say that \mathbf weakly majorizes (or do ...
and thus can be used to define a
distance Distance is a numerical or occasionally qualitative measurement of how far apart objects or points are. In physics or everyday usage, distance may refer to a physical length or an estimation based on other criteria (e.g. "two counties over"). ...
on the set of all subspaces turning the set into a
metric space In mathematics, a metric space is a set together with a notion of '' distance'' between its elements, usually called points. The distance is measured by a function called a metric or distance function. Metric spaces are the most general set ...
. * 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 that is op ...
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 degenerate triangles, bu ...
in terms of
majorization In mathematics, majorization is a preorder on vectors of real numbers. Let ^_,\ i=1,\,\ldots,\,n denote the i-th largest element of the vector \mathbf\in\mathbb^n. Given \mathbf,\ \mathbf \in \mathbb^n, we say that \mathbf weakly majorizes (or do ...
and thus can be used to define a
distance Distance is a numerical or occasionally qualitative measurement of how far apart objects or points are. In physics or everyday usage, distance may refer to a physical length or an estimation based on other criteria (e.g. "two counties over"). ...
on the set of all subspaces turning the set into a
metric space In mathematics, a metric space is a set together with a notion of '' distance'' between its elements, usually called points. The distance is measured by a function called a metric or distance function. Metric spaces are the most general set ...
. 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 that is op ...
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 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, often ...
and subspaces with infinite
dimensions 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 coordin ...
.


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. If the greater values of one variable mainly correspond with the greater values of the other variable, and the same holds for the les ...
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 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 input ...
for small angles, leading to very inaccurate computation of highly correlated principal vectors in finite
precision Precision, precise or precisely may refer to: Science, and technology, and mathematics Mathematics and computing (general) * Accuracy and precision, measurement deviation from true value and its scatter * Significant figures, the number of digit ...
computer arithmetic In computing, an arithmetic logic unit (ALU) is a combinational digital circuit that performs arithmetic and bitwise operations on integer binary numbers. This is in contrast to a floating-point unit (FPU), which operates on floating point num ...
. 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 that is op ...
-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 that is op ...
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 input ...
for angles close to /2. To produce accurate principal vectors in
computer arithmetic In computing, an arithmetic logic unit (ALU) is a combinational digital circuit that performs arithmetic and bitwise operations on integer binary numbers. This is in contrast to a floating-point unit (FPU), which operates on floating point num ...
for the full range of the principal angles, the combined technique first compute all principal angles and vectors using the classical cosine-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 that is op ...
-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 the source code, design documents, or content of the product. The open-source model is a decentralized sof ...
libraries Octave 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, FFT, signal ...
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, implementatio ...
.


See also

*
Singular value decomposition In linear algebra, the singular value decomposition (SVD) is a factorization of a real or complex matrix. It generalizes the eigendecomposition of a square normal matrix with an orthonormal eigenbasis to any \ m \times n\ matrix. It is related ...
*
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