$u_{tt} = c^2u_{xx}+sin(\alpha t)$
$u(0,t)=0=u(\pi,t)$
$u(x,0) = 0 = u_t(x,0)$
where $0<x< \pi $ and $t>0$
I know how to solve this problem using Fourier series, but I also encountered another solution method where let $u(x,t) = v(x)+w(x,t)$. I want to ask how should I choose $v(x)$ in this case? Thanks for any help.