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.
 
There are two things I don't understand about this problem. First, when finding the nth root of a number, there should in theory be n solutions. However, the formula produces n+1 roots. Here is how. The first root is simply ##\left(r\right)^{\left(\frac{1}{n}\right)}##. Then you multiply this first root by n additional expressions given by the formula, as you go through k=0,1,...n-1. So you end up with n+1 roots, which cannot be correct. Let me illustrate what I mean. For this...
Back
Top