Solveeit Logo

Question

Question: Solve the following differential equation: \(\dfrac{{{d^2}y}}{{d{x^2}}} + \dfrac{{dy}}{{dx}} + {e^...

Solve the following differential equation:
d2ydx2+dydx+ex=0\dfrac{{{d^2}y}}{{d{x^2}}} + \dfrac{{dy}}{{dx}} + {e^x} = 0

Explanation

Solution

Hint : In this particular question use the concept that the solution of any differential equation is the sum of complementary function and particular integral, so find the complementary function by equating the L.H.S of the equation to zero and find it roots, then the general solution of the complementary function is written as, C1eax+C2ebx{C_1}{e^{ax}} + {C_2}{e^{bx}}, where a and b are the roots so use these concepts to reach the solution of the question.

Complete step by step solution :
Given differential equation
d2ydx2+dydx+ex=0\dfrac{{{d^2}y}}{{d{x^2}}} + \dfrac{{dy}}{{dx}} + {e^x} = 0
D2y+Dy=ex\Rightarrow {D^2}y + Dy = - {e^x}, where D = (d/dx)
Now as we know that the solution of the above equation is the sum of complementary function and particular integral.
Therefore, y = C.F + P.I
Now first find out complementary functions.
So for this equation L.H.S of the above equation to zero so we have,
D2y+Dy=0\Rightarrow {D^2}y + Dy = 0
D(D+1)=0\Rightarrow D\left( {D + 1} \right) = 0
D=0,1\Rightarrow D = 0, - 1
So the solution of the complementary function is given as,
C.F = C1e(0)x+C2e(1)x{C_1}{e^{\left( 0 \right)x}} + {C_2}{e^{\left( { - 1} \right)x}}, where C1 and C2{C_1}{\text{ and }}{C_2} are some arbitrary constants.
Therefore, C.F = C1+C2ex{C_1} + {C_2}{e^{ - x}}
Now for Particular integral we have,
D2y+Dy=ex\Rightarrow {D^2}y + Dy = - {e^x}
y=exD2+D\Rightarrow y = \dfrac{{ - {e^x}}}{{{D^2} + D}}
Now in the above equation the coefficient of x in the power of exponential is 1, so substitute in place of D= 1, so the particular integral is.
Therefore, P.I = ex12+1\dfrac{{ - {e^x}}}{{{1^2} + 1}}
P.I=ex2\Rightarrow P.I = \dfrac{{ - {e^x}}}{2}
So the solution of the given differential equation is,
y=C1+C2ex+(12)ex\Rightarrow y = {C_1} + {C_2}{e^{ - x}} + \left( {\dfrac{{ - 1}}{2}} \right){e^x}
So this is the required solution of the given differential equation.

Note : Whenever we face such types of questions the key concept we have to remember is that always recall that there are multiple methods to solve the particular integral depending on the R.H.S of the differential equation, if the R.H.S is in the form of epx{e^{px}}, then substitute in place of D i.e. (d/dx) p and solve as above then add these two solutions as above we will get the required answer.