Undetermined Coefficients, Differential Equations

In summary, the student is having difficulty solving for the coefficients and is having trouble understanding the process of pairing coefficients and solving for them.
  • #1
Destroxia
204
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
  • #2
Are you not given any initial conditions? at all? o.0
 
  • #3
First off, you have shown only one solution to the characteristic equation r2 + 1 = 0. There should be two.
 
  • #4
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?
 
  • #5
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)
 
  • #6
work1.jpg
 
  • #7
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)##
 
  • #8
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
 
  • #9
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:

1. What is the concept of undetermined coefficients in differential equations?

The concept of undetermined coefficients is used in solving non-homogeneous linear differential equations. It involves finding a particular solution by assuming a form for the solution and then determining the coefficients that satisfy the given equation.

2. How is the method of undetermined coefficients different from the method of variation of parameters?

The method of undetermined coefficients is used to find a particular solution for non-homogeneous linear differential equations with constant coefficients. On the other hand, the method of variation of parameters is used to find a particular solution for non-homogeneous linear differential equations with variable coefficients.

3. What is the general form of a particular solution using the method of undetermined coefficients?

The general form of a particular solution using the method of undetermined coefficients is a linear combination of functions that correspond to the non-homogeneous terms in the differential equation. These functions are usually polynomials, exponential functions, and trigonometric functions.

4. Can the method of undetermined coefficients be used for all types of non-homogeneous linear differential equations?

No, the method of undetermined coefficients can only be used for non-homogeneous linear differential equations with constant coefficients. For non-homogeneous linear differential equations with variable coefficients, the method of variation of parameters should be used.

5. How do you determine the coefficients in a particular solution using the method of undetermined coefficients?

The coefficients in a particular solution are determined by substituting the assumed form of the solution into the given differential equation and solving for the coefficients. The coefficients can also be determined by comparing the terms in the assumed form of the solution with the corresponding terms in the given equation.

Similar threads

  • Calculus and Beyond Homework Help
Replies
7
Views
507
  • Calculus and Beyond Homework Help
Replies
15
Views
2K
Replies
12
Views
395
  • Calculus and Beyond Homework Help
Replies
7
Views
712
  • Calculus and Beyond Homework Help
Replies
1
Views
258
  • Calculus and Beyond Homework Help
Replies
5
Views
1K
  • Calculus and Beyond Homework Help
Replies
6
Views
399
  • Calculus and Beyond Homework Help
Replies
1
Views
70
  • Calculus and Beyond Homework Help
Replies
2
Views
1K
  • Calculus and Beyond Homework Help
Replies
5
Views
1K
Back
Top