In applied mathematics, explicit and implicit methods are approaches for mathematical simulation ofphysical processes, or in other words they are numerical methods for solving time-variable ordinary and partial differential equations.
Explicit methods calculate the state of a system after one interval of time from the state of the system at the current time, while an implicit method finds it by solving an equation involving both the current system state and the future one. To put it in symbols, if is the current system state and is the state at the next instance in time ( is a small time step), then, for an explicit method
while for an implicit method one solves an equation
to find
It is clear that 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 which arise in real life are stiff problems, for which the use of an explicit method requires impracticably small time steps if the error in the result is not to tend to infinity (see numerical stability). For a given error on the result, 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. The choice of method depends upon the problem to be solved.
Illustration using the forward and backward Euler methods
Consider the ordinary differential equation
with the initial condition Consider a grid for 0≤k≤n, that is, the time step is and denote for each .
Discretize this equation using the simplest explicit and implicit methods, which are the forward Euler and backward Euler methods (see numerical ordinary differential equations). The forward Euler method
yields
for each while with the backward Euler method
one finds the equation
for . 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 at the next time step is given by
(compare this with formula (3)).
In the vast majority of cases the equation to be solved for is much more complicated than a quadratic equation, and no exact solution exists. Then one uses root-finding algorithms, such as Newton's method.