I am trying to solve for a general solution to the wave function and demonstrate any solution has the form $f(x,t) = f_L (x+vt) + f_R (x-vt)$
I have used separation of variables f(x,t)=X(x)T(t) to decouple the equations: $\dfrac{d^2X}{dx^2} = k^2 x$ and $\dfrac{d^2T}{dt^2} = k^2 v^2 T$
My general solution looks like $X = \sum_k (c_1 x + c_2 + c_3 e^{kx} + c_4e^{-kx} +c_5 e^{ikx} + c_6 e^{-ikx})$, which, throwing out solutions that aren't square integrable, and taking the limit of k being continuous, looks like this:
$X(x) =\int \phi(k_1) (e^{ik_1 x} + e^{-ik_1 x})dk_1$ and similarly I have
$ T = \int \phi(k_2)(e^{ik_2 vt} + e^{-ik_2 vt})dk_2$
Now, I am thinking that preserving the positive and negative exponential solutions is not right, and seems meaningless to me since we integrate over all k. But I have kept them in there because it looks at first glance to me like they may help show that $f(x,t) = f_L (x+vt) + f_R (x-vt)$.
Where I am stuck is this last part. Because $k_1$ and $k_2$ are different variables, I cannot show that $f(x,t) = f_L (x+vt) + f_R (x-vt)$ Further, the product $f(x,t)=X(x)T(t)$ will look like $\int \int dk_1 dk_2 \phi(k_1) \phi(k_2)$, which I think may not be correct.
My question at this point is how can I show that any solution has the form $f(x,t) = f_L (x+vt) + f_R (x-vt)$?