Chain rule helper: if $f$ is differentiable at $x + t$, then the map $s \mapsto f(x + s)$ has derivative $f'(x + t)$ at $t$.
Chain rule helper: if $f$ is differentiable at $x - t$, then the map $s \mapsto f(x - s)$ has derivative $-f'(x - t)$ at $t$.
Chain rule helper: if $f$ is differentiable at $t + x$, then $s \mapsto f(s + x)$ has derivative $f'(t + x)$ at $t$.
Chain rule helper: if $f$ is differentiable at $t - x$, then $s \mapsto f(s - x)$ has derivative $f'(t - x)$ at $t$.
A $C^2$ function is differentiable.
For a $C^2$ function $f$ on $\mathbb{R}$, the derivative $f'$ is also differentiable.
Any function of the form $u(t, x) = F(x + t) + G(x - t)$ with $F, G \in C^2$ solves the $1{+}1$ dimensional wave equation $u_{tt} = u_{xx}$. (Null decomposition / d'Alembert form.)
Uniqueness for the $1{+}1$ wave equation. Two $C^2$ solutions of $u_{tt} = u_{xx}$ with the same initial position $u(0, \cdot)$ and initial velocity $u_t(0, \cdot)$ are identical on $\mathbb{R}^2$.
Null decomposition of any $C^2$ solution of the wave equation: there exist $C^2$ functions $F, G : \mathbb{R} \to \mathbb{R}$ such that $u(t, x) = F(x + t) + G(x - t)$.
Given a null decomposition $u(t, x) = F(x + t) + G(x - t)$ matching initial data $u(0, \cdot) = f$ and $u_t(0, \cdot) = g$, one obtains the explicit formula $F'(x) = \tfrac{1}{2}(f'(x) + g(x))$.
Any null decomposition $F(x + t) + G(x - t)$ matching the initial data
$(f, g)$ coincides pointwise with d'Alembert's formula. Combined with the
existence of such a decomposition (wave_null_decomposition), this gives the
explicit formula for any wave-equation solution.
Theorem 4.1 (d'Alembert's formula). Let $f \in C^2(\mathbb{R})$ and $g \in C^1(\mathbb{R})$. Any $C^2$ solution $u(t, x)$ of the $1{+}1$ dimensional wave equation $u_{tt} = u_{xx}$ with initial data $u(0, x) = f(x)$ and $u_t(0, x) = g(x)$ is given by d'Alembert's formula: $$u(t, x) = \tfrac{1}{2}(f(x + t) + f(x - t)) + \tfrac{1}{2} \int_{x - t}^{x + t} g(z) \, dz.$$