I am looking at the proof of the following theorem: Let $\dot{x} =Ax + Bu$ be a controllable single input system, where $\Delta_A:= \det(\lambda I -A) = \lambda^n + a_1\lambda^{n-1} + \ldots + a_{n-1}\lambda + a_n$. Show this system is isomorphic to the system $\dot{x} = \bar{A}x + \bar{B}u$ where: $$\bar{A} = \left( \begin{matrix} 0 & 1 & 0& \dots & 0 & 0\\ 0 &0&1 &\ldots &0&0 & \\ \vdots &\vdots &\vdots & & \vdots &\vdots &\\ 0&0&0& \ldots & 0& 1\\ -a_n& -a_{n-1}& -a_{n-2}& \ldots & -a_2& -a_1 \end{matrix}\right) ,\quad\bar{b}=\left( \begin{matrix} 0\\0\\ \vdots \\0\\0\\1 \end{matrix}\right)$$ This amounts to finding an invertible matrix $S$ such that $\bar{A}=S^{-1}AS$ and $\bar{B} = S^{-1}B$.
The proof however I really cannot follow. This theorem comes from a subject that I am taking for the second time. I distinctly remember begin quite impressed with this theorem last year when the teacher proved it with relative ease. However in the updated lecture notes we are given this year I cannot follow the proof at all.
It starts of with defining the required matrix $S$ via $S = \left(q_1\quad q_2 \quad \ldots \quad q_n\right)$ where \begin{eqnarray} q_n&=&B\\ q_{n-1} &=& AB + a_{1}B\\ q_{n-1} &=& A^2B + a_{1}AB +a_{2}B\\ &\vdots&\\ q_1 &=& A^{n-1}B +a_{1}A^{n-2}B + \ldots +a_{n-1}B \end{eqnarray}
Can anyone show me why this choice of $S$ works? Thanks a lot in advance for any help!