Explicit and implicit methods: Difference between revisions

Content deleted Content added
Jaiswal0 (talk | contribs)
Illustration using the forward Euler, backward Euler, and Crank-Nicolson methods
Jaiswal0 (talk | contribs)
m Connect the description with IMEX schemes.
Line 43:
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 algorithm]]s, such as [[Newton's method]], to find the numerical solution.
 
;Crank Nicoloson method (An IMEX scheme):
With the [[Crank-Nicolson method]]
:<math>\frac{y_{k+1}-y_k}{\Delta t} = -\frac{1}{2}y_{k+1}^2 -\frac{1}{2}y_{k}^2</math>
Line 50:
: <math>y_{k+1}+\frac{1}{2}\Delta t y_{k+1}^2=y_k - \frac{1}{2}\Delta t y_{k}^2</math>
for <math>y_{k+1}</math> (compare this with formula (3) where <math>y_{k+1}</math> was given explicitly rather than as an unknown in an equation). This can be numerically solved using [[root-finding algorithm]]s, such as [[Newton's method]], to obtain <math>y_{k+1}</math>.
 
Crank Nicolson can be viewed as a form of more general [[Explicit and implicit methods|IMEX (''Im''plicit-''Ex''plicit) schemes]].
 
;Forward-Backward Euler method: