The continuity equation: Difference between revisions

From Optimal Transport Wiki
Jump to navigation Jump to search
 
(19 intermediate revisions by the same user not shown)
Line 1: Line 1:
== Introduction ==
== Introduction ==


The continuity equation is an important equation in many science fields, for example, electromagnetism, computer vision, fluid dynamics etc. However, in the field of optimal transport, the formulation from fluid dynamics is of a large significance. This form helps to explain dynamics formulation of special cases of [https://en.wikipedia.org/wiki/Wasserstein_metric Wasserstein metric], and we will focus in this direction. For more general information about the continuity equation, look at the article [https://en.wikipedia.org/wiki/Continuity_equation Continuity equation].
The continuity equation is an important equation in many fields of science, for example, electromagnetism, computer vision, fluid dynamics etc. However, in the field of optimal transport, the formulation from fluid dynamics is of a large significance. This form helps to explain the dynamic formulation of special cases of [https://en.wikipedia.org/wiki/Wasserstein_metric Wasserstein metric], and we will focus in this direction. For more general information about the continuity equation, look at the article [https://en.wikipedia.org/wiki/Continuity_equation Continuity equation].


== Continuity equation in fluid dynamics ==
== Continuity equation in fluid dynamics ==


First, because of the intuition, we will introduce definition of the continuity equation in fluid mechanics. The exposition in this section will follow the book by Chorin and Marsden<ref name="Marsden" />.  
First, because of the intuition, we will introduce the definition of the continuity equation in fluid mechanics. The exposition in this section will follow the book by Chorin and Marsden<ref name="Marsden" />.  


Suppose that mass of our fluid is conserved, through time. Denote <math> \rho(x,t) </math> as a density function and <math> v(x,t) </math> as a particle velocity. Then, for any subspace <math> W </math> of <math> \mathbb{R}^{3} </math> we have:  
Suppose that mass of our fluid is conserved, through time. Denote <math> \rho(x,t) </math> as a density function and <math> v(x,t) </math> as a particle velocity. Then, for any subspace <math> W </math> of <math> \mathbb{R}^{3} </math> we have:  
Line 17: Line 17:
which implies, since <math> W </math> is arbitrary, that:
which implies, since <math> W </math> is arbitrary, that:
       <math> \partial_{t}\rho + \nabla\cdot(\rho v) = 0. </math>
       <math> \partial_{t}\rho + \nabla\cdot(\rho v) = 0. </math>
The last equation is the continuity equation in fluid dynamics, written in the differential form. Equation of this form we use in the optimal transport.
The last equation is the continuity equation in fluid dynamics, written in the differential form. We use the equation in this form in optimal transport.


== Continuity equation in optimal transport ==
== Continuity equation in optimal transport ==


Reason why we can not apply the previous equation immediately in the optimal transport theory is a regularity of measures we work with. By abuse of notation, <math> \mu = \mu(x) dx </math>, a function <math> \mu(x) </math> does not have to be smooth. So, we need to find a proper space for our measures.   
The previous discussion assumed that the density was smooth, which is not true of the general measures we consider in optimal transport. Even when a measure <math> \mu </math> is absolutely continuous with respect to Lebesgue measure, which we write with a mild abuse of notation as <math> d\mu(x) = \mu(x) dx </math>, <math> \mu </math> does not have to be smooth. So, we need to state a proper weak formulation of the continuity equation. Smooth functions satisfy all the cases below.   


Sometimes in the literature, authors use continuity equation, and transport equation as synonyms. On the other hand, in the optimal transport we differentiate these two and the standard Cauchy problem. Here, we will present definitions and reasoning from book by  F.Santambrogio<ref name="Santambrogio" />.
Sometimes in the literature, authors use continuity equation, and transport equation as synonyms. On the other hand, in the optimal transport we differentiate these two and the standard Cauchy problem. Here, we will present definitions and reasoning from book by  F.Santambrogio<ref name="Santambrogio" />.
Line 28: Line 28:
<math> \partial_{t}\mu_{t} + \nabla\cdot (\mu_{t}v_{t}) = 0 </math>.
<math> \partial_{t}\mu_{t} + \nabla\cdot (\mu_{t}v_{t}) = 0 </math>.


All the measures we are interested in satisfy <math> \int_{0}^{1} ||v_{t}||_{L^{1}(\mu_{t})} < \infty </math>, and solve continuity equation in a distributional sense, namely  
:* All the measures we are interested in satisfy <math> \int_{0}^{1} ||v_{t}||_{L^{1}(\mu_{t})}dt < \infty </math>, and solve continuity equation in a distributional sense, namely  
     <math> \int_{0}^{T}\int_{\Omega} (\partial_{t}\phi) d\mu_{t} dt + \int_{0}^{T}\int_{\Omega} \nabla\phi\cdot v_{t} d\mu_{t} dt = 0, </math>   
     <math> \int_{0}^{T}\int_{\Omega} (\partial_{t}\phi) d\mu_{t} dt + \int_{0}^{T}\int_{\Omega} \nabla\phi\cdot v_{t} d\mu_{t} dt = 0, </math>   
for all <math> \phi \in C_{c}^{1}((0,T)X\Omega) </math>, where <math> \Omega </math> is a compact set. We assume no-flux condition in this case, namely <math> \mu_{t}v_{t} \cdot n = 0 </math> on the boundary <math> \partial\Omega. </math>
for all <math> \phi \in C_{c}^{1}((0,T)X\Omega) </math>, where <math> \Omega </math> is a compact set or the whole space <math> \mathbb{R}^{d}</math>, and <math> 0<T<1 </math>. We assume no-flux condition in this case, namely <math> \mu_{t}v_{t} \cdot n = 0 </math> on the boundary <math> \partial\Omega. </math>


As it is always in the optimal transport, we want to move one pile of dirt to another one. So, we have to impose initial and terminal conditions.
The main goal of the classical optimal transport problem is..., we want to move one pile of dirt to another one. So, we have to impose initial and terminal conditions, for example <math> \mu_{0} = \mu  </math>, and <math> \mu_{1} = \nu.  </math> Then, our equation becomes
    <math> \int_{0}^{T}\int_{\Omega} (\partial_{t}\phi) d\mu_{t} dt + \int_{0}^{T}\int_{\Omega} \nabla\phi\cdot v_{t} d\mu_{t} dt = \int_{\Omega}\phi(T,x)d\nu(x) - \int_{\Omega}\phi(0,x)d\mu(x),</math>
for all <math> \phi \in C_{c}^{1}([0,T]X\Omega). </math>
 
:* Another way to interpret solutions to the continuity equation is to assume that function <math> t \rightarrow \int_{\Omega} \psi d\mu_{t}</math> is absolutely continuous, and for a.e. <math>t</math> it holds:
  <math> \partial_{t} \int_{\Omega} \psi d\mu_{t} = \int_{\Omega} \nabla\phi \cdot v_{t}. </math>
This kind of solution is called a weak solution.
 
Proposition 4.2., on the page 124., in the book by Santambrogio<ref name="Santambrogio" /> states that these solutions are basically equivalent.
 
:* There is also a third way to think about this solutions, using the Lipschitz functions, and it is contained in the following:
 
: '''Proposition.'''<ref name=Santambrogio /> Let <math> \mu </math> be the Lipschitz function in <math> (t,x) </math> and <math> v </math> be the Lipschitz function in <math> x.</math> Suppose that the continuity equation is satisfied in the weak sense. Then it is satisfied in a.e. sense.
 
Previous three definitions and connections help us to conclude this section by referencing to Theorem of Cauchy-Lipschitz(<ref name="Ambrosio" />, p. 184). It is the analogue of the Picard-Lindelof Theorem in ODE theory, and it provides us with the unique solution, which is crucial for finding a proper geodesics in the applications.


== Applications ==
== Applications ==

Latest revision as of 05:45, 22 February 2022

Introduction

The continuity equation is an important equation in many fields of science, for example, electromagnetism, computer vision, fluid dynamics etc. However, in the field of optimal transport, the formulation from fluid dynamics is of a large significance. This form helps to explain the dynamic formulation of special cases of Wasserstein metric, and we will focus in this direction. For more general information about the continuity equation, look at the article Continuity equation.

Continuity equation in fluid dynamics

First, because of the intuition, we will introduce the definition of the continuity equation in fluid mechanics. The exposition in this section will follow the book by Chorin and Marsden[1].

Suppose that mass of our fluid is conserved, through time. Denote as a density function and as a particle velocity. Then, for any subspace of we have:

    

In this section, we assume both density function and particle velocity are smooth enough. Hence, after differentiating under the integral and applying the Divergence Theorem, we get:

     

Finally, we conclude that:

     

which implies, since is arbitrary, that:

     

The last equation is the continuity equation in fluid dynamics, written in the differential form. We use the equation in this form in optimal transport.

Continuity equation in optimal transport

The previous discussion assumed that the density was smooth, which is not true of the general measures we consider in optimal transport. Even when a measure is absolutely continuous with respect to Lebesgue measure, which we write with a mild abuse of notation as , does not have to be smooth. So, we need to state a proper weak formulation of the continuity equation. Smooth functions satisfy all the cases below.

Sometimes in the literature, authors use continuity equation, and transport equation as synonyms. On the other hand, in the optimal transport we differentiate these two and the standard Cauchy problem. Here, we will present definitions and reasoning from book by F.Santambrogio[2].

From this point, we are looking at the following equation: .

  • All the measures we are interested in satisfy , and solve continuity equation in a distributional sense, namely
     

for all , where is a compact set or the whole space , and . We assume no-flux condition in this case, namely on the boundary

The main goal of the classical optimal transport problem is..., we want to move one pile of dirt to another one. So, we have to impose initial and terminal conditions, for example , and Then, our equation becomes

    

for all

  • Another way to interpret solutions to the continuity equation is to assume that function is absolutely continuous, and for a.e. it holds:
 

This kind of solution is called a weak solution.

Proposition 4.2., on the page 124., in the book by Santambrogio[2] states that these solutions are basically equivalent.

  • There is also a third way to think about this solutions, using the Lipschitz functions, and it is contained in the following:
Proposition.[2] Let be the Lipschitz function in and be the Lipschitz function in Suppose that the continuity equation is satisfied in the weak sense. Then it is satisfied in a.e. sense.

Previous three definitions and connections help us to conclude this section by referencing to Theorem of Cauchy-Lipschitz([3], p. 184). It is the analogue of the Picard-Lindelof Theorem in ODE theory, and it provides us with the unique solution, which is crucial for finding a proper geodesics in the applications.

Applications

The following theorem can be found at the book by L.Ambrosio, E.Brué, and D.Semola[3].

Theorem (Benamou-Brenier Formula).[2] Let . Then
      

This formula is important for defining Riemannian structure. You can see more at Formal Riemannian Structure of the Wasserstein metric.

In addition, using the continuity equation we can describe geodesics in the Wasserstein space. For more details look at Geodesics and generalized geodesics.

References