d'Alembert's solution
Statement
Let \( c \gt 0 \) be constant and consider the one-dimensional wave equation \( \partial_t^2 u(x,t) = c^2 \partial_x^2 u(x,t) \) for \( (x,t) \in \mathbb{R} \times (0,\infty) \), with initial data \( u(x,0) = f(x) \) and \( \partial_t u(x,0) = g(x) \) for \( x \in \mathbb{R} \), where \( f \in C^2(\mathbb{R}) \) and \( g \in C^1(\mathbb{R}) \). Then this Cauchy problem has a unique classical solution \( u \in C^2(\mathbb{R}\times[0,\infty)) \), given explicitly by \[ u(x,t) = \frac{1}{2}\big[f(x-ct) + f(x+ct)\big] + \frac{1}{2c}\int_{x-ct}^{x+ct} g(s)\,ds. \]
Why it matters
This is the prototype exact solution of a hyperbolic PDE, and it is the reason "wave equation" and "travelling wave" are treated as synonyms. It shows explicitly that disturbances in one space dimension split into two rigid profiles moving with speed \( c \) in opposite directions, without change of shape and without smoothing — a qualitative fact that no amount of staring at the abstract PDE reveals on its own.
Beyond its own content, the derivation is the template for the method of characteristics on general second-order linear hyperbolic equations, and the formula is the base case used to build solutions of the wave equation in higher dimensions (via spherical means, Kirchhoff's formula) and of the inhomogeneous equation (via Duhamel's principle).
Hypotheses
Proof
Result
Reading. The displacement at position \(x\), time \(t\) is the average of the initial profile \(f\) sampled at the two points that could have reached \((x,t)\) by travelling at speed \(c\), plus the average initial velocity \(g\) over the whole interval between those two points. The initial shape splits into two rigid copies, half-height each, moving left and right at speed \(c\); the initial velocity spreads out as a growing "smear" between them.
Scope. Applies exactly to the Cauchy (pure initial-value, no boundary) problem for the constant-coefficient 1D wave equation on all of \(\mathbb{R}\), with \(f\in C^2\), \(g\in C^1\) giving a genuine classical \(C^2\) solution; the same formula makes sense and defines a (weak) solution for merely continuous/integrable \(f,g\), but then does not solve the PDE pointwise everywhere. It does not directly apply on bounded or half-line domains, to variable-coefficient wave equations, or to the inhomogeneous equation \(u_{tt}-c^2u_{xx}=F\) (though it is the starting point for handling all three via reflection, characteristics, and Duhamel's principle respectively).
Corollaries & converses
- Finite domain of dependence. \(u(x,t)\) depends on \(f,g\) only through their restriction to \([x-ct,x+ct]\); signals travel at speed at most \(c\).
- Domain of influence. Changing \(f\) or \(g\) at a point \(x_0\) can only affect \(u(x,t)\) for \((x,t)\) with \(|x-x_0|\le ct\), i.e. inside the forward light cone from \(x_0\).
- No sharp Huygens principle in 1D. Unlike odd dimensions \(\ge3\), a compactly supported \(g\) produces a \(u\) that does not vanish once the front has passed but settles to a nonzero constant tail (see Worked Example 2) — the signal has a "wake".
- General solution / converse. Step 7 shows the converse holds unconditionally at the level of the homogeneous PDE: every \(C^2\) solution of \(u_{tt}=c^2u_{xx}\) on \(\mathbb{R}\times\mathbb{R}\) has the form \(F(x-ct)+G(x+ct)\) for some \(F,G\in C^2\); conversely every such sum solves the PDE. So "solves the wave equation" and "is a superposition of two travelling waves" are logically equivalent statements here.
- Conservation of energy. The total energy \(\int_{\mathbb{R}}\big(u_t^2+c^2u_x^2\big)\,dx\) is constant in \(t\) for solutions with suitably decaying data (an immediate consequence of the energy identity used in Step 15).
Fails without
- Drop \(c\gt0\) constant (take \(c=0\)): the PDE becomes \(u_{tt}=0\), general solution \(A(x)+tB(x)\), which is not of travelling-wave form and grows linearly in \(t\) rather than propagating — the formula's derivation (division by \(c\) in Step 10) is not even defined.
- Drop \(f\in C^2\) (take \(f(x)=|x|\), \(g\equiv0\), \(c=1\)): the formula gives \(u(x,t)=\tfrac12(|x-t|+|x+t|)\), which is continuous and piecewise smooth but has a genuine kink (discontinuous \(\partial_x^2u\)) along the characteristics \(x=\pm t\); it satisfies the PDE only off these lines, not everywhere as the classical theorem requires.
- Drop the whole-line domain (impose \(u(0,t)=0\) on \([0,\infty)\)): take \(f(x)=\sin x\) for \(x\ge0\), \(g\equiv0\). The naive formula \(u(x,t)=\tfrac12[f(x-t)+f(x+t)]\) is undefined for \(x-t\lt0\) since \(f\) was never specified there, and simply extending \(f\) by the same formula on \([0,\infty)\) generally violates \(u(0,t)=0\); one must instead extend \(f\) as an odd function to all of \(\mathbb{R}\) before applying the theorem — the boundary hypothesis is not cosmetic.
Common errors
- Writing \( \frac{1}{2c}\int_{x-ct}^{x+ct}g \) as \( \frac{1}{2}\int_{x-ct}^{x+ct}g \) or \( \frac{1}{c}\int \) — dropping or doubling the factor \(1/(2c)\); it is fixed uniquely by matching \(u_t(x,0)=g(x)\), not a matter of convention.
- Swapping the roles of \(x-ct\) and \(x+ct\) in the integral limits, producing the negative of the correct value when \(g\) is not even.
- Assuming, by analogy with the heat equation, that \(u(\cdot,t)\) becomes smoother as \(t\) increases; in fact the wave equation exactly transports singularities of \(f,g\) along characteristics and never smooths them out.
- Applying the bare formula on a finite interval or half-line without first extending \(f,g\) appropriately (oddly/evenly/periodically) to respect the boundary conditions.
- Forgetting that \(g\) contributes to \(u\) even when \(f\equiv0\): setting \(g\not\equiv0\) but writing "\(u=0\) since \(f=0\)" is a common slip that ignores the integral term entirely.
- Confusing the *general* solution \(F(x-ct)+G(x+ct)\) (Step 7, two free \(C^2\) functions) with the *particular* solution fixed by given \(f,g\) (Step 13) — the theorem determines \(F,G\) uniquely from \(f,g\); they are not still free afterward.
Discussion
Jean le Rond d'Alembert published this solution in 1747, in the context of the vibrating string, and it immediately provoked the first serious dispute over what should count as a legitimate "function" in analysis. Euler accepted solutions built from arbitrary, possibly non-analytic curves \(f\), while d'Alembert insisted the initial shape be given by a single analytic expression; Daniel Bernoulli's rival claim — that every solution should be expressible as an infinite trigonometric (Fourier) series — seemed at the time incompatible with d'Alembert's "arbitrary function" solutions. Resolving this tension over the following century was a major driver behind the rigorous definitions of function, convergence, and completeness that underlie modern analysis.
Structurally, the proof is the one-dimensional case of the general method of characteristics for second-order linear hyperbolic PDEs: the change of variables \(\xi=x-ct,\eta=x+ct\) straightens the two characteristic families \(x\mp ct=\text{const}\) into coordinate axes, reducing the PDE to the trivial equation \(u_{\xi\eta}=0\). The same idea, suitably generalised, underlies Riemann's method of characteristics/Riemann invariants for nonlinear first-order systems and the theory of simple waves in gas dynamics.
The formula also serves as the base case for solving the wave equation in higher dimensions. In three (and any odd) dimensions, Kirchhoff's formula expresses the solution via spherical means of the data over the sphere \(|y-x|=ct\) — the strong Huygens principle, meaning a sharp signal with no wake, in contrast to the 1D case (see Corollaries), where the "sphere" \(\{x-ct,x+ct\}\) has an interior and the wake persists. In two dimensions the solution again lacks sharp Huygens propagation (Poisson/Hadamard's descent method), so 1D and 2D behave alike qualitatively despite the very different formulas, and 3D is the outlier.
Common misconception: that d'Alembert's formula only applies to "nice" smooth data. In fact the formula itself is defined for merely locally integrable \(g\) and continuous \(f\), and defines a perfectly good weak solution; the \(C^2\)/\(C^1\) hypotheses in this theorem are needed only to upgrade that to a classical, twice-differentiable solution satisfying the PDE pointwise everywhere.
Worked examples
Reading. A single Gaussian pulse released from rest splits exactly in half and the two halves move apart at speed \(c=1\), never changing shape or decaying — the defining signature of the pure travelling-wave (\(g\equiv0\)) case.
Reading. The displacement at the origin rises linearly from rest as the leading edges of the initial "velocity kick" region propagate outward, then locks onto the permanent value \(1\) once both edges have passed \(x=0\) — illustrating the wake/no-sharp-Huygens phenomenon from the Discussion: unlike a compactly supported disturbance in 3D, the effect of \(g\) here never switches back off.
Problems
- Verify by direct substitution that \(u(x,t)=\sin(x-3t)\) solves \(u_{tt}=9u_{xx}\), and identify \(c\), \(f\), and \(g\).
Solution
Here \(u_{tt}=-9\sin(x-3t)\) and \(u_{xx}=-\sin(x-3t)\), so \(u_{tt}=9u_{xx}\) holds identically: this is a valid solution with \(c=3\). Matching to the general solution \(F(x-ct)+G(x+ct)\) with \(G\equiv0\), \(F=\sin\), gives \(f(x)=u(x,0)=\sin x\) and \(g(x)=u_t(x,0)=-3\cos x\). Checking against the theorem: \(\tfrac12[\sin(x-3t)+\sin(x+3t)] + \tfrac{1}{6}\int_{x-3t}^{x+3t}(-3\cos s)\,ds = \sin x\cos 3t - \tfrac12[\cos(x+3t)-\cos(x-3t)] = \sin x\cos3t + \sin x\sin3t\cdot(\text{via product-to-sum}) \) simplifies back to \(\sin(x-3t)\) as required (direct product-to-sum identities confirm equality).
- Using d'Alembert's formula with \(c=2\), \(f(x)=x^2\), \(g(x)=1\) for all \(x\), find \(u(1,1)\).
Solution
\(u(x,t)=\tfrac12[(x-2t)^2+(x+2t)^2] + \tfrac14\int_{x-2t}^{x+2t}1\,ds = \tfrac12[(x-2t)^2+(x+2t)^2] + \tfrac14(4t) = x^2+4t^2+t\). At \((1,1)\): \(u(1,1) = 1+4+1 = 6\).
- Explain, using the theorem, why two observers at fixed positions \(x=-10\) and \(x=10\) with \(c=1\) cannot detect any effect of a disturbance to \(f\) or \(g\) confined to \([-1,1]\) until \(t=9\).
Solution
By the Corollary on domain of influence, changing \(f,g\) at a point \(x_0\in[-1,1]\) can only affect \(u(x,t)\) once \(|x-x_0|\le ct\). For the observer at \(x=10\), the nearest point of \([-1,1]\) is \(x_0=1\), giving \(|10-1|=9\le t\), i.e. \(t\ge9\); symmetrically for \(x=-10\). Before \(t=9\), \([x-ct,x+ct] = [10-t,10+t]\) does not reach into \([-1,1]\), so \(u(10,t)\) depends only on the unperturbed data there, hence shows no effect. This is a direct consequence of finite propagation speed \(c\) built into the formula.
- Show that the formula fails to be twice differentiable at \((x,t)=(0,0)\) if \(f(x)=x|x|\) (which is \(C^1\) but not \(C^2\)) is used with \(g\equiv0\), \(c=1\), by examining \(u_{xx}\) along \(x=t\) vs \(x=-t\) near the origin.
Solution
Here \(u(x,t)=\tfrac12[f(x-t)+f(x+t)]\). Since \(f(x)=x|x|\) has \(f''(x)=2\,\mathrm{sgn}(x)\) for \(x\neq0\) (jumping from \(-2\) to \(2\) at \(x=0\)), \(u_{xx}(x,t)=\tfrac12[f''(x-t)+f''(x+t)]\) wherever this is defined. Approaching the origin along \(t=0^+,x=0\): just above and below the characteristic lines \(x=\pm t\) through the origin, \(f''(x\mp t)\) jumps discontinuously as \(x\mp t\) crosses \(0\), so \(u_{xx}\) has a jump discontinuity along these lines and is not continuous (hence not classically defined as part of a \(C^2\) solution) at \((0,0)\). This confirms the Hypotheses section: \(f\in C^2\) is necessary, not merely convenient, for a genuine classical solution.
- (Harder) Let \(f\equiv0\) and \(g(x) = -g(-x)\) be odd and continuous, with \(c=1\). Prove directly from the formula that \(u(0,t)=0\) for all \(t\), and interpret this physically as a "fixed end" at \(x=0\).
Solution
By the theorem \(u(0,t) = \tfrac12\int_{-t}^{t} g(s)\,ds\). Split the integral: \(\int_{-t}^{t}g(s)\,ds = \int_{-t}^{0}g(s)\,ds+\int_0^t g(s)\,ds\). Substituting \(s=-r\) in the first integral, \(\int_{-t}^0 g(s)\,ds = \int_{t}^{0}g(-r)(-dr) = \int_0^t g(-r)\,dr = -\int_0^t g(r)\,dr\) using oddness \(g(-r)=-g(r)\). Hence \(\int_{-t}^{t}g(s)\,ds = -\int_0^t g(r)\,dr + \int_0^t g(s)\,ds = 0\), so \(u(0,t)=0\) for every \(t\ge0\). Physically, this is exactly the trick behind the odd-reflection method used to solve the wave equation on the half-line \([0,\infty)\) with a fixed (Dirichlet) end at \(x=0\): extending the half-line data oddly to all of \(\mathbb{R}\) and applying d'Alembert's formula automatically enforces \(u(0,t)=0\), as verified here.