Using the Interactive ODE Analyzer Assistant - Maple Programming Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Mathematics : Differential Equations : worksheet/interactive/dsolve

Using the Interactive ODE Analyzer Assistant

  

The application has several windows for various tasks, as explained in the following sections.

  

To launch the ODE Analyzer Assistant:

• 

From the Tools menu, select Assistants, and then ODE Analyzer.

  

OR

• 

Enter the command dsolve[interactive](); at the Maple prompt.

Main Window

• 

The Interactive ODE Analyzer Assistant main window displays the input system in three parts.

  

- Differential equations of the system

  

- Initial or boundary conditions in the system

  

- System parameters (unknown constants)

• 

To modify input, click the Edit button directly beneath the equations, conditions, or parameters display.

  

Note: The initial conditions or parameters can be edited only if a differential equation has been entered.

• 

To solve the given system numerically or symbolically, click the  Solve Numerically or Solve Symbolically buttons respectively. The option specification window for the numeric or symbolic solutions opens.

• 

The Quit button exits dsolve[interactive]() with no output.

Edit Equations

• 

To access the Edit Differential Equations window, click the Edit button directly below the Differential Equations group box in the Main window.

• 

There are two primary areas on this window.

• 

Add Equation

  

This area is used to add a new equation to the existing system. Enter the ODE in the input area, and click the Add button. The input equation is checked for validity and syntax at this point, and if valid, it is placed in the Edit Equations area below.

  

Note: The input of the Add Equation area is ignored on exit. If the equation is to be retained, then it must be added to the system first, by clicking the Add button.

• 

Edit Equations

  

This area is used to delete or modify the equations of the system. Only 4 equations are in view at one time. If more than 4 equations are present, these can be viewed by using the navigation buttons at the bottom of the Edit Equations area (which appear only when there are more than 4 equations in the system).

  

The Delete button deletes the equation to the left of the button, shuffling all equations below it.

  

The Edit button opens an Edit Equation window, which can be used to modify the corresponding equation.

• 

The Done button accepts all additions, deletions, or changes made to the equations, then returns to the Main window.

• 

The Cancel button rejects all changes made, and then returns to the Main window.

Edit Equation

• 

To access the Edit Equation window, click the Edit button to the right of the equation to be edited in the Edit Differential Equations window.

  

In this window, you can modify the equation, and click OK to accept changes made to the equation. Clicking Cancel rejects those changes. In either case, you are returned to the Edit Equations window.

  

Note: If the modified equation is invalid, you will be unable to leave this window until the equation is corrected, or the Cancel button is clicked.

Edit Conditions

• 

To access the Edit Conditions window, click the Edit button directly below the Conditions group box in the Main window.

• 

There are two primary areas on this window.

• 

Add Condition

  

This area is used to add a new condition (initial or boundary) to the existing system. The Add Condition area has a drop-down box for selecting the dependent variable or derivative, and an area for entering the point at which the condition should be applied and the value at that point. When clicking the Add button, the condition is checked for validity and syntax, and if valid, it is placed in the Edit Conditions area below.

  

Note: The input of the Add Condition area is ignored on exit of the window. If the condition is to be retained, then it must be added to the system first, by clicking the Add button.

• 

Edit Conditions

  

This area is used to delete or modify the conditions of the system. Only 5 conditions are in view at one time. If more than 5 conditions are present, these can be viewed by using the navigation buttons at the bottom of the Edit Conditions area (which appear only when there are more than 5 conditions in the system).

  

The Delete button deletes the condition to the left of the button, shuffling all conditions below it.

  

The Edit button opens an Edit Condition window, which can be used to modify the corresponding condition.

• 

The Done button accepts all additions, deletions, or changes made to the conditions, then returns to the Main window.

• 

The Cancel button rejects all changes made, and then returns to the Main window.

Edit Condition

• 

To access the Edit Condition window, click the Edit button to the right of the condition to be edited in the Edit Conditions window.

  

In this window, you can modify the condition, and click OK to accept changes made to the condition. Clicking Cancel rejects those changes. In either case, you are return to the Edit Conditions window.

  

Note: If the modified condition is invalid, you will be unable to leave this window until the equation is corrected, or the Cancel button is pressed.

Edit Parameters

• 

To access the Edit Parameters window, click the Edit button directly below the Parameters group box in the Main window.

• 

This window can be used to set or modify the values of any parameters present in the equations or conditions of the system.

• 

Clicking OK accepts changes made to the parameter values, while clicking Cancel rejects those changes, in both cases returning to the Main window.

Solve Numerically

• 

To access the Solve Numerically window, click the Solve Numerically button of the Main window.

• 

In this window, you can specify options for obtaining the numerical solution of the input system that display the relevant output (solution values or plots). Note: This window can only be reached if the input system is fully determined, that is, it is possible to obtain a unique numerical solution for the input, as all relevant conditions are specified, and all parameters have numerical values.

• 

Parameters

  

The Parameters area of this window allows you to specify the method, the error tolerances (when appropriate), and some of the method-specific parameters used to obtain the numerical solution.

  

For initial value problems (IVP), a total of 8 major methods are available (some including sub-methods), while for boundary value problems (BVP) only one method is available. The radio buttons for all applicable methods are accessible, while those for methods that cannot be used for the ODE system are not.

  

Note: Not all options available for use with these methods are accessible from the interface, but those most commonly used are.

  

For more information on method-specific options and sub-methods, click the the Help button at the bottom right of the window. The Help Navigator window opens. Also, see the relevant help pages, specifically, rkf45, dverk78, gear, rosenbrock, lsode, numeric,bvp, taylorseries, and classical.

• 

Output

  

The Output area provides solution values at a point (which can be changed as desired), to display a plot of the solution (options can be changed in the Plot Options window), and also displays the relevant Maple commands needed to accomplish these tasks (making this useful as a learning tool).

  

To obtain solution values, change the value in the Show function values at field to the desired solution point, then click the Solve button to the right. This produces the solution values at the requested point in the output, below the value of the requested point.

  

To change the requested point, click the Solve button. Solution values for the new point are provided.

  

The solution plot is displayed below the function values. If no specific plotting options have been specified via the Plot Options window (accessed by using the Plot Options button), then clicking Plot produces a plot of the numerical solution based on the default values of odeplot. By default, only the first solution component is plotted, as a function of the independent variable of the problem.

  

The Plot Options button opens the Plot Options window, which allows you to specify the function(s) to plot, the colors and style of the plot, the initial conditions for curves of the plot, the range of the independent variable used for the plot, and other plot-specific options.

  

The area below the plot region is used (optionally) to show the Maple commands needed to compute the solution value and/or produce the displayed plot. If the check box is selected, the commands are displayed, otherwise not.

• 

Other

  

The On Quit, Return drop-down box below the Parameters area allows you to specify what to return to the Maple session when Quit is clicked from this window. Options include nothing, the displayed plot, the computed numeric procedure, or the Maple commands needed to produce the solution values and/or the displayed plot.

  

The Clear button clears the solution values and the displayed plot in the output area.

  

The Help button opens a Help Navigator, which provides more information on the specific numerical methods and parameters.

  

The Main button closes the Solve Numerically window, returning to the Main window.

  

The Quit button closes the application, returning to Maple with the output specified by the On Quit, Return drop-down box. Note: If Plot is clicked, but there is no plot in the plot region, then nothing is returned. Similar comments apply for the Numerical Procedure and Maple Commands options.

Solve Symbolically

• 

To access the Solve Symbolically window, click the Solve Symbolically button in the Main window.

• 

In this window, you can specify options for obtaining the symbolic solution of the input system that display the relevant output (solution or plots). Note: This window can be reached for systems with arbitrary conditions or undetermined parameters, but plots are not possible until those unknowns are specified numerically.

• 

Method

  

In the Method area of this window, you can specify the method, and various method-specific options. The unavailable options are grayed out for situations in which they cannot be used. For example, if the input is a single ODE, then the choice or restriction of methods is available for the Default method, but not for systems. As another example, the Formal series method only applies to a single linear homogeneous ODE; therefore, for any other ODE or system it is not available.

  

Note: Not all options available for use with these methods are accessible from the interface, only those most commonly used.

  

For more information on method-specific options and sub-methods, click the Help button. The Help Navigator window opens. Also, refer to relevant help pages, specifically, dsolve, dsolve,system, dsolve,inttrans, dsolve,series, and dsolve,formal_series.

• 

Output

  

The Output area provides a symbolic solution, or displays a plot of a fully specified solution.

  

At the top of the output area is a region devoted to display of the symbolic solution, which can be obtained by specifying the solution method, then clicking the Solve button.

  

If the solution is large or complex, it is possible to display it alone in a larger window by clicking the Large Display button. For the example used in this help page, the following is displayed.

  

Below that is a plot region, used to display plots of fully specified solutions. To display a plot, click the Plot button. Note: In the event that the solution is not fully specified, clicking the Plot button opens the Plot Options window, from which it is possible to set the undefined parameters of the solution. If these are not set to numerical values, then no plot is displayed.

  

The Plot Options button opens the Plot Options window, which allows you to specify the function(s) to plot, the colors and style of the plot, any undetermined parameters in the symbolic solution, the range of the independent variable used for the plot, and any other plot-specific options (described in more detail in Plot Options below.)

  

The area below the Method area is used (optionally) to show the Maple commands needed to compute the solution value and/or produce the displayed plot. If the check box is selected, the commands are displayed, otherwise not.

• 

Other

  

The On Quit, Return drop-down box below the Maple commands display allows you to specify what to return to the Maple session when Quit is clicked from this window.  Options include nothing, the displayed plot, the symbolic solution, or the list of Maple commands needed to produce the solution values and/or the displayed plot.

  

The Clear button clears the symbolic solution and the displayed plot in the output area.

  

The Help button opens Help Navigator, which provides more information on the specific numerical methods and parameters.

  

The Main button closes the Solve Symbolically window, returning to the Main window.

  

The Quit button closes the application, returning to Maple with the output specified by the On Quit, Return drop-down box. Note: If Plot is clicked, but there is no plot in the plot region, then nothing is returned. Similar comments apply for the Symbolic Solution and Maple Commands options.

Help Navigator

• 

To access the Solve Numerically Help window or the Solve Symbolically Help window, click the Help button on the Solve Numerically or Solve Symbolically windows respectively.

• 

This window provides basic high-level information on the numeric or symbolic methods available in dsolve[interactive]().

• 

You can choose a topic from the Help for drop-down box. Once a topic is chosen, the information appears in the area below.

• 

Some topics have corresponding Maple help pages, and though the help pages provide help for the Command-line version of the topic, some useful information can also be obtained from them.

  

For those topics with corresponding help pages, the Help Page button at the bottom of the window is enabled, and the format width of the displayed help page can be controlled as well.

• 

As an example of a formatted help page:

• 

When finished with help, click the Dismiss button to close the window.

Plot Options

• 

To access the Plot Options window, click the Plot Options button on the Solve Numerically or Solve Symbolically window, or click Plot on the Solve Symbolically window for a system that is not fully specified.

• 

This window controls the settings of the plot options, such as title, axes labels, 2-D or 3-D plotting, curves to plot, independent variable range, and numerous other options. The window contains three main areas.

• 

General Options

  

The General Options area controls high-level plot options, including whether the plot is 2-D or 3-D, what style of axes to use, the number of points in the plot, the title of the plot, and axes labels.

  

Only options that are valid for the current settings can be changed. For example, if Axes is set to none, then Axes Labels cannot be specified.

• 

Axes and Independent variable range

  

This area controls what part of the curve is displayed, and for 3-D, the orientation of that display.

  

The Axes choices are restricted to the independent and dependent variables of the ODE or ODE system. Axis 1 represents the horizontal axis for 2-D plots. Axis 1 and Axis 2 represent the x and y axes of the plot, respectively, for 3-D plots.

  

The independent variable range specifies the portion of the ODE solution to be plotted.

  

The range choices (for example, Axis 1 range) allow you to restrict the viewing range for the plot, and are equivalent to the view option in plot and plot3d.

  

The 3-D orientation choices allow you to specify the viewing angle for a 3-D plot, and are described in plot3d,option.

• 

Functions to plot and corresponding conditions/parameters

  

This area controls what values are plotted on the dependent axis (the vertical axis for 2-D plots, and the z-axis for 3-D plots). By default, 4 curves can be plotted simultaneously, but this can be set from 1 to 16 by using the maxplots parameter to dsolve[interactive].

  

Each row in this area specifies a single curve to be plotted, and all curve-specific options to use for that curve. The function, color, and line style, and size can be changed, as well as some parameters of the solution itself. For example, for numerical solutions, the initial conditions/boundary conditions can be changed for a specific curve, allowing comparison of two solutions with different initial conditions. For symbolic solutions, free parameters in the solution of the conditions can be changed, allowing similar flexibility.

  

To add another curve to be plotted, select a curve with similar characteristics, then click the (") button in the Copy column next to it. A duplicate of that curve is placed in the next available row, which can then be modified.

  

To remove curves, click the (X) button in the Delete column next to the corresponding row.

• 

The Done button closes the Plot Options window, accepting all changes.

• 

The Cancel button closes the Plot Options window rejecting all changes.

See Also

dsolve

dsolve/classical

dsolve/dverk78

dsolve/formal_series

dsolve/gear

dsolve/inttrans

dsolve/lsode

dsolve/numeric

dsolve/numeric/BVP

dsolve/rkf45

dsolve/rosenbrock

dsolve/series

dsolve/system

dsolve/taylorseries

dsolve[interactive]

Maplets

plot

plot3d

plots[odeplot]

 


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam