Step 1: Write the expression for work done by a variable force.
For a variable force,
\[
W=\int F\,dx
\]
Given,
\[
F=Kx^3
\]
Hence,
\[
W=\int_0^2 Kx^3\,dx
\]
Step 2: Substitute the value of \(K\).
Since
\[
K=2\,\text{N m}^{-3},
\]
we get
\[
W=\int_0^2 2x^3\,dx
\]
\[
W=2\int_0^2 x^3\,dx
\]
Step 3: Integrate.
\[
W=2\left[\frac{x^4}{4}\right]_0^2
\]
\[
W=2\left(\frac{2^4}{4}\right)
\]
\[
W=2\left(\frac{16}{4}\right)
\]
\[
W=2(4)
\]
\[
W=8\,\text{J}
\]
Step 4: Final conclusion.
Hence, the work done is
\[
\boxed{8\,\text{J}}
\]