What is the frequency response of a first-order system of ODEs? Specifically, given the differential equation:
$$ y'(t) = Ay(t) + x(t) $$
where $y:[0,\infty]\rightarrow \mathbb{R}^m$ and $A\in\mathbb{R}^{m\times m}$, what is the solution when
$$ x(t)=\begin{bmatrix}0\\\vdots\\\cos(\omega t)\\\vdots\\0\end{bmatrix} = \cos(\omega t) b_i? $$
Essentially, if we have a first-order system of ODEs and we activate a single input with a sine wave of a given frequency, what is the solution? Normally, the frequency response is worked out for a linear time invariant system of higher order and the solution is just a phase shifted and amplitude scaled version of the sine wave. I'm interested in what this result looks like for a first-order system rather than a single equation.
The solution you are probably looking for has the form $$y(t)=u\cos(ωt)+v\sin(ωt).$$ Insert into the DE to get the linear system for the vectors $u,v$. Take care of what happens if $iω$ is an eigenvalue of $A$.