I've been trying to come up with a good way to get rid of an inhomogeneity in this PDE, but I have two different solutions. I am not sure if this is a question for the Math community. If not I'll ask the physics community about this
Consider this PDE which models the Wave Equation
$u_{tt} = u_{xx} + c\sin(2\pi x) $
With these conditions
$u(0,t) = u(1,t) = u(x,0) = u_t(x,0) = 0$
So I thought about making a substitution where $u_1 = \sum_{n\in \mathbb{N}} T(t)X(x)$ and to get rid of that sine function, I let $X(x) = \sin(n\pi x)$ and all the other $n$s to be $0$ for convenience and let $u(x,t) = v(x,t) + u_1$ where $u_1$ is my particular solution and $v(x,t)$ is my homogenous solution. After a while, I managed to solved that $v(x,t) = 0$ and there only exists $u_1$.
So I thought about making another substitution. Using the theory of the heat equation where I let
$u(x,t) = w(x,t) + z(x)$
where $z(x)$ is the steady state solution to the Wave Equation (if I can even use such a terminology) and $w(x,t)$ is the transient state (this is my "particular" solution).
I reapplied the techniques as I did for the heat equation where I first set all the time derivatives to $0$ and solved for the steady state and then the transient state. Neither the transient state nor steady state were $0$ and after computing, I got my solution to be the same for both PDE
So my question is, is it a coincidence they both worked? Does the Wave Equation have those steady/transient states solution?
Thank you