Method of undetermined coefficients

Click For Summary

Homework Help Overview

The discussion revolves around solving a second-order linear differential equation using the method of undetermined coefficients. The equation presented is y'' + y = sin x + x*cos x, which includes both sinusoidal and polynomial terms on the right-hand side.

Discussion Character

  • Exploratory, Assumption checking, Problem interpretation

Approaches and Questions Raised

  • Participants discuss the necessity of solving the homogeneous equation first and its impact on finding the particular solution. There are attempts to derive the particular solution using trial and error, with some participants expressing frustration over the complexity of the method. Questions arise regarding the correct form of the particular solution and the coefficients involved.

Discussion Status

Some participants have offered guidance on the structure of the particular solution, suggesting combinations of terms involving x, sin(x), and cos(x). There is acknowledgment of the challenges faced in applying the method, particularly with more complex forcing functions. Multiple interpretations of how to approach the problem are being explored, with no explicit consensus reached.

Contextual Notes

Participants note the importance of linear independence in the solutions and the potential need for different techniques, such as variation of parameters, for other differential equations involving terms like sin^2(x). There is also mention of the original poster's struggle with trial and error in the method of undetermined coefficients.

bennyska
Messages
110
Reaction score
0

Homework Statement


y'' + y = sin x + x*cos x


Homework Equations





The Attempt at a Solution


i don't like undetermined coefficients. so far, for me, it's been so much trial and error, although i am getting a little faster at it.
anyway, i didn't work out the homogeneous equation, but i can see it'll be something with complex roots. i worked out the part for sin x and got yp=-1/2*x*cos x.
now, with x*cos x, i tried a*x2sin x + b*x2cos x.
when i plug all this into the original equation, i get
(4ax + 2b) cos x + (2a+4bx)sin x. so, i think i need to get 4ax + 2b = x, and 2a+4bx=0, right? i don't see any other way than to let 4a =1, and 2b=0, but this doesn't work in getting 2a+4bx=0. am i making some dumb mistake?
 
Physics news on Phys.org
You need to work out the homogeneous equation first, since that will have a direct impact on your particular solution in this problem. The roots of the characteristic equation are complex, it's true, but your solutions don't have to be.

For example, if the roots of the char. equation are r = a +/- bi, you can take your solutions to be y1 = e^(ax)cos(bx) and y2 = e^(ax)sin(bx).
 
i know that. in this case, the roots are i and -i, so the homogeneous solution is (c1sinx + c2cosx), and one of the particulars is yp=-1/2*x*cos x. i know my other solution must be linearly independent, of these two, so (and here I'm not sure) it would i try some x^n (probably x^2) times some cos or sin? when i do this, so far the closest I've gotten is the above solution, but i can't work out the coefficients. and, i don't see where I'm making a mistake. that's why i was saying this method is frustrating, because it's so much trial and error, at least until you get the hang of it. I'm having luck with simpler versions of this method, but with more complex ones, like the above, and especially with another one I'm working on, sin^2(x).
i'm not sure if I've tried some polynomial times sin or cos for the above (i've been going over this for a while). does that sound like a better solution? any hint would be helpful, but i'll continue working on it, and post my results.
 
For a particular solution, I would try yp = Axsin(x) + Bxcos(x) + Cx2sin(x) + Dx2cos(x), and go from there. I'm not sure that you can pick out one part of the forcing function (the part on the right side of the equation that makes the DE nonhomogeneous) and determine the coefficients. IOW, I don't think you can find the particular solution one part at a time.

For your other DE, with sin2(x) on the right side, you'll probably need to use variation of parameters, since the technique used in this problem won't produce sin2(x).
 
Mark44 said:
For your other DE, with sin2(x) on the right side, you'll probably need to use variation of parameters, since the technique used in this problem won't produce sin2(x).

it will if i use the identity sin2x= (1- cos 2x)/2, which i did, and found a solution.

and you can split the right hand side up. i mean, the general solution is a particular plus the homogeneous. i saw a nice video on youtube the other day that went over this. it basically went over how if you put in the general solution into the diff eq, everything distributes out.

for most of the time I've done math, I've done it by knowing facts, looking at examples, and then working them out. I've been trying to do a better job of actually understanding what it is I'm doing lately.

thanks for the other part, i'll definitely try that.
 

Similar threads

  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 15 ·
Replies
15
Views
3K
Replies
7
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
Replies
12
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 14 ·
Replies
14
Views
2K