Solve the differential equation #x^2(d^2y)/(dx^2) + x dy/dx + y = x^m #?
1 Answer
# y = Acos(lnx)+Bsin(lnx) + (x^m)/(m^2 + 1) #
Explanation:
We have:
# x^2(d^2y)/(dx^2) + x dy/dx + y = x^m # ..... [A]
This is a Euler-Cauchy Equation (the power of
# x = e^t => xe^(-t)=1#
Then we have,
#dy/dx = e^(-t)dy/dt# , and,#(d^2y)/(dx^2)=((d^2y)/(dt^2)-dy/dt)e^(-2t)#
Substituting into the initial DE [A] we get:
# x^2((d^2y)/(dt^2)-dy/dt)e^(-2t) + xe^(-t)dy/dt + y = (e^t)^m #
# :. ((d^2y)/(dt^2)-dy/dt) + dy/dt + y = e^(tm) #
# :. (d^2y)/(dt^2) + y = e^(tm) # ..... [B]
This is now a second order linear non-Homogeneous Differentiation Equation. The standard approach is to find a solution,
Complementary Function
# m^2+1 = 0#
We can solve this quadratic equation, and we get two complex conjugate solutions::
# m=+-i #
Thus the Homogeneous equation [B] has the solution:
# y_c = e^(0t)(Acos(1t)+Bsin(1t) ) #
# \ \ \ =Acost+Bsint #
Particular Solution
With this particular equation [B], a probably solution is of the form:
# y = ae^(tm) #
Where
Let us assume the above solution works, in which case be differentiating wrt
# y' \ \= ame^(tm) #
# y'' = am^2e^(tm)#
Substituting into the initial Differential Equation
# am^2e^(tm) + ae^(tm) = e^(tm) #
# :. am^2 + a = 1 #
# :. a(m^2 + 1) = 1 #
# :. a = 1/(m^2 + 1) #
And so we form the Particular solution:
# y_p = e^(tm)/(m^2 + 1) #
General Solution
Which then leads to the GS of [B}
# y(t) = y_c + y_p #
# \ \ \ \ \ \ \ = Acost+Bsint + e^(tm)/(m^2 + 1) #
Now we initially used a change of variable:
# x = e^t => t=lnx #
So restoring this change of variable we get:
# y = Acos(lnx)+Bsin(lnx) + ((e^t)^m)/(m^2 + 1) #
# \ \ = Acos(lnx)+Bsin(lnx) + ((x)^m)/(m^2 + 1) #
Which is the General Solution of [A].
# y = Acos(lnx)+Bsin(lnx) + (x^m)/(m^2 + 1) #