I met the following "elementary fact" on Henniart-Bushnell's text Local Langlands Conjectures for $GL(2)$ (which they didn't include a proof):
Let $F$ be a $p$-adic field and $E/F$ a finite extension. Then $E/F$ is tamely ramified if and only if $Tr_{E/F}(\mathfrak{o}_E)=\mathfrak{o}_F$. And suppose $E/F$ is tamely ramified with ramification index $e=e(L/K)$. Then we have: $$Tr_{E/F}(\mathfrak{p}_E^{1+r})=\mathfrak{p}_F^{1+[r/e]}=\mathfrak{p}_F^{1+r}\cap F.$$
I didn't know how to prove this, though I realized this has something to do with the notion of the different for an extension of Dedekind domains. (I think I didn't have enough experience about how to deal with such concrete properties.) Can anyone give me some hint/advice? And I want to ask: suppose we are given an extension of $p$-adic fields $E/F$ with ramification index $e$ and degree $n=ef$. Is there any explicit formula of the trace of $\mathfrak{p}_E^{r}$ as above? If there's no such a formula for wildly ramified extensions, then what's the essential difficulty? (or essential difference between the tame and wild cases?)
Thanks a lot in advance!