Duhamel Formula for the Dirichlet Wave Equation