Solves an n-dimension, homogeneous linear system of differential equations with constant coefficients, for a given start condition.


icon

Inputs/Outputs

  • c2ddbl.png A (matrix of coefficients)

    A is the n-by-n matrix describing the linear system.

  • c1ddbl.png X0 (start value)

    X0 is the n vector describing the start condition, x[10], …, x[n0].

    There is a one-to-one relation between the components of X0 and X.

  • cu32.png number of points

    number of points is the number of equidistant time points between time start and time end. The default is 10.

  • cdbl.png time start

    time start is the start point of the ODE. The default is 0.

  • cdbl.png time end

    time end is the end point of the time interval under investigation. The default is 1.0.

  • i1ddbl.png Times

    Times is an array representing the time steps. The method yields equidistant time steps between time start and time end.

  • i2ddbl.png X Values

    X Values is the matrix of the solution X at the equidistant time points.

  • ii32.png error

    error returns any error or warning from the VI. Errors are produced by using the wrong inputs X, X0, and F(X,t). You can wire error to the Error Cluster From Error Code VI to convert the error code or warning into an error cluster.

  • The solution of the VI is based on the determination of the eigenvalues and eigenvectors of the underlying matrix A. The solution is given in numeric form.

    Note This VI works properly for almost all cases of real matrices A that can have repeated eigenvalues, complex conjugate eigenvalues, and so on. The exception is the case of a singular eigenvector matrix, that is, a matrix in which the eigenvectors do not span the entire space. An error of –23016 is given if the eigenvector matrix is singular.

    Linear systems can be described by

    X(0) = X0

    if time start = 0.

    Here

    X(t) = (x0(t), …, xn(t))

    and A represents an n-by-n real matrix. The linear system can be solved by the determination of the eigenvalues and eigenvectors of A. Let S be the set of all eigenvectors spanning the whole n-dimensional space. The transformation Y(t) = SX(t) yields

    Y(0) = SX0

    The matrix SAS–1 has diagonal form, so that the solution is obvious. The solution X(t) can be determined by back-transformation

    X(t) = S–1Y(t)
    Note No ticks output is implemented because the essential operation is the calculation of eigenvectors and eigenvalues of the matrix A. This operation is negligible for relatively small dimensions of A.

    The following illustration shows the four components of the solution of the linear differential equation described by the following system:

    with

    x1(0) = 1 x2(0) = 2 x3(0) = 3 x4(0) = 4

    The following list of parameters shows how to enter the previous equations on the front panel:

    • A: [-7, -6, 4, 1; -6, 2, 1, -2; 4, 1, 0, 2; -1, -2, 2, -7]
    • X0: [1, 2, 3, 4]
    • time start: 0.00
    • time end: 1.00