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)
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)
And we have to find the differential equation
So, we know the value of y as
y=ex(Acosx+Bsinx) . . . . . (1)
Now differentiate both the sides with respect to x
Then,
dxdy=dxd(exAcosx+exBsinx)
Now we use the addition rule of differentiation and multiplication rule of differentiation.
Therefore,
dxdy=dxdexAcosx+dxdexBsinx.
=exAcosx−A(sinx)ex+exBcosx+exBsinx
We can rearrange it as
dxdy=(exAcosx+exBsinx)+(−exAsinx+exBcosx)
⇒dxdy=ex(Acosx+Bsinx)+(−exAsinx+exBcosx) . . . . . . (2)
And now, substitute the value, y=ex(Acosx+Bsinx) in the equation (2)
⇒dxdy=y+(−ex.Asinx+exBcosx)
⇒dxdy−y=−ex(Asinx−exBcosx) . . . . . . . (3)
Let dxdy=y′ …[means one differentiation of y=y′ ]
⇒y′=y+[−ex.Asinx+ex.Bcosx].
Again differentiating both sides with respect to x. We get,
dxdy′=dxdy+dxd[−ex.Asinx+ex.Bcosx]
⇒dxd(y′)=dxdy+[−exAsinx−exAcosx+exBcosx−exBsinx]
By rearranging it, we can write
dxd(y′)=dxdy+[(−exAcosx−exBsinx)+(−exAsinx+exBcosx)]
⇒dxd(y′)=dxdy+[−ex(Acosx+Bsinx)−ex(Asinx−Bcosx)] . . . . . . (4)
From equation (1) and (3) put value of y and dxdy−y in equation (4)
⇒dxd(y′)=dxdy+(−y+dxdy−y)
=2dxdy−2y
Now let the double differentiation of y=y′′
Then, we can write,
y′′=2y′−2y
y′′−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 y to remove the arbitrary constants.
We must have knowledge of differentiation and its multiplication rule i.e. [dxd(uy)=udxdv+vdxdu]