Professional Documents
Culture Documents
Here is a system of two ODEs whose coefficient matrix has real and distinct eigenvalues.
Eigenvalues@AD
82, 1<
This solves the system. Note that the general solution depends on two arbitrary constants
Here is a plot of some particular solutions obtained by giving specific values to RefLinkB C , paclet : ref C F @1D and
RefLinkB C , paclet : ref C F @2D. In this case, the origin is called a node.
particularsols =
Partition@Flatten@Table@8x@tD, y@tD< . sol . 8C@1D ® 1 i, C@2D ® 1 j<,
8i, - 20, 20, 6<, 8j, - 20, 20, 6<DD, 2D;
In this system, the eigenvalues of the coefficient matrix are complex conjugates of each other.
Eigenvalues@AD
81 + 2 ä, 1 - 2 ä<
This plots the solution for various values of the arbitrary parameters. The spiraling behavior is typical for systems with complex
eigenvalues.
particularsols =
Partition@Flatten@Table@8x@tD, y@tD< . sol . 8C@1D ® 1 i, C@2D ® 1 j<,
8i, - 10, 10, 8<, 8j, - 10, 10, 8<DD, 2D;
Solving homogeneous systems of ODEs with constant coefficients and of arbitrary order is a straight-
forward matter. They are solved by converting them to a system of first-order ODEs.
C@3D JCos@tD + ã2
1
ã- 3 t 3 t
Cos@tD - 2 ã 3 t
Cos@2 tD -
24
1
3 Sin@tD + 3 ã2 3 t
Sin@tDN + ã- 3 t
C@6D
192
J- 3 Cos@tD + 3 ã2 3 t
Cos@tD - Sin@tD - ã2 3 t
Sin@tD - 2 ã 3 t
Sin@2 tDN -
C@4D JSin@tD + ã2
1 1
ã- 3 t 3 t
Sin@tD - ã 3 t
Sin@2 tDN + ã- 3 t
C@2D
24 12
J- 3 Cos@tD + 3 ã2 3 t
Cos@tD + Sin@tD + ã2 3 t
Sin@tD + 2 ã 3 t
Sin@2 tDNF,
C@4D JCos@tD + ã2
1 2
y ® FunctionB8t<, ã- 3 t 3 t
Cos@tD + ã 3 t
Cos@2 tDN - ã- 3 t
3 3
C@2D JCos@tD + ã2 3 t
Cos@tD - 2 ã 3 t
Cos@2 tD + 3 Sin@tD - 3 ã2 3 t
Sin@tDN +
C@6D JCos@tD + ã2
1
ã- 3 t 3 t
Cos@tD - 2 ã 3 t
Cos@2 tD -
24
1
3 Sin@tD + 3 ã2 3 t
Sin@tDN - ã- 3 t
C@3D
3
J- 3 Cos@tD + 3 ã2 3 t
Cos@tD - Sin@tD - ã2 3 t
Sin@tD - 2 ã 3 t
Sin@2 tDN +
C@1D JSin@tD + ã2
8 1
ã- 3 t 3 t
Sin@tD - ã 3 t
Sin@2 tDN + ã- 3 t
C@5D
3 12
J- 3 Cos@tD + 3 ã2 3 t
Cos@tD + Sin@tD + ã2 3 t
Sin@tD + 2 ã 3 t
Sin@2 tDNF>>
In general, systems of linear ODEs with non-constant coefficients can only be solved in cases where
the coefficient matrix has a simple structure, as illustrated in the following examples.
This first-order system has a diagonal coefficient matrix. The system is uncoupled because the first equation involves only x@tD and the
second equation depends only on y@tD. Thus, each equation in the system can be integrated independently of the other.
DSolve@8x '@tD Sin@tD * x@tD, y '@tD t ^ 2 * y@tD<, 8x, y<, tD
The rows of the coefficient matrix for this system form an orthogonal set of vectors.
A.Transpose@AD Det@AD
881, 0<, 80, 1<<
t t
y ® FunctionA8t<, ãã C@2D Cos@Log@Cos@tDDD + ãã C@1D Sin@Log@Cos@tDDDE==
Here is a system of three first-order ODEs. The coefficient matrix is upper triangular.
MatrixForm@AD
ãt 2 3
0 2 -1
0 0 1
As for single ODEs, there are sophisticated modern algorithms for solving systems of ODEs with
rational coefficients.
This solves a system of two first-order ODEs with rational coefficients. Note that the solution is composed entirely of rational
functions.
H5 + xL w@xD H6 + 2 x - 3 x3 - x5 L y@xD
DSolveB:y¢ @xD
H- 3 - 2 x + x2 L H- 1 + x3 L x H- 3 - 2 x + x2 L H- 1 + x3 L
+ ,
H1 + 20 x2 + 3 x3 L w@xD 4 x H- 3 - 2 x + x2 L y@xD
w¢ @xD >, 8y, w<, xF
H5 + xL H- 1 + x3 L H5 + xL H- 1 + x3 L
-
::w ® FunctionB8x<, - F,
C@1D x4 C@2D
3 H5 + xL 3 H5 + xL
-
F>>
x C@1D x2 C@2D
3 H- 3 + xL H1 + xL 3 H- 3 + xL H1 + xL
y ® FunctionB8x<, - -
In the following example, the algorithm finds one rational solution for x@tD and y@tD. (The equation for z@tD is uncoupled from the rest
of the system.) Using the rational solution, RefLinkB DSolve , paclet : ref DSolve F is able to find the remaining
The systems considered so far have all been homogeneous. If the system is inhomogeneous (that
is, if there are terms free from any dependent variables and their derivatives),
RefLinkA DSolve , paclet : ref DSolve E applies either the method of variation of parame-
B = 8E ^ Ht 10L, t<;
ã-t H- 26 + 10 tL Sin@2 tD +
225 1
ã-9 t10 Sin@2 tD -
481 50
ã H- 6 + 10 tL Sin@2 tD F,
470 -9 t10 2 -t
ã Sin@2 tD -
481 25
ã H- 26 + 10 tL Sin@2 tD +
225 -9 t10 1 -t
ã Sin@2 tD -
481 50
ã H4 + 10 tL Cos@2 tD +
5 t 510 -9 t10 4 -t
ã Sin@2 tD ã Cos@2 tD -
2 481 25
ã H- 6 + 10 tL Sin@2 tD F>>
470 -9 t10 2 -t
ã Sin@2 tD -
481 25
Particular solutions to the system can be obtained by assigning values to the constants
Related Tutorials
Tutorial Collection