Solveeit Logo

Question

Question: 𝑦 + 𝑑 𝑑𝑥 ( 𝑥𝑦 ) = 𝑥 (sin 𝑥 + 𝑥)...

𝑦 + 𝑑 𝑑𝑥 ( 𝑥𝑦 ) = 𝑥 (sin 𝑥 + 𝑥)

Answer

y=cosx+2sinxx+2cosxx2+x24+Cx2y = -\cos x + \frac{2\sin x}{x} + \frac{2\cos x}{x^2} + \frac{x^2}{4} + \frac{C}{x^2}

Explanation

Solution

The given differential equation is transformed into the standard form of a first-order linear ODE: dydx+2xy=sinx+x\frac{dy}{dx} + \frac{2}{x}y = \sin x + x. The integrating factor is calculated as x2x^2. Multiplying the equation by x2x^2 results in ddx(yx2)=x2sinx+x3\frac{d}{dx}(yx^2) = x^2\sin x + x^3. Integrating both sides yields yx2=x2sinxdx+x3dxyx^2 = \int x^2\sin x dx + \int x^3 dx. Evaluating these integrals gives yx2=x2cosx+2xsinx+2cosx+x44+Cyx^2 = -x^2\cos x + 2x\sin x + 2\cos x + \frac{x^4}{4} + C. Solving for yy provides the general solution.