Exercise: Solve the Cauchy problem $u_{tt}-c^2u_{xx}=0$ with conditions $u(x,0)=g(x)$ and $u_t(x,0)=h(x)$, where $g(x)=0,\ h(x)=\begin{cases} 0,\ x<0 \\ 1,\ x\ge0 \end{cases}$.
Please ignore this 'solution' and see Felix Marin's solution
Solution:
By D'Alembert formula I get
$$u(x,t)=\dfrac{1}{2c}\int_{x-ct}^{x+ct}0 \,\mathrm{d}s=0,\quad x<0.$$ and $$u(x,t)=\dfrac{1}{2c}\int_{x-ct}^{x+ct}1 \,\mathrm{d}s=t.\quad x\ge0.$$
Thus the answer is $0,\ if\ x<0\ and\ t,\ if\ x\ge 0$.
$\color{fuchsia}{Questions\ about\ the\ answer\ given\ by\ Marin.} $
Why the integral of $F'(x)=-\dfrac{1}{2}h(x)$ is $F(x)-F(a)|_{a<0} $ ? Why $a<0$?
Why $$\frac{-1}{2}\int_{a}^xh(ε) \,\mathrm{d}ε =\frac{-1}{2}H(x) \int_{0}^xh(ε) \,\mathrm{d}ε?$$
According to Wikipedia, $H(x)=\int_{-\infty}^x δ(ε) \,\mathrm{d}ε$.
Please help me to understand the solution of this Cauchy problem.
If there is an alternative solution, maybe an easier one, please show it :)

$\def\d{\mathrm{d}}$By d'Alembert's formula,$$ u(x, t) = \frac{1}{2c} \int_{x - ct}^{x + ct} h(s) \,\d s. $$
For $x \leqslant -ct$,$$ u(x, t) = \frac{1}{2c} \int_{x - ct}^{x + ct} h(s) \,\d s = \frac{1}{2c} \int_{x - ct}^{x + ct} 0 \,\d s = 0. $$ For $-ct < x \leqslant ct$,$$ u(x, t) = \frac{1}{2c} \int_{x - ct}^{x + ct} h(s) \,\d s = \frac{1}{2c} \int_0^{x + ct} 1 \,\d s = \frac{1}{2c} (x + ct). $$ For $x > ct$,$$ u(x, t) = \frac{1}{2c} \int_{x - ct}^{x + ct} h(s) \,\d s = \frac{1}{2c} \int_{x - ct}^{x + ct} 1 \,\d s = t. $$ Thus$$ u(x, t) = \begin{cases} 0; & x \leqslant -ct\\ \dfrac{1}{2c} (x + ct); & -ct < x \leqslant ct\\ t; & x > ct \end{cases} $$