1 Introduction

Many traffic flow models go back to scalar conservation laws of generally non-linear type, i.e.

$$ u_{t} + f(u)_{x} =0, $$
(1)

see e.g. [4]. There are many different results, making the area of scalar conservation laws to an area of very active research in mathematics, see e.g. [3, 5, 15, 16, 21, 23], to name just a few of those.

The function u in (1) describes the density of vehicles on a road and thus has values on the compact set \([0,1]\). A conservation law is derived under the assumption, that the time propagation of a mass on a certain interval is only affected by the flux at the boundary of the interval. Hence one often chooses \(f(u)=u\cdot v(u) \), where v is the Eulerian velocity of the traffic. There are many different models for traffic flow discussed in the literature where the most famous ones are Aw–Rascle–Zhang model [1, 2, 24] and Lighthill–Whitham–Richards model, which uses \(f(u)=u\cdot (1-u)\), i.e. a velocity depending linearly on the density. The scalar conservation law (1) now reads

$$ u_{t} + (1-2u)\cdot u_{x} =0. $$
(2)

The flux function in the Lighthill–Whitham–Richards model is in a relatively good agreement with traffic measurements, see [19]. The main problem is that measurements show that data points are quite accurate for low and high densities but are noisy around the maximum point. The flux function is hence rather given by

$$ f(u)= u\cdot (1-u) + H(u) \circ \frac{\mathrm {d}M_{t}}{\mathrm {d}t}, $$

where H is a function vanishing at \(u=0\) and \(u=1\) and \(M_{t}\) is a suitable nice enough stochastic process. Plugging this in the above conservation law (1) yields

$$ u_{t} + f(u)_{x} =u_{t} +(1-2u)\cdot u_{x}+ H(u)_{x} \circ \frac{\mathrm {d}M_{t}}{\mathrm {d}t}=0. $$
(3)

The random perturbation is chosen in such a way that \(H(u)_{x}\) controls the dependence of the noise with respect to the density in space. The stochastic process itself give a temporal noise, in order to represent fluctuation in time. Of course with the use of a random field the model may be more general. However, the method of characteristics can not be applied in the same way as in this article.

The choice of the Stratonovich integral is due to the existence of the chain rule in the same form as in the deterministic case. For Itô integral a correction term is needed, which leads in some cases to non-existing solutions.

General results for such stochastic conservation laws can be found in e.g. [3, 68, 1014, 20]. The results base on Itô- and Stratonovich type noise in finite and infinite dimensional spaced as well as rough noise and going much further than the model studied in this short article. We hence can of course not give a comprehensive list and refer to the above works and their references.

Industrial application and especially the study of traffic flows are nowadays interested in shocks and nonlinearities. Such shocks occure if the corresponding characteristic intersect, see [4]. In the method of stochastic characteristics, which we treat in this article, this is exactly the same. Our focus in this paper, however, is to show how stochastically perturbed conservation laws behave until the time of shocks. The investigation of shocks would be an interesting study for the future.

In this manuscript, we use the method of stochastic characteristics to solve such equations for the stochastically perturbed Lighthill–Whitham–Richards model explicitly for different cases, where the driving process is given by a Brownian motion or a geometrical Brownian motion. This work can be seen as the starting point to the investigation of different stochastically perturbed hyperbolic equations in direct applications.

The main advantage of the applied method is that the solutions are given in an explicit expression. This makes tedious and highly involved numerical simulation unnecessary. The motivation of the method is given by traffic flow equations, however, it can be applied to other stochastically perturbed conservation laws.

2 Prelimiaries

We look at some examples for the Lighthill–Whitham–Richards model for different initial conditions. Due to the underlying model the initial condition describes the density of our traffic problem at time \(t=0\) and at position \(x\in [0,1]\).

Lemma 2.1

Consider the following partial differential equation on \([0,1]\)

$$ \textstyle\begin{cases} \mathrm {d}u =-(1-2u)\cdot u_{x} \,\mathrm {d}t, \\ u(x,0)= g(x), \end{cases} $$
(4)

where \(g(x)\) is a smooth function. Let \((\xi _{t},\eta _{t})\) be the solutions to the so called characteristic equations given by

$$ \textstyle\begin{cases} \mathrm {d}\xi _{t} = (1-2\eta _{t}) \,\mathrm {d}t, \\ \xi _{0}(x)=x,\end{cases}\displaystyle \quad \textit{and}\quad \textstyle\begin{cases} \mathrm {d}\eta _{t} = 0 \,\mathrm {d}t, \\ \eta _{0}(x)=g(x). \end{cases} $$

Hence we obtain

$$ \eta _{t}(x)=g(x),\qquad \xi _{t}(x)=x+ \int _{0}^{t} 1-2g(x) \,\mathrm {d}s = x+t-2g(x)t. $$
(5)

Then the solution to (4) is given by \(u(x,t)=g(\xi _{t}^{-1}(x))\), where \(\xi _{t}^{-1}\) denotes the inverse function of \(\xi _{t}\).

Proof

The proof is an direct consequence of Chap. 3 in [9], in particular [9, § 3.2, Theorem 2] with an application of the inverse mapping theorem [18, Chapter XIV, Theorem 1.2]. □

Example 2.2

Consider the following partial differential equation (PDE) for the Lighthill–Whitham–Richards model on \([0,1]\)

$$ \mathrm {d}u =-(1-2u)\cdot u_{x} \,\mathrm {d}t,\quad u(x,0)=g(x). $$
(6)

Due to Lemma 2.1 we obtain with the initial condition \(g(x)=1-x\):

$$ \begin{aligned} &\xi _{t}(x)=x-t+2xt, \\ &\eta _{t}(x)= 1-x, \end{aligned} \quad \text{hence} \quad \xi _{t}^{-1}(x)=\frac{x+t}{1+2t}. $$
(7)

Thus the solution of the above PDE (6) is given by

$$ u(x,t)=\frac{1-x+t}{1+2t}. $$
(8)

If we change the initial condition to be \(g(x)= 1-x^{2}\), we obtain

$$ \begin{aligned} &\xi _{t}(x)=x-t+2x^{2}t, \\ &\eta _{t}(x)= 1-x^{2}, \end{aligned} \quad \text{and hence} \quad \xi _{t}^{-1}(x)= \frac{\sqrt{1+8t^{2}+8tx}-1}{4t}. $$
(9)

Thus the corresponding solution is equal to

$$ u(x,t)= \textstyle\begin{cases} 1-\frac{(\sqrt{1+8t^{2}+8tx}-1)^{2}}{16t^{2}}, &\text{for } t\neq 0, \\ 1-x^{2}, &\text{for } t=0. \end{cases} $$
(10)

One can easily verify that (10) solves indeed the PDE (6).

The main advantage of this method is the precise expression of a solution to a PDE – provided that the corresponding initial condition \(g(x)\) and coefficient functions are explicitly given. Due to this fact and for a better comparison between the deterministic and stochastic case we present a collection of solutions in Appendix A.

Along the characteristics the solution remains constant. In the case of the traffic problem and under the considered initial conditions the characteristics never cross each other which means that no shocks appear and hence the solutions are global. As written in the introduction we will study the perturbed case (3) for \(H(u)\neq 0\) and for \(M_{t}\) to be the standard Brownian motion (Bm) as well as the so called geometric Brownian motion defined in the following way.

Definition 2.3

A stochastic process \(S_{t}\), \(t\geq 0\), is said to be a geometric Brownian motion (gBm), if it satisfies

$$ \mathrm {d}S_{t} = \mu S_{t} \,\mathrm {d}t + \sigma S_{t} \,\mathrm {d}W_{t}= S_{t} \,\mathrm {d}W_{t}, $$
(11)

where \(W_{t}\) is a Brownian motion. Hence the geometric Brownian motion without drift is given by

$$ S_{t}:=\exp { \biggl(-\frac{t}{2}+W_{t} \biggr)}. $$

Definition 2.4

Let \(W_{t}\) be a standard one-dimensional Brownian motion on a complete separable probability space \((\Omega ,\mathcal{F},{P},\mathcal{F}_{t})\), with right-continuous filtration \((\mathcal{F}_{t})_{t>0}\). Then we define for any smooth function \(H(x,u,p,t)\), \(x,u\in [0,1]\), p bounded, \(t\in [0,\textbf {T}]\), for \(0<\textbf {T}<\infty \) the following integral expression

$$ \int _{0}^{t} F(x,u,p,\mathrel{\circ} \mathrm {d}s):= \textstyle\begin{cases} \int _{0}^{t} -(1-2u)p \,\mathrm {d}s + \int _{0}^{t} H(x,u,p,s)\circ \mathrm {d}W_{s}, &\text{for Bm}, \\ \int _{0}^{t} -(1-2u)p \,\mathrm {d}s + \int _{0}^{t} H(x,u,p,s)\circ \mathrm {d}S_{s}, &\text{for gBm}. \end{cases} $$

The integrals are given in the sense of Stratonovich.

Based on these definitions we are able to apply the so called method of stochastic characteristics to the PDEs as (4) but perturbed by Brownian motion respectively geometric Brownian motion. Since we consider partial differential equations with perturbations by (geometric) Brownian motions we get an ω - dependence in the solutions. The idea of the method is nearly the same as before: now we fix \(\omega \in \Omega \) and transform a stochastic partial differential equation (SPDE) into a system of stochastic differential equations (SDEs), solve it and determine the solution to the original SPDE by using stopping times. Hence the precisely determined solutions are given for almost all ω and all space and time variables \((x,t)\) up to a certain stopping time denoted by \(\sigma (x)\). In contrast to the deterministic case we will introduce in the following the method of stochastic characteristics in a more detailed way. Based on Definition 2.4 a perturbed Lighthill–Whitham–Richards model (3) is equivalent to the Cauchy problem

$$ \textstyle\begin{cases} \mathrm {d}u = F(x,u,u_{x},\mathrel{\circ} \mathrm {d}t), \\ u=g \quad \text{on } \Gamma := \{x\in [0,1]\times [0,\textbf {T}] | x=(x_{1},t), t=0 \}.\end{cases} $$
(12)

Therefore the solution to equation (12) is denoted by \(u(x,t,\omega )\), but for short notation we only write \(u(x,t)\). Suppose u is a solution to (12) and at least one-times continuously differentiable with respect to space and time for fixed \(\omega \in \Omega \). Furthermore, we assume that there exists a curve \(\xi _{s}(r)\) which maps the point \(r\in \Gamma \) to a point of a neighborhood in Γ at time s. Additionally, we assume \(\xi _{0}(x)=x\) for all \(x\in [0,1]\) as the initial condition. Due to these assumptions we consider and define the following functions, now for fixed ω, \(r\in [0,1]\) and \(s\in [0,\textbf {T}]\):

$$ \begin{aligned} & \bigl(\xi _{s}(r, \omega ),s \bigr), \\ &\eta _{s}(r,\omega ):= u \bigl(\xi _{s}(r,\omega ),s \bigr), \\ &\chi _{s}(r,\omega ):=u_{\xi _{s}} \bigl(\xi _{s}(r,\omega ),s \bigr). \end{aligned} $$
(13)

In the next step we combine (12) with equations (13) and obtain

$$ \frac{\mathrm {d}}{\mathrm {d}t} \biggl[u \bigl(\xi _{t}(r),t \bigr) -u \bigl( \xi _{0}(r),0 \bigr)- \int _{0}^{t} F \bigl(\xi _{s}(r), \eta _{s}(r),\chi _{s}(r),\mathrel{\circ} \mathrm {d}s \bigr) \biggr]=0. $$

By similar calculations as in [9, § 3.2.1, equation (11)] we get

$$ \textstyle\begin{cases} \mathrm {d}{\xi }_{t} = -F_{{\chi }_{t}}(\xi _{t},\eta _{t},\chi _{t}, \mathrel{\circ} \mathrm {d}t), \\ \mathrm {d}{\eta }_{t}=F(\xi _{t},\eta _{t}, \chi _{t},\mathrel{\circ} \mathrm {d}t) -{ \chi }_{t}\cdot F_{{\chi }_{t}}(\xi _{t},\eta _{t},\chi _{t},\mathrel{\circ} \mathrm {d}t), \\ \mathrm {d}{\chi }_{t}= F_{{\xi }_{t}}(\xi _{t},\eta _{t},\chi _{t}, \mathrel{\circ} \mathrm {d}t)+F_{{\eta }_{t}}(\xi _{t},\eta _{t},\chi _{t},\mathrel{\circ} \mathrm {d}t){ \chi }_{t}. \end{cases} $$
(SCE)

The above stochastic differential equations (SCE) are called stochastic characteristic equations, for a more detailed description and proofs, see also [17]. Given a point \(x\in [0,1]\) and assuming that there exist unique solutions to (SCE) starting from x at time \(t=0\), these solutions solve the corresponding integral equation with initial function g:

$$\begin{aligned} &\xi _{t}(x)=x - \int _{0}^{t} F_{{\chi }_{s}} \bigl({\xi }_{s}(x),{ \eta }_{s}(x),{\chi }_{s}(x), \mathrel{\circ} \mathrm {d}s \bigr), \\ &\eta _{t}(x)=g(x) - \int _{0}^{t} {\chi }_{s}\cdot F_{{\chi }_{s}} \bigl({ \xi }_{s}(x),{\eta }_{s}(x),{ \chi }_{s}(x),\mathrel{\circ} \mathrm {d}s \bigr)+ \int _{0}^{t} F \bigl({\xi }_{s}(x),{ \eta }_{s}(x),{\chi }_{s}(x),\mathrel{\circ} \mathrm {d}s \bigr), \\ &\chi _{t}(x)=g_{x}(x) + \int _{0}^{t} F_{{\xi }_{s}} \bigl({\xi }_{s}(x),{ \eta }_{s}(x),{\chi }_{s}(x), \mathrel{\circ} \mathrm {d}s \bigr)+ \int _{0}^{t} F_{{ \eta }_{s}} \bigl({\xi }_{s}(x),{\eta }_{s}(x),{\chi }_{s}(x), \mathrel{\circ} \mathrm {d}s \bigr){ \chi }_{s}. \end{aligned}$$

Let us assume that the solutions \(({\xi }_{t}(x),{\eta }_{t}(x),{\chi }_{t}(x))\) exist up to a stopping time \({T}(x)\). As mentioned above we have to work on different stopping times based on the following definition of an explosion time.

Definition 2.5

Let \(X_{t}\), \(t\in [0,\tau )\), be a local process. The stopping time τ is called terminal time of the local process \(X_{t}\). If

$$ \lim_{t\nearrow \tau } \vert X_{t} \vert =\infty , $$

then τ is called explosion time.

In the case of our solutions \(({\xi }_{t},{\eta }_{t},{\chi }_{t})\) this yields to the following definitions of stopping times.

Definition 2.6

Let \(T(x)\) be the infimum of all explosion times of the solutions \(({\xi }_{t},{\eta }_{t},{\chi }_{t})\). Then we define for all \(x,y\in [0,1]\) the stopping times

$$\begin{aligned} &\tau _{\text{{inv}}}(x):=\inf \bigl\{ t>0 | \det D {\xi }_{t}(x)=0 \bigr\} , \\ &\tau (x):=\tau _{\text{{inv}}}(x)\wedge {T}(x), \\ &\sigma (y):=\inf \bigl\{ t>0 | y\notin {\xi }_{t} \bigl( \bigl\{ x\in [0,1] | \tau (x)>t \bigr\} \bigr) \bigr\} , \end{aligned}$$

where \(D {\xi }_{t}\) denotes the Jacobian matrix.

Now let the inverse process \(\xi _{t}^{-1}\) of \({\xi }_{t}\) exist up to some stopping time \(\sigma (x)\). Then we define for almost all ω and for all \((x,t)\) with \(t<\sigma (x,\omega )\) the solution

$$ u(x,t):={\eta }_{t} \bigl({\xi }_{t}^{-1}(x) \bigr). $$
(14)

Detailed derivations and introductions can be found in [22, Chap. 3]. Now we are able to solve different SPDEs concerning the Lighthill–Whitham–Richards model by using the method of stochastic characteristics.

3 Application & representation

In particular industrial applications the equations are much more involved than in the examples this played in here. Of course to use our method the characteristics have to computed explicitly. After that standard ODE or SDE methods can be used, if needed.

Based on the flow rate function \(H(u)\) and the continuity equation the most natural choice of the drift term is \(H(u)=u-u^{2}\). In a first step we perturb the Lighthill–Whitham–Richards model by a standard Brownian motion. Hence we consider

$$ \textstyle\begin{cases} \mathrm {d}u=-(1-2u)\cdot u_{x} \,\mathrm {d}t - (1-2u)\cdot u_{x}\mathrel{\circ} \mathrm {d}W_{t}, \\ u(x,0)=g(x). \end{cases} $$
(15)

By using direct computation one can show that the corresponding stochastic characteristic equations are given for almost all ω and all \((x,t)\) up to a stopping time \(\sigma (x)\) by

$$ \textstyle\begin{cases} \mathrm {d}\xi _{t}=(1-2\eta _{t}) \,\mathrm {d}t + (1-2\eta _{t})\mathrel{\circ} \mathrm {d}W_{t}, \\ \xi _{0}(x)=x, \end{cases}\displaystyle \quad \text{and}\quad \textstyle\begin{cases} \mathrm {d}\eta _{t}=0 \,\mathrm {d}t + 0 \mathrel{\circ} \mathrm {d}W_{t}, \\ \eta _{0}(x)=g(x). \end{cases} $$
(16)

Due to the linearity in the space derivative \(u_{x}\) the solution \(\eta _{t}(x)=g(x)\) is always valid. Therefore we receive the solution

$$ \xi _{t}(x)=x+ \bigl(1-2g(x) \bigr) (t+W_{t}). $$

At this point we compare the characteristics in the deterministic case with the corresponding perturbed one, see Fig. 1. As the initial condition we use here \(g(x)=1-x\).

Figure 1
figure 1

Characteristics for the Lighthill–Whitham–Richards model with and without stochastic perturbation

In this case of \(g(x)=1-x\) there exists obviously a process \(\xi _{t}^{-1}\), such that the inverse property is fulfilled for almost all ω and all \((x,t)\) up to stopping time \(\sigma (x)\), i.e.

$$ \xi _{t}^{-1}(x)=\frac{x+t+W_{t}}{1+2t+2W_{t}}. $$

The solution to the considered SPDE (15) is given for almost all ω and all \((x,t)\) up to stopping time \(\sigma (x)\) by

$$ u(x,t)=\frac{1-x+t+W_{t}}{1+2t+2W_{t}}, $$
(17)

which looks similar to the deterministic solution (8). Due to the explicit expression of the solution we are able to visualize a sample path easily, see Fig. 2. As introduced in Definition 2.6 the stopping time can be determined explicitly in this example by

$$\begin{aligned} \sigma (x) =&\inf \biggl\{ t>0 \Big| \frac{x+t+W_{t}}{1+2t+2W_{t}} \notin [0,1] \biggr\} \wedge \inf \{t>0 | 1+2t+2W_{t}=0 \} \\ =&\inf \biggl\{ t>0 \Big| \frac{x+t+W_{t}}{1+2t+2W_{t}}\notin [0,1] \biggr\} \wedge \infty . \end{aligned}$$
Figure 2
figure 2

Sample path of the Lighthill–Whitham–Richards model with initial condition \(1-x\) perturbed by the term \(- (1-2u)\cdot u_{x}\mathrel{\circ} \mathrm {d}W_{t}\). Here we took a sample path without doubling points due to stochasticity

The perturbation by a geometric Brownian motion as given in Definition 2.3 is in this case straightforward. According to Definition 2.4 we practically can replace the Brownian motion \(W_{t}\) by \(\exp (-t/2+W_{t})-1\). Let us consider

$$ \textstyle\begin{cases} \mathrm {d}u =-(1-2u)\cdot u_{x} \,\mathrm {d}t - (1-2u)\cdot u_{x}\mathrel{\circ} \mathrm {d}[\exp (-t/2+W_{t}) ], \\ u(x,0)=1-x^{2}. \end{cases} $$
(18)

By an application of the method of stochastic characteristics we finally get the precise solution for almost all ω and \((x,t)\) up to a stopping time \(\sigma (x)\) by

$$ u(x,t)= \textstyle\begin{cases} 1- \frac{(\sqrt{8(t+e^{(-t/2+W_{t})}-1)(t+x+e^{(-t/2+W_{t})}-1)+1}-1)^{2}}{16(e^{(-t/2+W_{t})}+t-1)^{2}}, &\text{if } t\neq 0, \\ 1-x^{2}, &\text{if } t=0, \end{cases} $$
(19)

where we can use the classical l’Hospital argument. The corresponding stopping time is equal to

$$\begin{aligned} \sigma (x) =&\inf \biggl\{ t>0 \Big| \frac{\sqrt{8(e^{(-t/2+W_{t})}+t-1)(t+x+e^{(-t/2+W_{t})}-1)+1}-1}{4(e^{(-t/2+W_{t})}+t-1)} \notin [0,1] \biggr\} \\ &{} \wedge \inf \biggl\{ t>0 \Big| \frac{1}{\sqrt{8(t+e^{(-t/2+W_{t})}-1)(t+x+e^{(-t/2+W_{t})}-1)+1}}=0 \biggr\} \\ =&\inf \biggl\{ t>0 \Big| \frac{\sqrt{8(e^{(-t/2+W_{t})}+t-1)(t+x+e^{ (-t/2+W_{t})}-1)+1}-1}{4(e^{(-t/2+W_{t})}+t-1)} \notin [0,1] \biggr\} \wedge \infty. \end{aligned}$$

In Fig. 3 we display one sample path with initial condition \(1-x^{2}\) perturbed by the term \(- (1-2u)\cdot u_{x}\mathrel{\circ} \mathrm {d}[\exp (-t/2+W_{t})]\).

Figure 3
figure 3

Sample path of the Lighthill–Whitham–Richards model with initial condition \(1-x^{2}\) perturbed by the term \(- (1-2u)\cdot u_{x}\mathrel{\circ} \mathrm {d}[\exp (-t/2+W_{t})]\). Here we took a sample path without doubling points due to stochasticity

Due to this approach we have to verify that the equations (17) as well as (19) really solve the underlying problems. For the sake of simplicity these necessary but lengthy calculation can be found in the Appendix C for equation (17).

For reader’s convenience we add some other examples in Appendix B with precise expressions of solutions and different choices of \(H(u)\), but which may not rigorously fit the Lighthill–Whitham–Richards model.

4 Conclusions and discussion

The method of stochastic characteristics can be used effectively to solve a stochastically perturbed Lighthill–Whitham–Richards model. The solutions are explicitly given up to a stopping time in closed form. Numerical simulations based on these models can hence been implemented straightforward. However one has to be careful, that the intersection of characteristics due to stochastic perturbation can lead to solutions which are only defined on a smaller time interval than the non-perturbed ones. On the other hand, it may be also possible, that the stochastic perturbations increase the time interval where solutions are defined. An example for a solution which is ill-defined due to intersecting characteristics can be seen in Fig. 4.

Figure 4
figure 4

Sample path of the Lighthill–Whitham–Richards model with initial condition \(1-x\) perturbed by the term \(- (1-2u)\cdot u_{x}\mathrel{\circ} \mathrm {d}W_{t}\). The solution is just defined on a small time interval

A collection for different examples of stochastic perturbations can be found in Appendix B. Note that with the considered perturbations measurement errors can be modelled effectively. This could be of high interest for more complicated traffic flow models.