Professional Documents
Culture Documents
Compare The Graphs of Euler's With Analytical Solution, Heun's With Analytical Solution and Euler's With Heun's Method.
Compare The Graphs of Euler's With Analytical Solution, Heun's With Analytical Solution and Euler's With Heun's Method.
The problem asks to find for the solution of the linear ODE (2 cos +
4
) = sin through both analytical and numerical approaches. For determining
the solution through the numerical approach, the methods are as follows: Eulers Method,
Heuns Method, Midpoint Method, Second Order Runge-Kutta Method, Ralston Method,
and Classical Fourth-Order Runge Kutta Method. Also, graphical representations of the
differential solutions are compared as specified. Lastly, % error from among analytical and
numerical solutions is determined.
Analytical Solution:
a. Formula/Program: n/a
b. Solution:
(2 cos + 4 ) = sin
2 cos + 4
=
sin
2 ycot = 3
Form:
+ () = ()
() = 2
() = 3
u(x) = ()
1
u(x) = 2 = 2 = 2
1
= 2 (3 ) ( 2 ) = 2
= 2 ( + )
Applying condition ( 2 , 1),
1 0
1 = 2 ( + )
2 2
c=1
Therefore,
= 2 ( + 1)
c. Graphs
Analytical Solution
1.400
1.200
1.000
0.800
y
0.600
Analytical Solution
0.400
0.200
0.000
0.000 1.000 2.000 3.000 4.000
x
Shown is the graph representing the analytical solution to the ordinary differential
1
equation evaluated from = 2 to = .
d. Tables/Results
Numerical Methods
Euler Method
a. Formula: +1 = + ( , )
The obtained new values of y will be used in the next trial as initial
value.
b. Program
E12+(2*E12*COT(C12)+(SIN(C12))^3)*(0.1*3.14)
c. Graph
d.
Shown is the graph between the solutions of analytical method and Euler method
1
to the ordinary differential equation evaluated from = 2 to = .
e. Table/Result
b. Program: =E3+(1/2*((4*EXP(0.8*A3))-
(0.5*E3)+(4*EXP(0.8*(A3+1)))-(0.5*(E3+(1*((4*EXP(0.8*A3)-
(0.5*E3))))))))
c. Graph
d. Result
e. Difficulty in solving the problem:
There was no problem encountered in solving the problem.
Midpoint Method
a. Formula
+1 = + ( + , + ( , )))
2 2
b. Program
=F5 + E6*0.1*3.14
c. Graph
d. Tables/Results
b. Program
D6 + 0.5*(E6+F6)*0.1*3.14
c. Graph
d. Tables/Results
c. Graph
d. Table/Result
d. Result
d. Result
%error %error %error %error (RK- %error (RK- %error (RK- &error (4th
(Euler (Heuns (Midpoint Heuns) Midpoint) Ralstons) order RK)
Method) Method) Method)
0.7969 7.335 0.362 0 0 0 0
9.933146469 9.765 1.3 2.16 0.017 20.6 0.05
21.03995 10.4447 6 5 1.3 42.5 0.014
29.116202 10.6247 11 8 6.5 64.5 0.1
0.97111 20 11 46.7 2.54
\
Adamson University
900 San Marcelino Street, Ermita Manila City
College of Engineering
Chemical Engineering Department
PRACTICAL EXAM 5
201413528
Instructor
October18, 2017
Adamson University
900 San Marcelino Street, Ermita Manila City
College of Engineering
Chemical Engineering Department
PRACTICAL EXAM 5
Bidua, Kurt B.
201620033
Instructor
October18, 2017
Adamson University
900 San Marcelino Street, Ermita Manila City
College of Engineering
Chemical Engineering Department
PRACTICAL EXAM 5
Instructor
October18, 2017
Adamson University
900 San Marcelino Street, Ermita Manila City
College of Engineering
Chemical Engineering Department
PRACTICAL EXAM 5
Instructor
October18, 2017
Adamson University
900 San Marcelino Street, Ermita Manila City
College of Engineering
Chemical Engineering Department
PRACTICAL EXAM 5
Megio, Jona
Instructor
October18, 2017