Professional Documents
Culture Documents
Haval Hawez
Petroleum Engineering Department
Faculty of Engineering
Koya University
13.12.2018
Outline: Solution Methods
• Taylor Series
• Euler’s Method
2
Taylor Series
3
Taylor Series
• First-order differential equation of the form
𝑑𝑦
= 𝑓(𝑥) subjected to 𝑦 = 𝑦0 𝑎𝑡 𝑥 = 𝑥0
𝑑𝑥
𝑦 𝑥
𝑑𝑦 = 𝑓 𝑥 𝑑𝑥
𝑦0 𝑥0
4
Taylor Series
𝑥
𝑦 − 𝑦0 = 𝑓 𝑥 𝑑𝑥
𝑥0 𝑥
𝑦 𝑥 = 𝑦0 + 𝑓 𝑥 𝑑𝑥
𝑥0
Recall Taylor’s Series Expansion
5
Taylor Series
Where:
x0 = base value or starting value
x = the point at which the value of the function is
needed
h = x . x0 = distance between x0 and x (step size)
n! = factorial of n = n(n-1) (n . 2).1
f(n) = indicates the nth derivative of the function f(x)
Rn+1 = the remainder of Taylor series expansion
6
Taylor Series
7
Taylor Series
8
Taylor Series
9
Taylor Series
10
Taylor Series
11
Taylor Series
12
Taylor Series
13
Taylor Series
14
Taylor Series
15
Taylor Series
16
Taylor Series
17
Taylor Series
18
Taylor Series
19
Euler’s Method
As we noticed in the previous example, in some cases the
derivatives are not easily computed. Therefore, the
Taylor series can be truncated so that only the term with
the first derivative is used.
20
Euler’s Method
The iterative procedure for basic Euler’s method is given by
Where:
21
Euler’s Method
Example-3: Solve the following differential equation for 0
≤ x ≥ 1 using a step size of h = 0.1:
22
Euler’s Method
23
Euler’s Method
24
Euler’s Method
25
Euler’s Method
26
Euler’s Method
27
Euler’s Method
Example-4: Solve the following differential equation using
Euler.s method for 1 ≤ x ≥ 2 with a step size of h = 0.1:
28
Euler’s Method
29
Euler’s Method
30
Euler’s Method
31
Euler’s Method
32
Euler’s Method
33