๐Ÿ“œ โฌ†๏ธ โฌ‡๏ธ

Data geometry 3. Scalar product of pairs

The distance invariant (squared distance) between elements can be generalized by multiplying the difference of elements not by itself, but by another difference of elements. The resulting value will reflect the scalar product of ordered pairs .




Ordered pair


The coordinates of the vector can be obtained as the difference of the coordinates of the elements, but the reverse is not true - the coordinates of the elements forming it cannot be reconstructed from the coordinates of the vector. The coordinates of the two elements carry more information than the coordinates of the vector. Therefore, one can form a pair of elements - an improved analogue of the vector. Such a set of two elements is called an ordered pair .

Each ordered pair can be mapped a vector - the difference of the elements forming a pair. For two vectors, you can define the scalar product, which can also be considered as a characteristic of the four elements of space.
')

Scalar product


To reduce bulkiness in this part, we denote elements by lowercase characters. A pair is a combination of two elements: (i,j). The vector corresponding to the pair is the difference of the elements of the pair:

 mathbfvij=jโˆ’i quad(3.1)

The element rate is its scalar product with itself:

ni=i cdoti quad(3.2)

The same definition can be used for the vector of a pair, which is known to reflect the square of the distance between the elements of the pair:

qij equivnij=(jโˆ’i) cdot(jโˆ’i) quad(3.3)

If two different pairs are given (i,j)and (k,l)then the scalar product can be defined between the corresponding vectors:

gij,kl=(jโˆ’i) cdot(lโˆ’k)= mathbfvij cdot mathbfvkl quad(3.4)

Indices ijask one pair, and indexes kl- another.

Expression (3.4) defines a scalar depending on the relative position of the 4 elements. It is important that this scalar can be expressed in terms of the distances between the elements. qij.

As is known, the distance between the elements is associated with the scalar product between them:

qij=niโˆ’2gij+nj quad(3.5).

Expanding the product (3.4) with (3.5) taken into account, we obtain:

gij,kl=(qil+qjkโˆ’qikโˆ’qjl)/2 quad(3.6)

This is the general formula for the scalar product of pairs. The order of the indices is important - it sets the pairs and the direction of the corresponding vectors.

Expressions like (3.6) often appear in different places in mathematics. This is due to the generality of the output of this formula. Note that we used only the most general properties of an algebraic expression. Therefore, any elements for which the product operation is defined can be used as elements. The identity will be true for them, in general form, it looks like this:

(Aโˆ’B) cdot(Cโˆ’D)=((Aโˆ’D)2+(Bโˆ’C)2โˆ’(Aโˆ’C)2โˆ’(Bโˆ’D)2)/2 quad(3.6.1)

Couples with a common vertex - adjacent pairs


If couples have a common vertex (k equivl), the formula (3.6) is simplified:

gki,kj=(qik+qjkโˆ’qij)/2 quad(3.7)


Formula (3.7) is the cosine theorem for a triangle. Here the pairs between which the mutual norm is defined have a common element k - adjacent pairs.

Three scalar products can be defined on 3 vertices. Their sum is expressed in terms of the sum of the distances between the vertices:

gki,kj+gik,ij+gji,jk=(qjk+qik+qij)/2 quad(3.8.1)

The square of the scalar product on 3 vertices is related to the area of โ€‹โ€‹the triangle formed by them sijk(Heron's formula):

4sijk2=qikqjkโˆ’(gik,jk)2 quad(3.8.2)

Independent pairs - four different peaks


In the general case, the vertices of the pairs may not lie in the same plane, therefore, this definition of the scalar product cannot always be associated with the cosine of the angle between the directions.

We list the properties of the scalar product (3.6).

1) Does not depend on the permutation of pairs:

gij,kl=gkl,ij quad(3.9.1)

2) Antisymmetric with respect to permutation of elements in a pair ijor kl:

gij,kl=โˆ’gji,kl=โˆ’gij,lk quad(3.9.2)

3) For 4 elements there are only two independent scalar products of pairs due to the identity:

gij,kl+gik,lj+gil,jk=0 quad(3.9.3)

Mathematicians will see in formula (3.9.3) the first Bianchi identity . From which it can be concluded that the structures of the curvature tensor (Riemann) and the scalar product of pairs are similar.

4) The rate of independent pairs can be expressed in terms of the difference between the rates of adjacent pairs:

gij,kl=gij,ilโˆ’gij,ik quad(3.9.4)

We will use this identity in the next article.

5) Distance between elements iand jcan be expressed in terms of the scalar products of adjacent and independent pairs:

qij=gij,ikโˆ’gij,jk=gil,ik+gjl,jkโˆ’gil,jkโˆ’gjl,ik quad(3.9.5)

Pairs on the basis elements


As the elements forming a pair, the vertices of the base can be chosen. Then the scalar product of pairs becomes a tensor - a set of scalar products between all possible pairs of elements of a given basis. To distinguish tensors from scalars, we will use capital letters for the first ones. That is, instead of a scalar gij,klfor the basis elements, we obtain the tensor Gij,kl.

Scalar Product and Laplacian Cofactors


The scalar product of pairs formed by elements of the basis can be expressed in terms of the properties of the Laplacian of the basis.

If two pairs of vertices are given (i,j)and (k,l), the value of their scalar product can be obtained by dividing the cofactor of the 2nd order Uij,kl(L)on the scalar potential of the laplacian u(L):

Gij,kl=Uij,kl(L)/u(L) quad(3.10.1)

Cofactor Uij,klis called the determinant of the minor of a square matrix (taking into account the sign). Scalar potential u(L)- this is a cofactor of the 1st order from the Laplacian (see (1.12) from the first article ).

Thus, it is necessary to remove the columns corresponding to one vector from the Laplacian matrix (in the formula, this i,jth columns), and rows corresponding to another ( k,l), after which the determinant of the resulting minor is divided by the scalar potential u(L)=detโ€ฒ(L). If the deleted columns and rows of the Laplacian are the same, then we obtain the value of the distance between the nodes.

Dot scalar product on a graph


Between any pairs of vertices of the graph, you can define their mutual norm - the scalar product. Since the graph is usually given by the Laplacian, the formula (3.10.1) can be used for the calculation.



Let, for example, be chosen as the generating vertices of two pairs - A,Band M,N. Then the scalar product between these pairs is given by formula (3.6):

GAB,MN=(QAN+QBMโˆ’QAMโˆ’QBN)/2

For a graph, which is an electrical circuit, the value of the scalar product reflects the concept of generalized resistance in an electrical circuit. To measure this (โ€œapparentโ€) resistance, the current source (voltage) is applied to one node ( A and B ), and the potential difference is measured between the other ( M and N ). The mutual norm (scalar product) of pairs is equal to zero, if the external potential difference does not lead to the potential difference on the measured pair.

The graph does not have to be discrete, - the soil is an example of a solid (continuous) graph on which you can measure the scalar product between selected elements.


Installation scheme for the study of the resistance method: A and B - supply grounding; M and N - measuring grounding; 1 - measuring device (from the book "Electrical Prospecting", Yakubovsky Yu. B., M., 1980).

The figure shows the measurement scheme for the scalar product of pairs. (A,B)and (M,N)on the ground.

In the next article we will examine in more detail why the ratio of the given and measured potential differences of the nodes turned out to be associated with the scalar product of pairs.

The appeal of the minor laplacian


A submatrix of values โ€‹โ€‹of mutual norms (scalar products) of pairs can be obtained by inverting the minor of the Laplacian. Denote the Laplacian from which removed arow and bth column as Li(a),j(b). Then the identity holds:

Gjb,ia=(Li(a),j(b))โˆ’1 quad(3.10.2)

Note that in the matrix Gjb,iaabsent brow and ath column.

If the matrix of scalar products of pairs is known Gjb,ia, then you can restore the distance matrix Qijbased on distance conversion. First we expand the submatrix Gjb,iamissing line band column awith zero values. Apply distance conversion to the resulting matrix:

Distij(X)=Xii+Xjjโˆ’Xijโˆ’Xji

which in our case takes the form of the identity (3.9.5):

Qij=Gib,ia+Gjb,jaโˆ’Gib,jaโˆ’Gjb,ia quad(3.10.3)

The combination of formulas (3.10.2) and (3.10.3) is one of the ways to get the distance matrix for a given Laplacian. Remove any of the nodes from the Laplacian (let a) and pay. Get the matrix of scalar products of pairs Gia,ja(its other name is the fundamental matrix, see the next part). Index value afixed - base vertex. In the matrix Gia,jathe first vertex of the pairs is in the base node a, and the second runs through the remaining vertices of the base.

Next, apply to the matrix Gia,jadistance conversion (3.10.3).

Square dot product, Jacobi matrix


If in the graph to change the value of the conductivity of the edge (element of Laplacian), then it is obvious that all distances between the vertices will change (the norms of vectors) Qij. With an increase in conductivity, the distances should decrease (decrease). The gift of the gods is that it is possible to estimate the change in distances not only qualitatively, but also quantitatively. Denote the derivative of the laplacian distance matrix as

Yij,kl= partialQij/ partialLkl quad(3.11.1)

Tensor Yij,klIs the Jacobi matrix , that is, the expression of changes in the values โ€‹โ€‹of the distance matrix Qijwhen changing the values โ€‹โ€‹of the laplacian Lkl. It turns out that this tensor is expressed in terms of the square of the scalar product of pairs:

Yij,kl=(Gij,kl)2=(Qil+Qjkโˆ’Qikโˆ’Qjl)2/4 quad(3.11.2)

That is, the change in the magnitude of the connection nodes i,jleads to a change in the distance between the nodes k,lproportional to the scalar product of pairs (i,j)and (l,k).

Vertex quadroconnection tensor


Scalar product square tensor Yij,klreversible. Imagine expression (3.11) in the following equivalent form:

 partialQij=Yij,kl space partialLkl quad(3.11.3)

This formula can be interpreted as a response.  partialQijon impact  partialLkl. Tensor Yij,klplays the role of transfer function (reaction to exposure).

It is also possible to reverse the situation in which the impact and response change places. Forward and reverse Yij,kltransfer functions are related by:

Yij,klYkl,mn= deltaijmn quad(3.12)

Good luck again - tensor Yij,klcan be expressed through the Laplacian:

Yij,kl= partialLij/ partialQkl=(LilLjk+LikLjl)/2 quad(3.13)

Tensor values Yij,klwe call quadratic connectivity .

Quadjunction Tensor Properties


The values โ€‹โ€‹of the tensor are determined by the values โ€‹โ€‹of the Laplacian for 4 vertices. We consider these vertices as vertices of the graph. Suppose that all 4 vertices are different:

Here vectors denote pairs of vertices, between which quadratic connectivity is assumed. Couples have a non-zero quadroherence only when their vertices are pairwise connected (the necessary connections are shown in the figure in the same color). If all the connections in the graph are positive, then the quadratic connectivity between different vertices is also always greater or equal to zero.

If the pairs have a common vertex, then the sense of quad-connectivity changes. This is due to the fact that the diagonal elements of the Laplacian are not zero (as in the distance matrix), but reflect the common connectivity (conductivity) of the node.

Yki,kj=(LkiLkj+LkkLij)/2 quad(3.13.1)


Pairs of vertices may coincide - the diagonal elements of the quadratic connected tensor.

Yij=Qij,ij=(LiiLjj+(Lij)2)/2 quad(3.13.2)

Here Yijcharacterizes the connection of two nodes i and j . It is considered as the sum of the product of their total conductivity (degree of the top) LiiLjjand square connection between nodes (Lij)2.

Although it is formal for the tensor Yij,klelements of the form can be calculated Yij,ll(one of the pairs is degenerate), the given (degenerate) elements are linearly dependent on the others. Can be calculated through the sum of the tensor for one of the indices of the pair:

Yij,ll=โˆ’Yij,kl1k quad(3.13.3)

___
Let's sum up. The concept of scalar product of pairs of elements that is useful in all respects is considered. In the next article we will work with the subspace of the graph - what it is and what its properties are.

Source: https://habr.com/ru/post/338762/


All Articles