Q.Solve the following differential equation: xdy−ydx=x2+y2dx
🔒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 key idea is that the equation is homogeneous — it can be written in the form dxdy=f(xy).
Step 1: Rewrite the equation.
Divide through by dx (assuming x=0):
xdxdy−y=x2+y2⇒dxdy=xy+x2+y2.
Step 2: Substitute y=vx, so dxdy=v+xdxdv.
The equation becomes:
v+xdxdv=xvx+x2+v2x2=v+1+v2.
Step 3: Simplify and separate variables:
xdxdv=1+v2⇒1+v2dv=xdx. …
This is a homogeneous differential equation. Substituting y=vx reduces it to a separable form. The general solution is y+x2+y2=Cx2.
1. Why this is a homogeneous equation
A first-order differential equation is called homogeneous if it can be written in the form
dxdy=F(xy).
Here, the given equation is:
xdy−ydx=x2+y2dx
Divide through by dx:
xdxdy−y=x2+y2
So
dxdy=xy+x2+y2
The right-hand side depends only on y/x because:
xy+x2+y2=xy+1+(xy)2
That’s exactly F(y/x). So the substitution y=vx will work.
Always check homogeneity by rewriting the RHS in terms of v=y/x. If you can, the substitution is valid.
2. Substitute y=vx
Let y=vx, where v is a function of x. Then:
dxdy=v+xdxdv
Plug into the equation:
v+xdxdv=xvx+x2+v2x2
Simplify the RHS:
v+xdxdv=v+1+v2
Cancel v from both sides:
xdxdv=1+v2
3. Separate variables
Now we have a separable equation:
1+v2dv=xdx
Integrate both sides.
∫1+v2dv=sinh−1vorlog(v+1+v2)+C
We’ll use the logarithmic form because it’s more convenient later.
4. Integrate
Left side:
∫1+v2dv=log(v+1+v2)
Right side:
∫xdx=log∣x∣+logC …
Method: Homogeneous equation with a square root (x2+y2)
Use this for xdy−ydx=x2+y2dx, where the root is homogeneous of degree 1, so y=vx reduces it to a 1+v2dv integral.
Steps
Step 1: Solve for dxdy and substitute y=vx
Rearrange to dxdy=xy+x2+y2, then substitute; the root becomes x1+v2 (for x>0).
Step 2: Cancel and separate
The v cancels, leaving xdxdv=1+v2, i.e. 1+v2dv=xdx. …
Common Mistakes
Mistake 1: Pulling x out of x2+y2 as x instead of ∣x∣
Why it's wrong: x2+y2=∣x∣1+v2; the sign of x matters for the domain. Correct approach: state the branch (e.g. x>0) so x2+y2=x1+v2.
Mistake 2: Misremembering ∫1+v2dv …
- 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 …
- 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 …
- 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. …
- 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 …
- 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) …
- 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:
- 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). …
- 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) …
🎓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.