Suppose we are given the following SISO state space system: \begin{equation} \dot{x} =Ax + Bu \\ y = Cx \end{equation} The impulse response of this system is given as $x(t) = \begin{pmatrix}e^{-t} + e^{-2t}+e^{3t}\\2e^{-2t}-e^{3t}\\e^{-t}+e^{-2t}\end{pmatrix}$. I want to find $B$ matrix in this question. We know that the impulse response can be represented by $X(s) = (sI-A)^{-1}B$.
Do you have any ideas on how to approach this problem. Assuming a general $A$ and taking inverses etc. seems very unpractical.
The state response $x(t)$ of a linear time invariant state space model, to an input $u(t)$, can be written as
$$ x(t) = e^{A\,t}x(0) + \int_0^t e^{A\,(t-\tau)} B\,u(\tau)\,d\tau. \tag{1} $$
For an impulse response it is assumed that the initial conditions are zero, i.e. $x(0)=0$, and the input is equal to the Dirac's delta function $u(t)=\delta(t)$. Now evaluating $(1)$ at $t=0^+$ (an infinitesimally small time step after zero) using the above yields
$$ x(0^+) = B. \tag{2} $$
Therefore, the $B$ matrix can be obtained by evaluating $x(0^+)$. It can also be noted that the impulse response is equivalent to having no input and using a non-zero initial condition equal to $B$.