Solveeit Logo

Question

Question: Solve the differential equation \[\dfrac{dy}{dx}-3y\cot (x)=\sin (2x)\], given \[y=2\], when \[x=...

Solve the differential equation
dydx3ycot(x)=sin(2x)\dfrac{dy}{dx}-3y\cot (x)=\sin (2x), given y=2y=2, when x=π2x=\dfrac{\pi }{2}.

Explanation

Solution

We will begin the solution by comparing the given equation with the general form, dydx+Py=Q\dfrac{dy}{dx}+Py=Q and find the values of P and Q. Once we have determined the values of P and Q, then we will be using the formula for the Integrating factor, which is given by, IF=ePdx\text{IF}={{e}^{\int{Pdx}}} and substitute the value of P to calculate it. In the end, when we have calculated or determined P, Q, and the integrating factor, we will be using the formula of the solution of the differential equation, given by, y×IF=QIFdxy\times \text{IF}=\int{Q\cdot \text{IF}dx} then substitute the value of given x and y to find constant cc and substituting in the obtained equation then you will get the required solution.

Complete step-by-step solution:
Let us consider the given equation,
dydx3ycot(x)=sin(2x)\dfrac{dy}{dx}-3y\cot (x)=\sin (2x)
This equation can be compared with the standard form, dydx+Py=Q\dfrac{dy}{dx}+Py=Q to find the value of P and Q.
Thus, on comparing we get;
p=3cot(x)p=-3\cot (x) and, Q=sin(2x)Q=\sin (2x)
Now, we will now be calculating the integrating factor, using the formula;
IF=ePdx\text{IF}={{e}^{\int{Pdx}}}
We will now substitute p=3cot(x)p=-3\cot (x) into the above formula, and find the value of the integrating factor.
e3cot(x)dx=e3cot(x)dx\Rightarrow {{e}^{\int{-3\cot (x)dx}}}={{e}^{-3\int{\cot (x)dx}}}
By using the formula of integration that is cot(x)dx=sin(x)\int{\cot (x)dx}=\left| \sin (x) \right| we get:
e3cot(x)dx=e3logsin(x)\Rightarrow {{e}^{\int{-3\cot (x)dx}}}={{e}^{-3\log \left| \sin (x) \right|}}
By using the property of logarithmic that is nlogm=logmnn\log m=\log {{m}^{n}}we get:
e3cot(x)dx=elogsin(x)3\Rightarrow {{e}^{\int{-3\cot (x)dx}}}={{e}^{\log {{\left| \sin (x) \right|}^{-3}}}}
Above equation can also be simplified as
e3cot(x)dx=elog1sin3(x)\Rightarrow {{e}^{\int{-3\cot (x)dx}}}={{e}^{\log \dfrac{1}{\left| {{\sin }^{3}}(x) \right|}}}
By using the property of trigonometry that is sin(x)=1cosec(x)\sin (x)=\dfrac{1}{\text{cosec}(x)} we get:
e3cot(x)dx=elogcosec3(x)\Rightarrow {{e}^{\int{-3\cot (x)dx}}}={{e}^{\log \left| \text{cose}{{\text{c}}^{3}}(x) \right|}}
By using the property of logarithmic that is elogx=x{{e}^{\log x}}=x
e3cot(x)dx=cosec3(x)\Rightarrow {{e}^{\int{-3\cot (x)dx}}}=\text{cose}{{\text{c}}^{3}}(x)
Thus, we get the value of the integrating factor to be equal to cosec3(x)\text{cose}{{\text{c}}^{3}}(x)
Now, we know that the solution to the differential equation of the given form, is given by;
y×IF=QIFdxy\times \text{IF}=\int{Q\cdot \text{IF}dx}. Thus, we substitute the given values into the formula to find the solution to the given equation.
y×cosec3(x)=sin(2x)cosec3(x)dx\Rightarrow y\times \text{cose}{{\text{c}}^{3}}(x)=\int{\sin (2x)\cdot \text{cose}{{\text{c}}^{3}}(x)dx}
By using the property of half angle formula that means sin(2x)=2sin(x)cos(x)\sin (2x)=2 \sin (x)\cos (x) and also use the property of trigonometry that means cosec(x)=1sin(x)\text{cosec}(x)=\dfrac{1}{\sin (x)} we get:
y×cosec3(x)=2sin(x)cos(x)sin3(x)dx\Rightarrow y\times \text{cose}{{\text{c}}^{3}}(x)=\int{\dfrac{2\sin (x)\cos (x)}{{{\sin }^{3}}(x)}dx}
By simplifying further, we get:
y×cosec3(x)=2cos(x)sin2(x)dx\Rightarrow y\times \text{cose}{{\text{c}}^{3}}(x)=\int{\dfrac{2\cos (x)}{{{\sin }^{2}}(x)}dx}
By further solving this above equation we get:
ycosec3(x)=2cos(x)sin(x)×1sin(x)dx\Rightarrow y\text{cose}{{\text{c}}^{3}}(x)=\int{\dfrac{2\cos (x)}{\sin (x)}\times \dfrac{1}{\sin (x)}dx}
By using the property of trigonometry, that means cot(x)=cos(x)sin(x)\cot (x)=\dfrac{\cos (x)}{\sin (x)} and cosec(x)=1sin(x)\text{cosec}(x)=\dfrac{1}{\sin (x)} we get:
ycosec3(x)=2cot(x)cosec(x)dx\Rightarrow y\text{cose}{{\text{c}}^{3}}(x)=2\int{\cot (x)\text{cosec}(x)dx}
Now, we will use the know integration that is cot(x)cosec(x)=cosec(x)+c\int{\cot (x)\text{cosec}(x)=-\text{cosec}(x)+c} we get:
ycosec3(x)=2(cosec(x))+c\Rightarrow y\text{cose}{{\text{c}}^{3}}(x)=2(-\text{cosec}(x)) + c
Divide cosec3(x)\text{cose}{{\text{c}}^{3}}(x)on both sides we get:
y=2cosec(x)cosec3(x)+ccosec3(x)\Rightarrow y=\dfrac{-2\text{cosec}(x)}{\text{cose}{{\text{c}}^{3}}(x)}+\dfrac{c}{\text{cose}{{\text{c}}^{3}}(x)}
By simplifying further, we get:
y=2cosec2(x)+ccosec3(x)\Rightarrow y=\dfrac{-2}{\text{cose}{{\text{c}}^{2}}(x)}+\dfrac{c}{\text{cose}{{\text{c}}^{3}}(x)}
Again, using the property of trigonometry that is cosec(x)=1sin(x)\text{cosec}(x)=\dfrac{1}{\sin (x)} we get:
y=2sin2(x)+c  sin3(x)(1)\Rightarrow y=-2{{\sin }^{2}}(x)+c\; {{\sin }^{3}}(x)--(1)
Now, in the question value is given, that is y=2y=2, when x=π2x=\dfrac{\pi }{2}.
Substituting these values on above equation we get:
2=2sin2(π2)+c  sin3(π2)(2)\Rightarrow 2=-2{{\sin }^{2}}\left( \dfrac{\pi }{2} \right)+c\; {{\sin }^{3}}\left( \dfrac{\pi }{2} \right)--(2)
As we know that sin(π2)=1\sin \left( \dfrac{\pi }{2} \right)=1 after substituting the above equation (2) we get:
2=(2×1)+(c  ×1)\Rightarrow 2=-\left( 2\times 1 \right)+\left( c\; \times 1 \right)
By simplifying further, we get:
2=2+c\Rightarrow 2=-2+c
Therefore, we get:
c=4\therefore c= 4
By substituting the above value on equation (1) we get:
y=2sin2(x)+4sin3(x)\Rightarrow y=-2{{\sin }^{2}}(x)+4{{\sin }^{3}}(x)
So, this is a required solution.

Note: There are a variety of approaches to solving these types of problems, such as starting with trigonometric relations and equations and then isolating the variables to get the answer to the given equation. However, after a certain number of steps, you'll see that the equation's complexity has increased. So, wherever you find equations having the term, dydx\dfrac{dy}{dx} and the question is asking to find its solutions, just use the method of integrating factor. This method is time saving and reduces the complexity of the given equation.