For a differentiable objective on an admissible real Hilbert space , with , stationarity on the sphere in a normed vector space of fixed kinetic energy means that the projected gradient is normal to the sphere in a normed vector space. Thus for a real Lagrange multiplier. It follows by testing all tangent variations orthogonal to . The multiplier need not be positive; second-order conditions are still needed for a local minimum.
Use , , , and . Work along a sufficiently regular direct trajectory satisfying the given constraints. The zero spatial mean of the scalar field is conserved by incompressible flow, impermeable walls and zero scalar flux, so minimizing is equivalent to minimizing scalar variance, up to the fixed domain volume.
The printed functional fixes the initial state to a candidate ; it contains no term that enforces its kinetic energy. For the optimization over that candidate, add the real Lagrange multiplier constraint
Equivalently, one can restrict all control variations to the sphere in a normed vector space of fixed kinetic energy. This term changes the initial-control optimality condition, not the interior adjoint equations.
Let , and . Linearization of the momentum and scalar transport residuals gives
Both appearances of the perturbation velocity in the nonlinear momentum term have been differentiated. In particular, the coefficient is the gradient of the total velocity, not just the base shear.
For the negative-constraint convention of the functional, integration by parts gives the interior coefficients of as
Thus the adjoint equations for Boussinesq scalar mixing are
The transpose is essential: the th component of is . The coupling transposes advection of the scalar by a velocity perturbation; transposes buoyancy feedback. Dropping the latter would give a passive scalar adjoint, not the active scalar problem.
These equations are integrated backward, not forward. If , they read
with direct coefficients evaluated at . Both terms from the diffusion equation now have the usual forward sign in . A direct-adjoint looping method stores or reconstructs the forward trajectory, solves these equations backward, and uses the initial adjoint as the control gradient. The endpoint and fixed-energy conditions below give necessary conditions for a local optimizer, not a global optimality theorem.
The temporal integration by parts terms are
The terminal states are free and the objective has no explicit terminal-velocity dependence. Therefore
The factor two follows from the displayed objective without a prefactor. The initial scalar field perturbation is fixed, so and there is no independently prescribed adjoint-scalar condition at . Its value there is obtained by backward integration. Independent variation of the initial velocity state gives .
Variation of the candidate in the energy-augmented functional gives the fixed-energy initial-condition optimality condition. For the usual divergence-free no-slip control space , write for its orthogonal projection, the Leray-Helmholtz projection in the usual incompressible velocity space. This is the standard formal control condition when pressure is determined by incompressible flow and normal momentum. If the independently imposed direct pressure flux is retained as an additional constraint, the admissible control variations must also satisfy its compatibility conditions along the trajectory; they need not fill the usual space . The standard projection formula alone does not prove stationarity for that more restricted problem. Then
For the natural solenoidal adjoint space, . Equivalently, its component tangent to the sphere in a normed vector space of fixed kinetic energy vanishes:
Here is needed for the sphere in a normed vector space to be regular and for division by . The multiplier is real and can have either sign; normalizing the initial adjoint with a prescribed positive sign is not a general necessary condition for minimization. If , the only feasible initial velocity is zero and this tangent formula for the sphere in a normed vector space is inapplicable. First-order stationarity alone also allows maxima or saddles; a local minimum requires the appropriate nonnegative constrained second variation.
The spatial boundary terms vanish with periodic adjoints in , homogeneous no-slip boundary conditions at , and there. To see this, velocity variations vanish at the wall while their normal derivatives need not, so the viscous boundary term forces the adjoint velocity to vanish. Scalar variations have zero normal derivative but free values, forcing the adjoint scalar's normal derivative to vanish. Pressure variation gives adjoint incompressible flow; no independent terminal or initial datum is assigned to . Its additive time-dependent constant may be fixed by a zero spatial mean.
In particular, a homogeneous Neumann condition for the direct pressure does not by variational transposition require . For a smooth adjoint solution, the wall-normal adjoint momentum equation instead supplies
at the flat walls, because the direct scalar normal derivative is zero there. A zero adjoint-pressure derivative would be an additional compatibility choice, valid only when this right-hand side vanishes.
There are also literal direct-data compatibility qualifications in the printed setup. The initial total scalar field is , whose wall derivative is . It is extraordinarily small but mathematically not zero. Thus exact initial scalar data and exact zero wall flux are incompatible for a classical solution smooth at . One may use a parabolic mild solution of an abstract Cauchy problem with the boundary condition enforced for , or replace the initial profile by an exactly compatible smooth one; these are conventions, not an equality . The reference scalar field is also not a stationary profile of the diffusion equation at finite : the full term must be retained.
The pressure compatibility at a no-slip wall is similarly important. Direct normal momentum gives . The separately imposed zero pressure derivative requires this right side to vanish. It is not automatic for arbitrary fixed-energy initial velocities. For example, the divergence-free no-slip field generated by the periodic stream function with has , and , while . With adjusted to any positive energy, no classical solution smooth up to the initial wall can satisfy that extra pressure condition. The displayed adjoints are the formal necessary equations along admissible smooth trajectories; a well-posed physical formulation normally determines pressure from incompressible flow and normal momentum, rather than imposing independent homogeneous pressure flux for every control.
In a normed vector space, this set consists of all points at a fixed positive norm distance from . It also makes sense in an infinite-dimensional Hilbert space, unlike a specifically Euclidean sphere. In a real Hilbert space, the sphere in a normed vector space has tangent variations satisfying ; this follows by differentiating the fixed squared norm. This is the geometric constraint used in fixed-energy initial-condition optimality.