Nonhomogeneous System of Linear Differential Equations

  • Thread starter Reason
  • Start date
  • Tags
    Diff eq
In summary: This requires some knowledge of the matrix valued equation and the use of the matrix exponential and the concept of a fundamental matrix of solutions. (See the Matrix Cookbook for this). I will also try to answer "why" the matrix exponential method is useful. But that is a bit more involved.In summary, solving a nonhomogeneous system of linear differential equations involves finding a particular solution \vec{y}_p by using either the method of undetermined coefficients or variation of parameters. The fundamental matrix Y(t) is used to represent the general solution to the associated homogeneous equation, and Y_h is calculated by solving for the eigenvectors of the coefficient matrix A. The matrix exponential method can be used to find Y_h by
  • #1
Reason
20
0
Nonhomogeneous system of lineair differential equations

This is a given system: [tex]D\vec{y} = A\vec{y} + \vec{b}[/tex]
With [tex]A=\left\begin{array}{ccc}1&1&1\\0&2&1\\0&0&3\end{array}\right[/tex]
And [tex]\vec{b}=\left\begin{array}{c}e^4^t\\0\\0\end{array}\right[/tex]

We find [tex]\vec{y}_H = Y(t) \cdot \vec{c}[/tex]

With [tex]Y(t)=\left\begin{array}{ccc}e^t&e^2^t&e^3^t\\0&e^2^t&e^3^t\\0&0&e^3^t\end{array}\right[/tex]

Since [tex]\vec{y} = \vec{y}_H + \vec{y}_P[/tex] we still need to find is [tex]\vec{y}_P = Y(t) \cdot \vec{c}(t)[/tex]
[tex]Y(t)[/tex] is already known, so whe have to find [tex]\vec{c}(t)[/tex]
We know that [tex]D\vec{c}(t)=Y^-^1(t) \cdot \vec{b}[/tex]

Now we are going to replace [tex]Y^-^1(t)[/tex] by [tex]e^A^(^-^t^)[/tex]

With [tex]e^A^(^-^t^)[/tex] being [tex]e^A^t= Y(t) \cdot Y^-^1(0)[/tex]
So we get [tex]D\vec{c}(t)= e^A^(^-^t^) \cdot \vec{b}[/tex]

My question actually is why we can replace [tex]Y^-^1(t)[/tex] by [tex]e^A^(^-^t^)[/tex] since [tex]e^A^t^= Y(t) \cdot Y^-^1(0)[/tex]?

P.S.: I'll post the whole excersise later if it's necessary, but I had to much trouble with the Latex code for now ;)
 
Last edited:
Physics news on Phys.org
  • #2
Would like to take a shot at this; will do so in parts. First, a simple answer is that since the column vectors of [itex]Y(t)[/itex] each represent a solution to the ODE and since the product [itex]Y(t)\cdot Y^-^1(0)[/itex] produces column vectors that are linear combinations of the column vectors of [itex]Y(t)[/itex] then they are again solutions .To see this, perform the the matrix inner product multiplications indicated by [itex]Y(t)\cdot Y^-^1(0)[/itex] and confirm that in the resultant , column vector1 = column vector 1; column vector 2 = column vector 2 minus column vector 1 and column vector 3 = column vector 3 minus column vector 2. The Principle of Superposition Theorem (linearity of differentiation) assures that linearly combining constant multiplies of known solutions (all of which equal zero in a homogeneous system) will again produce a solution. So the point is that you can make the replacement because you are simply substituting one fundamental matrix of solutions for another. See future posts for expansion on this terminology.

OK, your question circles around the basic concepts of the use of the Matrix Exponential and one thing I found helpful is to realize that this methodology generalizes the notation of systems of ODE's. By this I mean that the system of equations can be viewed as a "Matrix valued equation" and much of the notation of single equations and vector valued equations can be used to express the concepts. If this doesn't communicate, never mind.

One way to find [itex]\vec{y}_P [/itex] is to use the concept of undetermined coefficients. Much of the time this will be more difficult to evaluate than the concept of variation of parameters which also has application here ( will deal with this in a future post). This problem is simple enough however that undetermined coefficients works to quickly establish a [itex]\vec{y}_P [/itex].

Since the non-homogeneous term , the forcing function [itex]\;\vec{b}(t)\;\mbox{is linear in the\;} exp^{4t} \mbox{\,function, postulate a particular solution,} [/itex]

[tex]\vec{y}_p=\left[\begin{array}{c}a_1e^4^t\\a_2 e^4^t\\a_3 e^4^t\end{array }\right][/tex]

and substitue this into the original DE and then evaluate the unknown coefficients.

[tex]D\vec{y}_p=\left[\begin{array}{c}4a_1e^4^t\\4a_2 e^4^t\\4a_3 e^4^t\end{array }\right]=A \cdot \vec {y}_p +\vec{b}=\left[\begin{array}{ccc}1&1&1\\0&2&1\\0&0&3\end{array}\right]\;\vec{y}_p\;+\;\left[\begin{array}{c}{exp(4t)\\ 0\\ 0\end{array}\right] [/tex]

This will quickly produce a system of 3 equations in the three unknown coefficients:

[tex]4a_1 = a_1 + a_2 + a_3 +1[/tex]
[tex]4a_2 = 2a_2 +a_3[/tex]
[tex]4a_3 = 3a_3[/tex]

This solves by inspection to
[tex]\vec{a}=\{a_1,a_2,a_3\}^T=\{\frac{1}{3},0,0\}^T[/tex]

Therefore the desired particular solution is:

[tex]\vec{y}_p =\vec{a}\cdot exp(4t) = \left[\begin{array}{c}1/3\\0\\ 0\end{array}\right]exp(4t) = \left[\begin{array}{c}\frac{exp(4t)}{3}\\0\\ 0\end{array}\right] [/tex]

a solution vector to the Matrix valued equation, [tex]D\vec{y}_p=A \cdot \vec {y}_p +\vec{b} [/tex]. To verify this:


Left hand side [tex] D\vec{y}_p = D\left[\begin{array}{c}\frac{exp(4t)}{3}\\ 0\\0\end{array}\right]}= \left[\begin{array}{c}\frac{4exp(4t)}{3} \\0\\ 0\end{array}\right][/tex]

Right hand side

[tex] \left[\begin{array}{ccc}1&1&1\\0&2&1\\0&0&3\end{array}\right]\cdot\left[\begin{array}{c}\frac{exp(4t)}{3}\\ 0\\ 0\end{array}\right] + \left[\begin{array}{c}{exp(4t)\\ 0\\ 0\end{array}\right] = \left[\begin{array}{c}\frac{exp(4t)}{3}\\0\\0\end{array}\right] + \left[\begin{array}{c}exp(4t)\\0\\0\end{array}\right] [/tex][tex]=\left[\begin{array}{c}\frac{4exp(4t)}{3}\\ 0\\ 0\end{array}\right][/tex]
 
Last edited:
  • #3
Continued: Here is the next sequential short installment.

Referencing Reason's query setup:

"We find [itex] Y_h = Y(t)*\vec{c}[/itex] " and then he gives a matrix of solutions, Y(t), arranged in column form, also known as a fundamental matrix for the associated homgeneous system.

% [itex] Y_h\cdot\vec{c}[/itex] a matrix representation of the fundamental matrix times an arbitrary constant vector which gives the general solution to the associated homogeneous equation. This is to say that [itex]Y' = A\cdot Y [/itex] is a matrix differential equation. To see if the relation is true, it suffices to multiply each column [itex]vector_i[/itex] in Y(t) by A and compare the result to differentiating each element in said vector wrt to t. I will reference this again below and rename [tex]Y_h = Y(t)[/tex] to [tex] \Phi(t)[/tex] for the sake of generality.

%The fundamental matrix can be arrived at by simply reading the eigenvalues, [itex] \lambda_i [/itex] , {1,2,3} of the coefficient matrix from the diagonal (in this case of a simple upper triangular form) and using them to compute 3 independent eigenvectors using the Eigenvalue Method of solving the system [itex][A -\lambda_i\cdot I_3]\cdot \{a,b,c\}= \{0,0,0\} [/itex] in turn for each eigenvalue. Multiplying the resulting eigenvectors,[itex]\{a_i,b_i,c_i\}[/itex] by exp( [itex]\lambda_i \;t[/itex]) respectively and arranging them in column form produces Y(t). You can read the eigenvectors so produced from the fundamental matrix Y(t).

Next time I will try a short derivation/explantion of extending variation of parameters to the matrix valued equation to solve again for [itex]\vec{y}_p[/itex] , a particular solution.
 
Last edited:
  • #4
  • #5
Thanks to TALewis for the link to Tex; have perused and researched since last post and have decided to complete this explanation first using raw text and then gradually edit with Tex. UNDER CONSTRUCTION.

So with the previous replies as background, here continues the attempt to answer the original query.

Referencing an understanding of the variation of parameters technique for solving for a particular solution of a single linear ODE given the general solution of the associated homogeneous equation, recall that variable coefficients are permitted (thus this technique is more general). This method can be extended to systems of linear ODE's. Reflecting the more general nature of variation of parameters one can write

[itex] \vec{y}\;' = P(t)\;\vec{y} + \vec{b}(t) [/itex] with [itex]\vec{y}=\{y_1(t),y_2(t),y_3(t)\}^T[/itex] representing a vector of unknown functions for which we hope to solve by evaluating the system of differential equations represented.

The P(t) replaces the matrix A of constant coefficients although constants are permitted; P(t) = A is not excluded.

We already have the solution of the complementary equation and will write that generally as [itex]\vec{y}_c (t) = \mathbf\Phi(t) \cdot \vec{c} [/itex] to reflect the general approach with c being merely a vector of arbitrary constants associated with a general solution.

The concept is to replace the vector parameter c with a variable vector u(t) and to find one particular solution of the form:

[itex] \vec{y}_p (t) = \mathbf \Phi (t) \cdot \vec{u}(t) [/itex] , with u(t) such that it satisfies

[itex] D_t\vec{y}_p = P(t)\cdot\vec{y}_p + \vec{b}(t) [/itex]

Taking the derivative [itex] \vec {y} \ ' _p (t) = \mathbf\Phi' (t) \cdot \vec{u} (t) +\mathbf \Phi (t) \cdot\vec {u}\ ' (t) [/itex] using the product rule.

Substituting [itex] \vec{y}_p [/itex] and [itex] \vec{y}_p\; ' [/itex] to [itex] \vec{y}\;' = P(t) \vec{y} +\vec{b}(t) [/itex] gives

[tex]\mathbf\Phi'(t) \ u(t) + \mathbf\Phi(t) \; u'(t) = P(t) \; \mathbf \Phi(t) \ u(t) + \vec{b} [/tex]

Since each column vector of [itex]\mathbf\Phi(t)[/itex], the fundamental matrix of solutions, satisfies [itex] y' = P(t) \; y [/itex], then [itex]\mathbf\Phi'(t) = P(t) \;\mathbf \Phi(t)[/tex] also and rewriting
[itex] P(t) \;\mathbf \Phi(t)\; u(t) +\mathbf\Phi(t) \;u'(t) = P(t)\mathbf\Phi(t) \;u(t) +\vec{b} [/itex]
which reduces to

[itex]\mathbf\Phi(t) \ u'(t) = \vec{b} [/tex]

Therefore [itex]u'(t) =\mathbf \Phi^-^1(t) \ \vec{b}[/itex] the inverse of [itex]\mathbf\Phi(t) [/itex] existing because it consists of linearly independent solutions and is thereby nonsingular (its determinant is not equal to zero).

The particular solution desired is then
[itex] y_p(t) = \mathbf\Phi(t) \ u(t) =\mathbf \Phi(t) \ \int\mathbf\Phi^-^1 \; \vec{b}\dt [/itex]

This completes the raw bones answer and I will use it to produce again [itex]\vec{y}_p [/itex], a single particular solution which already was calculated using unknown coefficients and try to answer the original question better. (next post)

The explanation above belongs entirely to Profs. C.H. Edwards and David E. Penney and is outlined in Chap. 5 Sect.8 of their book Elementary Differential Equations 4th Ed. Any errors in presentation and typos belong entirely to me, of course.
 
Last edited:
  • #6
[itex] y_p(t) = \mathbf\Phi(t) \ \int\mathbf\Phi^-^1 \ \vec{b} \ \dt [/itex] was derived and so now let's apply it to the present example by first displaying the required inverse of the fundamental matrix without going into its calculation

[tex] \mathbf\Phi^-^1(t) =\left[\begin{array}{ccc}e^-^t&e^-^t&0\\0&e^-^2^t&-e^-^2^t\\0&0&e^-^3^t\end{array}\right] [/tex]

so that

[tex] y_p = \left[\begin{array}{ccc}e^t&e^2^t&e^3^t\\0&e^2^t&e^3^t\\0&0&e^3^t\end{array}\right]\cdot\int\left[\begin{array}{ccc}e^-^t&e^-^t&0\\0&e^-^2^t&-e^-^2^t\\0&0&e^-^3^t\end{array}\right]
\cdot\:\left[\begin{array}{c}e^4^t\\0\\0\end{array }\right] dt[/tex]

performing the matrix multiplication inside the integral

[tex]\left[\begin{array}{ccc}e^t&e^2^t&e^3^t\\0&e^2^t&e^3^t\\0&0&e^3^t\end{array}\right]\cdot\int\left[\begin{array}{c}e^3^t\\0\\0\end{array}\right]dt [/tex]

the integration is element by element and so this reduces to the matrix multiplication

[tex]\left[\begin{array}{ccc}e^t&e^2^t&e^3^t\\0&e^2^t&e^3^t\\0&0&e^3^t\end{array}\right]\cdot\left[\begin{array} {c} \frac {e^3^t} {3}\\0\\0\end{array}\right] =\left[\begin{array}{c}\frac{e^4^t}{3}\\0\\0\end{array}\right]= \vec{y}_p[/tex] , the desired particular solution.
 
Last edited:

1. What is a nonhomogeneous system of linear differential equations?

A nonhomogeneous system of linear differential equations is a set of equations that involve both the dependent variable and its derivatives, and also includes a non-zero function of the independent variable. This function is known as the forcing function or the nonhomogeneous term.

2. What is the difference between a homogeneous and nonhomogeneous system of linear differential equations?

In a homogeneous system, the nonhomogeneous term is equal to zero, while in a nonhomogeneous system, the nonhomogeneous term is a non-zero function of the independent variable. This means that the solution to a homogeneous system will only involve the dependent variable and its derivatives, while the solution to a nonhomogeneous system will also involve the nonhomogeneous term.

3. How do you solve a nonhomogeneous system of linear differential equations?

The general method for solving a nonhomogeneous system is to first solve the corresponding homogeneous system. Then, using the method of variation of parameters, a particular solution can be found by substituting a set of parameters into the nonhomogeneous term. The final solution is the sum of the general solution to the homogeneous system and the particular solution.

4. Can a nonhomogeneous system of linear differential equations have multiple solutions?

Yes, a nonhomogeneous system can have multiple solutions. This is because the particular solution obtained through variation of parameters depends on the choice of parameters, and there are multiple possible parameter choices that can result in different particular solutions.

5. What are some real-world applications of nonhomogeneous systems of linear differential equations?

Nonhomogeneous systems of linear differential equations are commonly used in physics and engineering to model real-world phenomena such as circuit analysis, chemical reactions, and population dynamics. They are also used in economics and finance to model market behavior and stock prices.

Similar threads

  • Differential Equations
Replies
2
Views
1K
Replies
3
Views
786
  • Differential Equations
Replies
1
Views
747
  • Differential Equations
Replies
6
Views
883
  • Differential Equations
Replies
16
Views
887
  • Differential Equations
Replies
2
Views
2K
  • Differential Equations
Replies
7
Views
2K
  • Advanced Physics Homework Help
Replies
3
Views
381
  • Differential Equations
Replies
5
Views
908
  • Differential Equations
Replies
5
Views
1K
Back
Top