Homogeneous Differential Equation Calculator

Type y' = f(x, y) with f unchanged when x and y are scaled, and optionally an initial condition.

Write y' and y'' (or dy/dx and d^2y/dx^2): y' + 2y = 4 or y'' - 3y' + 2y = 0. Type powers with ^ and functions with brackets: e^x, sin(x), ln(x).

Optional: one condition such as y(0) = 2. Leave empty for the general solution, with its constant C.

Try

Result

You enteredy′=yxy' = \frac{y}{x}

y=C x\displaystyle y = C\,x
Show the work
  1. Type of equation

    The right side of y' depends only on y/x, so the equation is homogeneous.

  2. Homogeneous equation

    Replacing x,yx, y by tx,tytx, ty leaves ff unchanged, so y′=f(x,y)y' = f(x, y) depends only on y/xy/x.

    f(tx,ty)=f(x,y)f(1,v)=v\begin{gathered} f(tx, ty) = f(x, y) \\ f(1, v) = v \end{gathered}
  3. Substitution y = vx

    Put y=vxy = vx, so y′=v+xv′y' = v + xv' and y/x=vy/x = v. The equation becomes xv′=f(1,v)−vxv' = f(1, v) - v.

    Using y=vx,y′=v+x v′y = vx,\quad y' = v + x\,v'

    v+x v′=v  ⇒  x v′=0\begin{aligned} v + x\,v' &= v \;\Rightarrow\; x\,v' \\ &= 0 \end{aligned}
  4. Solve for v

    Here v′=0v' = 0, so vv is constant.

    y=C xy = C\,x
  5. Result

    The general solution, with arbitrary constants.

Worked examples