Explicit and implicit methods

Short description: Approaches for approximating solutions to differential equations

Explicit and implicit methods are approaches used in numerical analysis for obtaining numerical approximations to the solutions of time-dependent ordinary and partial differential equations, as is required in computer simulations of physical processes. Explicit methods calculate the state of a system at a later time from the state of the system at the current time, while implicit methods find a solution by solving an equation involving both the current state of the system and the later one. Mathematically, if Y(t) is the current system state and Y(t+Δt) is the state at the later time (Δt is a small time step), then, for an explicit method

Y(t+Δt)=F(Y(t))

while for an implicit method one solves an equation

G(Y(t),Y(t+Δt))=0(1)

to find Y(t+Δt).

## Contents

* 1 Computation
* 2 Illustration using the forward and backward Euler methods
* 3 See also
* 4 Sources

## Computation

Implicit methods require an extra computation (solving the above equation), and they can be much harder to implement. Implicit methods are used because many problems arising in practice are stiff, for which the use of an explicit method requires impractically small time steps Δt to keep the error in the result bounded (see numerical stability). For such problems, to achieve given accuracy, it takes much less computational time to use an implicit method with larger time steps, even taking into account that one needs to solve an equation of the form (1) at each time step. That said, whether one should use an explicit or implicit method depends upon the problem to be solved.

Since the implicit method cannot be carried out for each kind of differential operator, it is sometimes advisable to make use of the so called operator splitting method, which means that the differential operator is rewritten as the sum of two complementary operators

Y(t+Δt)=F(Y(t+Δt))+G(Y(t)),

while one is treated explicitly and the other implicitly. For usual applications the implicit term is chosen to be linear while the explicit term can be nonlinear. This combination of the former method is called Implicit-Explicit Method (short IMEX,[1][2][3]).

## Illustration using the forward and backward Euler methods

Consider the ordinary differential equation

dydt=−y2, t∈[0,a](2)

with the initial condition y(0)=1. This problem has the exact solution y=1t+1, which usually cannot be written down for problems encountered in practice, but in this case allows a comparison with the numerical solutions. Consider a grid tk=akn for 0 ≤ k ≤ n, that is, the time step is Δt=a/n, and denote yk=y(tk) for each k. Discretize this equation using the simplest explicit and implicit methods, which are the forward Euler and backward Euler  methods (see numerical ordinary differential equations) and compare the obtained schemes.

Forward Euler method

The result of applying different integration methods to the ODE: y′=−y2,t∈[0,5],y0=1 with Δt=5/10.

The forward Euler method

(dydt)k≈yk+1−ykΔt=−yk2

yields

yk+1=yk−Δtyk2(3)

for each k=0,1,…,n. This is an explicit formula for yk+1.

Backward Euler method

With the backward Euler method

yk+1−ykΔt=−yk+12

one finds the implicit equation

yk+1+Δtyk+12=yk

for yk+1 (compare this with formula (3) where yk+1 was given explicitly rather than as an unknown in an equation).

This is a quadratic equation, having one negative and one positive root. The positive root is picked because in the original equation the initial condition is positive, and then y at the next time step is given by

yk+1=−1+1+4Δtyk2Δt.(4)

In the vast majority of cases, the equation to be solved when using an implicit scheme is much more complicated than a quadratic equation, and no analytical solution exists. Then one uses root-finding algorithms, such as Newton's method, to find the numerical solution.

Crank-Nicolson method

With the Crank-Nicolson method

yk+1−ykΔt=−12yk+12−12yk2

one finds the implicit equation

yk+1+12Δtyk+12=yk−12Δtyk2

for yk+1 (compare this with formula (3) where yk+1 was given explicitly rather than as an unknown in an equation). This can be numerically solved using root-finding algorithms, such as Newton's method, to obtain yk+1.

Crank-Nicolson can be viewed as a form of more general IMEX (Implicit-Explicit) schemes.

Forward-Backward Euler method

The result of applying both the Forward Euler method and the Forward-Backward Euler method for a=5 and n=30

In order to apply the IMEX-scheme, consider a slightly different differential equation:

dydt=y−y2, t∈[0,a](5)

It follows that

(dydt)k≈yk+1−yk2, t∈[0,a]

and therefore

yk+1=yk(1−ykΔt)1−Δt(6)

for each k=0,1,…,n.

## See also

* Courant–Friedrichs–Lewy condition
* SIMPLE algorithm, a semi-implicit method for pressure-linked equations

## Sources

1. ↑ U.M. Ascher, S.J. Ruuth, R.J. Spiteri: Implicit-Explicit Runge-Kutta Methods for Time-Dependent Partial Differential Equations, Appl Numer Math, vol. 25(2-3), 1997
2. ↑ L.Pareschi, G.Russo: Implicit-Explicit Runge-Kutta schemes for stiff systems of differential equations, Recent Trends in Numerical Analysis, Vol. 3, 269-289, 2000
3. ↑ Sebastiano Boscarino, Lorenzo Pareschi, and Giovanni Russo: Implicit-Explicit Methods for Evolutionary Partial Differential Equations, SIAM, ISBN 978-1-61197-819-3 (2024).

0.00

(0 votes)

Original source: https://en.wikipedia.org/wiki/Explicit and implicit methods. Read more

|

Retrieved from "https://handwiki.org/wiki/index.php?title=Explicit_and_implicit_methods&oldid=4350715"