I am struggling with Hull-White model now and have the following question: in the lecture notes under the link below I see how A(t,T) and B(t,T) are being derived. This requires the solution of ordinary differential equations. With B(t,T) it is more or less clear, still I don't understand how the author comes up with the formula (5) which expresses A(t,T).
Would be grateful for any hint.