 To show this mathematically, charge carrier density is a particle density, so integrating it over a volume formula_1 gives the number of charge carriers formula_2 in that volume

formula_3.where

If the density does not depend on position and is instead equal to a constant formula_5 this equation simplifies to

formula_6.The carrier density is important for semiconductors, where it is an important quantity for the process of chemical doping.