Question #165459

x dy/dx = y - x


1
Expert's answer
2021-02-24T14:26:23-0500

Solution.

xdydx=yx.x\frac{dy}{dx}=y-x.

This is linear inhomogeneous differential equation of the 1st order.


xyy=x,y1xy=1.xy'-y=-x,\newline y'-\frac{1}{x}y=-1.

The solution of the equation is written in the form


y=yc+yp,y=y_c+y_p,

where ycy_c is the solution of homogeneous equation, and ypy_p is a particular solution of the inhomogeneous equation.

y1xy=0,y'-\frac{1}{x}y=0,

dyy=dxx,\frac{dy}{y}=\frac{dx}{x},

dyy=dxx,\int\frac{dy}{y}=\int\frac{dx}{x},

lny=lnx+C1,\ln{|y|}=\ln{|x|}+C_1,

y=xeC1,|y|=|x|e^{C_1},

from here yc=Cx,y_c=Cx, where CC is some constant, C0.C\neq 0.

yp=u(x)x,y_p=u(x)x,

ux+u1xux=1,u'x+u-\frac{1}{x}ux=-1,

ux=1,u'x=-1,

dudx=1x,\frac{du}{dx}=-\frac{1}{x},

u=lnx,u=-\ln|x|, from here

yp=lnxx.y_p=-\ln{|x|}x.

So, y=Cxxlnx.y=Cx-x\ln{|x|}.

Answer. y=Cxxlnx.y=Cx-x\ln{|x|}.


Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!
LATEST TUTORIALS
APPROVED BY CLIENTS