Question
Question: Find the solution for the given differential equation \(x\cos x\left( \dfrac{dy}{dx} \right)+y\left(...
Find the solution for the given differential equation xcosx(dxdy)+y(−xsinx+cosx)=1?
(a) xy=(x+c)secx,
(b) y=xcosxx+c,
(c) xy+sinx+ccosx=0,
(d) None of these.
Solution
We start solving the problem by dividing the given differential equation with xcosx on both sides. We can then see that the given form of differential equation resembles the form of linear differential equation. We then find the integrating factor for the differential equation. We then use this in the general form of the solution of linear differential equation ye∫P(x)dx=∫(Q(x)e∫P(x)dx)dx+C and make necessary arrangements to get the required solutions.
Complete step-by-step answer:
According to the problem, we need to find the solution for the given differential equation xcosx(dxdy)+y(−xsinx+cosx)=1.
So, we have xcosx(dxdy)+y(−xsinx+cosx)=1.
Let us divide both sides with xcosx.
⇒xcosxxcosx(dxdy)+y(−xsinx+cosx)=xcosx1.
⇒xcosxxcosx(dxdy)+xcosxy(−xsinx+cosx)=xcosx1.
⇒dxdy+(xcosx−xsinx+cosx)y=xcosx1 ---(1).
The differential equation in the equation (1) resembles the general form of the linear differential equation dxdy+P(x).y=Q(x). We know that the general solution for the linear differential equation is ye∫P(x)dx=∫(Q(x)e∫P(x)dx)dx+C ---(2).
From equation (1) we have P(x)=xcosx(−xsinx+cosx) and Q(x)=xcosx1.
Let us first find ∫P(x)dx.
So, we have ∫P(x)dx=∫(xcosx−xsinx+cosx)dx ---(3).
Let us assume xcosx=t ---(4). Let us differentiate on both sides.
⇒d(xcosx)=d(t).
We know that d(uv)=udv+vdu.
⇒xd(cosx)+cosxd(x)=dt.
We know that d(cosx)=−sinxdx.
⇒x(−sinxdx)+cosxdx=dt.
⇒−xsinxdx+cosxdx=dt.
⇒(−xsinx+cosx)dx=dt ---(5).
Let us substitute equations (4) and (5) in equation (3).
⇒∫P(x)dx=∫tdt.
We know that ∫xdx=lnx+C.
⇒∫P(x)dx=lnt. We don’t add integration constant while calculating Integrating factor.
From equation (4), we have t=xcosx.
⇒∫P(x)dx=ln(xcosx)---(6).
Now, we use equation (6) in equation (2) to solve for the solution of the differential equation.
⇒ye(ln(xcosx))=∫((xcosx1)e(ln(xcosx)))dx+C.
We know that elna=a.
⇒y(xcosx)=∫((xcosx1)×(xcosx))dx+C.
⇒y(xcosx)=∫1dx+C.
We know that ∫adx=ax+C.
⇒xycosx=x+C.
⇒y=xcosxx+C---(7).
⇒xy=(x+C)secx---(8).
From equations (7) and (8), we have found the solution for the differential equation as y=xcosxx+C or xy=(x+C)secx.
So, the correct answer is “Option A and B”.
Note: We should confuse with the formulas of Integration while solving this problem. We should avoid calculation mistakes while solving this problem. We can also solve this problem by applying d(xcosx)=−xsinxdx+cosxdx at the start and then using −xysinx+ycosxto complete the rest of the problem. This problem contains multiple correct options, so we need to be careful while answering.