WTW123 - Formulas, Proofs and Graphs
WTW123 - Formulas, Proofs and Graphs
1. Formulas
Section 1.1 – Graphs and Interval Division
𝑥−𝑦
Error
(If 𝑦 is an approximation for 𝑥)
|𝑥 − 𝑦|
Absolute Error
(If 𝑦 is an approximation for 𝑥)
|𝑥 − 𝑦|
Relative Error |𝑥|
(If 𝑦 is an approximation for 𝑥)
= ∑∫ 𝑓(𝑥) 𝑑𝑥 − ∑ ℎ𝑓(𝑥𝑘∗ )
Global Error 𝑘=1 𝑥𝑘−1 𝑘=1
𝑛 𝑥𝑘
= ∑ (∫ 𝑓(𝑥) 𝑑𝑥 − ℎ𝑓(𝑥𝑘∗ ))
𝑘=1 𝑥𝑘−1
= 𝑒1 + 𝑒2 + 𝑒3 + ⋯ + 𝑒𝑛
𝑏
1
Global Error Estimate |∫ 𝑓(𝑥) 𝑑𝑥 − 𝐿𝑅(𝑓, ℎ)| ≤ 𝑀1 (𝑏 − 𝑎)ℎ
𝑎 2
for LR
with 𝑀1 = max|𝑓 ′ |
[𝑎,𝑏]
𝑏
1
Global Error Estimate |∫ 𝑓(𝑥) 𝑑𝑥 − 𝑅𝑅(𝑓, ℎ)| ≤ 𝑀1 (𝑏 − 𝑎)ℎ
𝑎 2
for RR
with 𝑀1 = max|𝑓 ′ |
[𝑎,𝑏]
𝑏
1
Global Error Estimate |∫ 𝑓(𝑥) 𝑑𝑥 − 𝑀𝑅(𝑓, ℎ)| ≤ 𝑀 (𝑏 − 𝑎)ℎ2
𝑎 24 2
for MR
with 𝑀2 = max|𝑓 ′ ′|
[𝑎,𝑏]
𝑏
1
Global Error Estimate |∫ 𝑓(𝑥) 𝑑𝑥 − 𝑇(𝑓, ℎ)| ≤ 𝑀 (𝑏 − 𝑎)ℎ2
𝑎 12 2
for T
with 𝑀2 = max|𝑓 ′ ′|
[𝑎,𝑏]
𝑏
1
Global Error Estimate |∫ 𝑓(𝑥) 𝑑𝑥 − 𝑆(𝑓, ℎ)| ≤ 𝑀 (𝑏 − 𝑎)ℎ4
𝑎 180 4
for S
with 𝑀4 = max|𝑓 (4) |
[𝑎,𝑏]
Please Note…
Determinant
By row operations det 𝐴 = (−1)𝑝 det(𝑈)
𝑛
Proof
Considerations:
• Consider 𝑓(𝑥) = 𝑎𝑛 𝑥 𝑛 + 𝑎𝑛−1 𝑥 𝑛−1 + ⋯ + 𝑎0 = 0
• Consider the case when 𝑎𝑛 = 1 (both sides of the equation can be divided by 𝑎𝑛 )
Note the following:
• If 𝑛 is odd, 𝑥 𝑛 has the same sign as 𝑥
Choose 𝑥 such that |𝑥| > 1 and |𝑥| > |𝑎0 | + |𝑎1 | + ⋯ + |𝑎𝑛−1 |, then
|𝑎0 + 𝑎1 𝑥 + ⋯ + 𝑎𝑛−1 𝑥 𝑛−1 |
≤ |𝑎0 | + |𝑎1 ||𝑥| + ⋯ + |𝑎𝑛−1 ||𝑥|𝑛−1 (triangle inequality and absolute value properties)
< (|𝑎0 | + |𝑎1 | + |𝑎𝑛−1 |)|𝑥|𝑛−1 (multiply with applicable 𝑥 to factorise out 𝑥 𝑛−1 )
< |𝑥|𝑛 (since |𝑥| > |𝑎0 | + |𝑎1 | + ⋯ + |𝑎𝑛−1 |)
Case 1: If 𝑥 = 𝑏 > 0,
then 𝑏 𝑛 > 0 and
−𝑏 𝑛 < (𝑎0 + 𝑎1 𝑏 + ⋯ + 𝑎𝑛−1 𝑏 𝑛−1 )
∴ 𝑓(𝑏) = 𝑎0 + 𝑎1 𝑏 + ⋯ + 𝑎𝑛−1 𝑏𝑛−1 + 𝑏 𝑛 > 0
Case 2: If 𝑥 = 𝑐 < 0,
then 𝑐 𝑛 < 0 and |𝑐 𝑛 | = −𝑐 𝑛 and
𝑎0 + 𝑎1 𝑐 + ⋯ + 𝑎𝑛−1 𝑐 𝑛−1 < −𝑐 𝑛
∴ 𝑓(𝑐) = 𝑎0 + 𝑎1 𝑐 + ⋯ + 𝑎𝑛−1 𝑐 𝑛−1 + 𝑐 𝑛 < 0
The result follows from the intermediate value theorem.
Theorem 4
|𝑎0 |+|𝑎1 |+⋯+|𝑎𝑛−1 |
Consider the equation 𝑓(𝑥) = 0 with 𝑓(𝑥) = 𝑎𝑛 𝑥 𝑛 + 𝑎𝑛−1 𝑥 𝑛−1 + ⋯ + 𝑎0 and let 𝑚 = .
|𝑎𝑛 |
Proof
Considerations:
• 𝑓(𝑥) = 𝑎𝑛 𝑥 𝑛 + 𝑎𝑛−1 𝑥 𝑛−1 + ⋯ + 𝑎0 = 0
|𝑎 |+|𝑎 |+⋯+|𝑎 |
• 𝑚 = 0 1|𝑎 | 𝑛−1 .
𝑛
If 𝑥 is a nonzero root of the equation then,
|𝑎𝑛 ||𝑥|𝑛
= |𝑎𝑛 𝑥 𝑛 |
= |−(𝑎0 + 𝑎1 𝑥 + ⋯ + 𝑎𝑛−1 𝑥 𝑛−1 )|
≤ |𝑎0 | + |𝑎1 ||𝑥| + ⋯ + |𝑎𝑛−1 ||𝑥|𝑛−1 (triangle inequality and properties of absolute value)
If |𝑥| ≥ 1 then
|𝑎𝑛 | ≤ (|𝑎0 | + |𝑎1 | + ⋯ + |𝑎𝑛−1 |)|𝑥|𝑛−1
Dividing |𝑎𝑛 ||𝑥|𝑛−1 , it follows that |𝑥| ≤ 𝑚
|𝑎𝑛 | (|𝑎0 | + |𝑎1 | + ⋯ + |𝑎𝑛−1 |)|𝑥|𝑛−1
≤
|𝑎𝑛 ||𝑥|𝑛−1 |𝑎𝑛 ||𝑥|𝑛−1
|𝑎0 | + |𝑎1 | + ⋯ + |𝑎𝑛−1 |
|𝑥| ≤ =𝑚
|𝑎𝑛 |
As a consequence, we have 𝑚 ≥ 1.
Hence if 𝑚 ≥ 1, and 𝑥 is a root of the equation, then |𝑥| ≤ 𝑚
(we can also conclude that a root 𝑥 with |𝑥| > 1 D.N.E. if 𝑚 < 1).
Proof
Let ℎ(𝑥) = 𝑥 − 𝑔(𝑥)
then ℎ(𝑥) = 0 if and only if 𝑥 = 𝑔(𝑥).
Now, ℎ′ (𝑥) = 1 − 𝑔′ (𝑥) > 0 (since −1 > 𝑔′ (𝑥) > 1) for every 𝑥 ∈ (𝑎, 𝑏).
Thus, ℎ(𝑥) is strictly increasing on (𝑎, 𝑏)
Therefore
• This implies that ℎ has at most one zero.
• 𝑥 = 𝑔(𝑥) can have at most 1 solution
= ∑[𝑓(𝑥𝑘−1 ) + 𝑔(𝑥𝑘−1 )] ℎ
𝑘=1
𝑛 𝑛
= ∑ 𝑓(𝑥𝑘−1 )ℎ + ∑ 𝑔(𝑥𝑘−1 )ℎ
𝑘=1 𝑘=1
= 𝐿𝑅(𝑓, ℎ) + 𝐿𝑅(𝑔, ℎ)
= ∑[𝑓(𝑥𝑘 ) + 𝑔(𝑥𝑘 )] ℎ
𝑘=1
𝑛 𝑛
= ∑ 𝑓(𝑥𝑘 )ℎ + ∑ 𝑔(𝑥𝑘 )ℎ
𝑘=1 𝑘=1
= 𝑅𝑅(𝑓, ℎ) + 𝑅𝑅(𝑔, ℎ)
= ∑[𝑓(𝑥𝑘∗ ) + 𝑔(𝑥𝑘∗ )] ℎ
𝑘=1
𝑛 𝑛
= ∑ 𝑓(𝑥𝑘∗ )ℎ + ∑ 𝑔(𝑥𝑘∗ )ℎ
𝑘=1 𝑘=1
= 𝑀𝑅(𝑓, ℎ) + 𝑀𝑅(𝑔, ℎ)
1
where 𝑥𝑘∗ = (𝑥𝑘 + 𝑥𝑘−1 )
2
𝑳𝑹(𝒄𝒇, 𝒉) = 𝒄𝑳𝑹(𝒇, 𝒉)
𝑛
𝐿𝑅(𝑐𝑓, ℎ) = ∑ 𝑐𝑓(𝑥𝑘−1 ) ℎ
𝑘=1
𝑛
= 𝑐 ∑ 𝑓(𝑥𝑘−1 )ℎ
𝑘=1
= 𝑐𝐿𝑅(𝑓, ℎ)
𝑹𝑹(𝒄𝒇, 𝒉) = 𝒄𝑹𝑹(𝒇, 𝒉)
𝑛
𝑅𝑅(𝑐𝑓, ℎ) = ∑ 𝑐𝑓(𝑥𝑘 ) ℎ
𝑘=1
𝑛
= 𝑐 ∑ 𝑓(𝑥𝑘 )ℎ
𝑘=1
= 𝑐𝑅𝑅(𝑓, ℎ)
𝑴𝑹(𝒄𝒇, 𝒉) = 𝒄𝑴𝑹(𝒇, 𝒉)
𝑛
𝑀𝑅(𝑐𝑓, ℎ) = ∑ 𝑐𝑓(𝑥𝑘∗ ) ℎ
𝑘=1
𝑛
= 𝑐 ∑ 𝑓(𝑥𝑘∗ )ℎ
𝑘=1
= 𝑐𝑀𝑅(𝑓, ℎ)
= ∑ 𝑓(𝑥𝑘−1 )ℎ
𝑘=1
= ℎ[𝑓(𝑥0 ) + 𝑓(𝑥1 ) + ⋯ + 𝑓(𝑥𝑛−1 )]
= ℎ(𝑘 + 𝑘 … + 𝑘)
= ℎ(𝑛𝑘)
𝑏−𝑎
=( ) 𝑛𝑘
𝑛
= 𝑘(𝑏 − 𝑎)
We calculate 𝐸(𝑓, ℎ) by combining result 1 and 2
𝑏
𝐸(𝑓, ℎ) = ∫ 𝑓(𝑥) 𝑑𝑥 − 𝐿𝑅(𝑓, ℎ)
𝑎
= 𝑘(𝑏 − 𝑎) − 𝑘(𝑏 − 𝑎)
=0
Therefore, the degree of precision is at least 0
= ∑ 𝑓(𝑥𝑘 )ℎ
𝑘=1
= ℎ[𝑓(𝑥1 ) + 𝑓(𝑥2 ) + ⋯ + 𝑓(𝑥𝑛 )]
= ℎ(𝑘 + 𝑘 … + 𝑘)
= ℎ(𝑛𝑘)
𝑏−𝑎
=( ) 𝑛𝑘
𝑛
= 𝑘(𝑏 − 𝑎)
We calculate 𝐸(𝑓, ℎ) by combining result 1 and 2
𝑏
𝐸(𝑓, ℎ) = ∫ 𝑓(𝑥) 𝑑𝑥 − 𝑅𝑅(𝑓, ℎ)
𝑎
= 𝑘(𝑏 − 𝑎) − 𝑘(𝑏 − 𝑎)
=0
Therefore, the degree of precision is at least 0
The degree of precision for the midpoint rectangle rule is 1
1
Let 𝑓(𝑥) = 𝑥 and let 𝑥𝑘∗ = 2 (𝑥𝑘−1 + 𝑥𝑘 )
Result 1 𝑏
∫ 𝑓(𝑥) 𝑑𝑥
𝑎
𝑛 𝑥𝑘
= ∑∫ 𝑓(𝑥) 𝑑𝑥
𝑘=1 𝑥𝑘−1
𝑛
1 2 𝑥𝑘
=∑ 𝑥 |
2 𝑥𝑘−1
𝑘=1
𝑛
1
= ∑ (𝑥𝑘2 − 𝑥𝑘−1
2
)
2
𝑘=1
𝑛
1
= ∑ (𝑥𝑘 − 𝑥𝑘−1 )(𝑥𝑘 + 𝑥𝑘−1 )
2
𝑘=1
𝑛
1
= ∑ ℎ(𝑥𝑘 + 𝑥𝑘−1 )
2
𝑘=1
Result 2 𝑀𝑅(𝑓, ℎ)
𝑛
= ∑ 𝑓(𝑥𝑘∗ )ℎ
𝑘=1
𝑛
1
= ∑ ℎ ( (𝑥𝑘 + 𝑥𝑘−1 ))
2
𝑘=1
𝑛
1
= ∑ ℎ(𝑥𝑘 + 𝑥𝑘−1 )
2
𝑘=1
We calculate 𝐸(𝑓, ℎ) by combining result 1 and 2
𝑏
𝐸(𝑓, ℎ) = ∫ 𝑓(𝑥) 𝑑𝑥 − 𝑀𝑅(𝑓, ℎ)
𝑎
𝑛 𝑛
1 1
= ∑ ℎ(𝑥𝑘 + 𝑥𝑘−1 ) − ∑ ℎ(𝑥𝑘 + 𝑥𝑘−1 )
2 2
𝑘=1 𝑘=1
=0
Therefore, the degree of precision is at least 1
𝑻(𝒄𝒇, 𝒉) = 𝒄𝑻(𝒇, 𝒉)
𝑛
1
𝑇(𝑐𝑓, ℎ) = ∑ 𝑐 [ ℎ(𝑓(𝑥𝑘−1 ) + 𝑓(𝑥𝑘 ))]
2
𝑘=1
𝑛
1
= 𝑐 ∑ [ ℎ(𝑓(𝑥𝑘−1 ) + 𝑓(𝑥𝑘 ))]
2
𝑘=1
= 𝑐𝑇(𝑓, ℎ)
𝑺(𝒄𝒇, 𝒉) = 𝒄𝑺(𝒇, 𝒉)
𝑛
1
𝑆(𝑐𝑓, ℎ) = ∑ 𝑐 [ ℎ(𝑓(𝑥2𝑘−2 ) + 4𝑓(𝑥2𝑘−1 ) + 𝑓(𝑥2𝑘 ))]
3
𝑘=1
𝑛
1
= 𝑐 ∑ [ ℎ(𝑓(𝑥2𝑘−2 ) + 4𝑓(𝑥2𝑘−1 ) + 𝑓(𝑥2𝑘 ))]
3
𝑘=1
= 𝑐𝑆(𝑓, ℎ)
The degree of precision for the trapezoidal rule is 1
Let 𝑓(𝑥) = 𝑥
Result 1 𝑏
∫ 𝑓(𝑥) 𝑑𝑥
𝑎
𝑛 𝑥𝑘
= ∑∫ 𝑓(𝑥) 𝑑𝑥
𝑘=1 𝑥𝑘−1
𝑛 𝑥
1 𝑘
= ∑ 𝑥2|
2 𝑥𝑘−1
𝑘=1
𝑛
1
= ∑ (𝑥𝑘2 − 𝑥𝑘−1
2
)
2
𝑘=1
𝑛
1
= ∑ (𝑥𝑘 − 𝑥𝑘−1 )(𝑥𝑘 + 𝑥𝑘−1 )
2
𝑘=1
𝑛
1
= ∑ ℎ(𝑥𝑘 + 𝑥𝑘−1 )
2
𝑘=1
Result 2 𝑇(𝑓, ℎ)
𝑛
1
= ∑ ℎ(𝑓(𝑥𝑘−1 ) + 𝑓(𝑥𝑘 ))
2
𝑘=1
𝑛
1
= ∑ ℎ(𝑥𝑘 + 𝑥𝑘−1 )
2
𝑘=1
We calculate 𝐸(𝑓, ℎ) by combining result 1 and 2
𝑏
𝐸(𝑓, ℎ) = ∫ 𝑓(𝑥) 𝑑𝑥 − 𝑇(𝑓, ℎ)
𝑎
𝑛 𝑛
1 1
= ∑ ℎ(𝑥𝑘 + 𝑥𝑘−1 ) − ∑ ℎ(𝑥𝑘 + 𝑥𝑘−1 )
2 2
𝑘=1 𝑘=1
=0
Therefore, the degree of precision is at least 1
The degree of precision for Simpson’s rule is 3
Let 𝑓(𝑥) = 𝑥
Result 1 𝑏
∫ 𝑓(𝑥) 𝑑𝑥
𝑎
𝑛 𝑥2𝑘
= ∑∫ 𝑓(𝑥) 𝑑𝑥
𝑘=1 𝑥2𝑘−2
𝑛
1 2 𝑥2𝑘
=∑ 𝑥 |
2 𝑥2𝑘−2
𝑘=1
𝑛
1 2 2
= ∑ (𝑥2𝑘 − 𝑥2𝑘−2 )
2
𝑘=1
𝑛
1
= ∑ (𝑥2𝑘 − 𝑥2𝑘−2 )(𝑥2𝑘 + 𝑥2𝑘−2 )
2
𝑘=1
𝑛
1
= ∑ 2ℎ(𝑥2𝑘 + 𝑥2𝑘−2 )
2
𝑘=1
𝑛
= ∑ ℎ(𝑥2𝑘 + 𝑥2𝑘−2 )
𝑘=1
Result 2 𝑆(𝑓, ℎ)
𝑛
1
= ∑ ( ℎ(𝑓(𝑥2𝑘−2 ) + 4𝑓(𝑥2𝑘−1 ) + 𝑓(𝑥2𝑘 )))
3
𝑘=1
𝑛
1
= ∑ ℎ(𝑥2𝑘−2 + 4𝑥2𝑘−1 + 𝑥2𝑘 )
3
𝑘=1
𝑛
1 𝑥2𝑘−2 + 𝑥2𝑘
= ∑ ℎ (𝑥2𝑘−2 + 4 ( ) + 𝑥2𝑘 )
3 2
𝑘=1
𝑛
1
= ∑ ℎ(𝑥2𝑘−2 + 2𝑥2𝑘−2 + 2𝑥2𝑘 + 𝑥2𝑘 )
3
𝑘=1
𝑛
1
= ∑ ℎ(3𝑥2𝑘−2 + 3𝑥2𝑘 )
3
𝑘=1
𝑛
= ∑ ℎ(𝑥2𝑘−2 + 𝑥2𝑘 )
𝑘=1
We calculate 𝐸(𝑓, ℎ) by combining result 1 and 2
𝑏
𝐸(𝑓, ℎ) = ∫ 𝑓(𝑥) 𝑑𝑥 − 𝑆(𝑓, ℎ)
𝑎
𝑛 𝑛
𝐸(𝑓, ℎ) ≤ ∑|𝑒𝑘 |
𝑘=1
𝑛
ℎ2
≤∑ 𝑀
2 1
𝑘=1
2
ℎ
=𝑛 𝑀
2 1
1
= 𝑀1 (𝑏 − 𝑎)ℎ
2
𝒃
𝟏
|∫ 𝒇(𝒙) 𝒅𝒙 − 𝑴𝑹(𝒇, 𝒉)| ≤ 𝑴 (𝒃 − 𝒂)𝒉𝟐
𝒂 𝟐𝟒 𝟐
Consider the following
𝑛
|𝐸(𝑓, ℎ)| ≤ |𝑒1 | + |𝑒2 | + ⋯ + |𝑒𝑛 | = ∑|𝑒𝑘 |
𝑘=1
Now,
Let 𝑀 be an upper bound for |𝑓 ′ | on [𝑥𝑘−1 , 𝑥𝑘 ]
From the Mean Value Theorem, 𝑓(𝑏) − 𝑓(𝑎) = 𝑓 ′ (𝑐)(𝑏 − 𝑎)
Therefore 𝑓(𝑥) − 𝑓(𝑥𝑘−1 ) = 𝑓 ′ (𝑐)(𝑥 − 𝑥𝑘−1 ) where 𝑐 ∈ [𝑥𝑘−1 , 𝑥𝑘 ]
∴ |𝑓(𝑥) − 𝑓(𝑥𝑘−1 )| = |𝑓 ′ (𝑐)||𝑥 − 𝑥𝑘−1 | ≤ 𝑀|𝑥 − 𝑥𝑘−1 |
𝑥𝑘
|𝑒𝑘 | ≤ ∫ |𝑓(𝑥) − 𝑓(𝑥𝑘−1 )| 𝑑𝑥 ()
𝑥𝑘−1
𝑥
≤ ∫𝑥 𝑘 𝑀|𝑥 − 𝑥𝑘−1 | 𝑑x ()
𝑘−1
𝑥𝑘
1
= 𝑀 ( 𝑥 2 − 𝑥. 𝑥𝑘−1 | )
2 𝑥𝑘−1 (evaluating the integral)
1 (algebra)
= 𝑀 [ (𝑥𝑘2 − 𝑥𝑘−1
2
) − 𝑥𝑘 (𝑥𝑘 − 𝑥𝑘−1 )]
2
1 (algebra)
= 𝑀 [ (𝑥𝑘 − 𝑥𝑘−1 )(𝑥𝑘 + 𝑥𝑘−1 ) − 𝑥𝑘 (𝑥𝑘 − 𝑥𝑘−1 )]
2
1 (algebra)
= 𝑀 [ ℎ(𝑥𝑘 − 𝑥𝑘−1 )]
2
1
= 𝑀ℎ2 (ℎ = (𝑥𝑘−1 − 𝑥𝑘 ))
2
𝒙 𝟏
|𝒆𝒌 | = |∫𝒙 𝒌 𝒇 − 𝒇(𝒙∗𝒌 )𝒉𝒌 | ≤ 𝑴𝒉𝟐 (Local Error for RR)
𝒌−𝟏 𝟐
Now,
Let 𝑀 be an upper bound for |𝑓 ′ | on [𝑥𝑘−1 , 𝑥𝑘 ]
From the Mean Value Theorem, 𝑓(𝑏) − 𝑓(𝑎) = 𝑓 ′ (𝑐)(𝑏 − 𝑎)
Therefore 𝑓(𝑥) − 𝑓(𝑥𝑘 ) = 𝑓 ′ (𝑐)(𝑥 − 𝑥𝑘 ) where 𝑐 ∈ [𝑥, 𝑥𝑘∗ ]
∴ |𝑓(𝑥) − 𝑓(𝑥𝑘 )| = |𝑓 ′ (𝑐)||𝑥 − 𝑥𝑘 | ≤ 𝑀|𝑥 − 𝑥𝑘 |
𝑥𝑘
|𝑒𝑘 | ≤ ∫ |𝑓(𝑥) − 𝑓(𝑥𝑘 )| 𝑑𝑥 ()
𝑥𝑘−1
𝑥
≤ ∫𝑥 𝑘 𝑀|𝑥 − 𝑥𝑘 | 𝑑x ()
𝑘−1
𝑥𝑘
1 (evaluating the integral)
= 𝑀 (𝑥. 𝑥𝑘 − 𝑥 2 | )
2 𝑥𝑘−1
1 (algebra)
= 𝑀 [𝑥𝑘 (𝑥𝑘 − 𝑥𝑘−1 ) − (𝑥𝑘2 − 𝑥𝑘−1
2
)]
2
1
= 𝑀 [𝑥𝑘 (𝑥𝑘 − 𝑥𝑘−1 ) − (𝑥𝑘 − 𝑥𝑘−1 )(𝑥𝑘 + 𝑥𝑘−1 )] (algebra)
2
1
= 𝑀 [ℎ𝑥𝑘 − ℎ(𝑥𝑘 + 𝑥𝑘−1 )]
2 (algebra)
1 2
= 𝑀ℎ (ℎ = (𝑥𝑘−1 − 𝑥𝑘 ))
2
Section 3.1 – First Order Differential Equations: Euler’s Method
Derivation of Euler’s Method
Consider a general initial value problem 𝑦 ′ (𝑡) = 𝑓(𝑦(𝑡)) with 𝑦(𝑡0 ) = 𝑦0 .
The tangent to the graph of the solution 𝑦 through the point (𝑡0 , 𝑦0 ) has slope:
𝑦 ′ (𝑡0 ) = 𝑓(𝑦(𝑡0 )) = 𝑓(𝑦0 )
𝑦1 −𝑦0
If (𝑡1 , 𝑦1 ) is the point on the tangent at 𝑡1 = 𝑡0 + ℎ, the slope of the tangent is also given by . From this it
ℎ
follows that 𝑦1 = 𝑦0 + ℎ𝑓(𝑦0 )
Now to calculate 𝑦2 : The tangent to the graph of the solution 𝑦 at the point (𝑡1 , 𝑦(𝑡1 )) has a slope 𝑦 ′ (𝑡1 ) =
𝑓(𝑦(𝑡1 )).
As only an estimate 𝑦1 for 𝑦(𝑡1 ) is known, we only have an estimate for this slope: 𝑦 ′ (𝑡1 ) = 𝑓(𝑦1 )
Also the point (𝑡1 , 𝑦(𝑡1 )) is unknown and only the point (𝑡1 , 𝑦1 ) close to the graph of 𝑦 is known.
For the time interval [𝑡1 , 𝑡2 ] the function 𝑦 can be approximated by a line (not a tangent line) through the point with
𝑦 −𝑦
(𝑡1 , 𝑦1 ) with slope 𝑓(𝑦1 ). It then follows that 2 1 = 𝑓(𝑦1 ) and 𝑦2 = 𝑦1 + ℎ𝑓(𝑦1 )
ℎ
For the interval [𝑡𝑘 , 𝑡𝑘+1 ] it follows from the differential equations and the second fundamental theorem of calculus
that
𝑡𝑘+1
𝑦(𝑡𝑘+1 ) − 𝑦(𝑡𝑘 ) = ∫ 𝑓(𝑦(𝑡)) 𝑑𝑡
𝑡𝑘