Of undetermined coefficients to find a general solution of y
Of undetermined coefficients to find a general solution of: y\' + 2y\' + y = 3e^-x + 2x
Solution
Given ODE
y\'\' + 2y\' + y = 3e-x + 2x ..............(*)
so the general solution will be, y = yh + yp
to find yh,
we write the characteristic eqn,
m2 + 2m + m = 0
(m+1)2 = 0
m=-1,-1
hence,
yh = c1e-x + c2xe-x
now to find yp,
let yp = Ax + B + Cx2e-x { we cant take e-x.Since, e-x is in the homogeneous eqn already hence taking x2e-x}
yp\' = A + 2Cxe-x - Cx2e-x
yp\'\'= 2Ce-x -2Cxe-x -2Cxe-x + Cx2e-x
putting these values in (*),we get
2Ce-x - 2Cxe-x - 2Cxe-x + Cx2e-x + 2A + 4Cxe-x - 2Cx2e-x + Ax + B + Cx2e-x = 2x + 3e-x
equating the coefficient of x & e-x and the constant term,we get
A=2
B=-4
C=3/2
hence the general equation,
i.e..
y= yh + yp
= c1e-x + c2xe-x +3/2x2e-x + 2x - 4
