SolveODE Command
- SolveODE( <f'(x, y)> )
-
Attempts to find the exact solution of the first order ordinary differential equation (ODE) \(\frac{dy}{dx}(x)=f'(x, y(x))\).
SolveODE(2x / y)
yields \(\sqrt{2} \sqrt{-c_{1}+x^{2}}\), where \(c_{1}\) is a constant.
\(c_{1}\) will be created as an auxiliary object with a corresponding slider. |
- SolveODE( <f'(x, y)>, <Point on f> )
-
Attempts to find the exact solution of the first order ODE \(\frac{dy}{dx}(x)=f'(x, y(x))\) and returns the solution through the given point (Cauchy problem).
SolveODE(y / x, (1, 2))
yields y = 2x.
- SolveODE( <f'(x, y)>, <Start x>, <Start y>, <End x>, <Step> )
-
Solves first order ODE \(\frac{dy}{dx}=f'(x, y)\) numerically with given start point, end and step for x.
SolveODE(-x*y, x(A), y(A), 5, 0.1)
solves \(\frac{dy}{dx}=-xy\) using previously defined A as a starting
point.
- SolveODE( <y'>, <x'>, <Start x>, <Start y>, <End t>, <Step> )
-
Solves first order ODE \(\frac{dy}{dx}=\frac{f(x, y)}{g(x, y)}\) with 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 e.g. when the solution curve has vertical points.
SolveODE(-x, y, x(A), y(A), 5, 0.1)
solves \(\frac{dy}{dx}=- \frac{x}{y} \) using previously defined A as
a starting point.
To find the "reverse" solution, just enter a negative value for End t, for example
|
- 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)\).
SolveODE(x^2, 2x, 2x^2 + x, x(A), y(A), 0, 5, 0.1)
solves the second order ODE using previously defined A as a
starting point.
Always returns the result as locus. The algorithms are currently based on Runge-Kutta numeric methods. |
See also SlopeField command. |
CAS Syntax
- SolveODE( <Equation> )
-
Attempts to find the exact solution of the first or second order ODE. For first and second derivative of y you can use y' and y'' respectively.
SolveODE(y' = y / x)
yields y = c1 x.
- SolveODE( <Equation>, <Point(s) on f> )
-
Attempts to find the exact solution of the given first or second order ODE which goes through the given point or list of points.
SolveODE(y' = y / x, (1, 2))
yields y = 2x.
- SolveODE( <Equation>, <Point(s) on f>, <Point(s) on f'> )
-
Attempts to find the exact solution of the given first or second order ODE and goes through the given point (or list of points) on f and f' goes through the given point (or list of points) on f' .
SolveODE(y'' - 3y' + 2 = x, (2, 3), (1, 2))
yields \( y = \frac{-9 x^2 e^3 + 30 x e^3 - 32 {(e^3)}^2 + 138
e^3 + 32 e^{3 x} }{54 e^3} \).
- SolveODE( <Equation>, <Dependent Variable>, <Independent Variable>, <Point(s) on f> )
-
Attempts to find the exact solution of the given first or second order ODE which goes through the given point (or list of points).
SolveODE(v' = v / w, v, w, (1, 2))
yields v = 2w.
- SolveODE( <Equation>, <Dependent Variable>, <Independent Variable>, <Point(s) on f>, <Point(s) on f'> )
-
Attempts to find the exact solution of the given first or second order ODE which goes through the given point (or list of points) on f and f' goes through the given point (or list of points) on f' .
SolveODE(v' = v / w, v, w, (1, 2), (0, 2))
yields v = 2w.
For compatibility with input bar, if the first parameter is just an expression without y' or y'', it is supposed to be right hand side of ODE with left hand side y'. |