Scalar product


The scalar product, also called dot product, is an operation between two vectors that produces a Scalar, hence the name. If the vectors are complex, it is also called the Hermitian product. It is denoted in a variety of ways: (v,w)(v,w), vwv\cdot w or vw\braket{ v | w } (in braket notation).

In finite-dimensional vector spaces, such as RN\mathbb{R}^{N} or CN\mathbb{C}^{N}, the scalar product is defined as a sum of products of the vector components. Let v,wv,w be two vectors in the space, then the scalar product between the two is

(v,w)i=0Nviwi(v,w)\equiv\sum\limits_{i=0}^{N}v_{i}^{*}w_{i}

where viv_{i} and wiw_{i} are the ii-th component of the vectors and the * symbol denotes the complex conjugate. If viv_{i} is real, it can safely be removed, as vi=viv_{i}^{*}=v_{i} for any real. It can also be expressed geometrically as

(v,w)vwcosθ(v,w)\equiv\lVert v \rVert \lVert w \rVert \cos\theta

where θ\theta is the angle between the two vectors and \lVert \cdot \rVert refers to the norm of a vector.

The scalar product of an element with itself satisfies all of the properties of a norm and is called the norm induced by the scalar product, and denoted as usual: (v,v)=v(v,v)=\lVert v \rVert.

The scalar product can also be defined on infinite-dimensional spaces, such as Hilbert spaces or L^p spaces, by converting sums to integrals. Then taking two functions f(x)f(x) and g(x)g(x) in such a space, the scalar product between them is

(f,g)+f(x)g(x) dx,(f,f)=+f(x)2 dx(f,g)\equiv\int_{-\infty}^{+\infty}f^{*}(x)g(x)\ dx,\qquad( f, f)=\int_{-\infty}^{+\infty}|f(x)|^{2}\ dx

Properties

The scalar product satisfies the following properties:

  1. It is linear in the right-hand member[^1]. Given α,βC\alpha,\beta \in \mathbb{C}, (v,αw+βz)=α(v,w)+β(v,z)( v, \alpha w + \beta z)=\alpha ( v, w)+\beta ( v, z).
  2. It is antilinear in the left-hand member, (αv+βw,z)=α(v,w)+β(v,z)( \alpha v + \beta w, z)=\alpha^{\ast} ( v, w)+\beta^{\ast} ( v, z). Over reals, it is linear in both members (also said to be bilinear).
  3. It is distributive, (v,w+u)=(v,w)+(v,z)( v, w+u)=( v, w)+( v, z).
  4. Commutation leads to the conjugate: (v,w)=(w,v)( v, w)=\overline{( w, v)}. Over reals, it is commutative.
  5. The product of an element with itself is always nonnegative, (v,v)0( v, v)\geq0.
  6. The product of an element with itself is zero only if and only if vv is zero, (v,v)=0v=0( v, v)=0\Leftrightarrow v=0.
  7. It satisfies the Cauchy-Schwarz inequality, (v,w)vw(v,w)\leq \lVert v \rVert\lVert w \rVert.
  8. It is a continuous operation, i.e. given a sequence {xn}\{x_{n}\} converging to xHx\in \mathcal{H} where H\mathcal{H} is a Hilbert space, it holds that for every yHy\in \mathcal{H} we have limn(y,xn)=(y,x)\lim\limits_{n \rightarrow \infty}(y,x_{n})=(y,x).

In basis expression

Consider the vectors v1\mathbf{v}_{1} and v2\mathbf{v}_{2} in some vector space VV equipped with a Basis {e1,,en}\{ \mathbf{e}_{1},\ldots,\mathbf{e}_{n} \}. They can be expressed as a Linear combination of basis vectors as v1=i=1nαiei\mathbf{v}_{1}=\sum_{i=1}^{n}\alpha_{i}\mathbf{e}_{i} and v2=j=1nβjej\mathbf{v}_{2}=\sum_{j=1}^{n}\beta_{j}\mathbf{e}_{j}, using suitable values αi\alpha_{i} and βi\beta_{i}. The scalar product between these two is

v1v2=(i=1nαiei)(j=1nβjej)=i=1nαiei(j=1nβjej)==i=1nαij=1nβj(eiej)=i=1nj=1nαiβjδij==i=1nαi(β1δi1++βnδin)βiδii=i=1nαiβi\begin{align} \mathbf{v}_{1}\cdot \mathbf{v}_{2}&=\left( \sum_{i=1}^{n} \alpha_{i}\mathbf{e}_{i} \right)\cdot\left( \sum_{j=1}^{n} \beta_{j}\mathbf{e}_{j} \right)=\sum_{i=1}^{n} \alpha_{i}\mathbf{e}_{i}\cdot\left( \sum_{j=1}^{n} \beta_{j}\mathbf{e}_{j} \right)= \\ &=\sum_{i=1}^{n} \alpha_{i}\sum_{j=1}^{n} \beta_{j}(\mathbf{e}_{i}\cdot \mathbf{e}_{j})=\sum_{i=1}^{n}\sum_{j=1}^{n} \alpha_{i}\beta_{j}\delta_{ij}= \\ &=\sum_{i=1}^{n} \alpha_{i}\underbrace{ (\beta_{1}\delta_{i1}+\ldots+\beta_{n}\delta_{in}) }_{ \beta_{i}\delta_{ii} }=\sum_{i=1}^{n} \alpha_{i}\beta_{i} \end{align}

using the Kronecker delta.


Su matrici

Il prodotto scalare può anche essere applicato su matrici. Prendiamo A^,B^M2(C)\hat{A},\hat{B}\in M_{2}(\mathbb{C}) matrici 2×22\times2. Considero la traccia della matrice Tr(A^)=i=1nAiiTr(\hat{A})=\sum\limits_{i=1}^{n}A_{ii}. E' importante notare che la traccia è unica e non cambia in base alla rappresentazione della matrice (ossia la base rispetto al quale è espressa):

TrA^=i=1nψiA^ψi    base o.n.{ψi}i=1nCnTr\hat{A}=\sum\limits_{i=1}^{n}\langle\psi_{i}|\hat{A}\psi_{i}\rangle\;\forall\;\text{base o.n.}\{|\psi_{i}\rangle\}_{i=1}^{n}\in\mathbb{C}^{n}

La matrice U^=[ψkϕi]\hat{U}=[\langle \psi_{k}|\phi_{i}\rangle] è unitaria, ossia U^U^=1^=U^U^\hat{U}\hat{U}^{\dagger}=\hat{\mathbb{1}}=\hat{U}^{\dagger}\hat{U}.

Prendendo ψ,ϕCN|\psi\rangle,|\phi\rangle\in\mathbb{C}^{N}. Il prodotto scalare possiamo scriverlo come

\langle \psi|\phi\rangle=\sum\limits_{i=1}^{n}\psi^{\ast}_{i}\phi_{i}=\sum\limits_{i=1}^{n}\langle \psi|\chi_{i}\rangle\langle \chi_{i}|\phi\rangle=\ldots$$usando una base ortonormale $\{|\chi_{i}\rangle\}^{n}_{i=1}\in\mathbb{C}^{N}$ da cui, usando la completezza dei [[Proiettore|proiettori]]

\ldots=\langle \psi|\underbrace{\left( \sum\limits_{i=i}^{n}\hat{P}{\chi{i}}\right)}\limits_{\hat{\mathbb{1}}}|\phi\rangle

Possiamo generalizzare a $|\psi\rangle,|\phi\rangle\in L^{2}(\mathbb{R},dx)$, ricordando che $\psi^{\ast}_{i}=\overline{\langle \chi_{i}|\psi\rangle}$,

\langle \psi|\phi\rangle=\int_{\mathbb{R}}\psi^{\ast}(x)\phi(x)dx=\int_{\mathbb{R}}\langle \psi|x\rangle \langle x|\phi\rangle=\ldots

ma possiamo descrivere $\phi(x)$ come

\phi(x)=\int \delta(\bar{x}-x)\phi(\bar{x})d\bar{x}

SihainoltreSi ha inoltre

\int_{\mathbb{R}}|x\rangle\langle x|dx=\hat{\mathbb{1}}

dove $|x\rangle\langle x|$ è uno *pseudoproiettore* di una base di pseudovettori. Allora tornando indietro

\ldots=\langle \psi|\left( \int_{\mathbb{R}}|x\rangle\langle x| dx\right)|\phi\rangle

[1]:Beingontherighthandmemberspecificallyisactuallyaconvention.Usingtherighthandsideistypicalinphysics.Inmathematics,thelefthandsideismorecommonlyused.Thesameappliestoantilinearity,withmathematiciansusuallyplaceontherighthandsideinstead. [^1]: Being on the right-hand member specifically is actually a convention. Using the right-hand side is typical in physics. In mathematics, the left-hand side is more commonly used. The same applies to antilinearity, with mathematicians usually place on the right-hand side instead.