Example: Differential Equations


The following example demonstrates how to use the Runge-Kutta program.


Example


Find the solution for the equation:
Y′′ = e2x at Xf = 1 with the initial conditions X0 = 0, Y(0) = 1, Y′(0) = 2, and a step size of 0.2.
This second-order equation reduces to the first-order equations y1′ = y2 and y2′ = e2x. The initial conditions become y1(0) = 1 and y2(0) = 2.

Procedure

Press

Display


Enter the functions. [ LEARN ] { 1st }
[ 2nd ] [ LBL ] [ 2nd ]
f 1 [ RCL ] M [ 2nd ]
[ RTN ] [ 2nd ] LBL
[ 2nd ] f 2 [ ( ]
2 [ x ] [ RCL ] E
[ ) ] [ INV ] [ LN ]
[ 2nd ] [ RTN ]
[ LEARN ]
Select the program [ RUN ] { MTH }
{ --> } { R-K }
D_dguREI
Enter number of functions 2 { n } D_b9A40r
Enter the step size .2 { h } D_E8isCx
Enter initial value of x 0 { LOx } D_W3Ir1R
Enter ending value of x 1 { HIx } D_ShVfij
Proceed with program { EOD } D_IZ5pGv
Enter the initial y values 1 { ENT } D_xr3KJ6
2 { ENT } D_FeYETH
Proceed with results { NO } D_rdRupQ
Choose only the end results { YES } D_UmVBgJ
{ NXT } D_LiQpHx
{ NXT } D_mu9TKb

The solution for y′′ is the value of y2.


Back