The teacher hasn't uploaded a solution for this question yet.
The given equation is $x dy + (y - x^2 e^x) dx = 0$. Rearranging it to the form $\frac{dy}{dx} + P(x)y = Q(x)$, we get: $$x \frac{dy}{dx} + y = x^2 e^x$$ Dividing by $x$ (assuming $x \neq 0$): $$\frac{dy}{dx} + \frac{1}{x}y = x e^x$$
Here, $P(x) = \frac{1}{x}$ and $Q(x) = x e^x$. The integrating factor is given by: $$IF = e^{\int P(x) dx} = e^{\int \frac{1}{x} dx} = e^{\ln|x|} = x$$
The general solution is $y \cdot IF = \int (Q(x) \cdot IF) dx + C$: $$y \cdot x = \int (x e^x \cdot x) dx = \int x^2 e^x dx$$ Using integration by parts ($\int u dv = uv - \int v du$): $$\int x^2 e^x dx = x^2 e^x - \int 2x e^x dx = x^2 e^x - 2(x e^x - e^x) + C$$ $$xy = x^2 e^x - 2x e^x + 2e^x + C$$
Given $y(1) = 0$, substitute $x=1$ and $y=0$: $$0 \cdot 1 = (1)^2 e^1 - 2(1) e^1 + 2e^1 + C$$ $$0 = e - 2e + 2e + C \implies C = -e$$ Thus, $xy = e^x(x^2 - 2x + 2) - e$.
Final Answer: y = \frac{e^x(x^2 - 2x + 2) - e}{x}
AI generated content. Review strictly for academic accuracy.