Is there an example of a function that is not in the domain of the 'naive' symmetric (but not self-adjoint) momentum operator $p:=-i\frac{d}{dx}$ but is in the 'true' self-adjoint momentum operator $p:= \left(-i\frac{d}{dx}\right)^\dagger$.
I am trying to understand the mathematical differences b/w symmetric and self-adjointness and thought that this would be an enlightening example. Could you also show why this example in the domain of the self-adjoint momentum operator using the definition of the adjoint domain: $$D(A^\dagger) := \{ \phi \in {\cal H}\:|\: \exists \phi_1 \in {\cal H} \mbox{ with} \: \langle \phi_1 |\psi \rangle = \langle \phi | A \psi\rangle \:\: \forall \psi \in D(A)\}$$
This question was motivated by reading this fantastic answer by Valter Moretti.