I need to show that the Hull-White model $$dr=(\theta(t)-ar)dt+\sigma dW^Q$$ corresponds to the Heath-Jarrow-Morton formulation $$df(t,T)=\alpha(t,T)dt+\sigma e^{-a(T-t)}dW^Q.$$ I obtained the drift by with drift condition $$\alpha(t,T)=\sigma(t,T)\int_t^T\sigma(t,s)ds,$$ where $\sigma(t,T)=\sigma e^{-a(T-t)}.$ Then, I integrated the resulting $df(t,T)$ and set $T=t\rightarrow f(t,t)=r(t)$. Finally, I looked for the differential $dr(t)$, but the resulting expression looks completely diffeent form the Hull-White formulation.
Could you show me how to perform needed calculations?
Thank you, Giulio