A forced system $\mathbf{x}' = A\mathbf{x} + \mathbf{f}(t)$ has the same structure as a forced single equation: every solution is one particular solution plus the general solution of $\mathbf{x}' = A\mathbf{x}$ from eigenvalue solutions. And the particular solution can often be guessed, as in undetermined coefficients.
🔑 Key idea
$\mathbf{x} = \mathbf{x}_p + c_1e^{\lambda_1t}\mathbf{v}_1 + c_2e^{\lambda_2t}\mathbf{v}_2$. For a constant forcing $\mathbf{b}$, the equilibrium $\mathbf{x}_p = -A^{-1}\mathbf{b}$ works. For $e^{kt}\mathbf{g}$ with $k$ not an eigenvalue, try $\mathbf{x}_p = e^{kt}\mathbf{a}$ with $(kI - A)\mathbf{a} = \mathbf{g}$.
💡 Why it works
If $\mathbf{x}$ and $\mathbf{x}_p$ both solve the forced system, their difference solves $\mathbf{x}' = A\mathbf{x}$, by linearity. A constant $\mathbf{x}_p$ has $\mathbf{x}_p' = \mathbf{0}$, so it needs $A\mathbf{x}_p + \mathbf{b} = \mathbf{0}$, solvable when $A$ is invertible (no zero eigenvalue). For $e^{kt}\mathbf{a}$: substituting gives $ke^{kt}\mathbf{a} = e^{kt}A\mathbf{a} + e^{kt}\mathbf{g}$, so $(kI - A)\mathbf{a} = \mathbf{g}$, which has a unique solution unless $k$ is an eigenvalue (the resonance case, where extra terms with $t$ are needed).
Fitting the initial condition to $\mathbf{x}_h$ alone: the constants must make $\mathbf{x}_p(0) + \mathbf{x}_h(0) = \mathbf{x}(0)$, so subtract $\mathbf{x}_p(0)$ first. Also check the sign in the equilibrium: it solves $A\mathbf{x}_p = -\mathbf{b}$, not $A\mathbf{x}_p = \mathbf{b}$.
The forced system of the first two examples. Its picture is the unforced saddle moved so that its center sits at the equilibrium $(1, 2)$: trajectories approach along $(1, -1)$ and leave along $(1, 1)$.
Practice
Pass with 3 right answers, the last 2 in a row. Each right answer earns 3 XP.