classical - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.
Our website is currently undergoing maintenance, which may result in occasional errors while browsing. We apologize for any inconvenience this may cause and are working swiftly to restore full functionality. Thank you for your patience.

Online Help

All Products    Maple    MapleSim


dsolve/numeric/classical

numerical solution of ordinary differential equations

 

Calling Sequence

Parameters

Description

Examples

References

Calling Sequence

dsolve(odesys, numeric, method=classical)

dsolve(odesys, numeric, method=classical[choice], vars, options)

dsolve(numeric, method=classical[choice], procopts, options)

Parameters

odesys

-

set or list; ordinary differential equation(s) and initial conditions

numeric

-

literal name; instruct dsolve to find a numerical solution

method=classical

-

literal equation; numerical method to use

method=classical[choice]

-

equation; numerical method and submethod to use

vars

-

(optional) dependent variable or a set or list of dependent variables for odesys

options

-

(optional) equations of the form keyword = value

procopts

-

options used to specify the ODE system using a procedure (procedure, initial, start, number, and procvars). For more information, see dsolve[numeric,IVP].

Description

• 

The dsolve command with the options numeric and method=classical or method=classical[choice] finds a numerical solution by using one of the classical numerical methods as described in the following.

  

These methods use a fixed step size, provide no error estimation or correction, and are provided primarily for educational purposes. If practical numerical solution of ODE initial value problems (IVP) is required, it is suggested that any of the other methods mentioned in dsolve[numeric,IVP] help page be used instead.

• 

A number of classical methods are available through use of the choice option in the method=classical[choice] selection. The default is , the forward Euler method.

• 

The available choices of the classical method are described for the problem , where  is the estimated value of the solution at the time ,  is the fixed step size , and for each formula the value of the solution  at time  is being computed.

• 

 is the forward Euler method specified by the equation:

• 

 is the Heun formula (also known as the improved Euler method). It uses the forward Euler method to predict the solution, and then applies the trapezoid rule as a corrector. It is specified by the pair of equations:

• 

 is the improved polygon method (also known as the modified Euler method), as specified by the equation:

• 

 is the second-order classical Runge-Kutta method, as specified by:

  

Note: This is the same as the Heun formula.

• 

 is the third-order classical Runge-Kutta method, as specified by:

• 

 is the fourth-order classical Runge-Kutta method, as specified by:

  

This is not to be confused with , which uses a Fehlberg fourth-fifth order Runge-Kutta method.

• 

 is the Adams-Bashforth method (a predictor method), as specified by:

• 

 is the Adams-Bashforth-Moulton method (a predictor-corrector method), as specified by:

  

where  is found by first applying the Adams-Bashforth method (the predictor), then using the above Adams-Bashforth-Moulton method (the corrector).

• 

Note that both  and  are multipoint methods that require the initial condition and three other equally spaced starting values. These starting values are obtained by computing the first 3 steps using the  method. In addition, since fixed spacing is required for use of these methods, the final step used in obtaining requested solution values also uses the  method (as there is no guarantee that solution values will only be requested at exact multiples of the step size).

• 

The following options are available for the classical method:

'output'

=

keyword or array

'known'

=

name or list of names

'maxfun'

=

integer

'number'

=

integer

'procedure'

=

procedure

'start'

=

numeric

'initial'

=

array

'procvars'

=

list

'startinit'

=

boolean

'implicit'

=

boolean

'optimize'

=

boolean

'stepsize'

=

numeric

'corrections'

=

integer

  

 

  

'output'

  

Specifies the desired output from dsolve, and the known option specifies user-defined known functions. For more information, see dsolve[numeric].

  

 

  

'maxfun'

  

Specifies a maximum on the number of evaluations of the right-hand side of the first order ODE system. This option can be disabled by specifying . The default value for classical methods is . For more information, see dsolve[maxfun].

  

 

  

'number', 'procedure', 'start', 'initial', and 'procvars'

  

These options are used to specify the IVP using procedures. For more information, see dsolve[numeric,IVP].

  

 

  

'startinit','implicit', and 'optimize'

  

These options control the method and behavior of the computation. For more information on the first two, see dsolve[numeric,IVP], for the last, see dsolve[numeric].

  

 

  

'stepsize'

  

Specifies the static size of each step. Note that classical does not use error correction estimates to adapt the step size. The default step size is  for forward integration and  for backward integration, respectively, where the problem is solved over the interval from T0 to Tf.

  

 

  

'corrections'

  

A positive integer that specifies the number of corrections that should be applied for the  method at each step. It is recommended that this number not exceed 4 (values greater than 4 generally do not produce more accurate results, and result in longer running times).

  

 

• 

Results can be plotted using the odeplot function in the plots package.

Examples

(1)

(2)

(3)

(4)

(5)

(6)

(7)

(8)

(9)

(10)

(11)

(12)

References

  

Boyce, W.E., and DiPrima, R.C. Elementary Differential Equations and Boundary Value Problems. 5th ed. New York: Wiley, 1992.

  

Conte, S.D., and C. de Boor. Elementary Numerical Analysis, An Algorithmic Approach. McGraw-Hill, 1980.

  

Fox, L., and Mayers, D.F. Numerical Solution of Ordinary Differential Equations for Scientists and Engineers. Chapman & Hall, 1987.

  

Lambert, J.D. Computational Methods in Ordinary Differential Equations. New York: Wiley, 1973.

See Also

dsolve[ck45]

dsolve[dverk78]

dsolve[gear]

dsolve[lsode]

dsolve[maxfun]

dsolve[numeric,IVP]

dsolve[numeric]

dsolve[rkf45]

dsolve[rosenbrock]

dsolve[taylorseries]

plots[odeplot]

 


Download Help Document