I want to solve the 1-dimensional wave equation $$u_{t t} - c^2 u_{x x} = 0$$ for $u(x,t)$ in the domain $-\infty \leq x \leq \infty, t\geq 0$ with initial data $$ u(x,0) = g(x) \hspace{4mm} , \hspace{4mm} u_t(x,0) = 0$$ and forcing at location $x=0$ by a prescribed value of $$u(0,t) = h(t) \; .$$ The condition $$ h(0) = g(0) $$ is satisfied. The situation is shown in the following figure.
As is well known, in the case of zero forcing, the solution is $$ u = \frac{1}{2} [g(x+c t) + g(x-c t) ] \; . $$ How do I deal with the forcing? Can you show me a suitable approach or recommend literature that explains this? Thank you.

I found a general solution in the book "Handbook of linear partial differential equations for engineers and scientists, 2nd edition", section 6.1.2, for the domain $0 \leq x < \infty$. In my case, the solution is $$u(x,t) = \frac{1}{2} [g(x+c t) + g(x-c t)] + \operatorname{H}\left( t-\frac{x}{c} \right) h\left( t - \frac{x}{c} \right) $$ where $\operatorname{H}\left( \cdot \right)$ is the Heaviside step function.