The teacher hasn't uploaded a solution for this question yet.
Given the differential equation $(xe^{\frac{y}{x}}+y)dx=x~dy$, we can rewrite it as: $$x\frac{dy}{dx} = xe^{\frac{y}{x}} + y$$ $$\frac{dy}{dx} = e^{\frac{y}{x}} + \frac{y}{x}$$
The equation is homogeneous. Let $y = vx$, so $\frac{dy}{dx} = v + x\frac{dv}{dx}$. Substituting these into the equation, we get: $$v + x\frac{dv}{dx} = e^v + v$$ $$x\frac{dv}{dx} = e^v$$
Separate the variables: $$\frac{dv}{e^v} = \frac{dx}{x}$$ $$e^{-v} dv = \frac{dx}{x}$$ Integrate both sides: $$\int e^{-v} dv = \int \frac{dx}{x}$$ $$-e^{-v} = \ln|x| + C$$
Substitute $v = \frac{y}{x}$ back into the equation: $$-e^{-\frac{y}{x}} = \ln|x| + C$$
Given $y = 1$ when $x = 1$, substitute these values into the equation: $$-e^{-\frac{1}{1}} = \ln|1| + C$$ $$-e^{-1} = 0 + C$$ $$C = -e^{-1} = -\frac{1}{e}$$
Substitute the value of $C$ back into the equation: $$-e^{-\frac{y}{x}} = \ln|x| - \frac{1}{e}$$ $$e^{-\frac{y}{x}} = \frac{1}{e} - \ln|x|$$ $$-\frac{y}{x} = \ln\left(\frac{1}{e} - \ln|x|\right)$$ $$y = -x \ln\left(\frac{1}{e} - \ln|x|\right)$$ $$y = -x \ln\left(\frac{1 - e\ln|x|}{e}\right)$$ $$y = -x \left[ \ln(1 - e\ln|x|) - \ln(e) \right]$$ $$y = -x \left[ \ln(1 - e\ln|x|) - 1 \right]$$ $$y = x - x\ln(1 - e\ln|x|)$$
Final Answer: $y = x - x\ln(1 - e\ln|x|)$
AI generated content. Review strictly for academic accuracy.