so gauge invariance is equivalent to the well known fact that changes in the overall phase of a wavefunction are unobservable, and only changes in the magnitude of the wavefunction result in changes to the probability function | ψ ψ | 2 .