# Exponential integrator

Exponential integrators are a class of numerical methods for the solution of ordinary differential equations, specifically initial value problems. This large class of methods from numerical analysis is based on the exact integration of the linear part of the initial value problem. Because the linear part is integrated exactly, this can help to mitigate the stiffness of a differential equation. Exponential integrators can be constructed to be explicit or implicit for numerical ordinary differential equations or serve as the time integrator for numerical partial differential equations.

## Background

Dating back to at least the 1960s, these methods were recognized by Certaine and Pope. As of late exponential integrators have become an active area of research, see Hochbruck and Ostermann (2010). Originally developed for solving stiff differential equations, the methods have been used to solve partial differential equations including hyperbolic as well as parabolic problems such as the heat equation.

## Introduction

We consider initial value problems of the form,
    $u'(t)=Lu(t)+N(u(t)),\qquad u(t_{0})=u_{0},\qquad \qquad (1)$
where $L$ is composed of linear terms, and $N$ is composed of the non-linear terms. These problems can come from a more typical initial value problem
    $u'(t)=f(u(t)),\qquad u(t_{0})=u_{0},$
after linearizing locally about a fixed or local state $u^{*}$:
    $L={\frac {\partial f}{\partial u}}(u^{*});\qquad N=f(u)-Lu.$
Here, ${\frac {\partial f}{\partial u}}$ refers to the partial derivative of $f$ with respect to $u$ (the Jacobian of f).
Exact integration of this problem from time 0 to a later time $t$ can be performed using matrix exponentials to define an integral equation for the exact solution:
    $u(t)=e^{Lt}u_{0}+\int _{0}^{t}e^{L(t-\tau )}N\left(u\left(\tau \right)\right)\,d\tau .\qquad (2)$
This is similar to the exact integral used in the Picard–Lindelöf theorem. In the case of $N\equiv 0$, this formulation is the exact solution to the linear differential equation.
Numerical methods require a discretization of equation (2). They can be based on Runge-Kutta discretizations, linear multistep methods or a variety of other options.

## Exponential Rosenbrock methods

Exponential Rosenbrock methods were shown to be very efficient in solving large systems of stiff ordinary differential equations, usually resulted from spatial discretization of time dependent (parabolic) PDEs. These integrators are constructed based on a continuous linearization of (1) along the numerical solution $u_{n}$
    $u'(t)=L_{n}u(t)+N_{n}(u(t)),\qquad u(t_{0})=u_{0},\qquad (3)$
where $L_{n}={\frac {\partial f}{\partial u}}(u_{n}),N_{n}(u)=f(u)-L_{n}u.$ This procedure enjoys the advantage, in each step, that ${\frac {\partial N_{n}}{\partial u}}(u_{n})=0.$ This considerably simplifies the derivation of the order conditions and improves the stability when integrating the nonlinearity $N(u(t))$. Again, applying the variation-of-constants formula (2) gives the exact solution at time $t_{n+1}$ as
    $u(t_{n+1})=e^{h_{n}L_{n}}u(t_{n})+\int _{0}^{h_{n}}e^{(h_{n}-\tau )L_{n}}N_{n}(u(t_{n}+\tau ))d\tau .\qquad (4)$
The idea now is to approximate the integral in (4) by some quadrature rule with nodes $c_{i}$ and weights $b_{i}(h_{n}L_{n})$ ($1\leq i\leq s$). This yields the following class of $s-stage$ explicit exponential Rosenbrock methods, see Hochbruck and Ostermann (2006), Hochbruck, Ostermann and Schweitzer (2009):
    $U_{ni}=e^{c_{i}h_{n}L_{n}}u_{n}+h_{n}\sum _{j=1}^{i-1}a_{ij}(h_{n}L_{n})N_{n}(U_{nj}),$
    $u_{n+1}=e^{h_{n}L_{n}}u_{n}+h_{n}\sum _{i=1}^{s}b_{i}(h_{n}L_{n})N_{n}(U_{ni})$
with $u_{n}\approx u(t_{n}),U_{ni}\approx u(t_{n}+c_{i}h_{n}),h_{n}=t_{n+1}-t_{n}$. The coefficients $a_{ij}(z),b_{i}(z)$ are usually chosen as linear combinations of the entire functions $\varphi _{k}(c_{i}z),\varphi _{k}(z)$, respectively, where
    $\varphi _{0}(z)=e^{z},\quad \varphi _{k}(z)=\int _{0}^{1}e^{(1-\theta )z}{\frac {\theta ^{k-1}}{(k-1)!}}d\theta ,\quad k\geq 1.$
These functions satisfy the recursion relation
    $\varphi _{k+1}(z)={\frac {\varphi _{k}(z)-\varphi _{k}(0)}{z}},\ k\geq 0.$
By introducing the difference $D_{ni}=N_{n}(U_{ni})-N_{n}(u_{n})$, they can be reformulated in a more efficient way for implementation (see also) as
    $U_{ni}=u_{n}+c_{i}h_{n}\varphi _{1}(c_{i}h_{n}L_{n})f(u_{n})+h_{n}\sum _{j=2}^{i-1}a_{ij}(h_{n}L_{n})D_{nj},$
    $u_{n+1}=u_{n}+h_{n}\varphi _{1}(h_{n}L_{n})f(u_{n})+h_{n}\sum _{i=2}^{s}b_{i}(h_{n}L_{n})D_{ni}.$
In order to implement this scheme with adaptive step size, one can consider, for the purpose of local error estimation, the following embedded methods
    ${\bar {u}}_{n+1}=u_{n}+h_{n}\varphi _{1}(h_{n}L_{n})f(u_{n})+h_{n}\sum _{i=2}^{s}{\bar {b}}_{i}(h_{n}L_{n})D_{ni},$
which use the same stages $U_{ni}$ but with weights ${\bar {b}}_{i}$.
For convenience, the coefficients of the explicit exponential Rosenbrock methods together with their embedded methods can be represented by using the so-called reduced Butcher tableau as follows:
    $c_{2}$ $c_{3}$$a_{32}$ $\vdots$$\vdots$$\ddots$ $c_{s}$ $a_{s2}$ $a_{s3}$ $\cdots$ $a_{s,s-1}$ $b_{2}$$b_{3}$$\cdots$$b_{s-1}$$b_{s}$ ${\bar {b}}_{2}$${\bar {b}}_{3}$$\cdots$${\bar {b}}_{s-1}$${\bar {b}}_{s}$

### Stiff order conditions

Moreover, it is shown in Luan and Ostermann (2014a) that the reformulation approach offers a new and simple way to analyze the local errors and thus to derive the stiff order conditions for exponential Rosenbrock methods up to order 5. With the help of this new technique together with an extension of the B-series concept, a theory for deriving the stiff order conditions for exponential Rosenbrock integrators of arbitrary order has been finally given in Luan and Ostermann (2013). As an example, in that work the stiff order conditions for exponential Rosenbrock methods up to order 6 have been derived, which are stated in the following table:
    ${\begin{array}{|c|c|c| }\hline No.&{\text{Stiff order condition}}&{\text{Order}}\\\hline 1&\sum _{i=2}^{s}b_{i}(Z)c_{i}^{2}=2\varphi _{3}(Z)&3\\\hline 2&\sum _{i=2}^{s}b_{i}(Z)c_{i}^{3}=6\varphi _{4}(Z)&4\\\hline 3&\sum _{i=2}^{s}b_{i}(Z)c_{i}^{4}=24\varphi _{5}(Z)&5\\4&\sum _{i=2}^{s}b_{i}(Z)c_{i}K\psi _{3,i}(Z)=0&5\\\hline 5&\sum _{i=2}^{s}b_{i}(Z)c_{i}^{5}=120\varphi _{6}(Z)&6\\6&\sum _{i=2}^{s}b_{i}(Z)c_{i}^{2}M\psi _{3,i}(Z)=0&6\\7&\sum _{i=2}^{s}b_{i}(Z)c_{i}K\psi _{4,i}(Z)=0&6\\\hline \end{array}}$
Here $Z,K,M.\$ denote arbitrary square matrices.

### Convergence analysis

The stability and convergence results for exponential Rosenbrock methods are proved in the framework of strongly continuous semigroups in some Banach space.

### Examples

All the schemes presented below fulfill the stiff order conditions and thus are also suitable for solving stiff problems.

#### Second-order method

The simplest exponential Rosenbrock method is the exponential Rosenbrock–Euler scheme, which has order 2, see, for example Hochbruck et al. (2009):
    $u_{n+1}=u_{n}+h_{n}\ \varphi _{1}(h_{n}L_{n})f(u_{n}).$

#### Third-order methods

A class of third-order exponential Rosenbrock methods was derived in Hochbruck et al. (2009), named as exprb32, is given as:
exprb32:
    1 $2\varphi _{3}$ 0
which reads as
    $U_{n2}=u_{n}+h_{n}\ \varphi _{1}(h_{n}L_{n})f(u_{n}),$
    $u_{n+1}=u_{n}+h_{n}\ \varphi _{1}(h_{n}L_{n})f(u_{n})+h_{n}\ 2\varphi _{3}(h_{n}L_{n})D_{n2},$
where $D_{n2}=N_{n}(U_{n2})-N_{n}(u_{n}).$
For a variable step size implementation of this scheme, one can embed it with the exponential Rosenbrock–Euler:
    ${\hat {u}}_{n+1}=u_{n}+h_{n}\ \varphi _{1}(h_{n}L_{n})f(u_{n}).$

## Fourth-order ETDRK4 method of Cox and Matthews

Cox and Matthews describe a fourth-order method exponential time differencing (ETD) method that they used Maple to derive.
We use their notation, and assume that the unknown function is $u$, and that we have a known solution $u_{n}$ at time $t_{n}$. Furthermore, we'll make explicit use of a possibly time dependent right hand side: ${\mathcal {N}}={\mathcal {N}}(t,u)$.
Three stage values are first constructed:
    $a_{n}=e^{Lh/2}u_{n}+L^{-1}\left(e^{Lh/2}-I\right){\mathcal {N}}(t_{n},u_{n})$
    $b_{n}=e^{Lh/2}u_{n}+L^{-1}\left(e^{Lh/2}-I\right){\mathcal {N}}(t_{n}+h/2,a_{n})$
    $c_{n}=e^{Lh/2}a_{n}+L^{-1}\left(e^{Lh/2}-I\right)\left(2{\mathcal {N}}(t_{n}+h/2,b_{n})-{\mathcal {N}}(t_{n},u_{n})\right)$
The final update is given by,
    $u_{n+1}=e^{Lh}u_{n}+h^{-2}L^{-3}\left\{\left[-4-Lh+e^{Lh}\left(4-3Lh+(Lh)^{2}\right)\right]{\mathcal {N}}(t_{n},u_{n})+2\left[2+Lh+e^{Lh}\left(-2+Lh\right)\right]\left({\mathcal {N}}(t_{n}+h/2,a_{n})+{\mathcal {N}}(t_{n}+h/2,b_{n})\right)+\left[-4-3Lh-(Lh)^{2}+e^{Lh}\left(4-Lh\right)\right]{\mathcal {N}}(t_{n}+h,c_{n})\right\}.$
If implemented naively, the above algorithm suffers from numerical instabilities due to floating point round-off errors. To see why, consider the first function,
    $\varphi _{1}(z)={\frac {e^{z}-1}{z}},$
which is present in the first-order Euler method, as well as all three stages of ETDRK4. For small values of $z$, this function suffers from numerical cancellation errors. However, these numerical issues can be avoided by evaluating the $\varphi _{1}$ function via a contour integral approach or by a Padé approximant.

## Applications

Exponential integrators are used for the simulation of stiff scenarios in scientific and visual computing, for example in molecular dynamics, for VLSI circuit simulation, and in computer graphics. They are also applied in the context of hybrid monte carlo methods. In these applications, exponential integrators show the advantage of large time stepping capability and high accuracy. To accelerate the evaluation of matrix functions in such complex scenarios, exponential integrators are often combined with Krylov subspace projection methods.