where N is the number of atoms and q A are the expansion coefficients. Note that we use the negative of the expansion coefficients q A here, so that these can directly be interpreted as atomic partial charges. With this approximation, the electron density is completely defined via the charges q A and it remains to find their optimal values.