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.
- CBSE 2026Set 65/3/11 markMCQQ.dxdy=F(x,y) will be a homogeneous differential equation for which of the following functions?(i) F(x,y)=3x+2y(ii) F(x,y)=sinxy+logy−logx(iii) F(x,y)=ey/x+1(iv) F(x,y)=x2+y2−y (A)(i) and(ii) (B) (i),(ii) and(iii) (C) (ii),(iii) and(iv) (D)(ii) and (iii)
›Reveal solutionSolution
A differential equation dxdy=F(x,y) is homogeneous exactly when F is homogeneous of degree zero — meaning F(tx,ty)=F(x,y) for all t>0, which is equivalent to F being expressible purely as a function of y/x. Only options (ii) and (iii) satisfy this, so the correct choice is (D).
The idea is simple: a homogeneous differential equation is one where the right-hand side F(x,y) doesn't change if you scale both x and y by the same factor. Why does that matter? Because if F has that property, you can substitute y=vx and turn the equation into one in v and x alone — a separable equation you can actually solve. The test is clean: check whether F(tx,ty)=F(x,y) for any t>0.
Let's go through each option.
- Option (i): F(x,y)=3x+2y Replace x with tx and y with ty:
F(tx,ty)=3(tx)+2(ty)=t(3x+2y)=t⋅F(x,y)
This is t times the original, not equal to it — unless t=1. So F is homogeneous of degree 1, not degree 0. It also cannot be written as a function of y/x alone (try it: 3x+2y=x(3+2(y/x)) still has an x factor outside). So this is not homogeneous for the purpose of dxdy=F(x,y).
- Option (ii): F(x,y)=sinxy+logy−logx First simplify the log terms: logy−logx=logxy. So
F(x,y)=sinxy+logxy
This is already written purely in terms of y/x. That's a dead giveaway — it's homogeneous of degree 0. Check formally:
F(tx,ty)=sintxty+logtxty=sinxy+logxy=F(x,y)
The t cancels completely. So this is homogeneous.
- Option (iii): F(x,y)=ey/x+1 Again, this is already a function of y/x alone.
F(tx,ty)=ety/(tx)+1=ey/x+1=F(x,y)
The t cancels. This is homogeneous.
- Option (iv): F(x,y)=x2+y2−y Test it:
F(tx,ty)=(tx)2+(ty)2−ty=t2(x2+y2)−ty=tx2+y2−ty=t(x2+y2−y)=t⋅F(x,y)
This is homogeneous of degree 1, not degree 0. The t factor does not cancel. So it is not homogeneous for dxdy=F(x,y).
Watch outThe trap in (iv) is that x2+y2−y is homogeneous — but of degree 1, not degree 0. Many students see "homogeneous" and stop there. For dxdy=F(x,y), the required degree is exactly zero. Degree 1 doesn't qualify.
So only (ii) and (iii) pass the test.
✓Final answerThe correct option is (D) — only (ii) and (iii).
- CBSE 2024Set 65/2/11 markMCQQ.The differential equation dxdy=F(x,y) will not be a homogeneous differential equation, if F(x,y) is: (A) cosx−sin(xy) (B) xy (C) xyx2+y2 (D) cos2(yx)
›Reveal solutionSolution
A differential equation dxdy=F(x,y) is homogeneous if F(x,y) is a homogeneous function of degree zero. This means F(λx,λy)=F(x,y) for any non-zero λ. Option (A) contains a term cosx, which prevents F(x,y) from being homogeneous of degree zero, making it the correct answer.
To determine if a differential equation dxdy=F(x,y) is homogeneous, we need to understand what a homogeneous function is.
A function F(x,y) is called a homogeneous function of degree n if, for any non-zero constant λ, the following condition holds:
F(λx,λy)=λnF(x,y)
For a differential equation dxdy=F(x,y) to be classified as a homogeneous differential equation, the function F(x,y) must be a homogeneous function of degree zero. This means that when we replace x with λx and y with λy, the function F(x,y) must remain unchanged:
F(λx,λy)=λ0F(x,y)=F(x,y)
This property is crucial because it allows us to transform the differential equation into a separable form by substituting y=vx (or x=vy). If F(x,y) is homogeneous of degree zero, it can always be expressed as a function of xy (or yx). For example, if F(λx,λy)=F(x,y), we can choose λ=x1 (assuming x=0), then F(x,y)=F(x1⋅x,x1⋅y)=F(1,xy), which is clearly a function of xy.
Let's examine each given option to see which F(x,y) is not homogeneous of degree zero.
- Option (A): F(x,y)=cosx−sin(xy) We test for homogeneity of degree zero by replacing x with λx and y with λy:
F(λx,λy)=cos(λx)−sin(λxλy)
F(λx,λy)=cos(λx)−sin(xy)
For this to be equal to $F(x, y)$, we would need $\cos(\lambda x) = \cos x$. This is generally not true for arbitrary $\lambda \neq 1$. For instance, if $\lambda = 2$, then $\cos(2x) \neq \cos x$. Therefore, $F(x, y) = \cos x - \sin\left(\dfrac{y}{x}\right)$ is **not** a homogeneous function of degree zero. This means the differential equation $\frac{dy}{dx} = \cos x - \sin\left(\dfrac{y}{x}\right)$ is not homogeneous.2. Option (B): F(x,y)=xy
Replace x with λx and y with λy:
F(λx,λy)=λxλy=xy
This is equal to $F(x, y)$. Thus, $F(x, y) = \dfrac{y}{x}$ is a homogeneous function of degree zero.3. Option (C): F(x,y)=xyx2+y2
Replace x with λx and y with λy:
F(λx,λy)=(λx)(λy)(λx)2+(λy)2
F(λx,λy)=λ2xyλ2x2+λ2y2
F(λx,λy)=λ2xyλ2(x2+y2)
F(λx,λy)=xyx2+y2
This is equal to $F(x, y)$. Thus, $F(x, y) = \dfrac{x^2 + y^2}{xy}$ is a homogeneous function of degree zero. Alternatively, we can express it as a function of $\frac{y}{x}$:F(x,y)=x2(y/x)x2(1+(y/x)2)=y/x1+(y/x)2
This clearly shows it's a function of $\frac{y}{x}$.4. Option (D): F(x,y)=cos2(yx)
Replace x with λx and y with λy:
F(λx,λy)=cos2(λyλx)
F(λx,λy)=cos2(yx)
This is equal to $F(x, y)$. Thus, $F(x, y) = \cos^2\left(\dfrac{x}{y}\right)$ is a homogeneous function of degree zero.From our analysis, only option (A) does not satisfy the condition for being a homogeneous function of degree zero.
✓Final answerThe differential equation dxdy=F(x,y) will not be a homogeneous differential equation if F(x,y) is (A) cosx−sin(xy).
- CBSE 2024Set 65/3/11 markMCQQ.xlogxdxdy+y=2logx is an example of a: (A) variable separable differential equation (B) homogeneous differential equation (C) first order linear differential equation (D) differential equation whose degree is not defined
›Reveal solutionSolution
The given equation can be rearranged into the standard linear form dxdy+P(x)y=Q(x), making it a first order linear differential equation. The correct option is (C).
Let’s understand why this equation fits the first order linear category, and why it does not fit the others.
A differential equation is called first order linear if it can be written in the form:
dxdy+P(x)y=Q(x)
where P(x) and Q(x) are functions of x only. The key idea is that y and dxdy appear only to the first power, and there is no product like y⋅dxdy or y2.
Now, look at the given equation:
xlogxdxdy+y=2logx
- Isolate dxdy Divide the entire equation by xlogx (provided x>0 and x=1, which is the natural domain for logx):
dxdy+xlogx1y=xlogx2logx
- Simplify the right-hand side Since xlogx2logx=x2 (cancelling logx), we get:
dxdy+xlogx1y=x2
- Identify the form This is exactly dxdy+P(x)y=Q(x) with:
P(x)=xlogx1,Q(x)=x2
Both are functions of x only, and y appears linearly. So it is a first order linear differential equation.
Now, why are the other options wrong?
Watch outCommon confusion
- Variable separable: For separability, we need to write it as f(y)dy=g(x)dx. Here, y and dxdy are mixed — you cannot separate y from x completely because of the term xlogx1y. So it is not separable.
- Homogeneous: A homogeneous differential equation (in the sense of degree) requires every term to have the same total degree in x and y after rewriting dxdy as a function of xy. Here, logx is not a polynomial in x and y, so the concept of degree does not apply. It is not homogeneous.
- Degree not defined: The degree of a differential equation is defined only when it is a polynomial in derivatives. This equation is already a polynomial in dxdy (first power), so its degree is 1 — it is defined. So option (D) is false.
TipQuick check
If you see a term like P(x)y added to dxdy, it is almost always a first order linear equation. The giveaway here is the +y term on the left.
✓Final answerThe correct option is (C) first order linear differential equation.
- CBSE 2023Set ANNUAL1 markMCQQ.A homogeneous differential equation of the form dxdy=g(xy) can be solved by making the substitution(a) y=vx(b) v=xy(c) x=vy(d) y=v
›Reveal solutionSolution
A homogeneous equation dxdy=g(xy) is solved by the standard substitution y=vx.
For a homogeneous differential equation of the form
dxdy=g(xy)
the standard method is to substitute y=vx, where v is a function of x. Then
dxdy=v+xdxdv
Substituting turns the equation into v+xdxdv=g(v), which is variable-separable in v and x, and can then be integrated.
✓Final answerOption (a): y=vx
- CBSE 2019Set ANNUAL1 markMCQQ.Which of the following is a homogeneous differential equation?(a) x2ydx−(x3+y3)dy=0(b) (xy)dx−(x4+y4)dy=0(c) (2x+y−3)dy−(x+2y−3)dx=0(d) (x−y)dy=(x2+y+1)dx
›Reveal solutionSolution
Option (a) is homogeneous (both coefficient functions are degree 3).
A differential equation Mdx+Ndy=0 is homogeneous when M and N are homogeneous functions of the same degree. In (a), M=x2y is degree 3 and N=x3+y3 is also degree 3 — so it can be written as dxdy=F(xy). The other options mix different degrees, so they are not homogeneous.
✓Final answer(a) x2ydx−(x3+y3)dy=0.
🎓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.