# Wolfram Function Repository

Instant-use add-on functions for the Wolfram Language

Function Repository Resource:

Dynamically visualize an ordinary differential equation (ODE) or system of ODEs

Contributed by:
Wolfram|Alpha Math Team

ResourceFunction["ODEViewer"][ creates a dynamic visualization and computes properties of the ordinary differential equation system | |

ResourceFunction["ODEViewer"][ creates a dynamic visualization of |

Only first order differential equations are allowed.

Nonlinear differential equations are supported.

Stiff systems are supported.

The plot range is computed using SuggestPlotRange.

Sometimes SuggestPlotRange can not give an optimal range.

Locator for the initial values may be outside the graphic.

Eigensystem is computed only for linear equations.

Node types are recognized only for linear equations.

Locators can be dragged, showing changing initial values at the header.

Select **Time Series**/**Slope field** to switch between different views of the solutions.

Display options can turn on/off grid lines and the popup menu selects the number of them.

Interval sliders use the Method "Push".

In the case of multiple solutions, only one slope field is plotted.

If integration fails, empty graphics are shown.

When the locator is outside the suggested plot range, it is possible that the corresponding value of time can not be found.

ODEViewer takes the same options as NDSolve.

Visualize the slope field of a simple equation and it's solution for a given initial condition:

In[1]:= |

Out[1]= |

Visualize a system in three dimensions:

In[2]:= |

Out[2]= |

Visualize the slope field for a non-linear system:

In[3]:= |

Out[3]= |

A stiff system:

In[4]:= |

Out[4]= |

A multiple solution case:

In[5]:= |

Out[5]= |

A linear system, the plot range is calculated automatically, but the plot range is not optimal:

In[6]:= |

Out[6]= |

The same system, with a explicit plot range:

In[7]:= |

Out[7]= |

If something fails shows nothing:

In[8]:= |

Out[8]= |

This work is licensed under a Creative Commons Attribution 4.0 International License