Mathwords logoMathwords

Homogeneous Differential Equations — Definition, Formula & Examples

A homogeneous differential equation is a first-order ODE that can be written in the form dydx=f ⁣(yx)\frac{dy}{dx} = f\!\left(\frac{y}{x}\right), meaning the right-hand side depends only on the ratio y/xy/x. The term also applies to linear differential equations where every term involves the unknown function or its derivatives (no standalone constant or forcing term).

A first-order ODE M(x,y)dx+N(x,y)dy=0M(x,y)\,dx + N(x,y)\,dy = 0 is called homogeneous if MM and NN are homogeneous functions of the same degree, i.e., M(tx,ty)=tnM(x,y)M(tx, ty) = t^n M(x,y) and N(tx,ty)=tnN(x,y)N(tx, ty) = t^n N(x,y) for some integer nn. Separately, a linear ODE an(x)y(n)++a1(x)y+a0(x)y=g(x)a_n(x)y^{(n)} + \cdots + a_1(x)y' + a_0(x)y = g(x) is homogeneous when g(x)=0g(x) = 0.

Key Formula

Substitution: v=yx,y=vx,dydx=v+xdvdx\text{Substitution: } v = \frac{y}{x}, \quad y = vx, \quad \frac{dy}{dx} = v + x\,\frac{dv}{dx}
Where:
  • vv = New dependent variable equal to y/x
  • xx = Independent variable
  • yy = Original dependent variable

How It Works

For a first-order homogeneous ODE, you solve it by substituting v=y/xv = y/x, so y=vxy = vx and dydx=v+xdvdx\frac{dy}{dx} = v + x\frac{dv}{dx}. This substitution transforms the equation into a separable ODE in vv and xx, which you can integrate directly. After finding v(x)v(x), you substitute back v=y/xv = y/x to get the solution in terms of yy and xx. For a homogeneous linear ODE (where g(x)=0g(x) = 0), you look for solutions using characteristic equations or other standard techniques depending on the order.

Worked Example

Problem: Solve the differential equation dydx=x2+y22xy\frac{dy}{dx} = \frac{x^2 + y^2}{2xy}.
Step 1: Verify homogeneity: Replace xx with txtx and yy with tyty in the numerator and denominator. The numerator becomes t2x2+t2y2=t2(x2+y2)t^2x^2 + t^2y^2 = t^2(x^2+y^2) and the denominator becomes 2(tx)(ty)=2t2xy2(tx)(ty) = 2t^2xy. Both are degree 2, so the equation is homogeneous.
Step 2: Substitute v = y/x: Let y=vxy = vx, so dy/dx=v+xdv/dxdy/dx = v + x\,dv/dx. Rewrite the right side using y=vxy = vx.
v+xdvdx=x2+v2x22x(vx)=1+v22vv + x\frac{dv}{dx} = \frac{x^2 + v^2x^2}{2x(vx)} = \frac{1 + v^2}{2v}
Step 3: Separate variables: Isolate xdv/dxx\,dv/dx on one side.
xdvdx=1+v22vv=1+v22v22v=1v22vx\frac{dv}{dx} = \frac{1+v^2}{2v} - v = \frac{1+v^2 - 2v^2}{2v} = \frac{1-v^2}{2v}
Step 4: Integrate both sides: Separate and integrate. The left side uses partial fractions or a direct substitution.
2v1v2dv=dxx    ln1v2=lnx+C1\int \frac{2v}{1-v^2}\,dv = \int \frac{dx}{x} \implies -\ln|1-v^2| = \ln|x| + C_1
Step 5: Back-substitute v = y/x: Replace vv with y/xy/x and simplify. Exponentiate both sides to remove logarithms.
11y2/x2=Ax    x2x2y2=Ax    x2y2=Cx\frac{1}{|1 - y^2/x^2|} = A|x| \implies \frac{x^2}{|x^2 - y^2|} = A|x| \implies x^2 - y^2 = Cx
Answer: The general solution is x2y2=Cxx^2 - y^2 = Cx, where CC is an arbitrary constant.

Another Example

Problem: Solve dydx=yx+1\frac{dy}{dx} = \frac{y}{x} + 1.
Step 1: Recognize the form: Rewrite as dy/dx=f(y/x)dy/dx = f(y/x) where f(v)=v+1f(v) = v + 1. This depends only on y/xy/x plus a constant adjustment, confirming homogeneity after rearranging: dydx=y+xx\frac{dy}{dx} = \frac{y + x}{x}. Both numerator and denominator are degree 1.
Step 2: Substitute v = y/x: With y=vxy = vx and dy/dx=v+xdv/dxdy/dx = v + x\,dv/dx:
v+xdvdx=v+1    xdvdx=1v + x\frac{dv}{dx} = v + 1 \implies x\frac{dv}{dx} = 1
Step 3: Separate and integrate: This is now straightforward to integrate.
dv=dxx    v=lnx+C\int dv = \int \frac{dx}{x} \implies v = \ln|x| + C
Step 4: Back-substitute: Replace vv with y/xy/x.
yx=lnx+C    y=xlnx+Cx\frac{y}{x} = \ln|x| + C \implies y = x\ln|x| + Cx
Answer: The general solution is y=xlnx+Cxy = x\ln|x| + Cx.

Why It Matters

Homogeneous differential equations appear frequently in a first course in ordinary differential equations (ODE), which is required for most engineering, physics, and applied mathematics programs. The substitution technique taught here builds the foundation for more advanced methods like variation of parameters. Recognizing homogeneity is also essential in modeling problems involving scaling, such as fluid dynamics and heat transfer.

Common Mistakes

Mistake: Confusing the two meanings of 'homogeneous' — applying the v=y/xv = y/x substitution to a homogeneous linear ODE like y+3y+2y=0y'' + 3y' + 2y = 0.
Correction: The v=y/xv = y/x substitution only applies to first-order equations where MM and NN are homogeneous functions of the same degree. For linear homogeneous ODEs, use characteristic equations or other appropriate methods.
Mistake: Forgetting to substitute back from vv to y/xy/x after integrating, leaving the answer in terms of vv and xx.
Correction: Always replace vv with y/xy/x in your final answer so the solution is expressed in the original variables yy and xx.