Given is the ODE system
$y'=\left(\begin{matrix}1\\1\\0\\ \end{matrix}\right)+\left(\begin{matrix}0&0&0\\0&k&0\\0&-k&k\\ \end{matrix} \right)y$
with boundary conditions $y(T)=0$.
Why does for $y$ hold that
$ \int _t^T \frac{d}{ds}(e^{K(T-s)}y(s))ds=\int_t^T e^{K(T-s)}\left(\begin{matrix}1\\1\\0\\ \end{matrix}\right)ds $
and using the boundary conditions
$ y(t)=-e^{-K(T-t)}\int_t^Te^{K(T-s)}\left(\begin{matrix}1\\1\\0\\ \end{matrix}\right)ds $
Would somebody explain please why those two formulas follow from the system of ODEs. Thanks a lot.
This is like a matrix version of integrating factor: let
$$K = \left(\begin{matrix}0&0&0\\0&k&0\\0&-k&k\\ \end{matrix} \right), b= \left(\begin{matrix}1\\1\\0\\ \end{matrix}\right), $$
then $y' = b+ Ky \Rightarrow e^{K(T-s)} y' - e^{K(T-s)}Ky = e^{K(T-s)} b$, which is
$$\big(e^{K(T-s)} y(s)\big)' = e^{K(T-s)} b\ .$$
Integrating both side,
$$ y(T) - e^{K(T-t)} y(t) = \int_t^T e^{K(T-s)} b ds \ .$$
But $y(T)=0$.