[Math] State-Space model with constant term in the output equation

control theorydynamical systemseducation

I have the following system:
\begin{align*}
\dot{x} & =Ax+Bu\\
y & = Cx+f
\end{align*}
Where $x$ and $y$ are vectors, $A$, $B$, $C$ are matrices, and $f$ a constant term (same dimension as $y$).
The system is expressed in a "pseudo" state space form, what is troubling me is the constant term "$f$", I don't know how to handle it, how can I make it fit in the usual state space form? Which should be like this:
\begin{align*}
\dot{x} & =Ax+Bu\\
y & = Cx+Du
\end{align*}
from a practical point of view, since $f$ is constant, I could define $\bar{y}$ as
\begin{align*}
\bar{y}=y-f
\end{align*}
however, from a theoretical point of view, $\bar{y}$ no longer represents the real output of the system, which is $y$, that represents the physical variables I can measure. I can't overcome this impasse.
The final goal is to compute the transfer matrix of the system.

Best Answer

You can augment the state vector with $f$ such that $$x_{ag}:=\left[\matrix{x\\ f}\right]$$ Then we can write equivalently $$\dot{x}_{ag}=\left[\matrix{\dot{x}\\ \dot{f}}\right]=\left[\matrix{Ax+Bu\\ 0}\right]=\left[\matrix{A & 0\\ 0 & 0 }\right]x_{ag}+\left[\matrix{B\\ 0}\right]u$$ and $$y=Cx+f=\left[\matrix{C & I}\right]x_{ag}$$ which is now in the standard state-space form.