Professional Documents
Culture Documents
A marching method for obtaining ordered pairs starting with an initial value set
inc
Heun Example
The application of the Heun method using a know form for the differential equation,
Notation Examples:
(1)
3
2
f(z, F(z) ) = z +4z + 12z -75
(2)
inc
Heun Example
The application of the Heun method using a know form for the differential equation,
Notation Examples:
(1)
3
2
f(z, F(z) ) = z +4z + 12z -75
(2)
f(x, y) = 4 e
0.8x
- 0.5 F(x)
inc
0.8x
(0 , 2)
(1 , ?)
- 0.5 F(x)
The objective is to obtain the other value in the ordered pair (1,?). After that
value is obtained at an approximation level that satisfies the uncertainty of
measurement system you march on to obtain the two values in the next
ordered pair in the sequence.
F(0) = 2
F(1) = 2 + ( x) dy
dx
= 2 + ( x) f(x,F(x))
X= 0
F(2) = F(1) + ( x)
dy
dx
X= 0
= 2 + ( x) f(x,F(x))
X= 0 + 1x
F(2) = F(1) + ( x)
dy
dx
X= 0 + 1x
= 2 + ( x) f(x,F(x))
X= 0 + 2x
X= 0 + 2x
0.8x
- 0.5 F(x)
(0 , 2)
(1 , ?)
(1 , ?)
inc
0.8x
- 0.5 F(x)
(0 , 2)
(1 , ?)
(1 , ?)
inc
0.8x
- 0.5 F(x)
(0 , 2)
(1 , ?)
(1 , 5 )
(1 , ?)
F (1) = 2 + 3(1) = 5
(1, 5 )
inc
0.8x
- 0.5 F(x)
(0 , 2)
(1 , ?)
(1 , 5 )
(1 , ?)
F (1) = 2 + 3(1) = 5
(1, 5 )
0.8x
(0 , 2)
(1 , ?)
(1 , 5 )
- 0.5 F(x)
(1 , ?)
F (1) = 2 + 3(1) = 5
[ f ( 0, 2 )] = 4 e0 - 0.5 (2) = 3
(1, 5 )
(0.5) F(1) = ?
[ f P(1, 5) ] = 4 e0.8(1) -
(0.5) 5
= 6.402
inc
0.8x
- 0.5 F(x)
(0 , 2)
(1 , ?)
(1 , 5 )
(1 , ?
First correction
(1, 5 )
[ f P(1, 5) ] = 4 e0.8(1) -
(0.5) F(1) = ?
[ f P(1, 5) ] = 4 e0.8(1) -
(0.5) 5
= 6.402
F1c(x) =
inc
0.8x
- 0.5 F(x)
(0 , 2)
(1 , ?)
(1 , 5 )
(1 , ?
First correction
(1, 5 )
[ f P(1, 5) ] = 4 e0.8(1) -
(0.5) F(1) = ?
[ f P(1, 5) ] = 4 e0.8(1) -
(0.5) 5
= 6.402
F1c(x) = 2 +{
} (1)
inc
0.8x
(0 , 2)
(1 , ?)
(1 , 5 )
(1 , ?
- 0.5 F(x)
First correction
(1, 5 )
[ f P(1, 5) ] = 4 e0.8(1) -
(0.5) F(1) = ?
[ f P(1, 5) ] = 4 e0.8(1) -
(0.5) 5
= 6.402
[4 e
F1c(x) = 2 +{
} (1) = ?
inc
0.8x
(0 , 2)
(1 , ?)
(1 , 5 )
(1 , ?
- 0.5 F(x)
First correction
(1, 5 )
[ f P(1, 5) ] = 4 e0.8(1) -
(0.5) F(1) = ?
[ f P(1, 5) ] = 4 e0.8(1) -
(0.5) 5
= 6.402
F1c(x) = 2 +{ [
3 + 6.402
] } (1) = 2 + {
2
current value of F(x)
} (1)= ?
inc
0.8x
- 0.5 F(x)
(0 , 2)
(1 , ?)
(1 , 5 )
(1 , 6.702)
(1 , ? )
(1, 5 )
[ f P(1, 5) ] = 4 e0.8(1) -
(0.5) F(1) = ?
[ f P(1, 5) ] = 4 e0.8(1) -
(0.5) 5
= 6.402
F1c(x) = 2 + { [
3 + 6.402
2
0.8(1)
f( 1, 6.702) =[ 4 e
- 0.5 (6.702)]
(1, 6.702 )
When x = 1 the F(x) value is now suppose to equal 6.702.
inc
0.8x
- 0.5 F(x)
(0 , 2)
(1 , ?)
(1 , 5 )
(1 , 6.702)
(1 , ? )
(1, 5 )
[ f P(1, 5) ] = 4 e0.8(1) -
(0.5) F(1) = ?
[ f P(1, 5) ] = 4 e0.8(1) -
(0.5) 5
= 6.402
F1c(x) = 2 + { [
3 + 6.402
2
0.8(1)
f( 1, 6.702) =[ 4 e
- 0.5 (6.702)]
(1, 6.702 )
When x = 1 the F(x) value is now suppose to equal 6.702.
If this corrected value still isnt good enough, it is time to move on
to a second correction step!!
inc
0.8x
(0 , 2)
(1 , ?)
(1 , 5 )
(1 , 6.702)
(1 , ? )
- 0.5 F(x)
(1, 5 )
Heun first correction to solution value, F(1).
F1c(x) = 2 + { [
3 + 6.402
2
0.8(1)
f( 1, 6.702) =[ 4 e
- 0.5 (6.702)]
(1, 6.702 )
Heun second correction to the predicted value of F(1)
F2c(x) = 2 +{
?
2
} (1)
F2c(x) = 2 +
inc
0.8x
(0 , 2)
(1 , ?)
(1 , 5 )
(1 , 6.702)
(1 , ? )
- 0.5 F(x)
(1, 5 )
Heun first correction to solution value, F(1).
F1c(x) = 2 + { [
3 + 6.402
2
0.8(1)
f( 1, 6.702) =[ 4 e
- 0.5 (6.702)]
(1, 6.702 )
Heun second correction to the predicted value of F(1)
F2c(x) = 2 +{
2
0.8(0)
[4 e
F2c(x) = 2 +{
} (1)
inc
0.8x
- 0.5 F(x)
(1, 5 )
Heun first correction to solution value, F(1).
F1c(x) = 2 + { [
3 + 6.402
2
0.8(1)
f( 1, 6.702) =[ 4 e
- 0.5 (6.702)]
(1, 6.702 )
Heun second correction to the predicted value of F(1)
F2c(x) = 2 +{
2
0.8(0)
[4 e
F2c(x) = 2 +{
} (1)
(1, 6.382 )
inc
0.8x
(0 , 2)
(1 , 6382)
- 0.5 F(x)
(1, 5 )
Heun first correction to solution value, F(1).
F1c(x) = 2 + { [
3 + 6.402
2
0.8(1)
f( 1, 6.702) =[ 4 e
- 0.5 (6.702)]
(1, 6.702 )
Heun second correction to the predicted value of F(1)
F2c(x) = 2 +{
2
0.8(0)
[4 e
F2c(x) = 2 +{
} (1)
(1, 6.382 )
When x = 1 the F(x) value is now really suppose to equal 6.382
inc
0.8x
- 0.5 F(x)
(1 , 6.195)
(1 , 5 )
100%
relative error
(0 , 2)
0%
Correct
value
2st corrected
value
inc
End of Presentation
inc