In physics, we often use phasor representations of sinusoidal variations of fields, such as
$$\mathbf{e}(\mathbf{r}, t) = Re[\mathbf{E}(\mathbf{r})e^{j \omega t}]$$
I have some questions about how to deal with the mathematics of this type of equation. Using Euler's formula, we have that $e^{j \omega t} = \cos(\omega t) + j \sin(\omega t)$. So would the real part just be $\mathbf{e}(\mathbf{r}, t) = \mathbf{E}(\mathbf{r})$? I'm confused, because if we use Euler's formula, we have that $e^{j \omega t} = \cos(\omega t) + j \sin(\omega t)$, so I'm unsure if $\cos(\omega t)$ would also be part of the real part?
Also, how do we deal with the partial derivative $\dfrac{\partial{\mathbf{e}}}{\partial{t}}$? I ask because we have that
$$\dfrac{\partial{\mathbf{e}}}{\partial{t}} = \dfrac{\partial{\left\{ Re[\mathbf{E}(\mathbf{r})e^{j \omega t}] \right\}}}{\partial{t}},$$
so it is natural to wonder if this is linear so that we can take the partial derivative first and then the real part, or whether we must take the real part first and then the partial derivative?