An operator is defined not just by its action (what it does to the vector it is applied to) but its domain (the set of vectors on which it acts). In a finite-dimensional vector space the domain is the entire space, and we don’t need to worry about it. But for most operators in Hilbert space the domain is restricted. In particular, only functions such that \hat{Q} f(x) remains in Hilbert space are allowed in the domain of \hat{Q}. (As you found in Problem 3.2, the derivative operator can knock a function out of L².)
A hermitian operator is one whose action is the same as that of its adjoint (Problem 3.5). But what is required to represent observables is actually something more: the domains of \hat{Q} \text { and } \hat{Q}^{\dagger} must also be identical. Such operators are called self-adjoint.
(a) Consider the momentum operator, \hat{p}=-i \hbar d / d x , on the finite interval 0 ≤ x ≤ a . With the infinite square well in mind, we might define its domain as the set of functions f(x) such that f(0) = f(a) = 0 (it goes without saying that f(x) and \hat{p} f(x) are in L²(0,a)) . Show that is hermitian: \langle g \mid \hat{p} f\rangle=\left\langle\hat{p}^{\dagger} g \mid f\right\rangle , with \hat{p}^{\dagger}=\hat{p} . But is it self-adjoint?
Hint: as long as f(0) = f(a) = 0, there is no restriction on g(0) or g(a) – the domain of \hat{p}^{\dagger} is much larger than the domain of \hat{p} .
(b) Suppose we extend the domain of \hat{p} to include all functions of the form f(a)=\lambda f(0) , for some fixed complex number λ . What condition must we then impose on the domain of \hat{p}^{\dagger} in order that \hat{p} be hermitian? What value(s) of will render \hat{p} self-adjoint? Comment: Technically, then, there is no momentum operator on the finite interval—or rather, there are infinitely many, and no way to decide which of them is “correct.” (In Problem 3.34 we avoided the issue by working on the infinite interval.)
(c) What about the semi-infinite interval, 0 ≤ x ≤ ∞? Is there a selfadjoint momentum operator in this case?.