Transwiki:Introduction to metrics, norms and inner products

From Wikibooks, open books for an open world
Jump to navigation Jump to search

The following article is an introductory tutorial to inner products, norms and metrics. It is geared towards giving more insight on these topics by the use of common examples that can easily be related to the topics. At first glance, the topics will seem intricate, but after careful derivations and analysis, they will seem less so.

In addition to the analysis of the topics, this article will focus on the applications and various relationships between the inner product, norm and metric. The validation of the examples of inner products, norms and metrics will be done by using the various properties that will be described in detail in the article.

Metrics[edit source]

Definition[edit source]

A metric, also known as a distance function, is a function on a set X that returns a value which is an element of the real numbers. Consider a metric d on X; it can be defined as a function acting on X whose result is in the reals as follows:

Properties[edit source]

Metrics have three properties that they must all satisfy. They are as follows:

1. . The metric function will be equal to 0 if and only if x = y
2.
3.

Application[edit source]

Consider a metric d in a discrete metric space defined as follows:

The proof that d is a metric will be done as follows:

Property 1 (Metric) and Property 2 (Metric):

It is clear to see that d(x,y) is always greater than or equal to zero and equal to zero when x = y. Property 2 is satisfied because d(x,y) = d(y,x) at all times.

Property 3 (Metric):

Given x, y, and z in the discrete metric space, and supposing that d(x,z) = 0, the following will hold:

Now, suppose d(x,z) = 1, y must be equal to either x or z or neither x nor z. Since x and z are not equal to each other, y cannot be equal to both x and z because that will mean that x and z are equal; which contradicts d(x,z) = 1. From these reasons, the following truth table can be derived:

Norms[edit source]

Definition[edit source]

A norm on a vector space V over the real numbers or the complex numbers is a real-valued function, denoted as:

Properties[edit source]

A norm must have the following properties satisfied:

1.
2.
3.

Norms are often associated with assigning a length to vectors in a vector space.

There is a relation between the norm and the metric in that a metric can be defined in terms of a norm. If there is a function d such that , then d is a valid metric. The reverse of the statement does not hold meaning that a metric is not always a norm. The statement reads similar to: “The distance between v and w is equal to the length of the difference of v and w”.

Application[edit source]

Suppose that the Euclidean metric d(x,y) is defined as , then it can be shown that Property 3 of the metric, , will be satisfied. The proof of the property is as follows:

Inner products[edit source]

Definition[edit source]

An inner product on a vector space V over the field of real numbers or complex numbers is a function .

Properties[edit source]

The following properties for an inner product must hold for :

1.
2.
3.
4.

Application[edit source]

A common inner product is the dot product or the standard inner product. A dot product over on and is defined as follows:

The proof that the dot product is an inner product will be done as follows using , , over and .

Property 1

Property 2

Property 3

The proof of this property will introduce the term, Hermitian, which means the transpose-conjugate. This means for a vector v.

Property 4

For , , and , which is a real number greater than or equal to 0. For , which is also real number greater than or equal to 0. The dot product will equal zero if .

Since all four properties are satisfied for the inner product, the dot product is thus a valid inner product.