Undetermined Coefficients, Differential Equations

Click For Summary
SUMMARY

The discussion centers on solving the differential equation y'' + y = 3*sin(2t) + t*cos(2t) using the method of undetermined coefficients. Participants emphasize the necessity of correctly pairing coefficients to derive the particular solution. The correct form for the particular solution is identified as y_p = (At + B)cos(2t) + (Ct + D)sin(2t), which allows for the inclusion of both t*cos(2t) and sin(2t) terms. The main challenge lies in determining the constants A, B, C, and D accurately through coefficient comparison.

PREREQUISITES
  • Understanding of second-order linear differential equations
  • Familiarity with the method of undetermined coefficients
  • Knowledge of trigonometric identities and derivatives
  • Ability to perform coefficient comparison in polynomial equations
NEXT STEPS
  • Study the method of undetermined coefficients in detail
  • Practice solving second-order linear differential equations with non-homogeneous terms
  • Learn about the principle of superposition in differential equations
  • Explore advanced techniques for solving differential equations, such as variation of parameters
USEFUL FOR

Students and educators in mathematics, particularly those studying differential equations, as well as anyone seeking to improve their problem-solving skills in this area.

Destroxia
Messages
204
Reaction score
7

Homework Statement



y'' + y =3*sin(2t) +t*cos(2t)

Okay, so I have found the complimentary solution, and the first partial solution as listed in my work below.

My problem is the work on the second partial solution. I have got all the derivatives plugged into the differential equation, my problem is solving for the coefficients. I've tried setting the coefficients paired with a t and cos equal to 1, and all the rest equal to 0, yet this returns a false result. I have tried almost 20 different combinations of different coefficients equal to different things and they all return false, but I am fairly certain the differentiating was done correctly... Or was perhaps my guess of (At+B)(C*cos(2t)+D*sin(2t)) incorrect for this solution? I don't understand what I am doing wrong.

Main Issue: Solving for the undetermined Coefficients at the end

Homework Equations

The Attempt at a Solution



work.jpg
 
Physics news on Phys.org
Are you not given any initial conditions? at all? o.0
 
First off, you have shown only one solution to the characteristic equation r2 + 1 = 0. There should be two.
 
The factor alongside Cosine is not constant. Shouldn't it be "Yp= Asin(2t)+BtCos(2t)" to try and find the value of the particular solution?
 
Remixex said:
Are you not given any initial conditions? at all? o.0

No, there are no initial conditions. The only reason I would need initial conditions any way is to solve for c1 and c2 in the initial condition. You are supposed to be able to use common coefficients in the right hand side of the equation and relate them to the unknown coefficients in the left hand side of the equation and set them equal to each other and solve. The only problem is that I need 4 equations to solve for the 4 unknowns, but I don't know how to set up the equations.

SteamKing said:
First off, you have shown only one solution to the characteristic equation r2 + 1 = 0. There should be two.

I have shown the solution to the characteristic equation and I have solved the first half of the second solution, I split it in 2 because there are 2 functions equal to the y'' + y.

I am only having problems finishing the second part of the second solution. Once I get the answer to Yp2 I will add it to Yp1 to make Yp. Then add Yp to my characteristic equation.

Remixex said:
The factor alongside Cosine is not constant. Shouldn't it be "Yp= Asin(2t)+BtCos(2t)" to try and find the value of the particular solution?

Since the value next to the cosine is "t" that term gets a polynomial of the same degree which is (At+B) then the guess for the cosine is (Ccos(2t) + Dsin(2t)), then you multiply those together because the whole term is a t*cos(2t)
 
work1.jpg
 
Instead of having two separate particular solutions, why not just have one? IOW,
##y_p = A\cos(2t) + B\sin(2t) + Ct\cos(2t) + Dt\sin(2t)##
 
Mark44 said:
Instead of having two separate particular solutions, why not just have one? IOW,
##y_p = A\cos(2t) + B\sin(2t) + Ct\cos(2t) + Dt\sin(2t)##

That seems like a pretty good idea, I thought of doing that but it just seemed like a hassle to go back and get rid of my work for the half of the split particular solution I already did. Also, weird considering the teacher taught us to always split up particular solutions if there are 2 terms on the right hand side.

I will try this and get back to you
 
work2.jpg


Here is my attempt at the answer using your method...

This is the books answer:

C1cos(t)+C2sin(t)-1/3tcos(2t)-5/9sin(2t)

I think I'm close but for some reason the coefficient pairing and solving just isn't intuitive to me...
Is there anyone who can explain to me the process of correctly paring the coefficients and solving?
 
  • #10
In your original approach, you can't write the particular solution as ##y_p = (At+B)(C\cos 2t+D\sin 2t)##. That form doesn't allow a combination of coefficients that would result in a solution with only ##t \cos 2t## and ##\sin 2t## terms, for example. To get the ##t \cos 2t## term, you'd have to have ##A \ne 0##, but then the only way to get rid of the ##t\sin 2t## term would be to set ##D=0##, which precludes the possibility of any terms having ##\sin 2t## as a factor.

You have to use ##y_p = (At+B)\cos 2t + (Ct+D)\sin 2t##.
 
  • #11
Mark44 said:
Instead of having two separate particular solutions, why not just have one? IOW,
##y_p = A\cos(2t) + B\sin(2t) + Ct\cos(2t) + Dt\sin(2t)##

vela said:
You have to use ##y_p = (At+B)\cos 2t + (Ct+D)\sin 2t##.

Thank you, Vela, Mark explained that to me in his last post, I think I have that sorted out but now I'm having trouble solving for the A,B,C,D constants as shown in my newest uploaded work.
 
  • #12
RyanTAsher said:
Thank you, Vela, Mark explained that to me in his last post, I think I have that sorted out but now I'm having trouble solving for the A,B,C,D constants as shown in my newest uploaded work.
Mark's point was that using the principle of superposition to solve this problem doesn't really give you any advantage. There's no good reason to solve the problem by looking at each forcing term separately.

Nevertheless, you can solve for a particular solution for each forcing term and combine them afterward. My point was that the form of the particular solution you tried to use for the t cos 2t forcing term was incorrect. You can't solve the problem with the trial solution you used.
 
  • #13
I apologize! I didn't know you were speaking in respect to the original post still, thank you, I completely understand what you are saying now, I believe.

The only problem is still solving for those constants, once I get to that last part I'm not sure what should equal 1 and what should equal zero, and why?

The answers I am getting with this particular arrangement is incorrect.

work.jpg


P.S. This is work from the original problem where I was trying to solve t*cos(2t) when separating the two particular solutions
 
  • #14
You have a sign error in your calculation of y''.
 
  • #15
RyanTAsher said:
Here is my attempt at the answer using your method...

This is the books answer:

C1cos(t)+C2sin(t)-1/3tcos(2t)-5/9sin(2t)

I think I'm close but for some reason the coefficient pairing and solving just isn't intuitive to me...
Is there anyone who can explain to me the process of correctly paring the coefficients and solving?

As a slight extra polish, you could multiply the last two terms by 3, and not change the first two since their coefficients are arbitrary.

You ask the correct method. The correct method is the one that works and that is (for you) simplest. Ah, but if only we could always know that beforehand! Anyway, you made a guess and were told the guess is wrong, so maybe question is how to guess best.

All I can say is that I forget the famous "methods" in between each rare time I ever solve a non-homogeneous lde. So what I do is I look at the RHS and ask myself "What is the function that (in this case) twice (in this case - in others also once or occasionally maybe three or more times) differentiated gives that?"

Here I think I can handle the sine term so firstly the other. It's a product. Instead of cumbrously integrating it twice I think of Leibniz' Theorem for a product (uv)'' = (u''v + 2u'v' + uv'') . So say the last term of that is
(t cos 2t) , then u is t and v is (- cos 2t)/4 . Completing the Leibniz expression I find

[(-t cos 2t)/4]'' = sin t + t cos 2t

On LHS I want something of form Y'' + Y. From last eq. I get:

[(-t cos 2t)/4]'' + [(-t cos 2t)/4] = sin t + (3/4)(t cos 2t)

but to get back the term wanted on RHS, multiply by 4/3 and get

[(-t cos 2t)/3]'' + [(-t cos 2t)/3] = (4/3) sin t + t cos 2t. ... (1)

This is something like the form we want, but the RHS isn't quite and calls for adding (3 - 4/3) sin 2t = (5/4) sin 2t, to get the problem's RHS. And what is (sin 2t) second derivative of?

(- sin 2t)'' = 4 sin 2t

of course, and hammering as before to get a form (Y'' + Y) = (5/4) sin 2t, we find

[(-5/9) sin 2t]'' + (-5/9) sin 2t = (5/3) sin 2t. ...(2)

Adding (1) and (2) we have the p.i. given in your text.

Variations are possible, but doing too many steps in your head is liable to lead to mistakes that waste more time than you save.
 
Last edited:

Similar threads

  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 15 ·
Replies
15
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K
Replies
12
Views
2K
Replies
7
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 2 ·
Replies
2
Views
2K