I see that the harmonic field is sometimes written in exponential form. But sometimes the complex amplitude of this form is just a constant and in others (like when talking about modes) is dependent on the position. Why sometimes is dependent and what does it represent in both cases?
First case $E(\vec{r},t)=he^{-i\omega t}$
Second case $E(\vec{r},t)=h(\vec{r})e^{-i\omega t}$
Thanks