question about Ampere's law in vacuum and in matter
Add the assumption that ##D \propto E##, and it works.
In general, this can be wrong, but I don't know if the regular Maxwell equations work there at all. If ##\epsilon_r## is a tensor (or nonlinear), things can get difficult.
