Solveeit Logo

Question

Question: Solve $\frac{dy}{dx} + \frac{2x+1}{x}y = e^{-2x}$....

Solve dydx+2x+1xy=e2x\frac{dy}{dx} + \frac{2x+1}{x}y = e^{-2x}.

Answer

The general solution is y=e2x(x2+Cx)y = e^{-2x} \left(\frac{x}{2} + \frac{C}{x}\right).

Explanation

Solution

The differential equation is a first-order linear ODE. The solution is found by calculating the integrating factor I.F.=eP(x)dxI.F. = e^{\int P(x) dx}, where P(x)=2x+1xP(x) = \frac{2x+1}{x}. After finding I.F.=xe2xI.F. = |x|e^{2x}, the equation is transformed into ddx(yI.F.)=Q(x)I.F.\frac{d}{dx}(y \cdot I.F.) = Q(x) \cdot I.F.. Integrating both sides yields yI.F.=Q(x)I.F.dx+Cy \cdot I.F. = \int Q(x) \cdot I.F. dx + C. Evaluating xdx\int |x|dx leads to a piecewise integration. The general solution is obtained by combining these cases into y=e2x(x2+Cx)y = e^{-2x} (\frac{x}{2} + \frac{C}{x}).