Skip to main content
Contents Index
Search Book
Search Results:
No results.
Read aloud
Readability settings Prev Up Next Profile
title here
\(\newcommand\DLGray{\color{Gray}}
\newcommand\DLO{\color{BurntOrange}}
\newcommand\DLRa{\color{WildStrawberry}}
\newcommand\DLGa{\color{Green}}
\newcommand\DLGb{\color{PineGreen}}
\newcommand\DLBa{\color{RoyalBlue}}
\newcommand\DLBb{\color{Cerulean}}
\newcommand\ds{\displaystyle}
\newcommand\ddx{\frac{d}{dx}}
\newcommand\os{\overset}
\newcommand\us{\underset}
\newcommand\ob{\overbrace}
\newcommand\obt{\overbracket}
\newcommand\ub{\underbrace}
\newcommand\ubt{\underbracket}
\newcommand\ul{\underline}
\newcommand\laplacesym{\mathscr{L}}
\newcommand\lap[1]{\laplacesym\left\{#1\right\}}
\newcommand\ilap[1]{\laplacesym^{-1}\left\{#1\right\}}
\newcommand\tikznode[3][]
{\tikz[remember picture,baseline=(#2.base)]
\node[minimum size=0pt,inner sep=0pt,#1](#2){#3};
}
\newcommand{\lt}{<}
\newcommand{\gt}{>}
\newcommand{\amp}{&}
\definecolor{fillinmathshade}{gray}{0.9}
\newcommand{\fillinmath}[1]{\mathchoice{\colorbox{fillinmathshade}{$\displaystyle \phantom{\,#1\,}$}}{\colorbox{fillinmathshade}{$\textstyle \phantom{\,#1\,}$}}{\colorbox{fillinmathshade}{$\scriptstyle \phantom{\,#1\,}$}}{\colorbox{fillinmathshade}{$\scriptscriptstyle\phantom{\,#1\,}$}}}
\newcommand{\sfrac}[2]{{#1}/{#2}}
\)
🗝️ Key Takeaways ...
Analytic solutions are exact; numerical solutions are approximate.
Numerical solutions are essential when analytic solutions are too complicated or don’t exist.
Euler’s method approximates solutions by following the slope given by the differential equation, taking small steps from one point to the next.
Euler’s one-step task is “move from where you are in the direction of the slope.”
Choosing a step size \(h\) sets the “run” = \(h\) and “rise” = slope \(\times\ h\text{.}\)
Euler’s method is based on the movement rule
\begin{equation*}
(t_{\text{new}}, y_{\text{new}}) = (t_{\text{cur}} + h,\ y_{\text{cur}} + h \times \text{slope})\text{,}
\end{equation*}
so each step is given by: \(y_{k+1} = y_k + h f(t_k, y_k)\text{.}\)
Smaller step sizes usually mean better accuracy — but more steps.
Holding the starting slope fixed across a step costs about
\(\frac12 y'' h^2\text{,}\) but covering a fixed interval takes
\(N = (t_N - t_0)/h\) steps, so one power of
\(h\) is spent on the extra steps. Euler is a
first-order method: its
global error is proportional to
\(h\text{,}\) so halving
\(h\) roughly halves the final error rather than quartering it.
Improved Euler (Heun’s method) predicts with an ordinary Euler step, reads a second slope where the predictor lands, and re-steps using the average of the two:
\begin{equation*}
y_{k+1} = y_k + \frac{h}{2}\Big[\, f(t_k, y_k) + f\big(t_{k+1},\ y_k + h f(t_k, y_k)\big) \Big].
\end{equation*}
It is second order — halving \(h\) quarters the error — which is worth far more than the doubled cost per step.
Accuracy is bought more cheaply by using a better method than by using a smaller step size.