Differential Equations Method of Undetermined Coefficients

PsychonautQQ
Messages
781
Reaction score
10

Homework Statement


consider y'' + 2y' - 3y = 1 + xe^x, find the particular solution


The Attempt at a Solution


so
f(x) = 1 + xe^x
f'(x) =e^x + xe^x
f''(x) = 2e^x + xe^x

so it looks like my particular solution is going to have a constant term, an e^x term and an xe^x term,
so I can write

Particular Solution:
y(x) = A + Be^x + Cxe^x

and then differentiate this twice and plug into the original equation? Is this on the correct track? I ask because an online source says that I should have
y(x) = A + Bxe^x + C(x^2)e^x

can someone help me understand why I am wrong if I am wrong? Why have an (x^2)e^x but no e^x?
 
Physics news on Phys.org
Hi PsychonautQQ,
You know the general solution to your equation is the sum of the solution to the homogenous problem and a particular solution to the non-homogenous problem.

I would suggest first finding the homogenous solution and perhaps then your question will be resolved.
 
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