Solve the differential equation # (D^2+2D+5)y=xe^x # ?
1 Answer
# y = Ae^(-x)cos2x + Be^(-x)sin2x + (xe^x)/8 - e^x/16#
Explanation:
We have:
# (D^2+2D+5)y=xe^x #
Where
# (d^2y)/(dx^2) + 2dy/dx + 5y = xe^x # ..... [A]
This is a second order linear non-Homogeneous Differentiation Equation with constant coefficients. The standard approach is to find a solution,
Complimentary Function
The homogeneous equation associated with [A] is
# (d^2y)/(dx^2) + 2dy/dx + 5y = 0#
And it's associated Auxiliary equation is:
# m^2 + 2m+5 = 0 #
Which has two complex solutions
Thus the solution of the homogeneous equation is:
# y_c = e^(-1x)(Acos2x + Bsin2x) #
# \ \ \ = Ae^(-x)cos2x + Be^(-x)sin2x #
Particular Solution
In order to find a particular solution of the non-homogeneous equation we would look for a solution of the form:
# y = (ax+b)e^x #
Where the constants
Differentiating wrt
# dy/dx = (ax+b)e^x+(a)e^x #
# " " = (ax+a+b)e^x #
Differentiating again wrt
# (d^2y)/(dx^2) = (ax+a+b)e^x+(a)e^x #
# " " = (ax+2a+b)e^x #
Substituting into the DE [A] we get:
# (ax+2a+b)e^x + 2(ax+a+b)e^x +5(ax+b)e^x = xe^x#
# :. (ax+2a+b) + 2(ax+a+b) +5(ax+b) = x#
Equating coefficients of
# x^1: (2a+b) + 2(a+b) +5(b) = 0 => 4a+8b=0#
# x^0: (a) + 2(a) +5(a) = 1 \ \ \ \ \ \ \ \ \ \ \ \ \ \ \=> 8a=1#
Solving simultaneously, we have:
#a=1/8#
#1/2+8b=0=>b=-1/16#
And so we form the Particular solution:
# y_p = (1/8x-1/6)e^x #
# \ \ \ = (xe^x)/8 - e^x/16#
Which then leads to the GS of [A}
# y(x) = y_c + y_p #
# \ \ \ \ \ \ \ = Ae^(-x)cos2x + Be^(-x)sin2x + (xe^x)/8 - e^x/16#