Solution (source code)

= Solution

Difference the <local-level state-space model> to eliminate its latent level:
$$
D_t=X_t-X_{t-1}=w_t+v_t-v_{t-1}.
$$
<Independence> and Gaussianity give a stationary Gaussian process with
$$
\gamma_D(0)=W+2V,
\qquad\gamma_D(1)=\gamma_D(-1)=-V,
\qquad\gamma_D(h)=0\quad(|h|>1).
$$
For $V,W>0$, let
$$
q=\frac{W+2V+\sqrt{W^2+4WV}}2,
\qquad\vartheta=-\frac Vq\in(-1,0).
$$
These satisfy $q(1+\vartheta^2)=W+2V$ and $q\vartheta=-V$. Therefore $D$ has the <covariance> of the <moving-average model> $\varepsilon_t+\vartheta\varepsilon_{t-1}$, where $\varepsilon$ is Gaussian <white noise> of <variance> $q$. This is an actual representation, not just <covariance> matching: define $\varepsilon_t=\sum_{j\geq0}(-\vartheta)^jD_{t-j}$. The convergent inverse filter has constant <spectral density> $q/(2\pi)$, so its Gaussian coordinates are <independent>, and multiplication by $1+\vartheta B$ recovers $D$.

Thus
$$
\boxed{(1-B)X_t=(1+\vartheta B)\varepsilon_t,
\qquad \operatorname{Var}(\varepsilon_t)=q.}
$$
This is the formal <ARMA> equation with autoregressive coefficient one. Its unit root <means> that the levels are generally not stationary: if the initial state has finite <variance> and is <independent> of future noises, $\operatorname{Var}(S_t)=\operatorname{Var}(S_0)+tW$. In stationary-model terminology the correct classification is <ARIMA>(0,1,1). The requested ARMA description must therefore allow a unit-root equation.

When $V=0$, the differences are just $w_t$; when $W=0$ and $V>0$, they are $v_t-v_{t-1}$, a noninvertible MA(1) with coefficient $-1$. If both <variances> vanish, the model is deterministic apart from a possible initial random level. These limits explain the qualifications on the invertible representation above.