MTM[dsolve] - solve systems of ordinary differential equations
|
Calling Sequence
|
|
dsolve(d_1,...,d_n,i_1,...,i_m,v)
|
|
Parameters
|
|
d_1,...,d_n
|
-
|
differential equations
|
i_1,...,i_m
|
-
|
(optional) initial conditions
|
v
|
-
|
(optional) variable
|
|
|
|
|
Description
|
|
•
|
The function dsolve(d_1,..., d_n, i_1,..., i_m, v), attempts to find a solution for the system of differential equations d_1,..., d_n with initial conditions i_1,..., i_m. The solution is expressed in terms of the independent variable v. If the optional argument v is omitted, then the independent variable is t.
|
•
|
For a given system of equations and set of initial conditions, dsolve will attempt to find an explicit solution. If no suitable explicit solution can be found, then dsolve will display a warning and return an implicit solution.
|
•
|
The format of the input equations differs from the standard version of dsolve in two ways. If y is a function of a single variable, then:
|
I.
|
. The independent variable should not be listed explicitly. That is, instances of y should appear as y and not y(x).
|
II.
|
. The nth derivative of y should appear as Dny. For example, D2y for the second derivative of y. For n = 1, Dy is also accepted.
|
–
|
Note: since the independent variable is implied, only variables whose derivatives appear in the input equations are considered to be functions.
|
•
|
The format of the returned solutions is determined by the number of dependent variables defined in the equations, and by the number of output arguments.
|
•
|
When the complete solution is explicit, the solutions for a given function are returned as a vector of expressions when there are multiple solutions, or as a single expression when there is only one solution. If the system contains multiple functions, then:
|
a.
|
. If the number of output arguments is equal to the number of functions, dsolve will return an expression sequence of solution vectors (or expressions), sorted in lexicographical order by fuction name.
|
b.
|
. If there are zero or one output arguments, dsolve will return a MTM[struct], R, where R:-f is the solution vector (or expression) for the function f.
|
–
|
Note: when solutions for the individual functions in a system are returned as vectors, the set of ith elements of the vectors compose a single solution of the system.
|
•
|
When the complete solution is implicit, if the system contains only one function:
|
c.
|
. If there is only one implicit solution, a single equation is returned.
|
d.
|
. If there are multiple implicit solutions, then the equations are returned as a vector.
|
•
|
If the system contains multiple functions, then:
|
e.
|
. If the number of output arguments is equal to the number of functions, dsolve will return an expression sequence of vectors containing the implicit equations for each function. In this case, the set of ith elements of the vectors compose a single implicit solution of the system.
|
f.
|
. If there are zero or one output arguments, dsolve will return a matrix of equations. In this case, each row is a single implicit solution of the system.
|
|
|
Examples
|
|
>
|
|
>
|
|
| (1) |
>
|
|
| (2) |
>
|
|
| (3) |
>
|
|
Warning, cannot find an explicit solution
| |
| (4) |
>
|
|
Warning, cannot find an explicit solution
| |
| (5) |
|
|