Q.Solve the following differential equation: {xcos(xy)+ysin(xy)}ydx={ysin(xy)−xcos(xy)}xdy
🔒You're viewing a preview — the full solution, concept, methods & PYQ mapping are locked.
🔒 Start your 14-day free trial to unlock the full solution →Concept understanding — Homogeneous Differential Equation
Homogeneous Differential Equations
The idea: only the ratio y/x matters
A function f(x,y) is homogeneous of degree n if scaling both variables by t scales the function by tn: f(tx,ty)=tnf(x,y). For example f(x,y)=x2+y2 gives f(tx,ty)=t2(x2+y2) — degree 2.
A first-order equation
dxdy=f(x,y)
is called homogeneous when f is homogeneous of degree 0, i.e. f(tx,ty)=f(x,y). Scaling then changes nothing, which means the slope depends only on the ratio y/x, never on the absolute sizes. So a homogeneous equation can always be recast as
dxdy=F(xy).
Quick test in the form M(x,y)dx+N(x,y)dy=0: if every term of M and N has the same total degree (sum of the powers of x and y), the equation is homogeneous. E.g. in (x2+y2)dx−2xydy=0 both M and N are degree 2.
Why we care: it becomes separable
Recognising homogeneity buys you a guaranteed method. Substitute
y=vx⇒dxdy=v+xdxdv.
Putting this into dxdy=F(v) gives
v+xdxdv=F(v)⇒xdxdv=F(v)−v,
which separates:
F(v)−vdv=xdx.
Integrate both sides, then replace v by y/x to return to the original variables. …
The equation is homogeneous. Writing it as dxdy and putting y=vx (so dxdy=v+xdxdv):
dxdy=x{ysin(y/x)−xcos(y/x)}y{xcos(y/x)+ysin(y/x)}=vsinv−cosvv(cosv+vsinv).
Then
xdxdv=vsinv−cosvv(cosv+vsinv)−v=vsinv−cosv2vcosv.
Separating variables gives (tanv−v1)dv=x2dx. Integrating: …
The substitution y=vx turns this homogeneous equation into a separable one, giving the solution xycos(xy)=C.
Idea
Every term contains y/x, and both sides are homogeneous of the same degree, so the ratio y/x is the natural variable. Substituting y=vx collapses the messy trig factors into something separable.
Set up
First write the equation in derivative form. Dividing the ydx side by the xdy side,
dxdy=x{ysin(y/x)−xcos(y/x)}y{xcos(y/x)+ysin(y/x)}.
Put y=vx, so dxdy=v+xdxdv and xy=v. Substituting and cancelling x2 from top and bottom:
v+xdxdv=vsinv−cosvv(cosv+vsinv).
Work the steps
- Isolate xdxdv:
xdxdv=vsinv−cosvv(cosv+vsinv)−v(vsinv−cosv)=vsinv−cosv2vcosv.
- Separate the variables:
vcosvvsinv−cosvdv=x2dx⟹(tanv−v1)dv=x2dx.
- Integrate both sides. Using ∫tanvdv=−log∣cosv∣ and ∫vdv=log∣v∣: …
Method: Homogeneous equation with trig functions of y/x
Use this for equations whose coefficients are built from cosxy and sinxy; they are homogeneous of degree 1, so y=vx makes them separable.
Steps
Step 1: Solve for dxdy and substitute y=vx
Write the equation as dxdy=F(v) with v=xy, then use dxdy=v+xdxdv.
Step 2: Separate and simplify the trig integrand
After cancelling, the v-side collects sin,cos terms; using identities and recognising a dvd pattern makes it integrable. …
Common Mistakes
Mistake 1: Not checking that the equation is homogeneous of degree 1
Why it's wrong: only then does y=vx apply; the trig factors sinxy,cosxy are degree-0, so each bracket times x or y is degree 1. Correct approach: confirm the degree before substituting.
Mistake 2: Mishandling the trig algebra after substitution …
Showing the 12 most recent of 32 on this concept.
- AP EAPCET 2025Set eng-2025-05-27-FN1 markMCQQ.The general solution of the differential equation (xsinxy)dy=(ysinxy−x)dx is (A) cos(xy)=log∣x∣+c (B) cos(xy)=x1+c (C) cos(yx)=log∣y∣+c (D) cosxy=x2+c
›Reveal solutionSolution
The equation is homogeneous in x,y; the substitution y=vx makes it separable and integrates to cos(y/x)=log∣x∣+c.
Concept and Intuition
A differential equation where every term has the same total degree in x,y (here, degree 1, since xsin(y/x) and ysin(y/x) and x are all "degree 1" once y/x is treated as dimensionless) is homogeneous, and the standard move is y=vx: it reduces the two variables x,y to one variable v=y/x plus x, making the equation separable.
Step-by-Step Solution
- Given: (xsin(y/x))dy=(ysin(y/x)−x)dx.
- Let y=vx, so dy=vdx+xdv and y/x=v. Substitute:
xsinv(vdx+xdv)=(vxsinv−x)dx.
- Expand: xvsinvdx+x2sinvdv=xvsinvdx−xdx.
- The xvsinvdx terms on both sides cancel exactly, leaving x2sinvdv=−xdx ⇒ sinvdv=−xdx(x=0). …
- AP EAPCET 2024Set eng-2024-05-20-AN1 markMCQQ.The general solution of the differential equation (xsinxy)dy=(ysinxy−x)dx is (A) cosyx=logex+c (B) cosxy=logex+c (C) cosyx=logey+c (D) cosxy=logey+c
›Reveal solutionSolution
This is a homogeneous DE; the substitution y=vx cleanly separates variables, giving cos(y/x)=logex+c — (B).
Concept and Intuition
An equation is homogeneous when every term has the same total "degree" once you notice it depends only on the ratio y/x. The standard substitution y=vx turns it into a separable equation in v and x.
Step-by-Step Solution
- Given: (xsinxy)dy=(ysinxy−x)dx.
- Let y=vx⇒dy=vdx+xdv, and xy=v.
- Substitute: xsinv(vdx+xdv)=(vxsinv−x)dx.
- Expand LHS: vxsinvdx+x2sinvdv. RHS: vxsinvdx−xdx.
- The vxsinvdx term cancels from both sides, leaving: x2sinvdv=−xdx.
- Divide by x2 (assuming x=0): sinvdv=−xdx.
- Integrate both sides: −cosv=−ln∣x∣+C1⇒cosv=ln∣x∣+C (relabeling the constant).
- Substitute back v=y/x: cosxy=logex+c. …
- AP EAPCET 2025Set eng-2025-05-21-FN1 markMCQQ.The general solution of the differential equation (xsinxy)dy=(ysinxy−x)dx is (A) logx+tanxy=c (B) logx+cosxy=c (C) logx−sinxy=c (D) logx−cosxy=c
›Reveal solutionSolution
This is a homogeneous first-order ODE solved via y=vx; the answer is (D).
Concept and Intuition
When every term in the ODE is a function of y/x times some power of x or y (a homogeneous equation), the substitution y=vx (so v=y/x) reduces it to a separable equation in v and x.
Step-by-Step Solution
- The given equation is (xsinxy)dy=(ysinxy−x)dx, so
dxdy=xsin(y/x)ysin(y/x)−x.
- Substitute y=vx, dxdy=v+xdxdv. The right side becomes xsinvvxsinv−x=sinvvsinv−1=v−sinv1.
- So v+xdxdv=v−sinv1, giving xdxdv=−sinv1.
- Separate variables: sinvdv=−xdx. …
- AP EAPCET 2022Set eng-2022-07-06-AN1 markMCQQ.If cosxy=Alogx+C is the general solution of (xsinxy)dy=(ysinxy−x)dx, then A= (A) 2 (B) 1 (C) -1 (D) -2
›Reveal solutionSolution
The equation is homogeneous; the substitution y=vx reduces it to a separable form whose integration directly gives cos(y/x)=logx+C, so A=1.
Concept and Intuition
The differential equation (xsin(y/x))dy=(ysin(y/x)−x)dx is homogeneous (every term scales the same way under x→λx,y→λy), so the standard substitution y=vx (with v=y/x) converts it into a separable equation in v and x.
Step-by-Step Solution
- Let y=vx, so dy=vdx+xdv.
- Substitute into (xsinv)dy=(vxsinv−x)dx: (xsinv)(vdx+xdv)=(vxsinv−x)dx.
- Expand LHS: vxsinvdx+x2sinvdv=vxsinvdx−xdx.
- The vxsinvdx terms cancel from both sides: x2sinvdv=−xdx.
- Divide by x2 (assuming x=0): sinvdv=−xdx.
- Integrate both sides: −cosv=−log∣x∣+C′⇒cosv=log∣x∣+C. …
- AP EAPCET 2024Set eng-2024-05-21-AN1 markMCQQ.dxdy=xy+xtanxy⇒sinxy= (A) cx2 (B) cx (C) cx3 (D) cx4
›Reveal solutionSolution
Substituting y=vx reduces the equation to cotvdv=dx/x, giving sin(y/x)=cx.
Concept and Intuition
An ODE of the form dy/dx=F(y/x) is homogeneous and is solved by substituting v=y/x, which always cancels the v term linearly and leaves a separable equation in v and x.
Step-by-Step Solution
- Let y=vx⇒dxdy=v+xdxdv.
- RHS: xy+xtan(y/x)=v+tanv.
- So v+xdxdv=v+tanv⇒xdxdv=tanv.
- Separate: cotvdv=xdx.
- Integrate: log∣sinv∣=log∣x∣+const⇒sinv=cx. …
- AP EAPCET 2025Set eng-2025-05-22-AN1 markMCQQ.The general solution of the differential equation dxdy=x−yx+y is (A) y−x=cx2 (B) Tan−1(xy)=log(cxx2+y2) (C) x+y=cx2 (D) Tan−1(xy)=log(cx2+y2)
›Reveal solutionSolution
The equation is homogeneous of degree 0; the substitution y=vx separates variables and integrates to the polar-flavoured solution Tan−1(y/x)=log(cx2+y2).
Concept and Intuition
dxdy=x−yx+y is homogeneous (both numerator and denominator scale the same way under x→λx,y→λy), so y=vx turns it into a separable equation in v and x. The appearance of both Tan−1(y/x) and log(x2+y2) afterwards is typical whenever the separated integral produces both an arctangent and a logarithm term.
Step-by-Step Solution
- Let y=vx, so dxdy=v+xdxdv. Then v+xdxdv=1−v1+v.
- xdxdv=1−v1+v−v=1−v1+v−v(1−v)=1−v1+v2.
- Separate: 1+v21−vdv=xdx, i.e. (1+v21−1+v2v)dv=xdx.
- Integrate: Tan−1v−21log(1+v2)=logx+C.
- So Tan−1v=logx+21log(1+v2)+C=log(x1+v2)+C. …
- AP EAPCET 2026Set eng-2026-05-18-FN1 markMCQQ.The general solution of the differential equation y(2x+y)dx=x(x+y)dy is (A) log(ycx2)+xy=0 (B) log(cx2y)+xy=0 (C) log(cx2y2)+xy=0 (D) log(cx2y)+xy=0
›Reveal solutionSolution
A homogeneous ODE solved by the substitution y=vx; simplifying and integrating gives log(cx2y)+xy=0.
Concept and Intuition
y(2x+y)dx=x(x+y)dy is homogeneous of degree 2 on both sides, so the standard substitution y=vx (with dy=vdx+xdv) reduces it to a separable equation in v and x.
Step-by-Step Solution
- Put y=vx, dy=vdx+xdv.
- LHS: y(2x+y)=vx(2x+vx)=vx2(2+v).
- RHS: x(x+y)dy=x⋅x(1+v)(vdx+xdv)=x2(1+v)(vdx+xdv).
- Equation becomes vx2(2+v)dx=x2(1+v)(vdx+xdv). Divide by x2: v(2+v)dx=v(1+v)dx+x(1+v)dv.
- Subtract v(1+v)dx from both sides: v[(2+v)−(1+v)]dx=x(1+v)dv⇒vdx=x(1+v)dv.
- Separate: xdx=v1+vdv=(v1+1)dv.
- Integrate: logx=logv+v+C⇒logvx−v=C.
- Substitute back v=y/x, so x/v=x2/y: logyx2−xy=C. …
- AP EAPCET 2024Set eng-2024-05-20-FN1 markMCQQ.The general solution of the differential equation (x+y)ydx+(y−x)xdy=0 is (A) x+ylog(cy)=0 (B) xy=log(xy)+c (C) x+ylog(cxy)=0 (D) xy=log(cxy)
›Reveal solutionSolution
This is a homogeneous first-order ODE; the substitution y=vx turns it into a separable equation whose integral rearranges to x+ylog(cxy)=0.
Concept and Intuition
Every term of (x+y)ydx+(y−x)xdy=0 is of the same total degree (degree 2 in x,y), which is the signature of a homogeneous differential equation. The standard technique is to set y=vx, turning the equation into one involving only v and x, which separates.
Step-by-Step Solution
- Expand: (xy+y2)dx+(xy−x2)dy=0 — every term has degree 2, confirming homogeneity.
- Put y=vx, so dy=vdx+xdv. Then xy+y2=x2v(1+v) and xy−x2=x2(v−1).
- Substituting: x2v(1+v)dx+x2(v−1)(vdx+xdv)=0. Dividing by x2: v(1+v)dx+(v−1)vdx+x(v−1)dv=0.
- Collect the dx coefficient: v(1+v)+v(v−1)=v[(1+v)+(v−1)]=2v2. So 2v2dx+x(v−1)dv=0.
- Separate variables: xdx=2v2(1−v)dv=(2v21−2v1)dv.
- Integrate: logx=−2v1−21logv+C. Multiply by 2: 2logx+logv=−v1+2C⇒log(x2v)=−v1+K.
- Since x2v=x2⋅xy=xy and v1=yx: log(xy)+yx=K. …
- AP EAPCET 2024Set eng-2024-05-22-FN1 markMCQQ.The general solution of the differential equation xdy−ydx=x2+y2dx is (A) y+x2+y2=cx2 (B) y+x2+y2=cx (C) x+x2+y2=cy (D) x−x2+y2=cy2
›Reveal solutionSolution
A homogeneous differential equation, solved with the substitution y=vx. Answer: y+x2+y2=cx2.
Concept and Intuition
Every term here — xdy, ydx, and x2+y2dx — scales the same way if x,y are both scaled by the same factor, which is the signature of a homogeneous equation. The standard substitution y=vx converts it into a separable equation in v and x.
Step-by-Step Solution
- Write dxdy=xy+x2+y2 (dividing through by dx, taking x>0).
- Let y=vx, so dxdy=v+xdxdv. Then: v+xdxdv=xvx+x2+v2x2=v+1+v2.
- So xdxdv=1+v2, which separates: 1+v2dv=xdx.
- Integrate: log(v+1+v2)=logx+logC⇒v+1+v2=Cx. …
- AP EAPCET 2026Set eng-2026-05-13-AN1 markMCQQ.The general solution of the differential equation x(dxdy)2+2xydxdy+y=0 is (A) x+y=c (B) x+y=c (C) x2+y2=c2 (D) x−y=c
›Reveal solutionSolution
The equation is a perfect-square quadratic in dy/dx (discriminant zero), which reduces it to a simple separable equation whose solution is x+y=c.
Concept and Intuition
When a differential equation is quadratic in p=dy/dx, check the discriminant. If it is a perfect square (or zero), the quadratic factors nicely, collapsing the equation to a single, much simpler first-order relation that can be solved by separation of variables.
Step-by-Step Solution
- Given: x(dxdy)2+2xydxdy+y=0. Let p=dy/dx: xp2+2xyp+y=0.
- Treat as a quadratic in p: discriminant =(2xy)2−4(x)(y)=4xy−4xy=0.
- Since the discriminant is zero, p=2x−2xy=−xxy=−xy (using xy/x=y/x).
- So dxdy=−xy, which separates as ydy=−xdx.
- Integrate both sides: 2y=−2x+C1⇒x+y=2C1. …
- AP EAPCET 2025Set eng-2025-05-23-FN1 markMCQQ.The general solution of the differential equation dxdy=2xy+x−4y−22xy−4x+y−2 is (A) 5(y−x)+2log(x−2y−2)=c (B) 2(y−x)−5log(x−2y−2)=c (C) 2(y−x)+5log(x−2y−2)=c (D) 5(y−x)−2log(x−2y−2)=c
›Reveal solutionSolution
This tests solving a separable ODE after factoring both the numerator and denominator by grouping. Answer: (C).
Concept and Intuition
A rational-function differential equation like this often hides a separable form once you notice both numerator and denominator can be grouped into two linear-in-x and linear-in-y factors. Spotting the factoring is the whole trick.
Step-by-Step Solution
- Group the numerator: 2xy−4x+y−2=2x(y−2)+1⋅(y−2)=(y−2)(2x+1).
- Group the denominator: 2xy+x−4y−2=x(2y+1)−2(2y+1)=(2y+1)(x−2).
- So dxdy=(x−2)(2y+1)(y−2)(2x+1), which is separable:
y−22y+1dy=x−22x+1dx.
- Rewrite each side to make integration easy:
y−22y+1=y−22(y−2)+5=2+y−25,x−22x+1=2+x−25.
- Integrate both sides: 2y+5log∣y−2∣=2x+5log∣x−2∣+C. …
- AP EAPCET 2024Set eng-2024-05-18-FN1 markMCQQ.The general solution of the differential equation (x−y−1)dy=(x+y+1)dx is (A) tan−1(xy+1)−21log(x2+y2+2y+1)=c (B) (x−y)+log(x+y)=c (C) y2−x2+xy−3y−x=c (D) (x−y−1)2(x+y+1)3=c
›Reveal solutionSolution
A shift of origin to where x+y+1=0 meets x−y−1=0 turns this into a standard homogeneous equation, giving tan−1(xy+1)−21log(x2+y2+2y+1)=c.
Concept and Intuition
Equations of the form dxdy=a′x+b′y+c′ax+by+c that are not homogeneous (because of the constant terms) can be made homogeneous by shifting the origin to the point where the two linear expressions both vanish — this removes the constants and leaves a pure ratio of linear terms in the new variables.
Step-by-Step Solution
- Given (x−y−1)dy=(x+y+1)dx, i.e. dxdy=x−y−1x+y+1.
- Find the point where x+y+1=0 and x−y−1=0 intersect: adding gives 2x=0⇒x=0; then y=−1.
- Shift: let X=x, Y=y+1 (so x=X, y=Y−1). Then x+y+1=X+Y and x−y−1=X−Y.
- The equation becomes dXdY=X−YX+Y — homogeneous of degree 0.
- Let Y=vX, so dXdY=v+XdXdv=1−v1+v.
- So XdXdv=1−v1+v−v=1−v1+v2, giving 1+v21−vdv=XdX.
- Integrate: ∫1+v2dv−∫1+v2vdv=logX+c, i.e. tan−1v−21log(1+v2)=logX+c.
- Substitute back v=Y/X=(y+1)/x: 1+v2=x2x2+(y+1)2, so 21log(1+v2)=21log(x2+(y+1)2)−log∣x∣. …
🎓Unlock everything free for 14 days
- ✓Full step-by-step solutions
- ✓Concept-first explanations
- ✓Methods, shortcuts & mistakes
- ✓PYQ mapping + timed mock tests
Full access for 14 days. No credit card required.