Solution.
xdxdy=y−x. This is linear inhomogeneous differential equation of the 1st order.
xy′−y=−x,y′−x1y=−1. The solution of the equation is written in the form
y=yc+yp, where yc is the solution of homogeneous equation, and yp is a particular solution of the inhomogeneous equation.
y′−x1y=0,
ydy=xdx,
∫ydy=∫xdx,
ln∣y∣=ln∣x∣+C1,
∣y∣=∣x∣eC1,
from here yc=Cx, where C is some constant, C=0.
yp=u(x)x,
u′x+u−x1ux=−1,
u′x=−1,
dxdu=−x1,
u=−ln∣x∣, from here
yp=−ln∣x∣x.
So, y=Cx−xln∣x∣.
Answer. y=Cx−xln∣x∣.
Comments