Ma · Mathematics

How to Use Variation of Parameters for a 3×3 System

Published By the 9to5Science editorial team

At a glance

  1. 1. Write the system

    Identify the state vector, coefficient matrix, and forcing term in x′ = A(t)x + f(t).

  2. 2. Solve the homogeneous system

    Find a fundamental matrix Φ(t) whose columns are independent solutions of x′ = A(t)x.

  3. 3. Vary the constants

    Set x = Φ(t)u(t), then solve u′ = Φ(t)⁻¹f(t) by integration.

  4. 4. Add constants or data

    Include three arbitrary constants for the general solution, or use an initial condition to determine them.

Title: How to Use Variation of Parameters for a 3×3 System Category: mathematics

---- ARTICLE BODY ----

A 3×3 matrix by itself does not determine a differential-equation solution: you also need an equation showing how the unknown vector changes, and possibly a forcing term or initial condition. The usual “changing parameters” method for a linear system is called variation of parameters (or variation of constants).

For a nonhomogeneous linear system

x′(t)=A(t)x(t)+f(t),x'(t)=A(t)x(t)+f(t),

where x(t)x(t) and f(t)f(t) are 3-component column vectors and A(t)A(t) is a 3×3 matrix, assume that A(t)A(t) and f(t)f(t) are continuous on an interval of interest. The method gives the general solution once you know a fundamental matrix for the homogeneous system.

The fundamental-matrix formula

First solve the associated homogeneous system:

x′(t)=A(t)x(t).x'(t)=A(t)x(t).

A fundamental matrix Φ(t)\Phi(t) is a 3×3 matrix whose columns are three linearly independent solutions of this homogeneous system. It is invertible on the interval of interest. To vary the constants in the homogeneous solution, write

x(t)=Φ(t)u(t),x(t)=\Phi(t)u(t),

where u(t)u(t) is now an unknown vector of functions. Differentiating and substituting into the system gives

Φ′(t)u(t)+Φ(t)u′(t)=A(t)Φ(t)u(t)+f(t).\Phi'(t)u(t)+\Phi(t)u'(t)=A(t)\Phi(t)u(t)+f(t).

Since Φ′=AΦ\Phi'=A\Phi, those terms cancel, leaving

u′(t)=Φ(t)−1f(t).u'(t)=\Phi(t)^{-1}f(t).

Integrating gives the general solution

x(t)=Φ(t)(c+∫t0tΦ(s)−1f(s) ds),x(t)=\Phi(t)\left(c+\int_{t_0}^{t}\Phi(s)^{-1}f(s)\,ds\right),

where cc is a constant 3-vector and t0t_0 is a fixed reference time. Changing t0t_0 changes the constants’ representation, not the family of solutions. If you are given x(t0)=x0x(t_0)=x_0, then c=Φ(t0)−1x0c=\Phi(t_0)^{-1}x_0.

Worked 3×3 example

Consider the system

x′(t)=(10000000−2)x(t)+(et1t).x'(t)= \begin{pmatrix} 1&0&0\\ 0&0&0\\ 0&0&-2 \end{pmatrix}x(t) + \begin{pmatrix} e^t\\ 1\\ t \end{pmatrix}.

The homogeneous equations are x1′=x1x_1'=x_1, x2′=0x_2'=0, and x3′=−2x3x_3'=-2x_3. A fundamental matrix is therefore

Φ(t)=(et0001000e−2t).\Phi(t)= \begin{pmatrix} e^t&0&0\\ 0&1&0\\ 0&0&e^{-2t} \end{pmatrix}.

Its inverse is diagonal with entries e−t,1,e2te^{-t},1,e^{2t}. Multiplying the forcing vector by this inverse gives

Φ(t)−1f(t)=(11te2t).\Phi(t)^{-1}f(t)= \begin{pmatrix} 1\\ 1\\ te^{2t} \end{pmatrix}.

Integrate each component from 00 to tt:

∫0tΦ(s)−1f(s) ds=(tte2t(t/2−1/4)+1/4).\int_0^t\Phi(s)^{-1}f(s)\,ds= \begin{pmatrix} t\\ t\\ e^{2t}(t/2-1/4)+1/4 \end{pmatrix}.

Multiplying by Φ(t)\Phi(t) and absorbing constant terms into three arbitrary constants gives

x(t)=(et(C1+t)C2+tC3e−2t+t/2−1/4).x(t)= \begin{pmatrix} e^t(C_1+t)\\ C_2+t\\ C_3e^{-2t}+t/2-1/4 \end{pmatrix}.

You can check this by differentiating each component and substituting it into its equation. For example, the third component satisfies x3′+2x3=tx_3'+2x_3=t.

Constant coefficient matrices

When AA is constant, one common choice is the matrix exponential Φ(t)=eAt\Phi(t)=e^{At}. The formula becomes

x(t)=eAt(c+∫t0te−Asf(s) ds).x(t)=e^{At}\left(c+\int_{t_0}^{t}e^{-As}f(s)\,ds\right).

This remains valid whether or not AA is invertible. If f(t)=0f(t)=0, the integral vanishes and the general solution is just x(t)=eAtcx(t)=e^{At}c. For a specified initial value at t0t_0, the equivalent initial-value formula is

x(t)=eA(t−t0)x(t0)+∫t0teA(t−s)f(s) ds.x(t)=e^{A(t-t_0)}x(t_0)+\int_{t_0}^{t}e^{A(t-s)}f(s)\,ds.

Common mistakes

  • Using a matrix without specifying the system. You need an equation such as x′=Ax+f(t)x'=Ax+f(t); a matrix alone does not tell you the unknown function or forcing.
  • Putting the forcing term in the wrong place. The variation equation is u′=Φ−1fu'=\Phi^{-1}f, not u′=fu'=f in general.
  • Forgetting the integration constants. A general solution of a 3-component first-order system has three arbitrary constants. Initial conditions fix their values.
  • Assuming every system is linear. The formula applies to linear systems. A nonlinear system generally needs different methods, though linearization can be useful near a particular solution.
  • Confusing the matrix exponential with entrywise exponentiation. eAte^{At} is defined by the matrix power series, not by exponentiating each entry of AA separately.

References

  1. Elementary Differential Equations and Boundary Value Problems, William E. Boyce, Richard C. DiPrima, and Douglas B. Meade

Spotted an error? Send a correction. Read how we write and check articles in our editorial policy.