If A is a closed symmetric operator with domain D(A) and adjoint A*, then . In fact . So the condition for A to be selfadjoint (in other words D(A*)=D(A)) is that . The deficiency indices are the dimensions of , so the condition for A to be selfadjoint is that they should both be 0.