: User manual for Iode
: General features
: Phase planes


Direction fields

This module deals with general first order ODEs, that is, equations of the form

$\displaystyle \frac {dy}{dx} = f(x,y).$    

The module plots the associated direction (or slope) field, and it computes and plots numerical solutions of the equation. Exact solutions can also be calculated and plotted, provided Matlab's Symbolic Toolbox is installed.

After selecting Direction fields from the Iode main menu, the Direction fields window will open up. It shows a plot of the direction field for the ODE, with the equation itself written across the top of the plot.

When you first enter the module, you will find Iode has already chosen a default ODE as well as reasonable option settings. Next we explain how to change these settings and plot solutions.

Controls

Remark 1.1   Plots of exact solutions can yield unexpected results. For instance, the exact symbolic solution of the default equation $ \frac{dy}{dx}=sin(y-x)$ involves the inverse tangent atan. The atan function is only defined up to an additive multiple of $ \pi$, and so the symbolic solution is only correct when the proper multiple of $ \pi$ is added. Moreover, different multiples of $ \pi$ might need to be added in different regions of the solution graph.

Now, when Matlab evaluates atan numerically, it always yields values between $ -\frac{\pi}{2}$ and $ \frac{\pi}{2}$, which is usually the wrong choice and sometimes even results in discontinuous plots. Even worse, the plot of the numerical evaluation of a symbolic solution with initial values $ (x_0,y_0)$ does not always pass through the point $ (x_0,y_0)$ (!).This behavior is not strictly a bug in Matlab, but it is certainly a flaw that makes symbolic solutions less useful in practice than you might have expected.

Equation menu

Options menu


: User manual for Iode : General features : Phase planes
平成16年11月7日