Euler's numerical method (HL)
One of the few calculus topics that is studied in greater depth in AI HL than AA HL.
Contents
Theory
In interpretations of derivatives, it was mentioned that a smooth curve can be approximated by a series of jagged lines segments as each line segment becomes small.
This is exactly what we do in Euler’s method.
Given some differential equation
and some initial point , and a step size , then each successive value of , and is
Note that each iteration depends on only the previous iteration. is the estimate for the gradient of the line. is . So the equation for is saying
On some calculators, you instead use
In both cases, start with , and after iterations, return as a final answer. Questions could also sometimes ask for instead.
Practice
Use sequence mode or recursion mode or spreadsheet on your calculator to implement a solution. As your calculator gets reset before your exams, it is good practice to make the math wrap as opposed to display in one line.
Given that
Use a step size of , estimate when
Here are two approaches available on TI-84 Plus. Analogous approaches exist for other models.
Typically, writing down a full, correct list of each is sufficient for full marks.
Also if you are to estimate a point on the solution to the right of the initial point, then your is positive. Otherwise if you are asked to estimate a point to the left of what’s given, use the same but make it negative, eg .
TI-84 method using command concatenation
This method is by Dr. William J. Larson .
Multiple commands can be re-run together if they are separated by :
or A‑LOCK ALPHA 𝑖 ︰ •.
- Set the initial value and step. Here the given point is and step size is . So set
0→X
, ie CATALOG _ 0RCL X STO>link X,T,θ,n. Using the alpha letters, store1
inY
and0.1
inH
. - Enter
Y+H*Y^2/(1+X)→Y:X+H→X:{X,Y}
. The curly brackets are available from 2ND { K ( and 2ND } L ). This updatesY
andX
and prints the new values. Note thatY
is updated first so it uses the oldX
value. - Hit ENTRY SOLVE ENTER to see the results after each step. Write down the point.
- Repeat Step 3 until the desired is reached.
Theoretically, this should work for HP Prime as well though it has not been personally tested.
For Casio calculators, you can use shift + exe instead of the colon. What this does is that it allows you to write a new command in the next line.
TI-84 method using sequences mode (legacy)
This is the method typically taught for numerical method. It’s slightly longer. For AA HL, the previous method works very well, but for completion the sequence mode method is also included.
On TI-84 Plus, u
, v
, w
are available via 2NDU O 7, 2NDV P 8, and 2NDW Q 9, respectively. Here we presume the lists or sequences are named u
, v
, w
etc. It depends on specific model of your calculator.
- Set calculator to sequences mode. QUIT MODE choose
SEQ
instead ofFUNC
. - In
y=
, setnMin
to0
. - Define
u(nMin) = 0, u(n) = 0.1*n
, for a list of - Define
v(nMin) = 1, v(n) = v(n-1) + 0.1*(v(n-1)^2/(1+u(n-1)))
, for a list of - See table of values where
n
is5
, andu(n)
is.5
, and findv(n)
to be1.6225
In the above example, an extra set of parentheses were used after h*
, which is a good practice in case is not a fraction, though not necessary in this particular question.
For the TI-84 Plus CE, you should use the option of SEQ(n+1)
, as it reduces all the u(n-1)
and v(n-1)
to simply u(n)
and v(n)
. Also you will be setting u(1)
and v(1)
instead of u(nMin)
and v(nMin)
.