Solveeit Logo

Question

Question: Find the differential equation of \( y = {e^x}(A\cos x + B\sin x) \)...

Find the differential equation of y=ex(Acosx+Bsinx)y = {e^x}(A\cos x + B\sin x)

Explanation

Solution

Hint : The order of a differential equation is equal to the number of times the solution is differentiated. In simple terms, it is equal to the number of arbitrary constants present in the given solution of the differential equation. Since, there are two arbitrary constants, A and B. We have to divide this equation two times to get the answer.

Complete step-by-step answer :
In this question it is given that,
y=ex(Acos+Bsinx)y = {e^x}(A\cos + B\sin x)
And we have to find the differential equation
So, we know the value of yy as
y=ex(Acosx+Bsinx)y = {e^x}(A\cos x + B\sin x) . . . . . (1)
Now differentiate both the sides with respect to xx
Then,
dydx=ddx(exAcosx+exBsinx)\dfrac{{dy}}{{dx}} = \dfrac{d}{{dx}}\left( {{e^x}A\cos x + {e^x}B\sin x} \right)
Now we use the addition rule of differentiation and multiplication rule of differentiation.
Therefore,
dydx=ddxexAcosx+ddxexBsinx.\dfrac{{dy}}{{dx}} = \dfrac{d}{{dx}}{e^x}A\cos x + \dfrac{d}{{dx}}{e^x}B\sin x.
=exAcosxA(sinx)ex+exBcosx+exBsinx= {e^x}A\cos x - A(\sin x){e^x} + {e^x}B\cos x + {e^x}B\sin x
We can rearrange it as
dydx=(exAcosx+exBsinx)+(exAsinx+exBcosx)\dfrac{{dy}}{{dx}} = \left( {{e^x}A\cos x + {e^x}B\sin x} \right) + ( - {e^x}A\sin x + {e^x}B\cos x)
dydx=ex(Acosx+Bsinx)+(exAsinx+exBcosx)\Rightarrow \dfrac{{dy}}{{dx}} = {e^x}(A\cos x + B\sin x) + ( - {e^x}A\sin x + {e^x}B\cos x) . . . . . . (2)
And now, substitute the value, y=ex(Acosx+Bsinx)y = {e^x}(A\cos x + B\sin x) in the equation (2)
dydx=y+(ex.Asinx+exBcosx)\Rightarrow \dfrac{{dy}}{{dx}} = y + ( - {e^x}.A\sin x + {e^x}B\cos x)
dydxy=ex(AsinxexBcosx)\Rightarrow \dfrac{{dy}}{{dx}} - y = - {e^x}(A\sin x - {e^x}B\cos x) . . . . . . . (3)
Let dydx=y\dfrac{{dy}}{{dx}} = y' …[means one differentiation of y=yy = y' ]
y=y+[ex.Asinx+ex.Bcosx].\Rightarrow y' = y + [ - {e^x}.A\sin x + {e^x}.B\cos x].
Again differentiating both sides with respect to x.x. We get,
dydx=dydx+ddx[ex.Asinx+ex.Bcosx]\dfrac{{dy'}}{{dx}} = \dfrac{{dy}}{{dx}} + \dfrac{d}{{dx}}[ - {e^x}.A\sin x + {e^x}.B\cos x]
d(y)dx=dydx+[exAsinxexAcosx+exBcosxexBsinx]\Rightarrow \dfrac{{d(y')}}{{dx}} = \dfrac{{dy}}{{dx}} + \left[ { - {e^x}A\sin x - {e^x}A\cos x + {e^x}B\cos x - {e^x}B\sin x} \right]
By rearranging it, we can write
d(y)dx=dydx+[(exAcosxexBsinx)+(exAsinx+exBcosx)]\dfrac{{d(y')}}{{dx}} = \dfrac{{dy}}{{dx}} + \left[ {( - {e^x}A\cos x - {e^x}B\sin x) + ( - {e^x}A\sin x + {e^x}B\cos x)} \right]
d(y)dx=dydx+[ex(Acosx+Bsinx)ex(AsinxBcosx)]\Rightarrow \dfrac{{d(y')}}{{dx}} = \dfrac{{dy}}{{dx}} + \left[ { - {e^x}(A\cos x + B\sin x) - {e^x}(A\sin x - B\cos x)} \right] . . . . . . (4)
From equation (1) and (3) put value of yy and dydxy\dfrac{{dy}}{{dx}} - y in equation (4)
d(y)dx=dydx+(y+dydxy)\Rightarrow \dfrac{{d(y')}}{{dx}} = \dfrac{{dy}}{{dx}} + \left( { - y + \dfrac{{dy}}{{dx}} - y} \right)
=2dydx2y= 2\dfrac{{dy}}{{dx}} - 2y
Now let the double differentiation of y=yy = y''
Then, we can write,
y=2y2yy'' = 2y' - 2y
y2y+2y=0y'' - 2y' + 2y = 0

Note : It is important to how many times we differentiate the given solutions to form the differential equation. Otherwise, in the question like this, where the derivative keeps on repeating. You will never see the end of the solution. It is also important to know that the final differential equation must not have any arbitrary constant left in it. That is why, we wrote the differential equation in terms of yy to remove the arbitrary constants.
We must have knowledge of differentiation and its multiplication rule i.e. [ddx(uy)=udvdx+vdudx]\left[ {\dfrac{d}{{dx}}(uy) = u\dfrac{{dv}}{{dx}} + v\dfrac{{du}}{{dx}}} \right]