Question
Question: 𝑦 + 𝑑 𝑑𝑥 ( 𝑥𝑦 ) = 𝑥 (sin 𝑥 + 𝑥)...
𝑦 + 𝑑 𝑑𝑥 ( 𝑥𝑦 ) = 𝑥 (sin 𝑥 + 𝑥)
Answer
y=−cosx+x2sinx+x22cosx+4x2+x2C
Explanation
Solution
The given differential equation is transformed into the standard form of a first-order linear ODE: dxdy+x2y=sinx+x. The integrating factor is calculated as x2. Multiplying the equation by x2 results in dxd(yx2)=x2sinx+x3. Integrating both sides yields yx2=∫x2sinxdx+∫x3dx. Evaluating these integrals gives yx2=−x2cosx+2xsinx+2cosx+4x4+C. Solving for y provides the general solution.