Diff. EQ. Inhomogeneous Linear System (Double check please)

AI Thread Summary
The discussion revolves around solving an inhomogeneous linear system of differential equations. The initial solution presented contains an error, specifically a missing minus sign in the second equation. A suggestion is made to verify the solution by back-substituting into the original ODE, with a recommendation to use Mathematica for this process. The correct particular solution is noted as x_p(t) = -3 + 1/10 e^{-3t} and y_p(t) = -1 - 3/20 e^{-3t}. The thread concludes with a request for clarification on the Mathematica routine used for back-substitution.
VinnyCee
Messages
486
Reaction score
0
Here is the problem:

X'\,=\,\left(\begin{array}{cc} 0 & 2 \\ -1 & 3 \end{array}\right)\,X\,+\left(\begin{array}{c} 2 \\ e^{-3t}\end{array}\right)

Here is what I have:

r_1\,=\,2,\,\,\,\,\,\,r_2\,=\,1

u_1'\,=\,-2\,e^{-2t}\,+2\,e^{-5t}

u_2'\,=\,2\,e^{-t}\,-\,e^{-4t}

\psi\,=\,\left(\begin{array}{cc} e^{2t} & 2\,e^t \\ e^{2\,t} & e^t \end{array}\right)

After integrating the u_1 and u_2 terms and multiplying the answer by \psi, I get:

X\,=\,\left(\begin{array}{c} C_1\,e^{2t}\,+\,2\,C_2\,e^t\,+\,\frac{1}{10}\,e^{-3t}\,-\,3 \\ C_1\,e^{2t}\,+\,C_2\,e^t\,-\,\frac{3}{20}\,e^{-3t}\,-\,1 \end{array}\right)

Then seperating and combining terms:

X\,=\,C_1\,e^{2t}\,\left(\begin{array}{c} 1 \\ 1 \end{array}\right)\,+\,C_2\,e^t\,\left(\begin{array}{c} 2 \\ 1 \end{array}\right)\,+\,\frac{1}{20}\,\left(\begin{array}{cc} 2\,e^{-3t}\,-\,60 \\ 3\,e^{-3t}\,-\,20 \end{array}\right)

Does this look correct? Thanks.
 
Physics news on Phys.org
Any ideas?

Anyone have the same thing when solving this problem?
 
VinnyCee said:
Anyone have the same thing when solving this problem?

Hello VinnyCee. Takes a while. It's a challenging problem. Your answer is NOT correct: Missing a minus sign for the second equation. You know, you can back-substitute the answer into the original ODE to verify the answer or if you're lazy like me, just input the results into Mathematica and have it back-substitute and compare the results. :smile:

I get:

x_p(t)=-3+1/10 e^{-3t}

y_p(t)=-1-3/20e^{-3t}

Hope you didn't get my first (unedited) post where I said it was correct. Didn't notice the minus sign missing.
 
Last edited:
Could you show me that?

This backsubstitution that you mention. How do you type this? Can you show me the routine you did in Mathematica, so I can double check others also?
 
VinnyCee said:
This backsubstitution that you mention. How do you type this? Can you show me the routine you did in Mathematica, so I can double check others also?

Code:
x[t_]:=-3+1/10 e^(-3 t);
y[t_]:=-1-3/20 e^(-3 t);
D[x[t],t]
Simplify[2 y[t]+2]
D[y[t],t]
Simplify[-x[t]+3 y[t]+e^(-3 t)

Just define the solutions (x[t] and y[t]), calculate the derivatives, then insert the x[t] and y[t] into the right hand side and compare the resuts.
 
Kindly see the attached pdf. My attempt to solve it, is in it. I'm wondering if my solution is right. My idea is this: At any point of time, the ball may be assumed to be at an incline which is at an angle of θ(kindly see both the pics in the pdf file). The value of θ will continuously change and so will the value of friction. I'm not able to figure out, why my solution is wrong, if it is wrong .
TL;DR Summary: I came across this question from a Sri Lankan A-level textbook. Question - An ice cube with a length of 10 cm is immersed in water at 0 °C. An observer observes the ice cube from the water, and it seems to be 7.75 cm long. If the refractive index of water is 4/3, find the height of the ice cube immersed in the water. I could not understand how the apparent height of the ice cube in the water depends on the height of the ice cube immersed in the water. Does anyone have an...
Back
Top