Two vectors x and y are if \langle x, y \rangle = 0, which happens if and only if \|y\| \leq \|y + s x\| for all scalars s. The
orthogonal complement of a subset X \subseteq H is X^{\bot} := \{ \,y \in H : \langle y, x \rangle = 0 \text{ for all } x \in X\, \}, which is always a
closed vector subspace of H. The
Hilbert projection theorem guarantees that for any
nonempty closed
convex subset C of a
Hilbert space there exists a unique vector m \in C such that \|m\| = \inf_{c \in C} \|c\|; that is, m \in C is the (unique)
global minimum point of the function C \to [0, \infty) defined by c \mapsto \|c\|.
Statement {{Math theorem Let H be a
Hilbert space whose
inner product \left\langle x, y \right\rangle is linear in its argument and
antilinear in its second argument and let \langle y \mid x \rangle := \langle x, y \rangle be the corresponding physics notation. For every continuous linear functional \varphi \in H^*, there exists a unique vector f_{\varphi} \in H, called the such that \varphi(x) = \left\langle x, f_{\varphi} \right\rangle = \left\langle f_\varphi \mid x \right\rangle \quad \text{ for all } x \in H. Importantly for Hilbert spaces, f_{\varphi} is always located in the coordinate of the inner product. H can be written as the direct sum H = K \oplus K^{\bot} (a proof of this is given in the article on the
Hilbert projection theorem). Because K \neq H, there exists some non-zero p \in K^{\bot}. For any h \in H, \varphi[(\varphi h) p - (\varphi p) h] ~=~ \varphi[(\varphi h) p] - \varphi[(\varphi p) h] ~=~ (\varphi h) \varphi p - (\varphi p) \varphi h = 0, which shows that (\varphi h) p - (\varphi p) h ~\in~ \ker \varphi = K, where now p \in K^{\bot} implies 0 = \langle \,p\, | \,(\varphi h) p - (\varphi p) h\, \rangle ~=~ \langle \,p\, | \,(\varphi h) p \, \rangle - \langle \,p\, | \,(\varphi p) h\, \rangle ~=~ (\varphi h) \langle \,p\, | \,p \, \rangle - (\varphi p) \langle \,p\, | \,h\, \rangle. Solving for \varphi h shows that \varphi h = \frac{(\varphi p) \langle \,p\, | \,h\, \rangle}{\|p\|^2} = \left\langle \,\frac{\overline{\varphi p}}{\|p\|^2} p\, \Bigg| \,h\, \right\rangle \quad \text{ for every } h \in H, which proves that the vector f_{\varphi} := \frac{\overline{\varphi p}}{\|p\|^2} p satisfies \varphi h = \langle \,f_{\varphi}\, | \,h\, \rangle \text{ for every } h \in H. Applying the norm formula that was proved above with y := f_{\varphi} shows that \|\varphi\|_{H^*} = \left\|\left\langle \,f_{\varphi}\, | \,\cdot\, \right\rangle\right\|_{H^*} = \left\|f_{\varphi}\right\|_H. Also, the vector u := \frac{p}{\|p\|} has norm \|u\| = 1 and satisfies f_{\varphi} := \overline{\varphi(u)} u. \blacksquare It can now be deduced that K^{\bot} is 1-dimensional when \varphi \neq 0. Let q \in K^{\bot} be any non-zero vector. Replacing p with q in the proof above shows that the vector g := \frac{\overline{\varphi q}}{\|q\|^2} q satisfies \varphi(h) = \langle \,g\, | \,h\, \rangle for every h \in H. The uniqueness of the (non-zero) vector f_{\varphi} representing \varphi implies that f_{\varphi} = g, which in turn implies that \overline{\varphi q} \neq 0 and q = \frac{\|q\|^2}{\overline{\varphi q}} f_{\varphi}. Thus every vector in K^{\bot} is a scalar multiple of f_{\varphi}. \blacksquare The formulas for the inner products follow from the
polarization identity.
Observations If \varphi \in H^* then \varphi \left(f_{\varphi}\right) = \left\langle f_{\varphi}, f_{\varphi} \right\rangle = \left\|f_{\varphi}\right\|^2 = \|\varphi\|^2. So in particular, \varphi \left(f_{\varphi}\right) \geq 0 is always real and furthermore, \varphi \left(f_{\varphi}\right) = 0 if and only if f_{\varphi} = 0 if and only if \varphi = 0.
Linear functionals as affine hyperplanes A non-trivial continuous linear functional \varphi is often interpreted geometrically by identifying it with the affine hyperplane A := \varphi^{-1}(1) (the kernel \ker\varphi = \varphi^{-1}(0) is also often visualized alongside A := \varphi^{-1}(1) although knowing A is enough to reconstruct \ker \varphi because if A = \varnothing then \ker \varphi = H and otherwise \ker \varphi = A - A). In particular, the norm of \varphi should somehow be interpretable as the "norm of the hyperplane A". When \varphi \neq 0 then the Riesz representation theorem provides such an interpretation of \|\varphi\| in terms of the affine hyperplane A := \varphi^{-1}(1) as follows: using the notation from the theorem's statement, from \|\varphi\|^2 \neq 0 it follows that C := \varphi^{-1}\left(\|\varphi\|^2\right) = \|\varphi\|^2 \varphi^{-1}(1) = \|\varphi\|^2 A and so \|\varphi\| = \left\|f_{\varphi}\right\| = \inf_{c \in C} \|c\| implies \|\varphi\| = \inf_{a \in A} \|\varphi\|^2 \|a\| and thus \|\varphi\| = \frac{1}{\inf_{a \in A} \|a\|}. This can also be seen by applying the
Hilbert projection theorem to A and concluding that the global minimum point of the map A \to [0, \infty) defined by a \mapsto \|a\| is \frac{f_{\varphi}}{\|\varphi\|^2} \in A. The formulas \frac{1}{\inf_{a \in A} \|a\|} = \sup_{a \in A} \frac{1}{\|a\|} provide the promised interpretation of the linear functional's norm \|\varphi\| entirely in terms of its associated affine hyperplane A = \varphi^{-1}(1) (because with this formula, knowing only the A is enough to describe the norm of its associated linear ). Defining \frac{1}{\infty} := 0, the
infimum formula \|\varphi\| = \frac{1}{\inf_{a \in \varphi^{-1}(1)} \|a\|} will also hold when \varphi = 0. When the supremum is taken in \R (as is typically assumed), then the supremum of the empty set is \sup \varnothing = - \infty but if the supremum is taken in the non-negative reals [0, \infty) (which is the
image/range of the norm \|\,\cdot\,\| when \dim H > 0) then this supremum is instead \sup \varnothing = 0, in which case the supremum formula \|\varphi\| = \sup_{a \in \varphi^{-1}(1)} \frac{1}{\|a\|} will also hold when \varphi = 0 (although the atypical equality \sup \varnothing = 0 is usually unexpected and so risks causing confusion).
Constructions of the representing vector Using the notation from the theorem above, several ways of constructing f_{\varphi} from \varphi \in H^* are now described. If \varphi = 0 then f_{\varphi} := 0; in other words, f_0 = 0. This special case of \varphi = 0 is henceforth assumed to be known, which is why some of the constructions given below start by assuming \varphi \neq 0.
Orthogonal complement of kernel If \varphi \neq 0 then for any 0 \neq u \in (\ker\varphi)^{\bot}, f_{\varphi} := \frac{\overline{\varphi(u)} u}{\|u\|^2}. If u \in (\ker\varphi)^{\bot} is a
unit vector (meaning \|u\| = 1) then f_{\varphi} := \overline{\varphi(u)} u (this is true even if \varphi = 0 because in this case f_{\varphi} = \overline{\varphi(u)} u = \overline{0} u = 0). If u is a unit vector satisfying the above condition then the same is true of -u, which is also a unit vector in (\ker\varphi)^{\bot}. However, \overline{\varphi(-u)} (-u) = \overline{\varphi(u)} u = f_\varphi so both these vectors result in the same f_{\varphi}.
Orthogonal projection onto kernel If x \in H is such that \varphi(x) \neq 0 and if x_K is the
orthogonal projection of x onto \ker\varphi then f_{\varphi} = \frac{\|\varphi\|^2}{\varphi(x)} \left(x - x_K\right).
Orthonormal basis Given an
orthonormal basis \left\{e_i\right\}_{i \in I} of H and a continuous linear functional \varphi \in H^*, the vector f_{\varphi} \in H can be constructed uniquely by f_\varphi = \sum_{i \in I} \overline{\varphi\left(e_i\right)} e_i where all but at most countably many \varphi\left(e_i\right) will be equal to 0 and where the value of f_{\varphi} does not actually depend on choice of orthonormal basis (that is, using any other orthonormal basis for H will result in the same vector). If y \in H is written as y = \sum_{i \in I} a_i e_i then \varphi(y) = \sum_{i \in I} \varphi\left(e_i\right) a_i = \langle f_{\varphi} | y \rangle and \left\|f_{\varphi}\right\|^2 = \varphi\left(f_{\varphi}\right) = \sum_{i \in I} \varphi\left(e_i\right) \overline{\varphi\left(e_i\right)} = \sum_{i \in I} \left|\varphi\left(e_i\right)\right|^2 = \|\varphi\|^2. If the orthonormal basis \left\{e_i\right\}_{i \in I} = \left\{e_i\right\}_{i=1}^{\infty} is a sequence then this becomes f_\varphi = \overline{\varphi\left(e_1\right)} e_1 + \overline{\varphi\left(e_2\right)} e_2 + \cdots and if y \in H is written as y = \sum_{i \in I} a_i e_i = a_1 e_1 + a_2 e_2 + \cdots then \varphi(y) = \varphi\left(e_1\right) a_1 + \varphi\left(e_2\right) a_2 + \cdots = \langle f_{\varphi} | y \rangle.
Example in finite dimensions using matrix transformations Consider the special case of H = \Complex^n (where n > 0 is an
integer) with the standard inner product \langle z \mid w \rangle := \overline{\,\vec{z}\,\,}^{\operatorname{T}} \vec{w} \qquad \text{ for all } \; w, z \in H where w \text{ and } z are represented as
column matrices \vec{w} := \begin{bmatrix}w_1 \\ \vdots \\ w_n\end{bmatrix} and \vec{z} := \begin{bmatrix}z_1 \\ \vdots \\ z_n\end{bmatrix} with respect to the standard orthonormal basis e_1, \ldots, e_n on H (here, e_i is 1 at its ith coordinate and 0 everywhere else; as usual, H^* will now be associated with the
dual basis) and where \overline{\,\vec{z}\,}^{\operatorname{T}} := \left[\overline{z_1}, \ldots, \overline{z_n}\right] denotes the
conjugate transpose of \vec{z}. Let \varphi \in H^* be any linear functional and let \varphi_1, \ldots, \varphi_n \in \Complex be the unique scalars such that \varphi\left(w_1, \ldots, w_n\right) = \varphi_1 w_1 + \cdots + \varphi_n w_n \qquad \text{ for all } \; w := \left(w_1, \ldots, w_n\right) \in H, where it can be shown that \varphi_i = \varphi\left(e_i\right) for all i = 1, \ldots, n. Then the Riesz representation of \varphi is the vector f_{\varphi} ~:=~ \overline{\varphi_1} e_1 + \cdots + \overline{\varphi_n} e_n ~=~ \left(\overline{\varphi_1}, \ldots, \overline{\varphi_n}\right) \in H. To see why, identify every vector w = \left(w_1, \ldots, w_n\right) in H with the column matrix \vec{w} := \begin{bmatrix}w_1 \\ \vdots \\ w_n\end{bmatrix} so that f_{\varphi} is identified with \vec{f_{\varphi}} := \begin{bmatrix}\overline{\varphi_1} \\ \vdots \\ \overline{\varphi_n}\end{bmatrix} = \begin{bmatrix}\overline{\varphi\left(e_1\right)} \\ \vdots \\ \overline{\varphi\left(e_n\right)}\end{bmatrix}. As usual, also identify the linear functional \varphi with its
transformation matrix, which is the
row matrix \vec{\varphi} := \left[\varphi_1, \ldots, \varphi_n\right] so that \vec{f_{\varphi}} := \overline{\,\vec{\varphi}\,\,}^{\operatorname{T}} and the function \varphi is the assignment \vec{w} \mapsto \vec{\varphi} \, \vec{w}, where the right hand side is
matrix multiplication. Then for all w = \left(w_1, \ldots, w_n\right) \in H, \varphi(w) = \varphi_1 w_1 + \cdots + \varphi_n w_n = \left[\varphi_1, \ldots, \varphi_n\right] \begin{bmatrix}w_1 \\ \vdots \\ w_n\end{bmatrix} = \overline{\begin{bmatrix}\overline{\varphi_1} \\ \vdots \\ \overline{\varphi_n}\end{bmatrix}}^{\operatorname{T}} \vec{w} = \overline{\,\vec{f_{\varphi}}\,\,}^{\operatorname{T}} \vec{w} = \left\langle \,\,f_{\varphi}\, \mid \,w\, \right\rangle, which shows that f_{\varphi} satisfies the defining condition of the Riesz representation of \varphi. The bijective antilinear isometry \Phi : H \to H^* defined in the corollary to the Riesz representation theorem is the assignment that sends z = \left(z_1, \ldots, z_n\right) \in H to the linear functional \Phi(z) \in H^* on H defined by w = \left(w_1, \ldots, w_n\right) ~\mapsto~ \langle \,z\, \mid \,w\,\rangle = \overline{z_1} w_1 + \cdots + \overline{z_n} w_n, where under the identification of vectors in H with column matrices and vector in H^* with row matrices, \Phi is just the assignment \vec{z} = \begin{bmatrix}z_1 \\ \vdots \\ z_n\end{bmatrix} ~\mapsto~ \overline{\,\vec{z}\,}^{\operatorname{T}} = \left[\overline{z_1}, \ldots, \overline{z_n}\right]. As described in the corollary, \Phi's inverse \Phi^{-1} : H^* \to H is the antilinear isometry \varphi \mapsto f_{\varphi}, which was just shown above to be: \varphi ~\mapsto~ f_{\varphi} ~:=~ \left(\overline{\varphi\left(e_1\right)}, \ldots, \overline{\varphi\left(e_n\right)}\right); where in terms of matrices, \Phi^{-1} is the assignment \vec{\varphi} = \left[\varphi_1, \ldots, \varphi_n\right] ~\mapsto~ \overline{\,\vec{\varphi}\,\,}^{\operatorname{T}} = \begin{bmatrix}\overline{\varphi_1} \\ \vdots \\ \overline{\varphi_n}\end{bmatrix}. Thus in terms of matrices, each of \Phi : H \to H^* and \Phi^{-1} : H^* \to H is just the operation of
conjugate transposition \vec{v} \mapsto \overline{\,\vec{v}\,}^{\operatorname{T}} (although between different spaces of matrices: if H is identified with the space of all column (respectively, row) matrices then H^* is identified with the space of all row (respectively, column matrices). This example used the standard inner product, which is the map \langle z \mid w \rangle := \overline{\,\vec{z}\,\,}^{\operatorname{T}} \vec{w}, but if a different inner product is used, such as \langle z \mid w \rangle_M := \overline{\,\vec{z}\,\,}^{\operatorname{T}} \, M \, \vec{w} \, where M is any
Hermitian positive-definite matrix, or if a different orthonormal basis is used then the transformation matrices, and thus also the above formulas, will be different.
Relationship with the associated real Hilbert space Assume that H is a complex Hilbert space with inner product \langle \,\cdot\mid\cdot\, \rangle. When the Hilbert space H is reinterpreted as a real Hilbert space then it will be denoted by H_{\R}, where the (real) inner-product on H_{\R} is the real part of H's inner product; that is: \langle x, y \rangle_{\R} := \operatorname{re} \langle x, y \rangle. The norm on H_{\R} induced by \langle \,\cdot\,, \,\cdot\, \rangle_{\R} is equal to the original norm on H and the continuous dual space of H_{\R} is the set of all -valued bounded \R-linear functionals on H_{\R} (see the article about the
polarization identity for additional details about this relationship). Let \psi_{\R} := \operatorname{re} \psi and \psi_{i} := \operatorname{im} \psi denote the real and imaginary parts of a linear functional \psi, so that \psi = \operatorname{re} \psi + i \operatorname{im} \psi = \psi_{\R} + i \psi_{i}. The formula
expressing a linear functional in terms of its real part is \psi(h) = \psi_{\R}(h) - i \psi_{\R} (i h) \quad \text{ for } h \in H, where \psi_{i}(h) = - i \psi_{\R} (i h) for all h \in H. It follows that \ker\psi_{\R} = \psi^{-1}(i \R), and that \psi = 0 if and only if \psi_{\R} = 0. It can also be shown that \|\psi\| = \left\|\psi_{\R}\right\| = \left\|\psi_i\right\| where \left\|\psi_{\R}\right\| := \sup_{\|h\| \leq 1} \left|\psi_{\R}(h)\right| and \left\|\psi_i\right\| := \sup_{\|h\| \leq 1} \left|\psi_i(h)\right| are the usual
operator norms. In particular, a linear functional \psi is bounded if and only if its real part \psi_{\R} is bounded.
Representing a functional and its real part The Riesz representation of a continuous linear function \varphi on a complex Hilbert space is equal to the Riesz representation of its real part \operatorname{re} \varphi on its associated real Hilbert space. Explicitly, let \varphi \in H^* and as above, let f_\varphi \in H be the Riesz representation of \varphi obtained in (H, \langle, \cdot, \cdot \rangle), so it is the unique vector that satisfies \varphi(x) = \left\langle f_{\varphi} \mid x \right\rangle for all x \in H. The real part of \varphi is a continuous real linear functional on H_{\R} and so the Riesz representation theorem may be applied to \varphi_{\R} := \operatorname{re} \varphi and the associated real Hilbert space \left(H_{\R}, \langle, \cdot, \cdot \rangle_{\R}\right) to produce its Riesz representation, which will be denoted by f_{\varphi_{\R}}. That is, f_{\varphi_{\R}} is the unique vector in H_{\R} that satisfies \varphi_{\R}(x) = \left\langle f_{\varphi_{\R}} \mid x \right\rangle_{\R} for all x \in H. The conclusion is f_{\varphi_{\R}} = f_{\varphi}. This follows from the main theorem because \ker\varphi_{\R} = \varphi^{-1}(i \R) and if x \in H then \left\langle f_\varphi \mid x \right\rangle_{\R} = \operatorname{re} \left\langle f_\varphi \mid x \right\rangle = \operatorname{re} \varphi(x) = \varphi_{\R}(x) and consequently, if m \in \ker\varphi_{\R} then \left\langle f_{\varphi}\mid m \right\rangle_{\R} = 0, which shows that f_{\varphi} \in (\ker\varphi_{\R})^{\perp_{\R}}. Moreover, \varphi(f_\varphi) = \|\varphi\|^2 being a real number implies that \varphi_{\R} (f_\varphi) = \operatorname{re} \varphi(f_\varphi) = \|\varphi\|^2. In other words, in the theorem and constructions above, if H is replaced with its real Hilbert space counterpart H_{\R} and if \varphi is replaced with \operatorname{re} \varphi then f_{\varphi} = f_{\operatorname{re} \varphi}. This means that vector f_{\varphi} obtained by using \left(H_{\R}, \langle, \cdot, \cdot \rangle_{\R}\right) and the real linear functional \operatorname{re} \varphi is the equal to the vector obtained by using the origin complex Hilbert space \left(H, \left\langle, \cdot, \cdot \right\rangle\right) and original complex linear functional \varphi (with identical norm values as well). Furthermore, if \varphi \neq 0 then f_{\varphi} is perpendicular to \ker\varphi_{\R} with respect to \langle \cdot, \cdot \rangle_{\R} where the kernel of \varphi is be a
proper subspace of the kernel of its real part \varphi_{\R}. Assume now that \varphi \neq 0. Then f_{\varphi} \not\in \ker\varphi_{\R} because \varphi_{\R}\left(f_{\varphi}\right) = \varphi\left(f_{\varphi}\right) = \|\varphi\|^2 \neq 0 and \ker\varphi is a proper subset of \ker\varphi_{\R}. The vector subspace \ker \varphi has real codimension 1 in \ker\varphi_{\R}, while \ker\varphi_{\R} has codimension 1 in H_{\R}, and \left\langle f_{\varphi}, \ker\varphi_{\R} \right\rangle_{\R} = 0. That is, f_{\varphi} is perpendicular to \ker\varphi_{\R} with respect to \langle \cdot, \cdot \rangle_{\R}.
Canonical injections into the dual and anti-dual Induced linear map into anti-dual The map defined by placing y into the coordinate of the inner product and letting the variable h \in H vary over the coordinate results in an
functional: \langle \,\cdot \mid y\, \rangle = \langle \,y, \cdot\, \rangle : H \to \mathbb{F} \quad \text{ defined by } \quad h \mapsto \langle \,h \mid y\, \rangle = \langle \,y, h\, \rangle. This map is an element of \overline{H}^*, which is the continuous
anti-dual space of H. The \overline{H}^* is the
operator \begin{alignat}{4} \operatorname{In}_H^{\overline{H}^*} :\;&& H &&\;\to \;& \overline{H}^* \\[0.3ex] && y &&\;\mapsto\;& \langle \,\cdot \mid y\, \rangle = \langle \,y, \cdot\, \rangle \\[0.3ex] \end{alignat} which is also an
injective isometry. The
Fundamental theorem of Hilbert spaces, which is related to Riesz representation theorem, states that this map is surjective (and thus
bijective). Consequently, every antilinear functional on H can be written (uniquely) in this form. If \operatorname{Cong} : H^* \to \overline{H}^* is the canonical
linear bijective isometry f \mapsto \overline{f} that was defined above, then the following equality holds: \operatorname{Cong} ~\circ~ \operatorname{In}_H^{H^*} ~=~ \operatorname{In}_H^{\overline{H}^*}. == Extending the bra–ket notation to bras and kets ==