1. Introduction
Internal heat generation in a conducting body is usually not measurable directly. What can be measured is temperature at a small number of locations and over a finite time window, and the source must then be inferred by inverting the heat equation. This inverse source problem has a long history, both in the heat transfer literature [
1,
2,
3] and in the theory of inverse problems for parabolic equations [
4,
5,
6]. A complication that arises in practice is that the initial temperature field is rarely known: experiments often begin before the specimen reaches equilibrium, or the initial state is instrumented only at the sensor locations. The unknown initial condition must therefore be estimated together with the source, since errors in the assumed initial state propagate into the source estimate.
Both unknowns enter the parabolic problem linearly; nevertheless, the joint reconstruction is severely ill-posed. Diffusion strongly attenuates high spatial frequencies—exponentially for initial-condition modes across a positive observation lag—and finitely many temperature measurements cannot uniquely identify an unrestricted space–time source [
6,
7]. Iterative regularization is a natural tool for problems of this type, attractive for problems constrained by partial differential equations (PDEs) because each step requires only one forward and one adjoint solve. Its classical instance is the Landweber–Fridman iteration [
8,
9], which applies the adjoint of the forward map to the data residual and takes a fixed-point step, with regularization supplied by stopping early, typically through Morozov’s discrepancy principle [
10]. The convergence theory is well established [
11,
12,
13]; the iteration is robust but slow, and Krylov subspace methods, namely conjugate-gradient least squares (CGLS) and its numerically stable implementation least-squares QR (LSQR) [
14,
15,
16], reach the same regularized solution in far fewer adjoint solves and are the modern method of choice. Iterations of this kind have been used extensively for heat conduction problems, including the reconstruction of spacewise-dependent sources [
17,
18], source terms identified from final-time data [
19,
20], and Cauchy problems treated by the alternating method of Kozlov et al. [
21]. Johansson and Lesnic [
22] reconstructed a spacewise-dependent source, which is closest to the present setting, together with the initial temperature from two temperature snapshots, using a sequence of well-posed direct problems with discrepancy-principle stopping.
These deterministic schemes return a point estimate. They treat the noise only through the stopping rule and say nothing about the uncertainty that remains in the reconstruction, which matters whenever the estimate feeds a subsequent decision or design step. The statistical theory of inverse problems [
23,
24,
25] supplies the missing layer: the unknowns are modeled as random fields, the noise enters through a likelihood, and the posterior distribution carries both the estimate and its uncertainty. For linear forward maps with Gaussian noise and Gaussian priors the posterior is Gaussian, and its covariance can be explored at scale through low-rank approximations of the data-misfit Hessian [
26,
27,
28]. Bayesian formulations of thermal inverse problems, in particular, have been developed for parabolic equations with uncertain boundary data and for the calibration of wall thermal properties [
29,
30,
31].
The contribution of this paper is an adjoint-based framework that treats the joint space–time source and initial-condition problem both deterministically and probabilistically and equips the reconstruction with calibrated uncertainty. Existing joint reconstructions are deterministic and restrict the source to a spacewise-dependent profile recovered from temperature snapshots [
22]; here the source varies in both space and time, and the method returns point estimates together with calibrated pointwise credible bands for both unknown fields, at the cost of forward and adjoint solves of the heat equation. The technical basis is an elementary fact that has not, to our knowledge, been exploited for this purpose: a single adjoint solve provides the gradient of the data misfit with respect to both unknowns, because the adjoint state in the interior is the gradient with respect to the source, while its trace at
is the gradient with respect to the initial condition. On this joint gradient we build two reconstructions that share the same forward and adjoint machinery. The first is deterministic: the data misfit is minimized by conjugate-gradient least squares with statistical discrepancy-principle stopping, with the Landweber–Fridman iteration being retained as a baseline. The second is Bayesian: Gaussian priors render the posterior exactly Gaussian, its maximum a posteriori (MAP) estimate is computed by prior-preconditioned conjugate gradients, and the linearity of the forward map is exploited to obtain pointwise variances from a low-rank decomposition of the prior-preconditioned data-misfit Hessian. Because the discrete adjoint of the Crank–Nicolson scheme is implemented exactly, every gradient is correct to machine precision for the discrete objective, and the credible intervals are verified by a coverage experiment over truths drawn from the prior. We compare the deterministic and Bayesian reconstructions and study their robustness to the noise level and to the discretization; and a final example illustrates the practical value of the probabilistic viewpoint, in which a misspecified initial condition that a deterministic least-squares fit silently absorbs into the source is exposed by the calibrated discrepancy diagnostic. Although developed in one spatial dimension for clarity, the method is formulated for arbitrary dimension in
Section 2 and demonstrated on a two-dimensional plate in
Section 6.4; nothing in the construction is specific to one dimension.
The remainder of this paper is organized as follows.
Section 2 states the forward and inverse problems.
Section 3 derives the adjoint equation and the joint gradient.
Section 4 presents the adjoint-based iterative reconstruction, comparing the Landweber–Fridman, steepest-descent, and conjugate-gradient methods and their stopping rule.
Section 5 develops the statistical formulation and uncertainty quantification: the priors, the Gaussian posterior, the computation of the maximum a posteriori estimate and the low-rank posterior covariance, a calibrated discrepancy diagnostic, and the resulting algorithm. Finally,
Section 6 reports the numerical experiments (deterministic versus Bayesian reconstruction, and their sensitivity to noise and discretization), and
Section 7 concludes the paper.
2. Forward and Inverse Problem
We first state the problem in its general, multidimensional form. Let
be a bounded domain with Lipschitz boundary
, and let
be the final time. The temperature
solves the linear heat equation with prescribed, in general nonhomogeneous, Dirichlet data,
where
is a known constant diffusivity,
the spatial Laplacian,
f the internal heat source,
the initial temperature,
b the boundary data, and
d the spatial dimension. The source
f and the initial condition
are the unknowns to be recovered, while
and
b are known; both unknowns enter (
1) linearly. We assume
and
, and that
b admits a sufficiently regular extension into
(in the experiments of
Section 6 it is constant). Under these assumptions the forward problem possesses a unique weak solution
which depends linearly on
for fixed
b and continuously on the data [
32]. In one space dimension, interior parabolic regularity makes
u continuous on
, so its pointwise values away from the initial instant are classically defined; for
and
f merely square integrable this is no longer guaranteed. The precise standing of the pointwise observations used below is therefore fixed explicitly when they are introduced.
For clarity of exposition we develop the method in one spatial dimension; the construction carries over to
essentially unchanged, as the two-dimensional example of
Section 6.4 confirms. Moreover, because the boundary data are known and enter linearly, their contribution can be removed by superposition (made precise in (
3) below), leaving the unknown-driven part of the temperature to satisfy a heat equation with homogeneous Dirichlet conditions. We therefore take the boundary data to be homogeneous without loss of generality; nonzero data are reintroduced through the known term
identified below, and are used in the experiments of
Section 6. Accordingly, let
and
, and consider
The unknowns are the source
and the initial condition
, collected in the joint parameter
. The parameter space
is a Hilbert space under the inner product
The space
is the Cartesian product of the natural energy spaces of the two unknowns: the first inner-product term is the
pairing of space–time source densities over
Q, the second pairs initial-temperature profiles over
D. The second term is not a regularization device; it makes
a Hilbert space and fixes the metric in which gradients with respect to
are defined, so that the joint gradient of
Section 3 acquires its two components—the adjoint state in the interior and its trace at
—as the Riesz representative of the misfit derivative in this product inner product. The point observations introduced below are interpreted formally at the continuum level and rigorously in the finite-dimensional inference problem.
Temperatures are recorded at interior sensor locations
and times
, giving
scalar measurements collected by the linear observation operator
Point evaluation is not a bounded functional on
, so
C and the continuum maps built from it are formal on the stated parameter space. All computations and quantitative claims use the finite-dimensional discretization of
Section 3, where nodal evaluation is well defined and
is a bounded linear map. Composing the solution map
with
C defines the parameter-to-observable map
,
, understood here as formal continuum notation.
Because the boundary data are known,
is affine. Indeed, by superposition we split
, where
solves (
2) for the given
under homogeneous boundary conditions and
solves the heat equation with zero source and zero initial condition but the prescribed Dirichlet data
,
of the general problem (
1); this gives
with
linear in this formal continuum notation; its operative discrete counterpart is
and
the known boundary contribution. Since we focus on homogeneous boundary data,
and the forward map is linear,
; we adopt this throughout and record the modification for known nonhomogeneous data in the remark at the end of this section. The measurements are then modeled as
where
is the true parameter and
is the measurement noise, whose distribution is specified in
Section 5.
The inverse problem is to recover the joint unknown
from the noisy data
y, and it is ill-posed. Because the continuum point-observation map is not bounded on
, we do not claim that it is compact there. The operative map
is bounded and compact automatically in finite dimensions, while its singular values typically decay rapidly because diffusion strongly attenuates high spatial frequencies [
11]. The joint unknown is, in addition, not identifiable from finitely many observations: at the continuum level,
m scalar data cannot determine an unrestricted element of the infinite-dimensional space
, and after discretization
when
. A space–time source can therefore be altered in an unresolved direction without changing the measurements. Uniqueness results for parabolic source problems accordingly restrict the source class, for instance to separable or time-independent sources [
4,
5,
7]. We impose no such restriction; instead, the prior information introduced in
Section 5 selects a particular solution, and the posterior covariance quantifies how poorly the data constrain the directions that diffusion has erased.
3. Adjoint Equation and Joint Gradient
Let
be a symmetric positive definite weighting matrix (later
, with
the noise covariance), and recall the parameter-to-observable map
of
Section 2. We quantify the data misfit by the weighted least-squares functional
and abbreviate the residual by
. Gradients are taken in the inner product of
from
Section 2:
is the Riesz representative defined by
for every
. To compute the gradient of
, we enforce the PDE and the initial condition through the multipliers
p and
q,
where the multiplier
p vanishes on the lateral boundary. Equation (
6) is the Lagrangian of the PDE-constrained minimization of
, the misfit augmented by the state equation and the initial condition through the multipliers
p and
q; stationarity in the state
u yields the adjoint equation below. This is the classical adjoint-state (Lagrange-multiplier) technique of PDE-constrained optimization [
33,
34]. Let
be a variation with
and
free. The variation of the misfit is
, where the last bracket denotes distributional duality and
is the formal transpose of the observation operator, a sum of point masses at the sensor positions and measurement times. In keeping with
Section 2, this continuum computation is formal; its rigorous discrete counterpart follows in
Section 3. Integrating by parts in time,
, and twice in space,
, the boundary terms vanishing by the conditions on
and
p. Collecting terms,
Setting
for all admissible
then yields the terminal-boundary value problem
and identifies
. Equation (
7) is a backward heat equation in the variable
; with its point-mass right-hand side, it is understood in the weak sense, and it is well posed.
Because the forcing is impulsive in time, the adjoint state is smooth between measurement times and jumps across them. Writing
for the datum injected at
, integration of (
7) across
gives the jump condition
between which
p solves the homogeneous backward equation. Observations at the temporal endpoints are covered by the same rule and deserve explicit mention. A measurement at
enters as the effective terminal value
, the stated condition
holding beyond the jump; a measurement at
sits at the end of the backward sweep and contributes directly to the initial-condition gradient,
, rather than through the interior equation. The discrete adjoint recursion of
Section 3 reproduces exactly these jumps, including both endpoint cases.
With
u the forward solution and
p the adjoint solution, the constraint terms in (
6) vanish and
, so that the variations of
with respect to the parameters deliver the gradient of
:
and
, that is,
(when
carries a measurement,
is understood as
, per the jump rule above). Formally, the variation may be denoted by
, where
represents the distributional transpose action; a single adjoint solve supplies its source and initial-condition components. These continuum formulas are not
-valued in general for point sensors: the adjoint forcing is a measure, and an observation at
introduces point masses into the formal initial-condition component. The rigorous objects used in every computation are the discrete gradients of
Section 3,
, which are exact for the discrete objective.
Discrete Adjoint of the Crank–Nicolson Scheme
In the computations, we discretize (
2) by second-order central differences in space and the Crank–Nicolson scheme in time, and we differentiate the discrete misfit exactly. From this subsection onward the inverse problem is finite-dimensional:
denotes the discrete parameter-to-observable map, the Crank–Nicolson solve composed with nodal observation, and
its Euclidean transpose. The continuum symbols
A and
are reserved for the preceding formal derivation;
Section 4,
Section 5,
Section 6 and
Section 7 use
and
throughout. Let
denote the interior values at time level
n, and let
, with
and
the scaled second-difference matrix. The forward step is then
, where
is the boundary contribution. For the discrete misfit
, whose first variation is
with
the vector that injects the weighted residuals at the observation nodes at time level
n, the adjoint recursion is
where we have used that
are symmetric and commute, and the gradients are
If the source is represented by a coefficient vector
a through
, as in the coarser nodal bases used in
Section 6, the coefficient gradient is obtained by the chain rule,
Thus, the transposes of the interpolation or basis-evaluation operators are part of the implemented
; the displayed derivatives with respect to
are the intermediate state-grid derivatives. This recursion is precisely the Crank–Nicolson discretization of the adjoint PDE (
7) run backward in time, so that discretizing the adjoint and transposing the discretized forward map coincide for this scheme; the observation data enter exactly as the jumps derived above, the final-time datum as the terminal value
, interior data added between steps, and an initial-time datum appearing directly in
, the gradient with respect to
. The trapezoidal factor
is the quadrature weight that converts the continuous gradient
p into the gradient with respect to the discrete source values, while the gradient with respect to the initial values is the terminal state of the backward sweep. As a result, the implemented gradients satisfy the adjoint identity
to machine precision (
Section 6.1), the transpose taken in the Euclidean inner products on the coefficient spaces; the relation of this algebraic transpose to the continuous
adjoint is summarized below.
The recursion returns, up to roundoff, the exact gradient of the discrete objective because the discrete adjoint is the Euclidean transpose
of the discretized forward map. For sufficiently smooth solutions, the Crank–Nicolson/central-difference discretization is second order,
; this order is not asserted for rough sources. The matrices
are symmetric commuting polynomials in
, and
is positive definite. Their common eigenvectors give the forward and adjoint amplification factors
which proves unconditional stability. Crank–Nicolson is not
L-stable, so very stiff modes may alternate without being strongly damped, but they do not grow. All transposes above are Euclidean coefficient transposes; the corresponding
gradients require the appropriate mass matrices, and the coarse source basis is handled through the maps
.
4. Adjoint-Based Iterative Reconstruction
The deterministic reconstruction problem is to minimize the weighted misfit (
5) with
, that is, to solve the linear least-squares problem
Every method in this section accesses the forward model only through the two operations supplied by the adjoint calculus of
Section 3: an application of
, costing one forward solve, and an application of
, costing one adjoint solve. We first state the adjoint-state gradient and the normal equations, and on them compare three solvers: the fixed-point (Landweber–Fridman) iteration, steepest descent, and the conjugate-gradient (Krylov) method. All three are matrix-free and regularize the ill-posed problem (
9); they differ only in how quickly they extract the information the data contain.
4.1. Adjoint-State Gradient and Normal Equations
The minimizer of (
9) solves the normal equations
where the data-misfit Hessian
is self-adjoint and positive semidefinite on the parameter space. The adjoint-state method of
Section 3 returns the gradient
with one forward and one adjoint solve, and the same pair of solves applies
to a vector; neither operator is ever assembled. Because
inherits the ill-posedness of the continuum map (
Section 2), with a null space of dimension at least
,
is rank-deficient and its small singular values are masked by the noise, so (
10) is ill-posed and is not solved directly. Let
denote the singular values of
, which decay rapidly toward zero; they serve the analysis below and are never computed. The iterative methods that follow regularize (
10) by assembling the solution from the dominant singular directions and stopping before the noise is amplified. Early stopping selects a regularized least-squares solution, whereas the prior of
Section 5 selects instead the maximum a posteriori element. The discrepancy-stopped iterations are iterative regularization methods, not unregularized fits [
11,
14]. The Bayesian objective (
20) is a generalized Tikhonov functional whose penalty is supplied by the prior.
4.2. Landweber–Fridman Iteration
The simplest solver inserts the gradient (
11) into a fixed-point (Richardson) iteration. This is the Landweber–Fridman method [
8,
9,
11],
with
the operator norm. Realized through discrete PDE solves, each step takes
, applies
to form
, applies
through the discrete adjoint sweep, and updates
The two blocks of are the projected source coefficient gradient from the discrete formulas above (including the maps) and the initial adjoint value , respectively; in the continuum shorthand they correspond to and . Thus, one forward and one adjoint solve advance both unknowns. The step bound is estimated once by power iteration on , again using only forward and adjoint solves.
Started from
, the iterate after
k steps applies to the singular component with singular value
the fixed spectral filter
so that directions with
are recovered while those with smaller
remain near the initial guess. The reconstruction error therefore decreases at first and then, once the iteration begins to fit the noise, grows again in what is known as the semiconvergence characteristic of Landweber-type methods [
11], which is visible in the experiments of
Section 6.2. The weakness is the rate. The iteration count grows like the square of the singular-value ratio, so even the modes the data inform can require many thousands of steps. This slow linear convergence, rather than the cost per step, is what makes the plain iteration unattractive.
We regularize by stopping, using the discrepancy principle in its statistical form. The iteration is stopped at the first index
for which
with a tolerance
slightly above one (
in the experiments). This is Morozov’s rule [
10], the noise level being read from the
statistics of the whitened residual rather than prescribed by hand. The same rule stops the conjugate-gradient iteration below.
4.3. Conjugate-Gradient (Krylov) Method
The conjugate-gradient method extracts far more from each adjoint solve by choosing, at step
k, the best iterate in the whole Krylov subspace
instead of taking one fixed step along the gradient. Applied to the normal Equation (
10), CGLS selects
minimizing the weighted residual
, at the cost of one application of
and one of
per step, exactly that of a Landweber step.
This minimization is equivalent to applying the spectral filter
, where
is the degree-
k polynomial with
that the method selects optimally for the spectrum actually present; the contrast with Landweber–Fridman is that its filter (
14) uses the single, predetermined polynomial
. Because the conjugate-gradient polynomial adapts to the singular values, the method in practice resolves the informative subspace in a number of iterations comparable to its dimension, the count of singular values above the noise level, rather than the
of Landweber–Fridman. In the experiments, CGLS reaches the discrepancy in 11 iterations rather than 203 at
noise, and in 6 iterations rather than 41 at
noise (
Section 6.2). Like Landweber, CGLS is a regularization method: the iteration index is the regularization parameter, the error semiconverges, and the iteration is stopped by the discrepancy principle (
15) [
14].
4.4. Similarities and Differences
The three methods differ in the polynomial filter they apply to the singular values, and hence in the number of iterations required, as summarized in
Table 1; steepest descent, which replaces the fixed step
of (
12) by the locally optimal one but still moves along a single gradient direction, retains essentially the Landweber–Fridman rate.
Landweber’s geometric filter is fixed before the spectrum is seen and damps the slow modes only algebraically; steepest descent takes the locally optimal step but, still searching along a single gradient direction, inherits essentially the same asymptotic rate. The conjugate-gradient method optimizes over the entire Krylov subspace and applies an adaptive degree-k polynomial to the spectrum. For the rapidly decaying, clustered spectra considered here, it reaches the discrepancy in far fewer iterations than Landweber–Fridman. We therefore use CGLS as the deterministic solver and retain the Landweber–Fridman iteration as the historical and conceptual baseline.
The same hierarchy carries over to the statistical formulation of
Section 5. There the prior-preconditioned Landweber and conjugate-gradient iterations compute the maximum a posteriori estimate with the identical forward and adjoint solves, and a separate matrix-free Lanczos or randomized eigensolve yields the dominant eigenpairs of the prior-preconditioned Hessian on which the posterior covariance depends (
Section 5.4).
7. Conclusions
The contributions of this work are fourfold. First, a single adjoint solve of the heat equation yields the misfit gradient with respect to both an internal space–time source and the initial temperature—the adjoint state in the interior and its trace at
—so the joint reconstruction costs no more per iteration than the source-only problem, whereas existing joint procedures were restricted to spacewise-dependent sources from temperature snapshots. Second, on this gradient we build a unified framework in which a deterministic estimate (conjugate-gradient least squares stopped by the statistical discrepancy principle) and a Bayesian estimate (the MAP point of an exactly Gaussian posterior, by prior-preconditioned conjugate gradients) share the identical forward and adjoint machinery, with Landweber–Fridman retained as a baseline. Third, the framework delivers an exact finite-dimensional Gaussian posterior with verifiable uncertainty at the cost of forward and adjoint solves alone: the low-rank identity (
26) converts the rapid spectral decay of the prior-preconditioned data-misfit Hessian into pointwise credible bands, and the exact discrete adjoint makes the pipeline verifiable, with the bands attaining nominal coverage over prior-drawn truths (prior-predictive calibration). Fourth, the whitened MAP discrepancy, referred to as its exact prior-predictive generalized-
null law (
28)—itself a byproduct of the low-rank spectrum—serves as a truth-free, prior-predictive model-error indicator, detecting both a misspecified initial condition that a least-squares fit silently absorbs into the source and a discontinuous source that violates the prior.
The experiments support these contributions while marking their limits. Conjugate gradients is substantially faster than the Landweber baseline, and the Bayesian reconstruction is more robust to noise and mesh refinement. Prior-predictive coverage is nominal, whereas the out-of-prior experiments show that uncertainty failures concentrate near sharp interfaces; the discrepancy diagnostic detects consequential model mismatch but is less sensitive to features weakly informed by the data. The sensitivity and two-dimensional studies support robustness and dimensional transfer at the moderate scales tested here.
We close with the natural extensions, distinguishing what has been demonstrated from what has not. The experiments are one- and two-dimensional with at most 1326 unknowns; at a larger scale, the required ingredients—finite element discretizations, mesh-independent prior operators, randomized matrix-free eigensolvers—are established [
26,
27,
28], and their integration here is a natural next step we have not exercised; discrete-adjoint consistency also needs care under adaptive time stepping. Treating the diffusivity as uncertain renders the problem nonlinear (unknown additive boundary data, by contrast, enter affinely and would remain within the linear Gaussian framework as a third unknown) and the posterior non-Gaussian; a Laplace or Gauss–Newton approximation about the MAP point is then available, whose accuracy is not addressed by the present linear experiments and would need a dedicated assessment against sampling or ensemble methods [
43,
44]. Sources with sharp interfaces are better served by edge-preserving than Matérn priors—as the discontinuous-source experiment makes this quantitative—at the price of the exact Gaussian posterior. Finally, joint inference of noise and prior hyperparameters would relax the fixed-hyperparameter assumption but lies beyond the present study.