
Solve the following differential equation: $\left( 1+{{x}^{2}} \right)dy+2xydx=\cot xdx;x\ne 0$.
Answer
531.6k+ views
Hint: To solve this type of question, we should know about the general forms of linear differential equations. We have to identify the equation by dividing and subtracting by any term and then we have to see to the questions from like, $\dfrac{dy}{dx}+Py=Q$ form or $\dfrac{dx}{dy}+Px=Q$ form.
Complete step by step answer:
The given equation in the question is, $\left( 1+{{x}^{2}} \right)dy+2xydx=\cot xdx$. Dividing both the sides by $dx$, we will get,
$\begin{align}
& \left( 1+{{x}^{2}} \right)\dfrac{dy}{dx}+2xy\dfrac{dx}{dx}=\cot x\dfrac{dx}{dx} \\
& \Rightarrow \left( 1+{{x}^{2}} \right)\dfrac{dy}{dx}+2xy=\cot x \\
\end{align}$
Now dividing both the sides by $\left( 1+{{x}^{2}} \right)$, we will get,
$\dfrac{dy}{dx}+\dfrac{2xy}{\left( 1+{{x}^{2}} \right)}=\dfrac{\cot x}{\left( 1+{{x}^{2}} \right)}\ldots \ldots \ldots \left( 1 \right)$
Comparing the above equation (1) with $\dfrac{dy}{dx}+Py=Q$, where $P=\dfrac{2x}{\left( 1+{{x}^{2}} \right)}$ and $Q=\dfrac{\cot x}{\left( 1+{{x}^{2}} \right)}$.
Now we have to find the Integrating Factor, I.F. So, we have,
$I.F={{e}^{\int{P.dx}}}$
Now we will put the value of p in the formula of integrating factor. Therefore, we will get,
$I.F={{e}^{\int{\dfrac{2x}{1+{{x}^{2}}}dx}}}$
Let us consider $t=1+{{x}^{2}}$
On differentiation of t with respect to x, we will getas follows,
$dt=2xdx$,
Therefore, we get,
$I.F={{e}^{\int{\dfrac{dt}{t}}}}$
And we know that integration of $\dfrac{1}{t}$ is $\log t$, therefore we will get,
$I.F={{e}^{\log t}}$
By solving this we will get the integration factor as,
$\begin{align}
& I.F=t \\
& \Rightarrow I.F=\left( 1+{{x}^{2}} \right) \\
\end{align}$
So, we get that the $I.F=1+{{x}^{2}}$. So, the solution of the equation will be,
$y\times I.F=\int{Q\times I.Fdx+c\ldots \ldots \ldots \left( 2 \right)}$
By substituting the values in equation, we will get as,
$\begin{align}
& y\times \left( 1+{{x}^{2}} \right)=\int{\dfrac{\cot x}{\left( 1+{{x}^{2}} \right)}\times \left( 1+{{x}^{2}} \right)dx+c} \\
& \Rightarrow y.\left( 1+{{x}^{2}} \right)=\int{\cot xdx+c} \\
\end{align}$
By solving this, we will get,
$y\left( 1+{{x}^{2}} \right)=\log \left| \sin x \right|+c$
Dividing both sides by $\left( 1+{{x}^{2}} \right)$, we will get,
$y={{\left( 1+{{x}^{2}} \right)}^{-1}}\log \left| \sin x \right|+c{{\left( 1+{{x}^{2}} \right)}^{-1}}$
So, this is the general solution of the equation.
Note: In the linear differential equations, there are two forms and the solution of both are different from one another. We should remember that the solution of $\dfrac{dy}{dx}+Py=Q$ form is given as $y\left( I.F \right)=\int{\left( I.F \right)Qdx}$ and the solution of the form $\dfrac{dx}{dy}+Px=Q$ would be given as $x\left( I.F \right)=\int{\left( I.F \right)Qdy}$.
Complete step by step answer:
The given equation in the question is, $\left( 1+{{x}^{2}} \right)dy+2xydx=\cot xdx$. Dividing both the sides by $dx$, we will get,
$\begin{align}
& \left( 1+{{x}^{2}} \right)\dfrac{dy}{dx}+2xy\dfrac{dx}{dx}=\cot x\dfrac{dx}{dx} \\
& \Rightarrow \left( 1+{{x}^{2}} \right)\dfrac{dy}{dx}+2xy=\cot x \\
\end{align}$
Now dividing both the sides by $\left( 1+{{x}^{2}} \right)$, we will get,
$\dfrac{dy}{dx}+\dfrac{2xy}{\left( 1+{{x}^{2}} \right)}=\dfrac{\cot x}{\left( 1+{{x}^{2}} \right)}\ldots \ldots \ldots \left( 1 \right)$
Comparing the above equation (1) with $\dfrac{dy}{dx}+Py=Q$, where $P=\dfrac{2x}{\left( 1+{{x}^{2}} \right)}$ and $Q=\dfrac{\cot x}{\left( 1+{{x}^{2}} \right)}$.
Now we have to find the Integrating Factor, I.F. So, we have,
$I.F={{e}^{\int{P.dx}}}$
Now we will put the value of p in the formula of integrating factor. Therefore, we will get,
$I.F={{e}^{\int{\dfrac{2x}{1+{{x}^{2}}}dx}}}$
Let us consider $t=1+{{x}^{2}}$
On differentiation of t with respect to x, we will getas follows,
$dt=2xdx$,
Therefore, we get,
$I.F={{e}^{\int{\dfrac{dt}{t}}}}$
And we know that integration of $\dfrac{1}{t}$ is $\log t$, therefore we will get,
$I.F={{e}^{\log t}}$
By solving this we will get the integration factor as,
$\begin{align}
& I.F=t \\
& \Rightarrow I.F=\left( 1+{{x}^{2}} \right) \\
\end{align}$
So, we get that the $I.F=1+{{x}^{2}}$. So, the solution of the equation will be,
$y\times I.F=\int{Q\times I.Fdx+c\ldots \ldots \ldots \left( 2 \right)}$
By substituting the values in equation, we will get as,
$\begin{align}
& y\times \left( 1+{{x}^{2}} \right)=\int{\dfrac{\cot x}{\left( 1+{{x}^{2}} \right)}\times \left( 1+{{x}^{2}} \right)dx+c} \\
& \Rightarrow y.\left( 1+{{x}^{2}} \right)=\int{\cot xdx+c} \\
\end{align}$
By solving this, we will get,
$y\left( 1+{{x}^{2}} \right)=\log \left| \sin x \right|+c$
Dividing both sides by $\left( 1+{{x}^{2}} \right)$, we will get,
$y={{\left( 1+{{x}^{2}} \right)}^{-1}}\log \left| \sin x \right|+c{{\left( 1+{{x}^{2}} \right)}^{-1}}$
So, this is the general solution of the equation.
Note: In the linear differential equations, there are two forms and the solution of both are different from one another. We should remember that the solution of $\dfrac{dy}{dx}+Py=Q$ form is given as $y\left( I.F \right)=\int{\left( I.F \right)Qdx}$ and the solution of the form $\dfrac{dx}{dy}+Px=Q$ would be given as $x\left( I.F \right)=\int{\left( I.F \right)Qdy}$.
Recently Updated Pages
Master Class 12 Economics: Engaging Questions & Answers for Success

Master Class 12 Physics: Engaging Questions & Answers for Success

Master Class 12 English: Engaging Questions & Answers for Success

Master Class 12 Social Science: Engaging Questions & Answers for Success

Master Class 12 Maths: Engaging Questions & Answers for Success

Master Class 12 Business Studies: Engaging Questions & Answers for Success

Trending doubts
Which are the Top 10 Largest Countries of the World?

What are the major means of transport Explain each class 12 social science CBSE

Draw a labelled sketch of the human eye class 12 physics CBSE

Why cannot DNA pass through cell membranes class 12 biology CBSE

Differentiate between insitu conservation and exsitu class 12 biology CBSE

Draw a neat and well labeled diagram of TS of ovary class 12 biology CBSE

