This is a homogeneous differential equation. Substituting y=vx and simplifying leads to a separable form. The general solution is xycos(xy)=C.
Why this approach works
When you see a differential equation where every term has the same total degree in x and y, it's a homogeneous differential equation. The key insight: such equations can be simplified by writing y=vx, which turns the equation into one involving only v and x. This works because the homogeneity lets us factor out powers of x everywhere.
Look at our equation: every term has degree 2 in x and y (check: xdy is degree 1+1=2, ydx is degree 2, and the trigonometric functions are dimensionless). So the substitution y=vx is the natural path.
Step-by-step solution
1. Rewrite the equation in a standard form
Start with:
(xdy−ydx)ysin(xy)=(ydx+xdy)xcos(xy)
Expand both sides:
xysin(xy)dy−y2sin(xy)dx=xycos(xy)dx+x2cos(xy)dy
2. Group terms with dx and dy
Bring all terms to one side:
xysin(xy)dy−x2cos(xy)dy−y2sin(xy)dx−xycos(xy)dx=0
Factor dy and dx:
x[ysin(xy)−xcos(xy)]dy−[y2sin(xy)+xycos(xy)]dx=0
3. Substitute y=vx (so dy=vdx+xdv)
This is the heart of the method. Replace every y with vx:
- xy=v
- sin(xy)=sinv, cos(xy)=cosv
- y2=v2x2
The equation becomes:
x[vxsinv−xcosv](vdx+xdv)−[v2x2sinv+x(vx)cosv]dx=0
Simplify inside the brackets:
x2(vsinv−cosv)(vdx+xdv)−x2(v2sinv+vcosv)dx=0
4. Divide through by x2 (assuming x=0)
(vsinv−cosv)(vdx+xdv)−(v2sinv+vcosv)dx=0
5. Expand and collect dx and dv terms
Expand the first product:
(vsinv−cosv)vdx+(vsinv−cosv)xdv−(v2sinv+vcosv)dx=0
Group dx terms:
[v(vsinv−cosv)−(v2sinv+vcosv)]dx+(vsinv−cosv)xdv=0
Simplify the dx coefficient:
v2sinv−vcosv−v2sinv−vcosv=−2vcosv
So we have:
(−2vcosv)dx+(vsinv−cosv)xdv=0
6. Separate variables
Bring the dv term to the other side:
2vcosvdx=(vsinv−cosv)xdv
Divide both sides by x and by vcosv (careful: we'll handle special cases later):
x2dx=vcosvvsinv−cosvdv
7. Simplify the dv side
vcosvvsinv−cosv=vcosvvsinv−vcosvcosv=tanv−v1
So the separated equation is:
x2dx=(tanv−v1)dv
The separation works because the original equation was homogeneous — the substitution y=vx always reduces it to a separable form in v and x.
8. Integrate both sides
∫x2dx=∫(tanv−v1)dv …