The teacher hasn't uploaded a solution for this question yet.
The given differential equation is $x\frac{dy}{dx} = (x+2)(y+2)$. We rearrange the terms to separate $x$ and $y$ variables:
$$\frac{dy}{y+2} = \frac{x+2}{x} dx$$ $$\frac{dy}{y+2} = (1 + \frac{2}{x}) dx$$Integrating both sides with respect to their variables:
$$\int \frac{1}{y+2} dy = \int (1 + \frac{2}{x}) dx$$ $$\ln|y+2| = x + 2\ln|x| + C$$Given $y(1) = -1$, substitute $x=1$ and $y=-1$ into the equation to find $C$:
$$\ln|-1+2| = 1 + 2\ln|1| + C$$ $$\ln(1) = 1 + 0 + C$$ $$0 = 1 + C \implies C = -1$$Substitute $C = -1$ back into the general solution:
$$\ln|y+2| = x + 2\ln|x| - 1$$ $$\ln|y+2| - \ln(x^2) = x - 1$$ $$\ln|\frac{y+2}{x^2}| = x - 1$$ $$\frac{y+2}{x^2} = e^{x-1} \implies y = x^2 e^{x-1} - 2$$Final Answer: y = x^2 e^{x-1} - 2
AI generated content. Review strictly for academic accuracy.