Solving system of differential equations using undetermined coefficients

In summary: C1 should be first, followed by C2, and finally by C3. Instead, C1 is second, C2 is third, and C3 is fourth. I don't know how to fix this.In summary, Alex is having trouble solving a problem in her differential equations book. She has found a problem with a general solution, but does not know how to proceed from there. She has successfully solved the system of heterogeneous equations, but is stuck when it comes to the nonhomogeneous part. She has found a solution for the nonhomogeneous part, but it is not the procedure the book wants her to use.
  • #1
awelex
44
0
Hi,

I've come across a problem in my differential equations book that I can't seem to be able to solve (it's not a homework problem, I'm just practicing):

"Using matrix algebra techniques and the method of undetermined coefficients, find a general solution for

x''(t) + y'(t) - x(t) + y(t) = -1,
x'(t) + y'(t) - x(t) = t^2 "

At first, I tried to change this system to a system of first-order differential functions only using the following substitutions:

x1(t) = x(t)
x2(t) = x'(t)
x3(t) = y(t)

Which leads to the following system in matrix form:

[itex]\left[ \begin{array}{c} x1' \\ x2' \\ x3' \end{array} \right] = \left[ \begin{array}{ccc} 0 & 1 & 0 \\ 0 & 1 & -1 \\ 1 & -1 & 0 \end{array} \right] * \left[ \begin{array}{c} x1 \\ x2 \\ x3 \end{array} \right] + \left[ \begin{array}{c} 0 \\ -t^2 - 1 \\ t^2 \end{array} \right] [/itex]

Next, I solved the system of heterogeneous equations associated with this system, which also wasn't a problem. But now I'm stuck:

The nonhomogeneous part suggests a particular solution of the form [itex]Bt^2+Ct+D[/itex], with B, C, and D being vectors to be determined. Putting everything into the system yields

[itex]2*Bt+C = A*(Bt^2 + Ct + D) + \left[ \begin{array}{c} 0 \\ -t^2-1 \\ t^2 \end{array} \right][/itex], with A being the coefficient matrix of my original system. But how do I proceed from here?

Thanks,

Alex
 
Physics news on Phys.org
  • #2
I've just read the "must read" post and it seems that I should have posted my question in the homework section. If somebody could move it there, I'd appreciate it.
 
  • #3
The first thing to do is to examine the eigenvalues o you matrix, find the eigenvectors and then change co-ordinates to obtain a diagonal matrix.
 
  • #4
I did find the eigenvalues and eigenvectors, but how do I proceed from there?
 
  • #5
You create a matrix P whose columns are the eigenvectors, then
[tex]
\mathbf{P}\mathbf{x'}=\mathbf{PAx}+\mathbf{P} \mathbf{f} (t)
[/tex]
Then
[tex]
\mathbf{PAx}=\mathbf{PA}\mathbf{P}^{-1} \mathbf{P} \mathbf{x}
[/tex]
Now you know that [itex]\mathbf{PA}\mathbf{P}^{-1}[/itex] is a diagonal matrix whose elements are the eigenvectors. This now can be solved easily as the system is decoupled.
 
  • #6
That's what I wanted to do, but there are two problems with this:

a) the matrix P I get is singular and thus cannot be inverted
b) It's not the procedure the book wants me to use, as the problem states I should use the method of undetermined coefficients.

I suspect that I made an error earlier in setting up the system in normal form. If somebody could double-check it, I'd appreciate it.
 
  • #7
The system I get is:
[tex]
\begin{array}{ccc}
x'-z & = & 0 \\
y'+z-x & = & t^{2} \\
z'+y'-x+y & = & -1
\end{array}
[/tex]
Which can be put into the form [itex]\mathbf{Ax'}+\mathbf{Bx}=\mathbf{c}[/itex], and so you have to multiply through by the inverse of A and then find eigenvectors. The matrix I get isn't singular but does have a repeated root.
 
  • #8
I'm sorry if I seem thick, but how did you get this? And what is z in your system?
 
  • #9
z=x'
 
  • #10
Well, I made some progress. I did manage to apply the method of undetermined coefficients to my system, which yielded two particular solutions, xp and yp. The total solution for y(t) and x(t) should then be

y(t) = yh(t) + yp(t)
x(t) = xh(t) + xp(t)

with xh and yh being the solutions to the corresponding homogeneous equation systems. I checked my solution with the solution in the book, and here's the interesting part: the particular solutions in both cases are right, but the homogeneous parts are wrong. I'm wondering why that is.
Here's how I obtained the homogeneous solutions: I calculated the eigenvalues for my coefficient matrix. These are -1, 1, 1 (1 being a double root). However, the problem is that even though 1 is a double root, I only got one corresponding eigenvector, as the other was (0, 0, 0). The fundamental matrix with the two eigenvectors and the nullvector looks like this:

[itex]\left[ \begin{array}{ccc} -1 & 1 & 0 \\ 1 & 1 & 0 \\ 2 & 0 & 0 \end{array} \right][/itex]

I thought that this corresponds to the solution

[itex]C1*e^{-t} \left[ \begin{array}{c}-1 \\ 1 \\ 2 \end{array} \right] + C2*e^t \left[ \begin{array}{c}1 \\ 1 \\ 0 \end{array} \right][/itex]

But apparently this is wrong. I suspect it has something to do with the fact that I only have two eigenvectors instead of three. I've never encountered such a case before, so I don't know...

Any ideas?
 
  • #11
Alright, I'm giving it one more try. After I figured out how to deal with the t^2 part, I'm still stuck when it comes to solving the homogeneous equation:

[itex]\left[ \begin{array}{c} x1' \\ x2' \\ x3' \end{array} \right] = \left[ \begin{array}{ccc} 0 & 1 & 0 \\ 0 & 1 & -1 \\ 1 & -1 & 0 \end{array} \right] * \left[ \begin{array}{c} x1 \\ x2 \\ x3 \end{array} \right][/itex]

I get the following three eigenvectors:

[itex]\left[ \begin{array}{c} -1 \\ 1 \\ 2 \end{array} \right] , \left[ \begin{array}{c} 1 \\ 1 \\ 0 \end{array} \right] , \left[ \begin{array}{c} 0 \\ 0 \\ 0 \end{array} \right] [/itex]

The problem is that the third vector is a nullvector, which is something I haven't encountered yet. Its corresponding eigenvalue is a double root. How do I deal with that?

Thanks
 
  • #12
Transforming the system of equations into a third-order de, the third solution of the homogeneous equation is t* et
I do not know how it appears in the matrix-method solution.

ehild
 
Last edited:

Related to Solving system of differential equations using undetermined coefficients

What is the purpose of using undetermined coefficients in solving a system of differential equations?

The use of undetermined coefficients allows for a simplified solution to a system of differential equations by finding a particular solution rather than solving for the entire general solution. This method is especially useful for non-homogeneous systems where the general solution may be difficult to obtain.

How do you determine the undetermined coefficients for a system of differential equations?

The undetermined coefficients can be determined by comparing the coefficients of the known terms in the differential equation to the coefficients of the assumed form of the particular solution. These coefficients can then be solved for using algebraic methods.

What are the limitations of using undetermined coefficients in solving a system of differential equations?

The method of undetermined coefficients is limited to linear differential equations with constant coefficients. It also may not work for all types of non-homogeneous equations, such as those with exponential or trigonometric functions.

Can undetermined coefficients be used for systems of differential equations with initial conditions?

Yes, undetermined coefficients can be used for systems of differential equations with initial conditions. The particular solution can be modified to include the initial conditions, and the coefficients can be solved for accordingly.

How can you check the accuracy of the solution obtained using undetermined coefficients?

The accuracy of the solution can be checked by substituting the particular solution back into the original differential equation and verifying that it satisfies the equation. Additionally, the solution can be compared to other methods, such as using variation of parameters, to ensure consistency.

Similar threads

  • Calculus and Beyond Homework Help
Replies
7
Views
562
  • Calculus and Beyond Homework Help
Replies
6
Views
590
Replies
12
Views
465
  • Calculus and Beyond Homework Help
Replies
3
Views
621
  • Calculus and Beyond Homework Help
Replies
12
Views
1K
  • Calculus and Beyond Homework Help
Replies
3
Views
548
  • Calculus and Beyond Homework Help
Replies
6
Views
364
  • Calculus and Beyond Homework Help
Replies
23
Views
1K
  • Calculus and Beyond Homework Help
Replies
7
Views
418
  • Calculus and Beyond Homework Help
Replies
10
Views
530
Back
Top