The Kalman Filter requires the system's dynamics (kinematics) to be expressed in a discrete, linear matrix form called the State-Space Model.
For our example, we combine the position and velocity into a single State Vector and define a State Transition Matrix that moves the state forward in time.
We define the state of the system ($\mathbf{x}$) at any time step $k$ as a vector containing all the variables we wish to track: position ($p$) and velocity ($v$).
$$\mathbf{x}_k = \begin{bmatrix} p \\ v \end{bmatrix}_k$$
The control input is the acceleration, i.e. the acceleration $a_{k}$ is the external "drive" of the system:
$$\mathbf{u}_k = \begin{bmatrix} a \end{bmatrix}_k$$
The discrete State-Space Prediction Equation with State Transition Matrix $\mathbf{F}$ and the Control Matrix $\mathbf{G}$ is:
$$\mathbf{x}_k = \mathbf{F}_{k-1} \mathbf{x}_{k-1} + \mathbf{G}_{k-1} \mathbf{u}_{k-1}$$
Where:
The integrated kinematic equations (assuming constant acceleration $a_{k-1}$ over the interval $\Delta t = t_k - t_{k-1}$) are:
$$\begin{aligned} p_k &= p_{k-1} + v_{k-1} \Delta t + \frac{1}{2} a_{k-1} (\Delta t)^2 \\ v_k &= v_{k-1} + a_{k-1} \Delta t \end{aligned}$$
These equations can be written in a equation with maches the general form of the Discrete State-Space Prediction Equation: $$\underbrace{\begin{bmatrix} p \\ v \end{bmatrix}_k}_{\mathbf{x}_k} = \underbrace{\begin{bmatrix} 1 & \Delta t \\ 0 & 1 \end{bmatrix}}_{\mathbf{F}} \underbrace{\begin{bmatrix} p \\ v \end{bmatrix}_{k-1}}_{\mathbf{x}_{k-1}} + \underbrace{\begin{bmatrix} \frac{1}{2}\Delta t^2 \\ \Delta t \end{bmatrix}}_{\mathbf{G}} \underbrace{\begin{bmatrix} a \end{bmatrix}_{k-1}}_{ \mathbf{u}_{k-1}}$$
$\mathbf{F}$ and $\mathbf{G}$ are here time independent. Therefore, we can skip the index $k-1$.
Full linear prediction for 1D motion under constant acceleration:
$$\underbrace{\begin{bmatrix} p \\ v \end{bmatrix}_k}_{\mathbf{x}_k} = \underbrace{\begin{bmatrix} 1 & \Delta t \\ 0 & 1 \end{bmatrix}}_{\mathbf{F}} \underbrace{\begin{bmatrix} p \\ v \end{bmatrix}_{k-1}}_{\mathbf{x}_{k-1}} + \underbrace{\begin{bmatrix} \frac{1}{2}\Delta t^2 \\ \Delta t \end{bmatrix}}_{\mathbf{G}} \underbrace{\begin{bmatrix} a \end{bmatrix}_{k-1}}_{ \mathbf{u}_{k-1}}$$
This matrix form matches the formal structure:
$$\mathbf{x}_k = \mathbf{F} \mathbf{x}_{k-1} + \mathbf{G} \mathbf{u}_{k-1}$$