Loading [MathJax]/jax/output/CommonHTML/jax.js

EXAMPLE 4Solving a Homogeneous First-Order Differential Equation

Solve the differential equation xdy+(2xey/xy)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/xy are homogeneous of degree 1.

1066

Step 2 Let y=xv. Then dy=xdv+vdx. Substitute these into the differential equation. xdy+(2xey/xy)dx=0x(xdv+vdx)+(2xevxv)dx=0x2dv+xvdx+2xevdxxvdx=0x2dv+2xevdx=0xdv+2evdx=0

Step 3 To separate the variables, we divide by xev. Then for x0, 2dxx+dvev=0

Step 4 Integrate. 2dxx+dvev=02dxx+evdv=02ln|x|ev=C2ln|x|ey/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 ln1e0=CC=1

The particular solution is 2 ln|x|ey/x=1