Solving DE by undetermined Coefficients

Click For Summary
The discussion focuses on solving the differential equation y'' + y = xsinx with initial conditions y(0) = 0 and y'(0) = 1. The user correctly identifies the complementary solution yc as C1sinx + C2cosx but struggles with finding the particular solution yp. Initial attempts with yp = Axsinx + Bxcosx fail to yield a valid solution, leading to confusion about the coefficients. Suggestions are made to use a modified form of yp that incorporates polynomials to ensure linear independence from the complementary solution. The user expresses frustration over the complexity of the problem and seeks clarity on the correct approach to proceed.
helpppmeee
Messages
15
Reaction score
0

Homework Statement


y'' + y = xsinx where y(0) = 0 and y'(0) = 1


Homework Equations



yc = C1sinx + C2cosx


The Attempt at a Solution


So my attempt includes the yc which undoubtedly is correct. I now try to solve yp

yp = Axsinx + Bxcosx
y''p = A(2cosx - xsinx) + B(-2sinx - xcosx)

Substituting: y''p + yp = xsinx, clearly doesn't equal xsinx. There are no comparable values to xsinx to even try and solve for A or B.

Attempting using a different algorithm: yp = (A + Ax)sinx + (B + Bx)cosx
Notice overlap from yp to yc, therefore multiply by x: yp = (Ax +Ax^2)sinx + (Bx + Bx^2)cosx
y''p = A(2cosx + 2sinx -xsinx +4xcosx -x^2sinx) + B(-2sinx + 2cosx - 4xsinx - x^2cosx)

and y''p + yp = A(2cosx + 2sinx + 4xcosx + xsinx) + B(-2sinx + 2cosx - 4xsinx + xcosx)

Arrgggh this is really troubling me. I honestly have no idea what I'm doing wrong or how to proceed with the Initial Value Problem afterwards.
 
Physics news on Phys.org
helpppmeee said:

Homework Statement


y'' + y = xsinx where y(0) = 0 and y'(0) = 1


Homework Equations



yc = C1sinx + C2cosx


The Attempt at a Solution


So my attempt includes the yc which undoubtedly is correct. I now try to solve yp

yp = Axsinx + Bxcosx
y''p = A(2cosx - xsinx) + B(-2sinx - xcosx)

Substituting: y''p + yp = xsinx, clearly doesn't equal xsinx. There are no comparable values to xsinx to even try and solve for A or B.

Attempting using a different algorithm: yp = (A + Ax)sinx + (B + Bx)cosx
Notice overlap from yp to yc, therefore multiply by x: yp = (Ax +Ax^2)sinx + (Bx + Bx^2)cosx
y''p = A(2cosx + 2sinx -xsinx +4xcosx -x^2sinx) + B(-2sinx + 2cosx - 4xsinx - x^2cosx)

and y''p + yp = A(2cosx + 2sinx + 4xcosx + xsinx) + B(-2sinx + 2cosx - 4xsinx + xcosx)

Arrgggh this is really troubling me. I honestly have no idea what I'm doing wrong or how to proceed with the Initial Value Problem afterwards.
Try some general linear function times sin(x) & cos(x).

##\displaystyle y_p=(Ax+B)\sin(x)+(Cx+D)\cos(x) ##
 
OH my, rookie mistake LOL. but still, i only get that y''p + yp = 2Acosx - 2Csinx. My logic is telling me to try out yp = (Ax^2 + Bx + C)sinx + (Dx^2 + Ex + F)cosx, based upon my classroom notes. I try this and get
y''p + yp = 2Asinx + 2Dcosx + 2(2Ax+B)cosx -2(2Dx + E)sinx = xsinx

now i understand that 2(2Ax+B)cosx -2(2Dx + E)sinx = xsinx and so 2(2Ax+B)cosx = 0 and -2(2Dx + E)sinx = xsinx
as well as: 2Asinx + 2Dcosx = 0, but this seems like an unsolvable puzzle to me. I also believe i may be overthinking things A LOT so um yeah. What's going on here?
 
Last edited:
Sorry but i edited my post and am not sure if you can see that from outside the thread so... bump
 
Your initial guess at the particular solution would normally be ##y_p = (Ax+B)\sin x + (Cx+D)\cos x##; however, because this isn't linearly independent from the homogeneous solution, you need to multiply it by the lowest power of ##x## to make it independent.
 
Question: A clock's minute hand has length 4 and its hour hand has length 3. What is the distance between the tips at the moment when it is increasing most rapidly?(Putnam Exam Question) Answer: Making assumption that both the hands moves at constant angular velocities, the answer is ## \sqrt{7} .## But don't you think this assumption is somewhat doubtful and wrong?

Similar threads

  • · Replies 1 ·
Replies
1
Views
2K
Replies
9
Views
2K
  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
Replies
2
Views
5K