I am looking at applying some simple control theory to a damped oscillator.
If I have the following dynamics
\begin{equation} \begin{bmatrix} \dot{x}\\ \ddot{x} \\ \end{bmatrix} = \begin{bmatrix} 0 & 1 \\ -\omega^2 & -\Gamma \end{bmatrix} \begin{bmatrix} x\\ \dot{x} \\ \end{bmatrix} + \begin{bmatrix} 0\\ \dfrac{1}{m} \\ \end{bmatrix} u \end{equation}
Such that my $A$ matrix is $\begin{bmatrix} 0 & 1 \\ -\omega^2 & -\Gamma \end{bmatrix}$ and by B matrix is $ \begin{bmatrix} 0\\ \dfrac{1}{m} \\ \end{bmatrix}$ and my control is $u$, an external force on the oscillator.
I can calculate the controllability matrix
\begin{equation} \mathcal{C} = \begin{bmatrix} 0 & \dfrac{1}{m} \\ \dfrac{1}{m} & -\dfrac{\Gamma}{m} \\ \end{bmatrix} \label{controllability_matrix} \end{equation}
which has rank 2. This means the controllability matrix has full column rank, this means, as I understand it, that this system is controllable. This means that we can arbitrarily place the eigenvalues (also sometimes called poles) of the system dynamics by tuning $\mathbf{K}$ in $u = -\mathbf{K}\vec{x}$ because the system dyamics becomes $\dot{\vec{x}} = (\mathbf{A} - \mathbf{B}\mathbf{K})\vec{x}$. This also means we have reachability, meaning we can drive the system to any state, the reachable set of states $R_t = \left\{ \xi ~\epsilon ~\mathbb{R}^n \right\}$.
If I then plug in $u = -K\vec{x}$ where I change $\vec{x}$ to $\vec{x}-\vec{x_t}$ where $\vec{x_t}$ is my target state I want to set the system to be driven towards.
\begin{equation} \begin{bmatrix} \dot{x}\\ \ddot{x} \\ \end{bmatrix} = \begin{bmatrix} 0 & 1 \\ -\omega^2 & -\Gamma \end{bmatrix} \begin{bmatrix} x\\ \dot{x} \\ \end{bmatrix} - \begin{bmatrix} 0\\ \dfrac{1}{m} \\ \end{bmatrix} \begin{bmatrix} K_0 & K_1 \\ \end{bmatrix} \begin{bmatrix} x - x_t \\ \dot{x} - \dot{x}_t \\ \end{bmatrix} \end{equation} which results in
\begin{equation} \begin{bmatrix} \dot{x}\\ \ddot{x} \\ \end{bmatrix} = \begin{bmatrix} 0 & 1 \\ -\omega^2 & -\Gamma \end{bmatrix} \begin{bmatrix} x\\ \dot{x} \\ \end{bmatrix} - \begin{bmatrix} 0\\ \dfrac{1}{m}K_0(x-x_t) + \dfrac{1}{m}K_1(\dot{x}-\dot{x}_t) \\ \end{bmatrix} \end{equation}
However when I put in some values for $\omega$, $\Gamma$ and $m$ and calculate the K matrix by setting the eigenvalues to be $n\times eig(A)$ [where n>1, the larger n is than 1 the more aggressive the feedback, I've used values like 1.5, 2, 3 ... etc ](this was just an initial guess - I wasn't sure where to place the eigenvalues to start - other than that they want to have a negative real value for stability and the more negative they are the more aggressive the feedback) by using K = place(A, B, eigs(A)*n)
in matlab then I get a K matrix where $K_1$ is 0, and therefore I cannot control $\dot{x}$, why is this and how can I control $\dot{x}$?
I've been able to simulate this the see that it can control $x$.
Also, is it possible to set the system to be driven to any state by this control? It doesn't make sense that the system could be prepared in a state such as $x = 5cm$, $\dot{x} = 5m/s$ stably for example, as the positive velocity means it won't stay at $x = 5cm$. How can I calculate what states are reachable and stable?