$$ \begin{split} B(0,T) & = \color{fuchsia}{\text{EV[non-default scenario]}} + \color{blue}{\text{EV[default scenario]}}\\ & = E\left[\color{fuchsia}{\exp\left(-\int_0^T\!\!\! r_t dt\right)·\mathbf{1}_{\{T<\tau\}}} + \color{blue}{\int_0^T\!\!\! RR\cdot \exp\left(-\int_0^t\!\!\! r_s ds\right) · P(t ≤ \tau < t+dt )} \right]\\ & = E\left[\color{fuchsia}{\exp\left(-\int_0^T\!\!\! r_t dt\right)\cdot \exp\left(-\int_0^T\!\!\! h_t dt\right)}\right. \\ &\qquad\qquad\quad\qquad + \left.\color{blue}{\int_0^T RR\cdot \exp\left(-\int_0^t\!\!\! r_s ds\right) \cdot h_t\exp\left(-\int_0^t\!\!\! h_s ds\right)dt} \right]\\ & = E\left[\color{fuchsia}{\exp\left(-\int_0^T\!\! (r_t+h_t) dt\right)} + \color{blue}{\int_0^T RR \cdot h_t\cdot \exp\left(-\int_0^\color{red}{t} \!\!(r_s+h_s) ds\right) \color{red}{dt}} \right] \end{split} $$ In this expression, $r_t$ and $h_t$ is just some function with respect to time. RR (recovery ratio) is the some constant value. In the blue part of the expression, inner integral is from 0 to t, and the outer integral is from 0 to T (T is the full time span). I don't know how to simplify further but the textbook says it can be simplified to:
hint given is to use the approximation: $e^x = 1+x$.
Can anyone show me the steps in between? much appreciated
