# Duhamel's formula

**Duhamel's formula** expresses the solution to a general inhomogeneous linear equation as a superposition of free solutions arising from both the initial data and the forcing term. For instance, the solution to the inhomogeneous initial value problem

for some spatial operator *L*, is given by

provided that *L* has enough of a functional calculus, and , , have enough regularity, to justify all computations. (If *L* is constant coefficient, then the Fourier transform can usually be used to justify everything so long as one works in the category of tempered distributions.) Note that the case *L=0* is simply the fundamental theorem of calculus, indeed one can view Duhamel's formula as the fundamental theorem of calculus twisted (conjugated) by the free propagator .

For equations which are second order in time, the formula is slightly more complicated. For instance, the solution to the inhomogeneous initial value problem

is given (formally, at least) by

Anyhow, we note that in this case the solution can be cast in the standard form. So, let us introduce the vectors

and

with the matrix

.

We can write the second order equation as

and write down the solution as expected in the original Duhamel's formula, that is

.

Useful applications of this approach can be found for systems having a Hamiltonian flow.