The time rate of change of the probability density
(at a fixed location
) is given by

With the help of the Schrödinger equation and its complex conjugate,


one obtains
![{\displaystyle +{\frac {i}{\hbar }}\psi \left[{\frac {1}{2m}}\left(i\hbar {\frac {\partial }{\partial \mathbf {r} }}-\mathbf {A} \right)\cdot \left(i\hbar {\frac {\partial }{\partial \mathbf {r} }}-\mathbf {A} \right)\psi ^{*}+V\psi ^{*}\right].}](https://wikimedia.org/api/rest_v1/media/math/render/svg/98727a8a7448922f0b5f337839182910d485ccd8)
The terms containing
cancel out, so we are left with
![{\displaystyle {\frac {\partial \rho }{\partial t}}=-{\frac {i}{2m\hbar }}\left[\psi ^{*}\left(i\hbar {\frac {\partial }{\partial \mathbf {r} }}+\mathbf {A} \right)\cdot \left(i\hbar {\frac {\partial }{\partial \mathbf {r} }}+\mathbf {A} \right)\psi -\psi \left(i\hbar {\frac {\partial }{\partial \mathbf {r} }}-\mathbf {A} \right)\cdot \left(i\hbar {\frac {\partial }{\partial \mathbf {r} }}-\mathbf {A} \right)\psi ^{*}\right]}](https://wikimedia.org/api/rest_v1/media/math/render/svg/eb63f2ee8fad5069e8ef2da029a0eeb8e925ce34)

Next, we calculate the divergence of
:

The upshot:
|
Integrated over a spatial region
with unchanging boundary

According to Gauss's law, the outward flux of
through
equals the integral of the divergence of
over

We thus have that

If
is the continuous density of some kind of stuff (stuff per unit volume) and
is its flux (stuff per unit area per unit time), then on the left-hand side we have the rate at which the stuff inside
increases, and on the right-hand side we have the rate at which stuff enters through the surface of
So if some stuff moves from place A to place B, it crosses the boundary of any region that contains either A or B. This is why the framed equation is known as a continuity equation.
In the quantum world, however, there is no such thing as continuously distributed and/or continuously moving stuff.
and
respectively, are a density (something per unit volume) and a flux (something per unit area per unit time) only in a formal sense. If
is the wave function associated with a particle, then the integral
gives the probability of finding the particle in
if the appropriate measurement is made, and the framed equation tells us this: if the probability of finding the particle inside
as a function of the time at which the measurement is made, increases, then the probability of finding the particle outside
as a function of the same time, decreases by the same amount. (Much the same holds if
is associated with a system having
degrees of freedom and
is a region of the system's configuration space.) This is sometimes expressed by saying that "probability is (locally) conserved." When you hear this, then remember that the probability for something to happen in a given place at a given time isn't anything that is situated at that place or that exists at that time.