Difference between revisions of "SolveODE Command"
From GeoGebra Manual
Line 13: | Line 13: | ||
==CAS Syntax== | ==CAS Syntax== | ||
Following two syntaxes work only in [[CAS View]]. | Following two syntaxes work only in [[CAS View]]. | ||
− | ;SolveODE[ <f(x | + | ;SolveODE[ <f(y, x)> ] |
:Attempts to find the exact solution of the first order ODE <math>\frac{dy}{dx}(x)=f(x, y(x))</math>. | :Attempts to find the exact solution of the first order ODE <math>\frac{dy}{dx}(x)=f(x, y(x))</math>. | ||
:{{example| 1=<div><code><nowiki>SolveODE[x / y]</nowiki></code> yields ''x = c<sub>1</sub> y''.</div>}} | :{{example| 1=<div><code><nowiki>SolveODE[x / y]</nowiki></code> yields ''x = c<sub>1</sub> y''.</div>}} |
Revision as of 13:03, 25 August 2011
- SolveODE[ <f'(x,y)>, <Start x>, <Start y>, <End x>, <Step> ]
- Solves first order ordinary differential equations (ODE) \frac{dy}{dx}=f'(x,y) numerically given start point and end & step for x.
- For example to solve \frac{dy}{dx}=-xy using A as a starting point, enter SolveOde[-x*y, x(A), y(A), 5, 0.1]
- SolveODE[ <f(x,y)>, <g(x,y)>, <Start x>, <Start y>, <End t>, <Step> ]
- Solves first order ODE \frac{dy}{dx}=\frac{f(x,y)}{g(x,y)} given start point, maximal value of an internal parameter t and step for t. This version of the command may work where the first one fails eg when the solution curve has vertical points.
- For example, to solve \frac{dy}{dx}=- \frac{x}{y} using A as a starting point, enter SolveOde[-x, y, x(A), y(A), 5, 0.1].
- SolveODE[ <b(x)>, <c(x)>, <f(x)>, <Start x>, <Start y>, <Start y'>, <End x>, <Step>]
- Solves second order ODE y''+b(x)y'+c(x)y=f(x).
- Note: Always returns the result as locus. The algorithms are based on Runge-Kutta numeric methods.
CAS Syntax
Following two syntaxes work only in CAS View.
- SolveODE[ <f(y, x)> ]
- Attempts to find the exact solution of the first order ODE \frac{dy}{dx}(x)=f(x, y(x)).
- Example:
SolveODE[x / y]
yields x = c1 y.
- SolveODE[ <f(v, w)>, <Dependend Variable v>, <Independend Variable w> ]
- Attempts to find the exact solution of the first order ODE \frac{dv}{dw}(w)=f(w, v(w)).
- Example:
SolveODE[y / x, y, x]
yields x = c1 y.