I'm facing problem with inhomogeneous equation. Let $u(x,t)$  be a function that satisfies the PDE $$u_{xx}-u_{t t} = e^x+6t,$$ $x\in \mathbb{R}, t>0,$ and the initial conditions $$u(x,0)=\sin(x) ,u_{t}(x,0)=0$$ for every $x\in \mathbb{R}.$
Then what is the value of $u(\pi/2,\pi/2)?$
I'm not getting how to solve an inhomogeneous wave equation; can anyone give a hint?
 A: Hint
Define$$w(x,t)\triangleq u(x,t)-e^x+t^3$$therefore $$u_{xx}-u_{tt}=e^x+6t\implies w_{xx}-w_{tt}=0$$with the following initial conditions$$w(x,0)=u(x,0)-e^x=\sin x-e^x\\w_t(x,0)=u_t(x,0)=0$$Now, how is a homogeneous wave equation solved in terms of $w$?
A: Let $\begin{cases}p=x+t\\q=x-t\end{cases}$ ,
Then $u_x=u_pp_x+u_qq_x=u_p+u_q$
$u_{xx}=(u_p+u_q)_x=(u_p+u_q)_pp_x+(u_p+u_q)_qq_x=u_{pp}+u_{pq}+u_{pq}+u_{qq}=u_{pp}+2u_{pq}+u_{qq}$
$u_t=u_pp_t+u_qq_t=u_p-u_q$
$u_{tt}=(u_p-u_q)_t=(u_p-u_q)_pp_t+(u_p-u_q)_qq_t=u_{pp}-u_{pq}-u_{pq}+u_{qq}=u_{pp}-2u_{pq}+u_{qq}$
$\therefore u_{pp}+2u_{pq}+u_{qq}-(u_{pp}-2u_{pq}+u_{qq})=e^\frac{p+q}{2}+6\times\dfrac{p-q}{2}$
$4u_{pq}=e^\frac{p+q}{2}+3(p-q)$
$u_{pq}=\dfrac{e^\frac{p+q}{2}}{4}+\dfrac{3(p-q)}{4}$
$u(p,q)=f(p)+g(q)+e^\frac{p+q}{2}+\dfrac{3(p^2q-pq^2)}{8}$
$u(p,q)=f(p)+g(q)+e^\frac{p+q}{2}+\dfrac{3pq(p-q)}{8}$
$u(x,t)=f(x+t)+g(x-t)+e^x+\dfrac{3(x^2-t^2)t}{4}$ 
$u(x,0)=\sin x$ :
$f(x)+g(x)+e^x=\sin x$
$f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