First-Order ODEs with Homogeneous Coefficients

A first-order equation dy/dx=F(x,y)dy/dx=F(x,y) has homogeneous coefficients in this context when its slope function is unchanged by simultaneous scaling: F(λx,λy)=F(x,y)F(\lambda x,\lambda y)=F(x,y). Such a function can be written in terms of the ratio y/xy/x. For example, a quotient of polynomials whose terms have the same total degree often has this property.

Decision and substitution workflow for a first-order equation with a scale-invariant slope.

Decision and substitution workflow for a first-order equation with a scale-invariant slope.


This meaning of homogeneous is different from a homogeneous linear equation. Here the key diagnostic is scale invariance. Constants added to xx or yy, or terms of unequal total degree, generally break it.

The ratio substitution

Set v=y/xv=y/x, so y=vxy=vx. Because vv depends on xx, differentiate with the product rule:


dydx=v+xdvdx.\frac{dy}{dx}=v+x\frac{dv}{dx}.


Substitute both y=vxy=vx and this derivative into the equation. The right side becomes a function of vv alone, leaving a relation of the form x dv/dx=G(v)x\,dv/dx=G(v). Separate vv and xx, integrate, and finally replace vv by y/xy/x. Check any values excluded when dividing by a function of vv.


Worked example: Solve y′=4+y/xy'=4+y/x with y(1)=7y(1)=7. Let y=vxy=vx. Then v+xv′=4+vv+xv'=4+v, so xv′=4xv'=4 and v=4ln⁡∣x∣+Cv=4\ln|x|+C. Back-substitution gives y=x(4ln⁡∣x∣+C)y=x(4\ln|x|+C). The initial condition lies on x>0x>0 and gives C=7C=7, hence y=x(4ln⁡x+7)y=x(4\ln x+7) on that interval.


The solution interval cannot cross x=0x=0 when the original slope contains y/xy/x. This domain restriction remains even if later algebra hides the quotient.

Representative solution curve on a positive domain

Representative solution curve on a positive domain


A common mistake is to write y′=vy'=v after setting y=vxy=vx. That treats vv as constant and loses the essential term xv′xv'. Another mistake is recognizing equal-degree terms but failing to divide numerator and denominator by the same power of xx to expose y/xy/x.

Using the scaling test in the figure, which differential equation has homogeneous coefficients?

Decision and substitution workflow for a first-order equation with a scale-invariant slope.

Decision and substitution workflow for a first-order equation with a scale-invariant slope.

Representative solution curve on a positive domain

Representative solution curve on a positive domain

Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

For y′=x+2y2x−y\displaystyle y'=\frac{x+2y}{2x-y}, find the slope at (x,y)=(2,1)(x,y)=(2,1).

Give your answer as a number.

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

The graph is a representative curve from the family y=x(ln⁡x+C)y=x(\ln x+C) on x>0x>0. Which differential equation has this family as its general solution?

Decision and substitution workflow for a first-order equation with a scale-invariant slope.

Decision and substitution workflow for a first-order equation with a scale-invariant slope.

Representative solution curve on a positive domain

Representative solution curve on a positive domain

Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors