Академический Документы
Профессиональный Документы
Культура Документы
Website: www.cme.engineering.ualberta.ca
Exam-Form
Rules
Basic Advices
IVP Exercise
BVP Exercise
Exam-Form
Rules
Basic Advices
IVP Exercise
BVP Exercise
Notes
Exam-Form
Rules
Basic Advices
IVP Exercise
BVP Exercise
Notes
For the solution of given problems the knowledge of a material from previous
lectures will be necessary: solution of nonlinear equations, solution of matrix
equations, interpolation using polynomials, numerical differentiation and
4
integration.
Exam-Form
Rules
Basic Advices
IVP Exercise
BVP Exercise
Exam-Form
Rules
Basic Advices
IVP Exercise
BVP Exercise
Solve the ODE for 0 t 2t using the modified Euler method utilizing
t = 0.1 sec.
Solution:
To solve the problem the second-order ODE is rewritten as a system of two
first-order ODEs. This is done by introducing a new variable u, such that:
u=
dx
dt
and
d 2x
du
=
dt 2
dt
Exam-Form
Rules
Basic Advices
IVP Exercise
BVP Exercise
Exam-Form
Rules
Basic Advices
IVP Exercise
BVP Exercise
Exam-Form
Rules
Basic Advices
IVP Exercise
BVP Exercise
dy
dx x=3
= 1.2
yi +1 yi 1
2x
= 10
Exam-Form
Rules
Basic Advices
IVP Exercise
BVP Exercise
x
2xi
yi 1 + (2) yi +
1+
x
2xi
yi +1 = 10x 2
Step 2. Calculate x and write algebraic equations for internal grid nodes.
According to four subintervals given in the problem description:
x = 31
= 0.5.
4
Total number of grid points is 4 + 1 = 5 and the number of internal nodes
5 2 = 3:
x1 = 1, x2 = x1 + x = 1.5,
x3 = x2 + x = 2, x4 = x3 + x = 2.5, x5 = x4 + x = 3
i =2:
0.5
2(1.5)
0.5
2(2.0)
0.5
2(2.5)
i =3:
i =4:
1+
0.5
2(1.5)
y1 + (2) y2 +
y3 = 10(0.52 )
1+
0.5
2(2.0)
y2 + (2) y3 +
y4 = 10(0.52 )
1+
0.5
2(2.5)
y3 + (2) y4 +
y5 = 10(0.52 )
10
Exam-Form
Rules
Basic Advices
IVP Exercise
BVP Exercise
1.2(2 0.5)
4
1
dy
y3 4y4 + 3y5
= 1.2 = y5 =
+ y4 y3
dx x=3
2x
3
3
3
Step 4 The final form of the system of linear algebraic equations:
2y2 + 1.167y3 = 2.5 0.83y1
0.9y3 2y4 + 1.1
or
2y2 + 1.167y3 = 3.33
0.875y2 2y3 + 1.125y4 = 2.5
0.533 y3 0.533 y4 = 2.06
11
Exam-Form
Rules
Basic Advices
IVP Exercise
BVP Exercise
2
0.875
0
1.167
2
0.533
0
y2
3.33
1.125 y3 = 2.5
0.533
y4
2.06
12