The divergence of a test vector field #
For an open set Ω of a finite-dimensional real normed space E, a test vector field
φ ∈ 𝓓(Ω, E) has divergence div φ = tr (Dφ), which is again a test function on Ω. This file
packages the divergence as a continuous linear map 𝓓(Ω, E) →L[ℝ] 𝓓(Ω, ℝ), in the style of
Mathlib's TestFunction.fderivCLM, and expands it in the coordinates of any finite basis.
The divergence of test vector fields is the operator dual to the distributional gradient: the
total variation of a function and the perimeter of a set are suprema of the pairings
∫ u div φ over test vector fields φ with ‖φ‖ ≤ 1.
Main declarations #
TestFunction.divergenceCLM: the divergence𝓓(Ω, E) →L[ℝ] 𝓓(Ω, ℝ).TestFunction.divergenceCLM_apply: pointwise, it is the trace of the Fréchet derivative.TestFunction.divergenceCLM_monoCLM: the divergence commutes with extending a test vector field fromΩ'to a larger open setΩ.TestFunction.divergenceCLM_postcompCLM_toSpanSingleton: the divergence of the vector fieldφ vis the directional derivative∂_v φ.TestFunction.divergenceCLM_apply_eq_deriv: on the real line, the divergence of a test function is its derivative.TestFunction.divergenceCLM_apply_eq_sum: in a basisb, it is the sum of the derivatives of the coordinate functionsb.repr (φ ·) iin the directionsb i.TauCeti.divergenceCLM_translateTestFunction: the divergence of a translated test vector field is the translate of its divergence.TauCeti.integral_divergenceCLM_mul_congr_ae: the pairing∫ u div φonly depends onualmost everywhere onΩ.TauCeti.trace_fderiv_smulandTauCeti.trace_fderiv_smul_const: the Leibniz rulediv (χ φ) = χ div φ + Dχ φfor the divergencetr (D ·)of a vector field multiplied by a scalar function.TauCeti.exists_testFunction_sum_smul_comp_add: weighting translates of a test vector fieldφby nonnegative smooth functionsζ kcompactly supported inΩwith sum at most one gives a test vector field∑ k, ζ k φ(· + τ k)onΩ, of norm at most one when‖φ‖ ≤ 1, whose divergence is given by the Leibniz rule.
The divergence div φ = tr (Dφ) of a test vector field φ ∈ 𝓓(Ω, E), as a continuous
linear map into the scalar test functions 𝓓(Ω, ℝ). It is the composite of the Fréchet
derivative TestFunction.fderivCLM with the trace TauCeti.traceCLM.
Instances For
The divergence of a test vector field is pointwise the trace of its Fréchet derivative.
The divergence of a test vector field extended from Ω' to a larger open set Ω is the
divergence of the original field.
The divergence of the test vector field φ v, for a scalar test function φ and a fixed
vector v, is the directional derivative ∂_v φ.
On the real line, a test function is a test vector field whose divergence is its derivative.
The divergence in a basis: div φ = ∑ i, ∂_{b i} (b.repr (φ ·) i).
The divergence of a translated test vector field is the translate of its divergence.
Leibniz rule for the divergence: div (χ φ) = χ div φ + Dχ φ, where the divergence of a
vector field is the trace of its Fréchet derivative.
Divergence of a scalar function times a constant vector: div (χ v) = Dχ v.
Let ζ k, for k ∈ s, be nonnegative smooth functions compactly supported in Ω whose sum
is at most one, and φ a test vector field on Ω with ‖φ‖ ≤ 1. For any vectors τ k, the
field ∑ k ∈ s, ζ k φ(· + τ k) is a test vector field on Ω of norm at most one, whose
divergence is given by the Leibniz rule div (ζ φ) = ζ div φ + Dζ φ. The translates
φ(· + τ k) need not be supported in Ω: the weights ζ k cut them off.
The pairing ∫ u div φ of u with a test vector field φ on Ω only depends on u almost
everywhere on Ω, since div φ vanishes off Ω.