Q.Solve the following differential equation: (x−y)dy−(x+y)dx=0
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.
If instead the slope comes out as a function of x/y, the mirror substitution x=vy keeps the algebra clean — pick whichever ratio the equation hands you. Also watch for a constant solution coming from F(v)−v=0.
The one insight to carry away: a homogeneous equation reduces to a separable one, because only y/x matters and v=y/x turns that ratio into the new variable.
Homogeneous Differential Equations form a dedicated section of the CBSE Class 12 Differential Equations chapter, where the y = vx substitution method shown here is exactly the NCERT-prescribed technique tested in board exams. "Homogeneous differential equation class 12 examples" is a heavily searched revision topic, and this same substitution trick is useful for differential equation questions in JEE Main.
The key idea is that this is a homogeneous differential equation — the coefficients of dx and dy are homogeneous functions of the same degree (degree 1).
Step 1: Rewrite in standard form
(x−y)dy=(x+y)dx⇒dxdy=x−yx+y
Step 2: Substitute y=vx so dxdy=v+xdxdv.
v+xdxdv=x−vxx+vx=1−v1+v
Step 3: Separate variables
xdxdv=1−v1+v−v=1−v1+v−v(1−v)=1−v1+v2
1+v21−vdv=xdx
Step 4: Integrate both sides
∫1+v21dv−∫1+v2vdv=∫xdx
tan−1v−21log(1+v2)=log∣x∣+C
Replace v=y/x:
tan−1(xy)−21log(1+x2y2)=log∣x∣+C
Simplify the log term:
tan−1(xy)−21log(x2x2+y2)=log∣x∣+C
tan−1(xy)−21log(x2+y2)+log∣x∣=log∣x∣+C
Cancel log∣x∣ on both sides:
tan−1(xy)−21log(x2+y2)=C
The general solution is tan−1(xy)=21log(x2+y2)+C.
This is a homogeneous differential equation — the substitution y=vx (or x=vy) reduces it to a separable form. The general solution is tan−1(xy)=21log(x2+y2)+C.
Why the homogeneous approach works
A differential equation of the form M(x,y)dx+N(x,y)dy=0 is homogeneous if M and N are homogeneous functions of the same degree — meaning each term has the same total power of x and y. Here, every term in (x−y)dy−(x+y)dx=0 is of degree 1: x, y each appear linearly.
The key insight: when both M and N are homogeneous of degree n, the ratio dxdy depends only on xy. That lets us substitute y=vx, turning the equation into one where variables separate cleanly. No guesswork — it’s a standard, reliable method.
Step-by-step solution
1. Rewrite in standard form
Start with
(x−y)dy−(x+y)dx=0
Bring the dx term to the other side:
(x−y)dy=(x+y)dx
Divide through by dx (assuming x=0):
(x−y)dxdy=x+y
So
dxdy=x−yx+y
This is our working form.
2. Confirm homogeneity
The right-hand side is a ratio of two degree‑1 expressions. Divide numerator and denominator by x:
dxdy=1−xy1+xy
It depends only on v=xy — homogeneous, confirmed.
3. Substitute y=vx
Let y=vx, where v is a function of x. Then
dxdy=v+xdxdv
Plug into the equation:
v+xdxdv=1−v1+v
4. Separate variables
Subtract v from both sides:
xdxdv=1−v1+v−v
Combine the right-hand side over a common denominator:
1−v1+v−v=1−v1+v−v(1−v)=1−v1+v−v+v2=1−v1+v2
Thus
xdxdv=1−v1+v2
Separate:
1+v21−vdv=xdx
5. Integrate both sides
Left side:
∫1+v21−vdv=∫1+v21dv−∫1+v2vdv
The first integral is tan−1v. For the second, let u=1+v2, so du=2vdv and vdv=2du:
∫1+v2vdv=21∫udu=21log∣u∣=21log(1+v2)
(Since 1+v2>0, absolute value is unnecessary.)
Right side:
∫xdx=log∣x∣+C
Putting it together:
tan−1v−21log(1+v2)=log∣x∣+C
6. Back-substitute v=xy
tan−1(xy)−21log(1+x2y2)=log∣x∣+C
Simplify the log term:
1+x2y2=x2x2+y2
So
21log(x2x2+y2)=21log(x2+y2)−21log(x2)=21log(x2+y2)−log∣x∣
Substitute back:
tan−1(xy)−[21log(x2+y2)−log∣x∣]=log∣x∣+C
The −log∣x∣ on the left and +log∣x∣ on the right cancel:
tan−1(xy)−21log(x2+y2)=C
7. Rearrange for the final form
tan−1(xy)=21log(x2+y2)+C
(Note: the constant C is arbitrary; its sign is absorbed.)
A common mistake is forgetting to handle the v term when substituting dxdy=v+xdxdv. Skipping that step leads to an incorrect separable equation. Also, when integrating 1+v2v, don’t forget the factor 21.
If you prefer, you can substitute x=vy instead — the algebra is symmetric and leads to the same result. Try it as an exercise.
The general solution is tan−1(xy)=21log(x2+y2)+C.
Method: Homogeneous equation giving an arctan–log answer
Use this for homogeneous equations such as dxdy=x−yx+y, where after y=vx the v-integral splits into an inverse-tangent part and a logarithm part.
Steps
Step 1: Substitute y=vx and simplify
Replace to get v+xdxdv=1−v1+v, then isolate xdxdv=1−v1+v2.
Step 2: Separate and split the numerator
1+v21−vdv=xdx; split the left side into 1+v21−1+v2v.
Step 3: Integrate and back-substitute
These give tan−1v−21log(1+v2)=log∣x∣+C; put v=xy to reach tan−1xy=21log(x2+y2)+C.
When the separated v-side is 1+v21−v, always split it into the arctan piece and the 1+v2v log piece — they integrate differently.
Common Mistakes
Mistake 1: Not splitting 1+v21−v into two integrals
Why it's wrong: it must break into 1+v21 (gives tan−1v) and 1+v2v (gives 21log(1+v2)); treating it as one blocks integration. Correct approach: separate the two pieces.
Mistake 2: Sign error on the logarithm term
Why it's wrong: the middle sign is minus, so you get tan−1v−21log(1+v2); a sign slip changes the final relation. Correct approach: carry the minus through.
Mistake 3: Not converting 1+v2 back to x2x2+y2
Why it's wrong: skipping this leaves the answer in v instead of the clean tan−1xy=21log(x2+y2)+C. Correct approach: back-substitute v=xy and simplify the log.
- COMEDK 2025Set 2025-M1 markMCQQ.The general solution of the differential equation (x−y)dy=(x+y)dx is (A) tan−1(xy)=cx2+y2 (B) tan−1(xy)=x2+y2+c (C) etan−1(xy)=xcx2+y2 (D) etan−1(xy)=cx2+y2
›Reveal solutionSolution
This is a homogeneous differential equation solved by substituting y=vx, separating variables, and integrating; the general solution is etan−1(y/x)=cx2+y2, which matches option (D).
We start by recognizing the structure: the equation (x−y)dy=(x+y)dx is homogeneous — both coefficients are homogeneous functions of degree 1. For such equations, the substitution y=vx (or x=vy) simplifies the relationship between x and y into a separable form.
Why this works:
When we set y=vx, we get dy=vdx+xdv. The original equation becomes an equation in x and v where the variables can be separated. This is the classic method for homogeneous first-order ODEs.
- Rewrite the equation in standard form
(x−y)dy=(x+y)dx
Divide both sides by dx (assuming dx=0):
(x−y)dxdy=x+y
So
dxdy=x−yx+y
- Substitute y=vx Then dxdy=v+xdxdv. The equation becomes:
v+xdxdv=x−vxx+vx=x(1−v)x(1+v)=1−v1+v
- Separate variables Subtract v from both sides:
xdxdv=1−v1+v−v=1−v1+v−v(1−v)=1−v1+v−v+v2=1−v1+v2
So
1+v21−vdv=xdx
- Integrate both sides Left side:
∫1+v21−vdv=∫1+v21dv−∫1+v2vdv
The first integral is tan−1v. For the second, let u=1+v2, du=2vdv, so ∫1+v2vdv=21log(1+v2).
Thus:
tan−1v−21log(1+v2)=log∣x∣+C
- Back-substitute v=y/x
tan−1(xy)−21log(1+x2y2)=log∣x∣+C
Simplify the log term:
1+x2y2=x2x2+y2
So
21log(x2x2+y2)=21[log(x2+y2)−log(x2)]=21log(x2+y2)−log∣x∣
Plugging back:
tan−1(xy)−[21log(x2+y2)−log∣x∣]=log∣x∣+C
The −log∣x∣ on the left and the log∣x∣ on the right cancel:
tan−1(xy)−21log(x2+y2)=C
- Rewrite in exponential form Multiply by 2:
2tan−1(xy)−log(x2+y2)=2C
Let 2C=logc (absorbing constant):
2tan−1(xy)=log(x2+y2)+logc=log(c(x2+y2))
Exponentiate:
e2tan−1(y/x)=c(x2+y2)
Take square root (since c is arbitrary, we can rename c as a new constant c):
etan−1(y/x)=cx2+y2
TipNotice that option (C) has an extra x in the denominator — that would appear if we had not canceled the log∣x∣ terms correctly. The clean cancellation is the key step.
Watch outA common mistake is to forget that log∣x∣ appears on both sides and cancels, leading to an extra factor of x in the final answer. Always check the algebra of the log terms carefully.
✓Final answerThe correct option is (D).
ANSWER: D
- COMEDK 2024Set 2024-A1 markMCQQ.
[!FORMULA] The general solution of the differential equation dxdy=x2+y2xy is
(A) y=ce(2y2x2) (B) y=ce(3y2x2) (C) y=ce(−2y2x2) (D) y=ce(y2x2)›Reveal solutionSolution
The differential equation is homogeneous, so we substitute y=vx to separate variables. Solving yields y=Ce2y2x2, which corresponds to option (A).
We are given:
dxdy=x2+y2xy
Concept & Intuition
The right-hand side is a ratio where both numerator and denominator are homogeneous of degree 2 (each term has total power 2). This suggests the substitution y=vx (or v=y/x), which turns the equation into one where variables separate. The trick is that after substitution, the x and v parts can be isolated, leading to an implicit relation between y and x.
Step-by-step solution
- Rewrite using substitution y=vx Let v=y/x, so y=vx. Then
dxdy=v+xdxdv
Substitute into the DE:
v+xdxdv=x2+(vx)2x(vx)=x2(1+v2)vx2=1+v2v
- Isolate the derivative term Subtract v from both sides:
xdxdv=1+v2v−v=1+v2v−v(1+v2)=1+v2v−v−v3=−1+v2v3
- Separate variables Multiply both sides by dx and divide by the factor involving v:
v31+v2dv=−x1dx
(We assume v=0; v=0 gives y=0, which is a trivial solution but not part of the general family.)
- Integrate both sides Left side:
∫v31+v2dv=∫(v−3+v−1)dv=−2v−2+log∣v∣+C1=−2v21+log∣v∣+C1
Right side:
∫−x1dx=−log∣x∣+C2
Combine constants:
−2v21+log∣v∣=−log∣x∣+C
- Simplify using logarithms Bring the log terms together:
log∣v∣+log∣x∣=2v21+C
That is:
log∣vx∣=2v21+C
But vx=y, so:
log∣y∣=2v21+C
- Replace v back in terms of x and y Since v=y/x, we have v2=y2/x2, so:
2v21=2y2x2
Thus:
log∣y∣=2y2x2+C
- Exponentiate to get the final form
∣y∣=e2y2x2+C=eC⋅e2y2x2
Let c=±eC (absorbing the absolute value), we obtain:
y=ce2y2x2
This matches option (A).
Watch outA common mistake is to forget the v term when differentiating y=vx — you must include v+xdxdv, not just xdxdv. Also, note that the exponent contains y2 in the denominator, so the solution is implicit.
TipThe structure y=cex2/(2y2) is symmetric: swapping x and y would not give the same form, confirming the equation is not symmetric in the variables.
✓Final answerThe correct option is (A).
ANSWER: A
- COMEDK 2024Set 2024-E1 markMCQQ.The general solution of the differential equation xdxdy=y+xtan(xy) is (A) sin(xy)=xC (B) sin(xy)=Cx (C) sin(yx)=Cx (D) sin(yx)=Cy
›Reveal solutionSolution
This is a homogeneous differential equation solved by substituting y=vx. The general solution simplifies to sin(xy)=Cx, which corresponds to option (B).
The key insight is that the equation is homogeneous — every term has the same degree when y and x are considered together. That means we can set y=vx (where v=y/x), which turns the equation into one that separates cleanly. The presence of tan(y/x) is a dead giveaway: it’s a function of the ratio y/x alone.
- Rewrite the equation in standard form Given:
xdxdy=y+xtan(xy)
Divide through by x (assuming x=0):
dxdy=xy+tan(xy)
This is clearly homogeneous: the right-hand side depends only on y/x.
- Substitute y=vx Let v=y/x, so y=vx. Then differentiate:
dxdy=v+xdxdv
Substitute into the equation:
v+xdxdv=v+tan(v)
The v terms cancel on both sides, leaving:
xdxdv=tan(v)
- Separate variables Bring the v-terms to one side and x-terms to the other:
tan(v)dv=xdx
Since tan(v)=cos(v)sin(v), we have tan(v)1=sin(v)cos(v). So:
sin(v)cos(v)dv=xdx
- Integrate both sides The left side integrates to log∣sin(v)∣ (because the derivative of sin(v) is cos(v)):
∫sin(v)cos(v)dv=log∣sin(v)∣+C1
The right side gives:
∫xdx=log∣x∣+C2
Combining constants:
log∣sin(v)∣=log∣x∣+C
where C=C2−C1.
- Solve for v and back-substitute Exponentiate both sides:
∣sin(v)∣=eC∣x∣
Let K=±eC (an arbitrary constant), so:
sin(v)=Kx
Recall v=y/x, so:
sin(xy)=Kx
Renaming the constant K as C (since it’s arbitrary), we get:
sin(xy)=Cx
Watch outA common mistake is to forget that ∫sinvcosvdv=log∣sinv∣, not log∣tanv∣. Also, don’t drop the absolute values — they’re absorbed into the constant later.
TipThe form tan(y/x) is a strong hint to try y=vx. If you see any function of y/x alone, the equation is likely homogeneous.
✓Final answerThe correct option is (B).
ANSWER: B
- COMEDK 2021Set 2021-B1 markMCQQ.The differential equation xdx+ydy=xdy−ydx has solution (A) x2+y2=2ktan−1xy (B) x2+y2=ke2tan−1xy (C) log(x2+y2)=2tan−1xy+c (D) log(x2+y2)=tan−1xy+c
›Reveal solutionSolution
[!TLDR]
Recognise the two sides as exact differentials of x2+y2 and tan−1(y/x); separating and integrating gives log(x2+y2)=2tan−1(y/x)+c.
Concept
This CBSE Class 12 differential-equations problem is solved fastest by spotting standard exact-differential combinations: d(x2+y2)=2(xdx+ydy) and d(tan−1xy)=x2+y2xdy−ydx.
Solution
Start from
xdx+ydy=xdy−ydx.
Write each side as a differential:
21d(x2+y2)=(x2+y2)d(tan−1xy).
Divide both sides by x2+y2:
21⋅x2+y2d(x2+y2)=d(tan−1xy).
Integrate:
21log(x2+y2)=tan−1xy+c1.
Multiplying by 2 gives log(x2+y2)=2tan−1xy+c.
[!ANSWER]
(C) log(x2+y2)=2tan−1xy+c
NoteThis solution was worked out by our team and independently cross-checked by a second solve. The official answer key on record for this question could not be confirmed, so please cross-verify with the official paper where possible.
- KCET 2019Set A-11 markMCQQ.The equation of the curve passing through the point (1,1) such that the slope of the tangent at any point (x,y) is equal to the product of its co-ordinates is (A) 2logx=y2−1 (B) 2logy=x2+1 (C) 2logy=x2−1 (D) 2logx=y2+1
›Reveal solutionSolution
The slope condition gives dxdy=xy, a separable differential equation. Solving with the initial condition (1,1) yields 2logy=x2−1, which is option (C).
The problem gives a geometric condition: at any point (x,y) on the curve, the slope of the tangent equals the product of the coordinates. That is,
dxdy=x⋅y.
This is a first-order differential equation. The key is to recognise it as separable — we can collect all y terms on one side and all x terms on the other, then integrate.
The curve must pass through (1,1), so that fixes the constant of integration. Let’s work through it.
- Set up the differential equation The slope of the tangent at (x,y) is dxdy. The product of the coordinates is xy. So
dxdy=xy.
- Separate the variables Bring y terms to the left and x terms to the right:
ydy=xdx.
(We assume y=0; the point (1,1) ensures y>0 here.)
- Integrate both sides
∫ydy=∫xdx
gives
log∣y∣=2x2+C.
Since y is positive near (1,1), we can drop the absolute value:
logy=2x2+C.
- Apply the initial condition The curve passes through (1,1), so x=1, y=1:
log1=212+C⇒0=21+C⇒C=−21.
- Write the particular solution Substitute C=−21:
logy=2x2−21=2x2−1.
Multiply both sides by 2:
2logy=x2−1.
This matches option (C) exactly.
Watch outA common mistake is to write dxdy=x+y (the sum) instead of the product xy. Read the phrase “product of its co-ordinates” carefully — it means multiplication, not addition.
TipYou can quickly verify the answer: differentiate 2logy=x2−1 implicitly — you get y2dxdy=2x, so dxdy=xy, which is exactly the given slope condition. And (1,1) satisfies 2log1=0=12−1, so it works.
✓Final answerThe correct option is (C): 2logy=x2−1.
- COMEDK 2021Set 20211 markMCQQ.The solution of the differential equation ydxdy=xx2y2+ϕ′(x2y2)ϕ(x2y2) is (where, C is a constant) (A) ϕ(x2y2)=Cx (B) xϕ(x2y2)=C (C) ϕ(x2y2)=Cx2 (D) x2ϕ(x2y2)=C
›Reveal solutionSolution
Integrate: log|phi(v)| = 2 log|x| + log C => phi(v) = C x^2 => phi(y^2/x^2) = C x^2.
Concept: substitute v = y^2/x^2 to reduce to a separable equation.
Given: y dy/dx = x [ y^2/x^2 + phi(v)/phi'(v) ], where v = y^2/x^2.
From v = y^2/x^2 we get y^2 = v x^2. Differentiate with respect to x:
2y (dy/dx) = x^2 (dv/dx) + 2vx
=> y (dy/dx) = (x^2/2)(dv/dx) + vx.
Substitute into the given equation:
(x^2/2)(dv/dx) + vx = xv + x * phi(v)/phi'(v)
=> (x^2/2)(dv/dx) = x * phi(v)/phi'(v)
=> [phi'(v)/phi(v)] dv = 2 dx/x.
Integrate:
log|phi(v)| = 2 log|x| + log C
=> phi(v) = C x^2
=> phi(y^2/x^2) = C x^2.
✓Final answerThe correct option is (C) — ϕ(x2y2)=Cx2
ANSWER: C
- COMEDK 2024Set 2024-M1 markMCQQ.Which of the following is not a homogenous function of x and y (A) sinx−cosy (B) cos2(xy)+xy (C) x2+2xy (D) 2x−y
›Reveal solutionSolution
A homogeneous function satisfies f(tx,ty)=tnf(x,y) for some n. Checking each option shows that sinx−cosy fails this test, so it is not homogeneous.
Concept & Intuition
A function of two variables is homogeneous of degree n if scaling both inputs by the same factor t multiplies the output by tn. This is a powerful symmetry property: the function’s form depends only on the ratio of the variables (like y/x) when n=0, or more generally on powers of t times that ratio. To test homogeneity, replace x with tx and y with ty, then see if you can factor out a single power of t. If you cannot — because the function involves non-polynomial terms like sin or cos of the original variables (not their ratio) — it is not homogeneous.
Step-by-step reasoning
- Option (A): f(x,y)=sinx−cosy Replace x with tx and y with ty:
f(tx,ty)=sin(tx)−cos(ty)
There is no way to factor out a common power of t because sin(tx)=tnsinx for any constant n (except trivially t=1). The function does not scale uniformly. Hence, this is not homogeneous.
- Option (B): f(x,y)=cos2(xy)+xy Replace:
f(tx,ty)=cos2(txty)+txty=cos2(xy)+xy
The t cancels completely, so f(tx,ty)=t0f(x,y). This is homogeneous of degree 0.
- Option (C): f(x,y)=x2+2xy Replace:
f(tx,ty)=(tx)2+2(tx)(ty)=t2x2+2t2xy=t2(x2+2xy)=t2f(x,y)
This is homogeneous of degree 2.
- Option (D): f(x,y)=2x−y Replace:
f(tx,ty)=2(tx)−(ty)=t(2x−y)=t1f(x,y)
This is homogeneous of degree 1.
Watch outA common mistake is to think that any function with sin or cos is automatically not homogeneous. But sin(y/x) is homogeneous (degree 0) because the argument is a ratio. The problem here is that sinx uses the unscaled variable, not a ratio.
TipIf a function can be written entirely in terms of y/x (or x/y), it is homogeneous of degree 0. If it is a sum of terms each of total degree n in x and y, it is homogeneous of degree n.
✓Final answerThe correct option is (A).
ANSWER: A
- KCET 2023Set A-21 markMCQQ.The degree of the differential equation 1+(dxdy)2+(dx2d2y)2=3dx2d2y+1 is (A) 3 (B) 1 (C) 2 (D) 6
›Reveal solutionSolution
Remove the radical by cubing both sides, then read off the highest power of the highest-order derivative.
1. The definition being tested
The degree of a differential equation is the power of the highest-order derivative, after the equation has been made free of radicals and fractional powers in the derivatives. If it cannot be made polynomial in the derivatives, the degree is not defined. So the cube root here must be cleared first — you may not read the degree off the equation as printed.
2. The equation
1+(dxdy)2+(dx2d2y)2=3dx2d2y+1
3. Cube both sides
[1+(dxdy)2+(dx2d2y)2]3=dx2d2y+1
This is now a polynomial in dxdy and dx2d2y.
4. Identify order and degree
- Order = 2 (the highest derivative present is dx2d2y).
- On expanding the left side, the largest power of dx2d2y comes from the term
[(dx2d2y)2]3=(dx2d2y)6
No other term can beat it, and it cannot cancel (all terms on the left are added, not subtracted). Hence the degree is 6.
A common trap is to answer 2 (the power of y′′ as printed) or 3 (the index of the root) — both skip the compulsory step of clearing the radical.
✓Final answerThe correct option is (D) — 6.
ANSWER: D
🎓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.