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' + y = cos(x) - x^2 * e^x, which involves both trigonometric and exponential functions.

Discussion Character

  • Mixed

Approaches and Questions Raised

  • The original poster attempts to find a particular solution after determining the complementary solution. They express difficulty in identifying a suitable form for the particular solution and consider a general approach involving multiple terms. Some participants suggest separating the non-trigonometric terms and factoring out common exponentials to simplify differentiation.

Discussion Status

Participants are actively exploring different approaches to find the particular solution. There is acknowledgment of the complexity involved, and while some guidance has been offered regarding the handling of terms, there is no explicit consensus on the best method. The original poster raises concerns about the arbitrary constants due to the lack of initial conditions.

Contextual Notes

The discussion highlights the absence of initial conditions necessary for determining the constants in the general solution, which adds to the complexity of the problem.

ProPatto16
Messages
323
Reaction score
0
solve y''+y'+y=cosx-x2ex

y= yc+yp

yc:

characteristic eq gives r2+r+1=0

using quadratic formula i got r=-1/2+[(sqrt3)/2]i and r=-1/2-[(sqrt3)/2]i

so yc=e-x/2(c1cos(sqrt3/2)x+c2sin(sqrt3/2)x

but i have no idea of a particular solution that makes any sense.

i tried a general approach, the functions and their derivitives on the RHS include terms cosx, sinx, x2ex, xex, ex

so i good start would be yp=Acosx+Bsinx+Cx2ex+Dxex+Eex

then find y'p and y''p and sub into original equation.
but it becomes so dam monstrous there must be another way.
 
Physics news on Phys.org
You just have to grind through it. You might find it easier to deal with cos x and x2ex separately and then add the two particular solutions together at the end.

When dealing with the non-trig terms, factor the common exponential out so that you have a polynomial multiplied by the exponential. That way, when you differentiate, you only have to apply the product rule once.
 
so i grinded through it and ended up with

yp=0cosx+1sinx-(1/3)x2ex+(2/3)xex-(4/9)ex

then to solve i put y=yc+yp

so y= e-2/x[(c1cos(sqrt3/2)x+c2sin(sqrt3/2)x] + 0cosx+1sinx-(1/3)x2ex+(2/3)xex-(4/9)ex

yeah?

that seems mighty ridiculous :(

and what about c1 and c2?? i don't have initial conditions given so i can't solve for them??
 
I'm guessing it's just a typo, but the first exponential should be e-x/2, not exp-2/x.

You're correct. You need initial conditions to find the arbitrary constants.
 

Similar threads

Replies
3
Views
2K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 4 ·
Replies
4
Views
6K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 15 ·
Replies
15
Views
3K
Replies
9
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 7 ·
Replies
7
Views
2K