Can anyone help me figure out how to go from the first expression to the second?
$$ \begin{equation} \ln D=u+\delta(e-p)+\gamma y-\sigma r \end{equation} $$
$$ \begin{equation} \pi \ \ln (D/Y)= \pi[u+\delta(e-p)+(\gamma -1) y-\sigma r] \end{equation} $$ where $y=\ln(Y)$
$u,\delta,\gamma,\sigma=$ Constants
$e=$ Current exchange rate
$p=$ Current price level
$r=$ Domestic interest rate
$D=$ Demand