Solving Initial-Value Problem of the First-Order Differential Equation by Euler's Method using Casio...

4
International Journ Internat ISSN No: 245 @ IJTSRD | Available Online @ www Solving Initial- Differential Equat 570EX C K. G. Tay Associate professor, Communication Department, Faculty of Electrical and Electronic, University Tun Hussein Onn, Malaysia ABSTRACT Solving numerical methods manually w scientific calculator or using scienti traditionally without input the iterative the calculator can be quite tedious and its repetitive calculations. There is a se discussing the implementation of nume using Excel spread sheet as well as C calculators, such as Casio fx-570 M calculator, Casio fx-570 ES scientific Casio fx-570 ES plus scientific cal though Excel spreadsheet made the imp numerical methods easier to be understo learner of numerical methods, but it is n classrooms (teaching and learning p examination hall (evaluation purpose). mentioned models of scientific calcula input of iterative formula but users stil put the new inputs then press CALC bu iterative solutions. The new model of FX classwiz scientific calculator offers ability of 45 rows and 5 columns wh implementation of the numerical method if compared to previous models. Hence, we solved the initial-value problem (IV order ordinary differential equations b method using Casio fx-570 FX class calculator for the classroom and purposes. Keyword: IVP, ODE, Euler, Casio nal of Trend in Scientific Research and De tional Open Access Journal | www.ijtsr 56 - 6470 | Volume - 2 | Issue – 6 | Sep w.ijtsrd.com | Volume – 2 | Issue – 6 | Sep-Oct -Value Problem of the First-O tion by Euler’s Method using C Classwiz Scientific Calculator T. H. Cheong Lecturer, Faculty of Education, University Technology Mara, Malaysia W Senior Le Compu Mathem Malaysi without using a ific calculator e formula into boring due to eries of studies erical methods Casio scientific MS scientific calculator and lculator. Even plementation of ood by the new not portable for purposes) and . All the three ators allow the ll need to rein utton to get its f Casio fx-570 s a spreadsheet hich made the ds much easier e, in this paper, VP) of the first- by the Euler’s swiz scientific examination INTRODUCTION An ordinary differential e differential equation consists o one independent variable and ODEs arise in many physic engineering, physics, economi order of an ODE is deter derivatives. Hence, there are f and higher-order QDEs. When the analytical solutio available, we have to seek its using numerical methods. The methods such as the Euler’s, Heun, fourth-order Runge-Ku etc to solve an IVP of the first Solving numerical methods m scientific calculator or usin traditionally without input calculator can be quite tediou repetitivecalculations. Hencet discussing the implementation using Casio scientific calculat MS scientific calculator in scientific calculator in [2] an scientific calculator in [3]. The studies on solving n classroom and examination calculator, focusing on nonl systems of linear equations [ approximation of integration eigen values [9]-[10]. evelopment (IJTSRD) rd.com p – Oct 2018 2018 Page: 68 Order Casio fx W. K. Tiong ecturer, Department of utational Science and matics, University of ia, Sarawak, Malaysia equation (ODE) is a of the functions of only d its normal derivatives. cal problems including ics, biology and etc. The rmined by its highest first-order, second-order on of an ODE is not approximate solution by ere are several numerical Taylor series, midpoint, utta (RK4) methods and -order ODE. manually without using a ng scientific calculator the formula into the us and boring due to its there is a series of books n of numerical methods tor, such as Casio fx-570 [1], Casio fx-570 ES d Casio fx-570 ES plus numerical methods in n situations using a inear equations [4]-[5], [6], interpolation [7], an [8], and computing of

description

Solving numerical methods manually without using a scientific calculator or using scientific calculator traditionally without input the iterative formula into the calculator can be quite tedious and boring due to its repetitive calculations. There is a series of studies discussing the implementation of numerical methods using Excel spread sheet as well as Casio scientific calculators, such as Casio fx 570 MS scientific calculator, Casio fx 570 ES scientific calculator and Casio fx 570 ES plus scientific calculator. Even though Excel spreadsheet made the implementation of numerical methods easier to be understood by the new learner of numerical methods, but it is not portable for classrooms teaching and learning purposes and examination hall evaluation purpose . All the three mentioned models of scientific calculators allow the input of iterative formula but users still need to rein put the new inputs then press CALC button to get its iterative solutions. The new model of Casio fx 570 FX classwiz scientific calculator offers a spreadsheet ability of 45 rows and 5 columns which made the implementation of the numerical methods much easier if compared to previous models. Hence, in this paper, we solved the initial value problem IVP of the first order ordinary differential equations by the Eulers method using Casio fx 570 FX classwiz scientific calculator for the classroom and examination purposes. K. G. Tay | T. H. Cheong | W. K. Tiong "Solving Initial-Value Problem of the First-Order Differential Equation by Eulers Method using Casio fx 570EX Classwiz Scientific Calculator" Published in International Journal of Trend in Scientific Research and Development (ijtsrd), ISSN: 2456-6470, Volume-2 | Issue-6 , October 2018, URL: https://www.ijtsrd.com/papers/ijtsrd18374.pdf Paper URL: http://www.ijtsrd.com/mathemetics/other/18374/solving-initial-value-problem-of-the-first-order-differential-equation-by-euler's-method-using-casio-fx-570ex-classwiz-scientific-calculator/k-g-tay

Transcript of Solving Initial-Value Problem of the First-Order Differential Equation by Euler's Method using Casio...

Page 1: Solving Initial-Value Problem of the First-Order Differential Equation by Euler's Method using Casio fx 570EX Classwiz Scientific Calculator

International Journal of Trend in

International Open Access Journal

ISSN No: 2456

@ IJTSRD | Available Online @ www.ijtsrd.com

Solving Initial -Differential Equation

570EX ClasswizK. G. Tay

Associate professor, Communication Department,

Faculty of Electrical and Electronic, University Tun

Hussein Onn, Malaysia

ABSTRACT Solving numerical methods manually without using a scientific calculator or using scientific calculator traditionally without input the iterative formula into the calculator can be quite tedious and boring due to its repetitive calculations. There is a series of studies discussing the implementation of numerical methods using Excel spread sheet as well as Casio scientific calculators, such as Casio fx-570 MS scientific calculator, Casio fx-570 ES scientific calculator and Casio fx-570 ES plus scientific calculator. Even though Excel spreadsheet made the implementation of numerical methods easier to be understood by thelearner of numerical methods, but it is not portclassrooms (teaching and learning purposes) and examination hall (evaluation purpose). All the three mentioned models of scientific calculators allow the input of iterative formula but users still need to reinput the new inputs then press CALC buiterative solutions. The new model of Casio fxFX classwiz scientific calculator offers a spreadsheet ability of 45 rows and 5 columns which made the implementation of the numerical methods much easier if compared to previous models. Hence, in this paper, we solved the initial-value problem (IVP) of the firstorder ordinary differential equations by the Euler’s method using Casio fx-570 FX classcalculator for the classroom and examination purposes. Keyword: IVP, ODE, Euler, Casio

International Journal of Trend in Scientific Research and Development (IJTSRD)

International Open Access Journal | www.ijtsrd.com

ISSN No: 2456 - 6470 | Volume - 2 | Issue – 6 | Sep

www.ijtsrd.com | Volume – 2 | Issue – 6 | Sep-Oct

-Value Problem of the First-OrderDifferential Equation by Euler’s Method using Casio

EX Classwiz Scientific Calculator

T. H. Cheong Lecturer, Faculty of Education, University Technology Mara,

Malaysia

W.Senior Lecturer

ComputationalMathematics,

Malaysia,

Solving numerical methods manually without using a scientific calculator or using scientific calculator traditionally without input the iterative formula into

can be quite tedious and boring due to calculations. There is a series of studies

discussing the implementation of numerical methods as well as Casio scientific

570 MS scientific 570 ES scientific calculator and

ES plus scientific calculator. Even though Excel spreadsheet made the implementation of numerical methods easier to be understood by the new learner of numerical methods, but it is not portable for classrooms (teaching and learning purposes) and examination hall (evaluation purpose). All the three mentioned models of scientific calculators allow the input of iterative formula but users still need to rein put the new inputs then press CALC button to get its iterative solutions. The new model of Casio fx-570

wiz scientific calculator offers a spreadsheet ability of 45 rows and 5 columns which made the implementation of the numerical methods much easier

nce, in this paper, value problem (IVP) of the first-

order ordinary differential equations by the Euler’s 570 FX classwiz scientific

calculator for the classroom and examination

INTRODUCTION An ordinary differential equation (ODE) is a differential equation consists of the functions of only one independent variable and its normal derivatives. ODEs arise in many physical problems including engineering, physics, economics, biology and etc. The order of an ODE is determined by its highest derivatives. Hence, there are firstand higher-order QDEs. When the analytical solution of an ODE is not available, we have to seek its using numerical methods. There are several numerical methods such as the Euler’s, Taylor series, midpoint, Heun, fourth-order Runge-Kutta (RK4) methods and etc to solve an IVP of the first Solving numerical methods manuascientific calculator or using scientific traditionally without input the formula into the calculator can be quite tedious and boring due to its repetitivecalculations. Hencethere discussing the implementation of numerical methods using Casio scientific calculator, such as Casio fxMS scientific calculator in [1], Casio fxscientific calculator in [2] and Casio fxscientific calculator in [3]. The studies on solving numerical methclassroom and examination situations using acalculator, focusing on nonlinear equations [4]systems of linear equations [6], interpolation [7], anapproximation of integration [8], and computing of eigen values [9]-[10].

Research and Development (IJTSRD)

www.ijtsrd.com

| Sep – Oct 2018

2018 Page: 68

Order Casio fx

W. K. Tiong

Senior Lecturer, Department of omputational Science and

ematics, University of Malaysia, Sarawak, Malaysia

An ordinary differential equation (ODE) is a differential equation consists of the functions of only one independent variable and its normal derivatives. ODEs arise in many physical problems including engineering, physics, economics, biology and etc. The order of an ODE is determined by its highest

first-order, second-order

When the analytical solution of an ODE is not approximate solution by

There are several numerical methods such as the Euler’s, Taylor series, midpoint,

Kutta (RK4) methods and -order ODE.

Solving numerical methods manually without using a calculator or using scientific calculator

traditionally without input the formula into the calculator can be quite tedious and boring due to its

there is a series of books tation of numerical methods

calculator, such as Casio fx-570 MS scientific calculator in [1], Casio fx-570 ES scientific calculator in [2] and Casio fx-570 ES plus

on solving numerical methods in classroom and examination situations using a

, focusing on nonlinear equations [4]-[5], systems of linear equations [6], interpolation [7], an

of integration [8], and computing of

Page 2: Solving Initial-Value Problem of the First-Order Differential Equation by Euler's Method using Casio fx 570EX Classwiz Scientific Calculator

International Journal of Trend in Scientific Research and Development (IJTSRD) ISSN: 2456

@ IJTSRD | Available Online @ www.ijtsrd.com

Recently, there is a new model of scientificwhich is Casio fx-570EX classwiz which offers the spreadsheet ability. It provides 45 rows and 5 columns of spreadsheet ability and functions almost same with Excel spreadsheet. For the classroom andexamination purposes, the usage of the calculator will be appropriate if compared to Excel spreadsheet due to its portability. Hence, in this paper, we would like to solve the IVP of the firstorder ODE by Euler’s method using Casiofxclasswiz scientific calculator for the classroom and examination purposes. INITIAL- VALUE PROBLEM (IVP) OF THE FIRST-ORDER DIFFERENTIAL EQUATIONSConsider an IVP of the first-order differential equation

0 0 0( , ), ( ) , .y f x y y x y x x x′ = = ≤ ≤

By using numerical methods, the interval of divided into n subintervals with step size

0 .ix x ih= + we need to solve y from i =noticed that by using numerical methods, we only obtained discrete values of y. However,the differential equation analytically, we obtained a continuous function of( ).y x The Euler is discussed here. Euler’s Method The solution of Eq. (1) by Euler’s method is given by

1 ( , ),i i i i i iy y hy y hf x y+ ′= + = + Where h is a step size. NUMERICAL EXAMPLES The RC series circuit can be described by the following differential equation

)(tEVdt

dVRC =+

With initial condition V (0) = 0. If R 0.004 F, and E = 85cos(150t) V, the voltage 0 0.05t≤ ≤ in the RC series circuit was found by using the Euler’s method with 01.0=∆terrors were found if the exact solution is given by

)150(cos(37

85150sin

37

510ettV −−+=

International Journal of Trend in Scientific Research and Development (IJTSRD) ISSN: 2456

www.ijtsrd.com | Volume – 2 | Issue – 6 | Sep-Oct

scientific calculator which offers the

spreadsheet ability. It provides 45 rows and 5 columns of spreadsheet ability and functions almost same with Excel spreadsheet. For the classroom and examination purposes, the usage of the scientific calculator will be appropriate if compared to Excel spreadsheet due to its portability. Hence, in this paper, we would like to solve the IVP of the first-order ODE by Euler’s method using Casiofx-570EX

scientific calculator for the classroom and

VALUE PROBLEM (IVP) OF THE ORDER DIFFERENTIAL EQUATIONS

order differential

( , ), ( ) , .ny f x y y x y x x x= = ≤ ≤ (1)

By using numerical methods, the interval of x is subintervals with step size h such that

1i = to n. It was

noticed that by using numerical methods, we only However, if we solved

the differential equation analytically, we obtained a The Euler is discussed

The solution of Eq. (1) by Euler’s method is given by

(2)

series circuit can be described by the

(3)

= 10 Ω, C = = 85cos(150t) V, the voltage V for

series circuit was found by .01 The absolute

errors were found if the exact solution is given by

)25t− (4)

Solution by Euler’s Method Step 1: By substituting R = 10 = 85cos (150t) V into the firstequation, we obtained

+ =10(0.004) 85cos(150 )dV

V tdt

= − =2125cos(150 ) 25 ( ,V)dV

t V f tdt

Step 2: The solution by Euler’s method is

+ = += + −

1( , )

0.01(2125cos(150 ) 25 )

k k

k k

V V hf t V

V t V

Where h = .01.0=∆t Step 3: By using Spreadsheet mode 8 in the calculator, tabulating t values in column A, filling initial condition in cell B1 as zero and pressing OPTN button will give

Choose 1 will get

Type in the following formula:

= + −1 0.01(2125cos(150 1) 25 1)B A B

Then press =button, will yield

Next,choose to fill in the formula from cells B2: B6 as follows:

International Journal of Trend in Scientific Research and Development (IJTSRD) ISSN: 2456-6470

2018 Page: 69

Solution by Euler’s Method = 10 Ω, C = 0.004 F, and E

= 85cos (150t) V into the first-order differential

+ =10(0.004) 85cos(150 )V t .

= − =2125cos(150 ) 25 ( ,V)t V f t (5)

The solution by Euler’s method is given by

= + −0.01(2125cos(150 ) 25 )k kV t V (6)

Step 3: By using Spreadsheet mode 8 in the values in column A, filling

initial condition in cell B1 as zero and pressing

Type in the following formula: = + −1 0.01(2125cos(150 1) 25 1)B A B (7)

button, will yield

to fill in the formula from cells B2: B6 as

Page 3: Solving Initial-Value Problem of the First-Order Differential Equation by Euler's Method using Casio fx 570EX Classwiz Scientific Calculator

International Journal of Trend in Scientific Research and Development (IJTSRD) ISSN: 2456

@ IJTSRD | Available Online @ www.ijtsrd.com

To key in the variables A, B, C, D, E, F, X, Y and M in the calculator users have to press then follow by the variable which is displayed as red colour on top of the main buttons. The approximate values are displayed in column B

Step 4: Pressing OPTN button to fill in exact solution formula in cell C1 as below:

= + −510 85sin(150 1) (cos(150 1) )

37 37A A e

Then choose to fill in the formula from cells C1: C6 will results in:

Step 5 Pressing OPTN button to fill in absolute error formula in cell D1 as below:

( 1 1)Abs B C= − Then choose to fill in the formula from cells D1: D6 will display:

The complete solution is shown in Table 1 below:

TABLE1. The solution k t V Exact |Error|

0 0 0 0

1 0.01 21.25 12.122 9.1273

2 0.02 17.44 -1.722 19.163

3 0.03 -7.956 -15.04 7.0866

4 0.04 -10.44 -2.49 7.9563

5 0.05 12.568 13.067 0.4989 CONCLUSION We have solved the IVP of the first-order ODE by Euler’s method using spreadsheet mode in Casio fx

International Journal of Trend in Scientific Research and Development (IJTSRD) ISSN: 2456

www.ijtsrd.com | Volume – 2 | Issue – 6 | Sep-Oct

To key in the variables A, B, C, D, E, F, X, Y and M users have to press Alpha button

then follow by the variable which is displayed as red The approximate V

button to fill in exact solution

−= + − 25 1sin(150 1) (cos(150 1) )AA A e (8)

Then choose to fill in the formula from cells C1: C6

button to fill in absolute error

(9)

Then choose to fill in the formula from cells D1: D6

shown in Table 1 below:

|Error|

0

9.1273

19.163

7.0866

7.9563

0.4989

order ODE by Euler’s method using spreadsheet mode in Casio fx-

570EX classwiz scientific calculator for the classroom and examination purposes. It is easier and faster than the previous models such as Casio fxfx-570 ES and Casio fx-570 ES Plus. The procedure presented here can be applied to secondseries method, midpoint method and Heun’s method but not the fourth-order Rungedue to the number of columnclasswiz scientific calculator is limited to five. To solve the IVP of the first-order ODE by using themethod, five columns are needed. Even though Excel spreadsheet will be easier to work around (larger rows and columns, bigger view, easier to scroll aromove, copy and more abilities) if compared to spreadsheet mode in Casio fxscientific calculator, but students can only bring scientific calculator for classroom and examination purposes, hence spreadsheet mode in Casio fxclasswiz offers a portable spreadsheet environment to implement numerical methods easily if compared to old version of calculator. REFERENCES 1. K. G. Tay. How To Use Calculator Casio Fx

570ms In Numerical Methods(PenerbitKUiTTHO, BatuPahat, 2006).

2. K. G. Tay, K. B. Lim Numerical. MethodsUsing Casio FxCalculator (PenerbitUTHM, BatuPahat, 2011).

3. K. G. Tay, C. Phangand MethodsWith Casio Fx-570 ES Plus Calculator(PenerbitUTHM, BatuPahat, 2017).

4. K. B. Lim, G. J. Yong, T. H. Cheong and K. G. Tay,“The Effectiveness of Using Calculator in Solving Non-Linear Equations by NewtonRaphson Method” Proc. of the 16th Asian Tech. Conf. Math. Turkey, 2011, pp. 291

5. T. H. Cheong, K. B. Lim, Non-Linear Equation by NewtonMethod using Buit-in Derivative Function in Casio fx-570Es Calculator”Tech. Conf. Math. Turkey, 2011, pp.

6. R. Abdul Kahar, K. G. Tay Lim,“Solving System Of Linear Equations WithGauss-Seidel Iteration Method Using Casio Fx570es Calculator” Proceeding Symposium on Application of Science Mathematics 2010 (SKASM 2010) and 18th Mathematical Science National Symposium (SKSM 2010). Johor Bahru, 2010, pp. 397

International Journal of Trend in Scientific Research and Development (IJTSRD) ISSN: 2456-6470

2018 Page: 70

scientific calculator for the classroom and examination purposes. It is easier and faster than

such as Casio fx-570 MS, Casio 570 ES Plus. The procedure

presented here can be applied to second-order Taylor series method, midpoint method and Heun’s method

order Runge-Kutta(RK4) method of column sin Casio fx-570EX

scientific calculator is limited to five. To order ODE by using theRK4

method, five columns are needed. Even though Excel spreadsheet will be easier to work around (larger rows and columns, bigger view, easier to scroll around, move, copy and more abilities) if compared to spreadsheet mode in Casio fx-570EX classwiz scientific calculator, but students can only bring scientific calculator for classroom and examination purposes, hence spreadsheet mode in Casio fx-570EX

z offers a portable spreadsheet environment to implement numerical methods easily if compared to

How To Use Calculator Casio Fx-570ms In Numerical Methods (PenerbitKUiTTHO, BatuPahat, 2006).

K. G. Tay, K. B. Lim andR. Abdul-Kahar. Using Casio Fx-570ES

(PenerbitUTHM, BatuPahat, 2011).

K. B. Lim. Numerical. 570 ES Plus Calculator

(PenerbitUTHM, BatuPahat, 2017).

G. J. Yong, T. H. Cheong and K. G. The Effectiveness of Using Calculator in

Linear Equations by Newton-Proc. of the 16th Asian Tech.

Conf. Math. Turkey, 2011, pp. 291 – 297.

and K. G. Tay,“Solving Linear Equation by Newton-Raphson

in Derivative Function in 570Es Calculator”Proc. of the 16th Asian

Tech. Conf. Math. Turkey, 2011, pp. 307-316.

R. Abdul Kahar, K. G. Tay and K. B. Solving System Of Linear Equations With Seidel Iteration Method Using Casio Fx-

Proceeding of the National Symposium on Application of Science Mathematics 2010 (SKASM 2010) and 18th Mathematical Science National Symposium

Johor Bahru, 2010, pp. 397-403.

Page 4: Solving Initial-Value Problem of the First-Order Differential Equation by Euler's Method using Casio fx 570EX Classwiz Scientific Calculator

International Journal of Trend in Scientific Research and Development (IJTSRD) ISSN: 2456

@ IJTSRD | Available Online @ www.ijtsrd.com

7. T. H. Cheong and K. G. Tay, AIP Conference Proceedings.1775, 1-5.(2016).

8. K. B. Lim, K. G., Tay and R. Abdul Kahar“Using Scientific Calculator on Trapezoidal Rule”Proceeding of the National Symposium on Application of Science Mathematics 2010 (SKASM 2010) and 18th Mathematical Science National Symposium (SKSM 2010).2010, pp. 425-429.

9. R. Abdul Kahar and K. G. Tay, “Casio fxCalculator for Approximating the Dominant

International Journal of Trend in Scientific Research and Development (IJTSRD) ISSN: 2456

www.ijtsrd.com | Volume – 2 | Issue – 6 | Sep-Oct

AIP Conference

K. B. Lim, K. G., Tay and R. Abdul Kahar, Using Scientific Calculator on Trapezoidal Rule”

National Symposium on Application of Science Mathematics 2010

and 18th Mathematical Science National Symposium (SKSM 2010). Johor Bahru,

Casio fx-570ES Dominant Eigen

value Using Power Method” Science and Technology 2009 (PKPST 2009)BatuPahat, 2009, pp. 255-259.

10. R. Abdul Kahar, and K. G. Tay,“fx-570ES Calculator to Approximate The Smallest Eigen value Using Inverse Power Method”Proceeding of the 17th National Symposium on Mathematical Science (SKSM 2009, pp.1069-1073. (2009).

International Journal of Trend in Scientific Research and Development (IJTSRD) ISSN: 2456-6470

2018 Page: 71

Using Power Method” National Seminar on y 2009 (PKPST 2009). 259.

R. Abdul Kahar, and K. G. Tay,“Utilizing Casio 570ES Calculator to Approximate The Smallest

Using Inverse Power Method” Proceeding of the 17th National Symposium on Mathematical Science (SKSM 2009). Malacca,

1073. (2009).