Question
Question: Solve the differential equation \[ydx - xdy + (1 + {x^2})dx + {x^2}\sin ydy = 0\]...
Solve the differential equation ydx−xdy+(1+x2)dx+x2sinydy=0
Solution
We divide all the terms by common term i.e. x2 such that the term with dy is only of variable y. Cancel possible factors and then integrate all the terms. Use the formula of integration and quotient rule to write the terms in a simpler way. Use the integration of sine of angle as –cosine of angle. Shift all constants to the right hand side and write the solution.
- ∫xndx=n+1xn+1+C
- Quotient rule of derivative: If y=gf⇒dxdy=g2g⋅f′−f⋅g′ .
Complete step-by-step answer:
We are given the differential equation ydx−xdy+(1+x2)dx+x2sinydy=0
Since the coefficient of dy is x2siny , we need to remove the term with variable x such that there is only a variable of y. We divide the complete equation by x2 .
⇒x2ydx−xdy+(1+x2)dx+x2sinydy=0
Separate the terms along with the denominator
⇒x2ydx−xdy+x2(1+x2)dx+x2x2sinydy=0
Cancel same factors from numerator and denominator
⇒(x2ydx−xdy)+(x21+1)dx+sinydy=0
We can bring negative sign from first term
⇒−(x2xdy−ydx)+(x21+1)dx+sinydy=0
We know that according to quotient rule of differentiation d(xy)=x2ydx−xdy
⇒−d(xy)+(x21+1)dx+sinydy=0
Now we integrate each term in left hand side of the equation
⇒−∫d(xy)+∫(x21+1)dx+∫sinydy=0
We can remove integration by derivative in first term
⇒−xy+∫(x21+1)dx+∫sinydy=0
Now we know formula of integration ∫xndx=n+1xn+1+C and substitute the value of ∫sinydy=−cosy+C
⇒−xy+(x−1)+x+(−cosy)+C=0
⇒−xy−x1+x−cosy=C
We take negative sign common
⇒xy+x1−x+cosy=C
∴ Solution of the differential equation ydx−xdy+(1+x2)dx+x2sinydy=0 is xy+x1−x+cosy=C
Note:
Many students make the mistake of collecting the terms with dy and terms with dx separately and then try to write the value of dxdy by shifting the values to one side of the equation. Then many students try to integrate that but we cannot separate the terms of the variable of y and x so it’s difficult to integrate. Also, don’t write separate constants for each integration, instead write one constant that sums up and gives value as a final constant.