Solving DE by undetermined Coefficients

Click For Summary

Homework Help Overview

The problem involves solving the second-order differential equation y'' + y = xsinx with initial conditions y(0) = 0 and y'(0) = 1. The subject area pertains to differential equations, specifically the method of undetermined coefficients.

Discussion Character

  • Exploratory, Mathematical reasoning, Assumption checking

Approaches and Questions Raised

  • Participants discuss the form of the particular solution yp, with some suggesting yp = Axsinx + Bxcosx, while others explore variations that include polynomial terms to address overlaps with the complementary solution. There are questions about the validity of their approaches and the challenges in matching coefficients to solve for A and B.

Discussion Status

Several participants express confusion regarding their attempts to derive the particular solution and question their reasoning. Some guidance is offered regarding the need to adjust the form of the particular solution to ensure linear independence from the complementary solution. The discussion reflects a range of interpretations and attempts without reaching a consensus.

Contextual Notes

Participants note the challenge of ensuring the particular solution is linearly independent from the homogeneous solution, leading to adjustments in their proposed forms. There is also mention of potential overthinking and uncertainty in the problem-solving process.

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.
 

Similar threads

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