Q.Solve the following differential equation: y′=xx+y
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 first-order Initial Value Problem (though no initial condition is given here, so we find the general solution). The equation is not separable in its current form, but it can be rewritten as a linear ODE.
Step 1: Rewrite the equation.
y′=xx+y=1+xy
So y′−x1y=1.
Step 2: Identify the integrating factor.
Here P(x)=−x1, so the integrating factor is
μ(x)=e∫−x1dx=e−logx=x1.
Step 3: Multiply through and integrate.
x1y′−x21y=x1
The left side is dxd(xy).
Integrate: xy=∫x1dx=log∣x∣+C.
Step 4: Solve for y.
y=xlog∣x∣+Cx.
The general solution is y=xlog∣x∣+Cx.
This is a first-order linear ODE that simplifies to y′−xy=1. Using an integrating factor μ=x1, the general solution is y=xlog∣x∣+Cx.
The key here is to recognize that the right-hand side xx+y can be split into two simpler terms: 1+xy. That immediately reveals the equation is not separable in its current form, but it is linear in y.
An Initial Value Problem (IVP) isn’t given here — we’re just solving the differential equation generally. But the approach for a first-order linear ODE is always the same: rewrite it as y′+P(x)y=Q(x), then multiply through by an integrating factor μ(x)=e∫P(x)dx to make the left side a perfect derivative.
Let’s walk through it.
- Rewrite the equation in standard linear form. Start with y′=xx+y=1+xy. Bring the y term to the left:
y′−xy=1.
So here P(x)=−x1 and Q(x)=1.
- Find the integrating factor. Compute ∫P(x)dx=∫−x1dx=−log∣x∣=log∣x∣−1. Then the integrating factor is:
μ(x)=e∫Pdx=elog∣x∣−1=∣x∣1.
For simplicity, we usually take μ(x)=x1 (assuming x>0; the absolute value can be handled later with a sign).
Integrating factor for y′−xy=1 is μ(x)=x1.
- Multiply the entire equation by μ(x).
x1y′−x21y=x1.
Notice the left side is exactly the derivative of xy:
dxd(xy)=x1y′−x2y.
So the equation becomes:
dxd(xy)=x1.
- Integrate both sides.
xy=∫x1dx=log∣x∣+C,
where C is the constant of integration.
- Solve for y. Multiply through by x:
y=xlog∣x∣+Cx.
If you ever forget the integrating factor method, you can also treat this as a homogeneous equation (set y=vx) — try it: y′=v+xv′, then v+xv′=1+v gives xv′=1, leading to the same result.
A common mistake is to forget the absolute value inside log∣x∣ when integrating x1. For x>0, you can drop the absolute value; for x<0, the sign is absorbed into the constant C anyway. But in exams, writing log∣x∣ is safest.
The general solution is y=xlog∣x∣+Cx, where C is an arbitrary constant.
Method: y=vx for a homogeneous (initial-value) equation
Use this for equations like y′=xx+y=1+xy that depend only on xy; the y=vx substitution reduces them to a simple separable equation.
Steps
Step 1: Substitute y=vx
With dxdy=v+xdxdv and the right side =1+v, the equation becomes v+xdxdv=1+v.
Step 2: Cancel and separate
The v terms cancel, leaving xdxdv=1, i.e. dv=xdx.
Step 3: Integrate and restore y
Integrate to v=log∣x∣+C, then y=vx=xlog∣x∣+Cx. Apply any initial condition to fix C.
Watch for the v on both sides cancelling — that is what collapses a homogeneous equation into a one-line integration here.
Common Mistakes
Mistake 1: Missing the cancellation of v
Why it's wrong: after substituting, both sides carry v; cancelling gives the simple xdxdv=1. Failing to cancel over-complicates it. Correct approach: subtract v from both sides.
Mistake 2: Forgetting the modulus in log∣x∣
Why it's wrong: the integral of x1 is log∣x∣; dropping the modulus loses part of the domain. Correct approach: write v=log∣x∣+C.
Mistake 3: Not restoring y=vx
Why it's wrong: the solution must be in x,y: y=xlog∣x∣+Cx. Correct approach: multiply v back by x.
- 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 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
- 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 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.
🎓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.