Question
Question: Solve the differential equation \[\dfrac{{dy}}{{dx}} + y\cot x = 2x + {x^2}\cot x\]...
Solve the differential equation dxdy+ycotx=2x+x2cotx
Solution
Hint: The given differential equation is a Bernoulli`s Equation of the form dxdy+Py=Q , which can be solved by using its Integrating factor. So, use this concept to reach the solution of the problem. For finding the integrating factor we used integration.
Complete step-by-step solution -
Given dxdy+ycotx=2x+x2cotx
This differential equation is of the form
dxdy+Py=Q
where P = \cot x{\text{ & }}Q = 2x + {x^2}\cot x
we know that IF=e∫Pdx , so for the given equation
The solution of the differential equation of the form dxdy+Py=Q is given by y×IF =∫(Q×IF) dx+c
So, for the given differential equation, the solution is
By using the formula of integrating by parts
∫f(x)⋅g(x)dx=f(x)∫g(x)dx−∫(f’(x)⋅(∫g(x)dx))dx
We have
Cancelling the common terms, we get
⇒ysinx=x2sinx+c
Therefore, the solution of the differential equation dxdy+ycotx=2x+x2cotx is ysinx=x2sinx+c.
Note: The integrating factor of the Bernoulli`s Equation of the form dxdy+Py=Q is given by IF=e∫Pdx. We have used Integrating by parts method to solve the differential equation.