PhyslibSearch

Physlib.Mathematics.Calculus.Divergence

11 declarations

definition

Divergence of a map f:EEf: E \to E

#divergence

Let EE be a normed space over a field k\mathbf{k}. The divergence of a map f:EEf: E \to E at a point xEx \in E is defined as the trace of the Fréchet derivative (differential) of ff at xx.

theorem

The divergence of the zero map is zero

#divergence_zero

Let EE be a normed space over a field k\mathbf{k}. The divergence of the zero map f:EEf: E \to E (defined by f(x)=0f(x) = 0 for all xEx \in E) is the zero function, mapping every point in EE to 0k0 \in \mathbf{k}.

theorem

divf=i[Df(x)(bi)]i\text{div} f = \sum_{i} [Df(x)(b_i)]_i

#divergence_eq_sum_fderiv

Let EE be a normed space over a field k\mathbf{k}. For any finite set ss, basis b={bi}isb = \{b_i\}_{i \in s} of EE, and map f:EEf: E \to E, the divergence of ff at a point xEx \in E is equal to the sum of the diagonal components of its Fréchet derivative in that basis: divf(x)=is[Df(x)(bi)]i\text{div} f(x) = \sum_{i \in s} [Df(x)(b_i)]_i where Df(x)Df(x) is the Fréchet derivative of ff at xx, and [v]i[v]_i denotes the ii-th coordinate of the vector vv with respect to the basis bb.

theorem

divf=i[Df(x)(bi)]i\text{div} f = \sum_{i} [Df(x)(b_i)]_i

#divergence_eq_sum_fderiv'

Let EE be a normed space over a field k\mathbf{k}, and let b={bi}iιb = \{b_i\}_{i \in \iota} be a basis of EE indexed by a finite type ι\iota. For any map f:EEf : E \to E, the divergence of ff at a point xEx \in E is equal to the sum of the diagonal components of its Fréchet derivative with respect to the basis bb: divf(x)=iι[Df(x)(bi)]i\text{div} f(x) = \sum_{i \in \iota} [Df(x)(b_i)]_i where Df(x)Df(x) is the Fréchet derivative of ff at xx, and [v]i[v]_i denotes the ii-th coordinate of the vector vv with respect to the basis bb.

theorem

divf=Space.div(reprf)\text{div} f = \text{Space.div}(\text{repr} \circ f)

#divergence_eq_space_div

Let dd be a dimension and Spaced\text{Space}_d be the corresponding dd-dimensional real normed space. For any map f:SpacedSpacedf: \text{Space}_d \to \text{Space}_d that is differentiable over R\mathbb{R}, the divergence of ff (defined as the trace of its Fréchet derivative) is equal to the coordinate-based divergence of its representation in the canonical basis: divf=Space.div(reprf)\text{div} f = \text{Space.div}(\text{repr} \circ f) where repr\text{repr} is the map that assigns to each vector its coordinates with respect to the basis of Spaced\text{Space}_d, and Space.div\text{Space.div} is the divergence operator acting on coordinate-valued functions.

theorem

div(f,g)=divxf+divyg\text{div}(f, g) = \text{div}_x f + \text{div}_y g

#divergence_prodMk

Let EE and FF be finite-dimensional normed spaces over a field k\mathbf{k}. Consider the maps f:E×FEf: E \times F \to E and g:E×FFg: E \times F \to F. For any point (x,y)E×F(x, y) \in E \times F, if ff and gg are differentiable at (x,y)(x, y), then the divergence of the product map (f,g):E×FE×F(f, g): E \times F \to E \times F at that point is the sum of the partial divergences: div(f,g)(x,y)=div(xf(x,y))(x)+div(yg(x,y))(y)\text{div} (f, g)(x, y) = \text{div} (x' \mapsto f(x', y))(x) + \text{div} (y' \mapsto g(x, y'))(y) where the first term on the right is the divergence of ff restricted to the first component at xx, and the second term is the divergence of gg restricted to the second component at yy.

theorem

div(f+g)=divf+divg\text{div}(f + g) = \text{div} f + \text{div} g

#divergence_add

Let EE be a normed space over a field k\mathbf{k}. For any maps f,g:EEf, g: E \to E and any point xEx \in E, if ff and gg are differentiable at xx, then the divergence of the sum map f+gf + g at xx is equal to the sum of the divergences of ff and gg at xx: div(f+g)(x)=divf(x)+divg(x)\text{div}(f + g)(x) = \text{div} f(x) + \text{div} g(x)

theorem

div(f)=div f\text{div}(-f) = -\text{div } f

#divergence_neg

Let EE be a normed space over a field k\mathbf{k}. For any map f:EEf: E \to E and any point xEx \in E, the divergence of the map xf(x)x \mapsto -f(x) at xx is equal to the negation of the divergence of ff at xx: div(f)(x)=div f(x)\text{div}(-f)(x) = -\text{div } f(x)

theorem

div(fg)=divfdivg\text{div}(f - g) = \text{div} f - \text{div} g

#divergence_sub

Let EE be a normed space over a field k\mathbb{k}. Let f,g:EEf, g: E \to E be maps that are differentiable at a point xEx \in E. Then the divergence of their difference (fg)(f - g) at xx is equal to the difference of their individual divergences at xx: div(fg)(x)=divf(x)divg(x)\text{div}(f - g)(x) = \text{div} f(x) - \text{div} g(x) where the divergence is defined as the trace of the Fréchet derivative.

theorem

div(cf)(x)=cdivf(x)\operatorname{div}(c \cdot f)(x) = c \cdot \operatorname{div} f(x)

#divergence_const_smul

Let EE be a normed space over a field k\mathbf{k}. Let f:EEf: E \to E be a map and ckc \in \mathbf{k} be a scalar. If ff is differentiable at xEx \in E, then the divergence of the map xcf(x)x \mapsto c \cdot f(x) at xx is equal to cc times the divergence of ff at xx, i.e., div(cf)(x)=cdivf(x)\operatorname{div}(c \cdot f)(x) = c \cdot \operatorname{div} f(x).

theorem

Product rule for divergence: div(fg)=fdivg+f,g\text{div}(f \cdot g) = f \cdot \text{div} g + \langle \nabla f, g \rangle

#divergence_smul

Let EE be a finite-dimensional generalized inner product space over a field k\mathbb{k} (where k\mathbb{k} is R\mathbb{R} or C\mathbb{C}). Let f:Ekf: E \to \mathbb{k} be a scalar field and g:EEg: E \to E be a vector field, both of which are differentiable at a point xEx \in E. Then the divergence of the scalar-vector product xf(x)g(x)x \mapsto f(x) \cdot g(x) at xx is given by: div(fg)(x)=f(x)divg(x)+f(x),g(x)\text{div}(f \cdot g)(x) = f(x) \cdot \text{div} g(x) + \langle \nabla f(x), g(x) \rangle where div\text{div} is the divergence (defined as the trace of the Fréchet derivative), f(x)\nabla f(x) is the gradient of ff at xx (represented by the adjoint of the Fréchet derivative of ff at xx applied to 11), and ,\langle \cdot, \cdot \rangle denotes the inner product on EE.