Ripetizioni di AnalisiLinear algebraUnlockedITSearch

Theory

Scalar product, orthogonality and the spectral theorem

The standard scalar product, norm and angles, orthonormal bases, orthogonal projections with the Gram-Schmidt process, orthogonal matrices and the orthogonal diagonalization of symmetric matrices.

On this page
  1. Standard scalar product and norm
  2. Cauchy-Schwarz inequality and angle between vectors

Standard scalar product and norm

1. Standard scalar product

Given and in , the standard scalar product of and is the real number

also denoted by . Writing the vectors as columns one gets , that is, the row-by-column product of the row by the column ; this is the form used in computations with matrices. For and one obtains . In and in the definition coincides with the scalar product of geometric vectors, for which we refer to the topic on vectors in the plane and in space.

2. Properties of the scalar product

For every and every the following hold:

  • symmetry: ;
  • bilinearity: , and likewise in the second argument;
  • positive definiteness: , with equality only if .

The three properties follow directly from the definition, because the scalar product is a sum of products of components. Bilinearity makes it possible to expand products as in algebra: for example .

Scalar products on a vector space

On any real vector space , a scalar product is any function that is symmetric, bilinear and positive definite. An example on is , which is the sum of the products of the entries in the same position. The definitions and theorems of this topic use only the three properties, therefore they hold for every scalar product; in exam exercises the scalar product is almost always the standard one on .

3. Norm and distance

The norm of is the number

and the distance between and is . By positive definiteness the norm is zero only for the zero vector; from bilinearity it follows that . A vector of norm is called a unit vector: if , the vector is a unit vector with the same direction and the same orientation as , and passing from to its unit vector is called normalization. For one has , therefore the unit vector is .

Cauchy-Schwarz inequality and angle between vectors

1. Cauchy-Schwarz inequality

For every

and equality holds if and only if and are linearly dependent. The inequality guarantees that, for nonzero and , the quotient lies in , and the definition of angle in is based on this fact.

Proof

If both sides are zero and the vectors are dependent. Let . For every , positive definiteness and bilinearity give

The right-hand side is a polynomial of degree two in with positive leading coefficient that takes no negative values, therefore its discriminant is less than or equal to zero:

that is, , from which the statement follows by taking the square root. The discriminant is zero if and only if the polynomial has a root , that is, if and only if ; by positive definiteness this is equivalent to , that is, to the linear dependence of and .

2. Triangle inequality

For every one has . In terms of distances, for every : in a triangle each side is less than or equal to the sum of the other two.

Proof

Expanding with bilinearity and applying the Cauchy-Schwarz inequality one obtains

and the statement follows by taking the square root, since both sides are nonnegative.

3. Angle between two vectors

Let be nonzero. The angle between and is the unique such that

The definition makes sense for every thanks to the Cauchy-Schwarz inequality, and in and it gives back the geometric angle. The sign of the scalar product gives the type of angle: is acute if , right if , obtuse if . For and one gets , , , therefore and .

x y 12312 O θuv
The vectors and form the angle , since

The theory continues with 7 more sections (orthogonality and orthonormal bases, orthogonal projection, the gram schmidt process…), plus all worked examples, the solutions and the PDF.

Unlock now
Contents