Solve the differential equation xdy+(2xey/x−y)dx=0 if y=0 when x=1.
Solution Follow the steps for solving a homogeneous first-order differential equation:
Step 1 Both x and 2xey/x−y are homogeneous of degree 1.
1066
Step 2 Let y=xv. Then dy=xdv+vdx. Substitute these into the differential equation. xdy+(2xey/x−y)dx=0x(xdv+vdx)+(2xev−xv)dx=0x2dv+xvdx+2xevdx−xvdx=0x2dv+2xevdx=0xdv+2evdx=0
Step 3 To separate the variables, we divide by xev. Then for x≠0, 2dxx+dvev=0
Step 4 Integrate. ∫2dxx+∫dvev=02∫dxx+∫e−vdv=02ln|x|−e−v=C2ln|x|−e−y/x=Cv=yx
This is the general solution to the differential equation. To find the particular solution, we substitute x=1 and y=0 to find C. 2 ln1−e0=CC=−1
The particular solution is 2 ln|x|−e−y/x=−1