We calculate the Hartree energy of an electron gas in a doped semicond
uctor quantum well. We compare its exact value with its perturbative e
xpansion. We show that for densities low enough to have one subband fi
lled only, the exact calculation is unnecessary, the perturbative expa
nsion with one or possibly two terms being already quite good.