Solveeit Logo

Question

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

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

Explanation

Solution

Hint : To obtain the required differential equation of the given equation we will eliminate ‘A’ and ‘B’ from it by taking its first and second order derivatives and solving them together to get the required solution.
Product rule of derivativesddx(u.v)=u.ddx(v)+v.ddx(u)\dfrac{d}{{dx}}\left( {u.v} \right) = u.\dfrac{d}{{dx}}\left( v \right) + v.\dfrac{d}{{dx}}\left( u \right), ddx(sinx)=cosx,ddx(cosx)=sinx\dfrac{d}{{dx}}(\sin x) = \cos x,\,\,\,\dfrac{d}{{dx}}\left( {\cos x} \right) = - \sin x

Complete step-by-step answer :
To find the differential equation of a given function y=ex(Acosx+Bsinx)y = {e^x}\left( {A\cos x + B\sin x} \right)we have to remove ‘A’ and ‘B’ from it by taking derivatives.
As, there are two variables present in the given equation. So, we differentiate it two times, first we differentiate it to calculate first order derivative dydx\dfrac{{dy}}{{dx}} and then using result we calculate second order derivatived2ydx2\dfrac{{{d^2}y}}{{d{x^2}}}.
y=ex(Acosx+Bsinx)y = {e^x}\left( {A\cos x + B\sin x} \right)
Differentiating w.r.t. ‘x’ we have
\dfrac{{dy}}{{dx}} = \dfrac{d}{{dx}}\left\\{ {{e^x}\left( {A\cos x + B\sin x} \right)} \right\\}

Applying product rule of derivative on right hand side
dydx=exddx(Acosx+Bsinx)+(Acosx+Bsinx)ddx(ex)\dfrac{{dy}}{{dx}} = {e^x}\dfrac{d}{{dx}}\left( {A\cos x + B\sin x} \right) + \left( {A\cos x + B\sin x} \right)\dfrac{d}{{dx}}\left( {{e^x}} \right)
\Rightarrow \dfrac{{dy}}{{dx}} = {e^x}\left\\{ {A\left( { - \sin x} \right) + B\left( {\cos x} \right)} \right\\} + \left( {A\cos x + B\sin x} \right){e^x}

Taking common and simplify above equation
\dfrac{{dy}}{{dx}} = {e^x}\left\\{ { - A\sin x + B\cos x + A\cos x + B\sin x} \right\\}
Or we can write above equation as
dydx=ex(Asinx+Bcosx)+ex(Acosx+Bsinx)\dfrac{{dy}}{{dx}} = {e^x}\left( { - A\sin x + B\cos x} \right) + {e^x}\left( {A\cos x + B\sin x} \right)
dydx=ex(Asinx+Bcosx)+y\Rightarrow \dfrac{{dy}}{{dx}} = {e^x}\left( { - A\sin x + B\cos x} \right) + y y=ex(Acosx+Bsinx)\because y = {e^x}\left( {A\cos x + B\sin x} \right)

Or we can write above equation as
dydxy=ex(Asinx+Bcosx)\dfrac{{dy}}{{dx}} - y = {e^x}\left( { - A\sin x + B\cos x} \right)

Again differentiating above equation to find its double derivative w.r.t. ‘x’
d2ydx2dydx=exddx(Asinx+Bcosx)+(Asinx+Bcosx)ddx(ex)\dfrac{{{d^2}y}}{{d{x^2}}} - \dfrac{{dy}}{{dx}} = {e^x}\dfrac{d}{{dx}}\left( { - A\sin x + B\cos x} \right) + \left( { - A\sin x + B\cos x} \right)\dfrac{d}{{dx}}\left( {{e^x}} \right)
d2ydx2dydx=ex(AcosxBsinx)+(Asinx+Bcosx)ex\Rightarrow \dfrac{{{d^2}y}}{{d{x^2}}} - \dfrac{{dy}}{{dx}} = {e^x}\left( { - A\cos x - B\sin x} \right) + \left( { - A\sin x + B\cos x} \right){e^x}
Taking ex{e^x} common from right hand side and simplifying it
d2ydx2dydx=ex(AcosxBsinxAsinx+Bcosx)\dfrac{{{d^2}y}}{{d{x^2}}} - \dfrac{{dy}}{{dx}} = {e^x}\left( { - A\cos x - B\sin x - A\sin x + B\cos x} \right)
d2ydx2dydx=ex(AcosxBsinx)+ex(Asinx+Bcosx)\Rightarrow \dfrac{{{d^2}y}}{{d{x^2}}} - \dfrac{{dy}}{{dx}} = {e^x}\left( { - A\cos x - B\sin x} \right) + {e^x}\left( { - A\sin x + B\cos x} \right)
Using vale of dydxy=ex(Asinx+Bcosx)\dfrac{{dy}}{{dx}} - y = {e^x}\left( { - A\sin x + B\cos x} \right) calculated above in above equation we have
d2ydx2dydx=ex(AcosxBsinx)+dydxy\dfrac{{{d^2}y}}{{d{x^2}}} - \dfrac{{dy}}{{dx}} = {e^x}\left( { - A\cos x - B\sin x} \right) + \dfrac{{dy}}{{dx}} - y
d2ydx22dydx+y=ex(Acosx+Bsinx) d2ydx22dydx+y=y d2ydx22dydx+2y=0  \Rightarrow \dfrac{{{d^2}y}}{{d{x^2}}} - 2\dfrac{{dy}}{{dx}} + y = - {e^x}\left( {A\cos x + B\sin x} \right) \\\ \Rightarrow \dfrac{{{d^2}y}}{{d{x^2}}} - 2\dfrac{{dy}}{{dx}} + y = - y \\\ \Rightarrow \dfrac{{{d^2}y}}{{d{x^2}}} - 2\dfrac{{dy}}{{dx}} + 2y = 0 \\\
Above equations don’t contain ‘A’ and ‘B’.
So, we can say that this is the required differential equation of the given equations y=ex(Acosx+Bsinx)y = {e^x}\left( {A\cos x + B\sin x} \right)

Note : To find the differential equation of any given equation we are just required to eliminate the constant present in the given equation. If there is only one constant then we differentiate the given equation only one time to get the required solution but in case if there are two constants then we have to differentiate it up to a double derivative to find the corresponding differential equation.