Assume sufficient smoothness and a regular boundary for the integrations below, with outward. Put , so on . Expanding the Dirichlet energy gives
By Green's first identity, the middle integral is
Thus the Dirichlet principle follows with an explicit remainder:
Equality means is constant on each connected component; its zero boundary value forces that constant to be zero.
Now let solve the heat equation and set . Differentiation followed by Green's first identity gives
Under time-independent Dirichlet boundary conditions, on , while in . Therefore
If equality holds at a particular time, continuity makes throughout at that time. Its boundary values are still , so uniqueness of the Dirichlet problem implies . Conversely has and gives equality. This proves the full equality criterion for Dirichlet energy dissipation for the heat equation.
For the dynamic boundary condition for the heat equation, substitute directly into the boundary term. The interior equation is unchanged, so
This is Dirichlet energy dissipation with a dynamic heat boundary condition. It remains valid when vanishes, because no division by is used. The last part preserves energy monotonicity; its stationary states need not have the earlier prescribed Dirichlet data. For example, with strictly positive on a connected boundary, a stationary harmonic state has zero outward normal derivative and is constant, as follows by applying Green's first identity to that state itself.
Let , using real-valued smooth and a fixed bounded region. Differentiation under the integral sign and Green's first identity yield
The boundary term vanishes because on , and the heat equation gives in . Consequently
The integrand is continuous and nonnegative. Thus at any fixed time, equality is equivalent to everywhere in , also giving there at that time. This proves Dirichlet energy dissipation for the heat equation.
The boundary condition fixes the boundary temperature in time; it is not a zero normal derivative condition. No sign condition on is used. The stated smoothness licenses the time derivative, spatial integration by parts and boundary trace; without that regularity an appropriate weak energy argument would be required.