Q.Show that the differential equation xcos(xy)dxdy=ycos(xy)+x is homogeneous and solve it.
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.
Concept: Homogeneous Differential Equation — an equation of the form dxdy=F(xy).
Rewrite the given equation:
xcos(xy)dxdy=ycos(xy)+x
Divide through by xcos(xy) (assuming cos(xy)=0):
dxdy=xy+cos(xy)1=xy+sec(xy)
The right-hand side is a function of xy alone, so the equation is homogeneous.
Substitute y=vx, so dxdy=v+xdxdv:
v+xdxdv=v+secv⇒xdxdv=secv
Separate variables:
cosvdv=xdx
Integrate:
∫cosvdv=∫xdx⇒sinv=log∣x∣+C
Replace v=xy:
sin(xy)=log∣x∣+C
The general solution is sin(xy)=log∣x∣+C.
This is a homogeneous differential equation because it can be written in the form dxdy=F(y/x). The substitution y=vx reduces it to a separable equation. The solution is sin(xy)=log∣x∣+C.
Why This Approach Works
A differential equation is homogeneous if every term in the numerator and denominator (when written as dxdy=N(x,y)M(x,y)) has the same total degree in x and y. The key property: such equations can be transformed by the substitution y=vx, where v=y/x. This works because the function depends only on the ratio y/x, not on x and y separately. The substitution turns the equation into one where variables separate cleanly — you get v on one side and x on the other, and then integrate.
Let’s see this in action.
Step-by-Step Solution
1. Rewrite the equation in standard form.
We start with:
xcos(xy)dxdy=ycos(xy)+x
Divide both sides by xcos(y/x) (assuming x=0 and cos(y/x)=0 for now):
dxdy=xcos(y/x)ycos(y/x)+x
Split the fraction:
dxdy=xcos(y/x)ycos(y/x)+xcos(y/x)x
Simplify:
dxdy=xy+cos(y/x)1
So:
dxdy=xy+sec(xy)
The right-hand side is a function of y/x only — that’s the hallmark of a homogeneous equation. No x or y appears alone; everything is in the ratio.
2. Confirm homogeneity.
A function f(x,y) is homogeneous of degree n if f(tx,ty)=tnf(x,y). Here, the right-hand side is xy+sec(y/x). Replace x with tx and y with ty:
txty+sec(txty)=xy+sec(xy)
No factor of t appears — the function is homogeneous of degree 0. This confirms the substitution y=vx will work.
3. Apply the substitution y=vx.
Let v=y/x, so y=vx. Differentiate with respect to x:
dxdy=v+xdxdv
Substitute into the equation dxdy=v+secv:
v+xdxdv=v+secv
Cancel v from both sides:
xdxdv=secv
4. Separate variables.
Multiply both sides by dx and divide by xsecv (or equivalently, multiply by cosv):
cosvdv=xdx
Now the variables are separated — v on the left, x on the right.
The cancellation of v is not a coincidence — it happens because the original equation was homogeneous. If you ever try this substitution and v doesn’t cancel, check your algebra or whether the equation is truly homogeneous.
5. Integrate both sides.
Integrate:
∫cosvdv=∫xdx
We get:
sinv=log∣x∣+C
where C is the constant of integration.
6. Substitute back v=y/x.
Replace v:
sin(xy)=log∣x∣+C
This is the general solution of the differential equation.
We assumed cos(y/x)=0 when dividing. If cos(y/x)=0, then y/x=π/2+nπ, which gives y=(π/2+nπ)x. Substituting into the original equation shows these are also solutions (they satisfy dy/dx=y/x, which matches the original after simplification). So the complete solution includes these singular solutions, but the general solution above covers most cases.
The general solution is sin(xy)=log∣x∣+C, with the singular solutions y=(2π+nπ)x for integer n.
Method: Homogeneous equation, isolate F(y/x) then substitute
Use this for equations where trigonometric or other functions of xy appear but every term still has the same degree, so the equation is homogeneous.
Steps
Step 1: Rearrange into dxdy=F(xy).
Divide through by whatever multiplies dxdy and simplify until the right side is a function of the single ratio xy. This confirms homogeneity of degree 0.
Step 2: Put y=vx, dxdy=v+xdxdv.
Because the right side is exactly F(v), the plain v on the left usually cancels a matching v on the right, leaving a clean xdxdv=(function of v).
Step 3: Separate and integrate.
Move the v-part to the left and dvdx-part to the right, then integrate both standard pieces.
Step 4: Substitute v=xy to express the answer in the original variables.
Common Mistakes
Mistake 1: Not isolating dxdy before substituting.
Why it's wrong: you must first divide by xcos(y/x) to reach dxdy=xy+sec(xy); substituting into the un-simplified form is messy and error-prone. Correct approach: get the clean F(y/x) first.
Mistake 2: Missing the cancellation of v.
Why it's wrong: after y=vx the equation becomes v+xdxdv=v+secv, and the v terms cancel to leave xdxdv=secv. Forgetting this leaves an unsolvable-looking equation. Correct approach: cancel v, then separate as cosvdv=xdx.
Mistake 3: Leaving the answer in v.
Why it's wrong: the solution must be in x and y. Correct approach: after integrating to sinv=log∣x∣+C, substitute v=xy.
- 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 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 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 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.
- 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 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.
- 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.