Differential Equations · Undergraduate

Substitutions: Bernoulli and Homogeneous Equations

Quick answer

Some first-order equations become solvable after a change of variable. A Bernoulli equation y′ + P(x)y = Q(x)yⁿ turns linear under v = y^(1−n), with v′ + (1 − n)P v = (1 − n)Q. A homogeneous equation y′ = F(y/x), where the right side depends only on the ratio y/x, turns separable under v = y/x, since then y = vx and y′ = v + xv′. Solve for v, then substitute back to get y.

What you'll learn

  • Recognize a Bernoulli equation and choose v = y^(1−n)
  • Reduce a Bernoulli equation to a linear equation
  • Recognize a homogeneous equation y′ = F(y/x)
  • Reduce a homogeneous equation to a separable one with v = y/x

Two substitutions

TypeFormSubstitutionResult
Bernoulliy′+P(x)y=Q(x)yny' + P(x)y = Q(x)y^nv=y1−nv = y^{1 - n}linear in vv
homogeneousy′=F ⁣(yx)y' = F\!\left(\tfrac{y}{x}\right)v=yxv = \tfrac{y}{x}separable in vv, xx

For a Bernoulli equation, the new unknown satisfies

v′+(1−n)P(x) v=(1−n)Q(x)v' + (1 - n)P(x)\,v = (1 - n)Q(x)

which is a first-order linear equation. For a homogeneous equation, y=vxy = vx gives y′=v+xv′y' = v + xv', and the equation becomes xv′=F(v)−vxv' = F(v) - v.

Why the Bernoulli substitution works

Divide y′+Py=Qyny' + Py = Qy^n by yny^n: y−ny′+Py1−n=Qy^{-n}y' + Py^{1 - n} = Q. Now v=y1−nv = y^{1 - n} has derivative v′=(1−n)y−ny′v' = (1 - n)y^{-n}y', so y−ny′=v′1−ny^{-n}y' = \tfrac{v'}{1 - n}. The awkward term y−ny′y^{-n}y' is a multiple of v′v', and y1−ny^{1-n} is vv itself, so the equation becomes v′1−n+Pv=Q\tfrac{v'}{1 - n} + Pv = Q, which is linear. The homogeneous substitution works for a similar reason: the right side depends only on vv, and y′=v+xv′y' = v + xv' splits off the xx.

Worked examples

Common mistakes

Practice problems

  1. The solution of y′+y=y2y' + y = y^2 with y(0)=12y(0) = \tfrac{1}{2} is y=11+Cexy = \tfrac{1}{1 + Ce^x} for some CC. Find y(ln⁡3)y(\ln 3).

    Answer

    14\tfrac{1}{4}

    Full solution

    y(0)=11+C=12y(0) = \tfrac{1}{1 + C} = \tfrac{1}{2}, so C=1C = 1. Then y(ln⁡3)=11+3y(\ln 3) = \tfrac{1}{1 + 3}.

  2. For the Bernoulli equation y′+2y=xy3y' + 2y = xy^3, find the exponent 1−n1 - n used in the substitution v=y1−nv = y^{1 - n}.

    Answer

    −2-2

    Full solution

    n=3n = 3, so 1−n=−21 - n = -2 and v=y−2v = y^{-2}.

  3. Solve y′−y=exy2y' - y = e^xy^2 with y(0)=−2y(0) = -2, then find y(ln⁡4)y(\ln 4).

    Answer

    −12-\tfrac{1}{2}

    Full solution

    With v=y−1v = y^{-1}: v′+v=−exv' + v = -e^x, so v=−ex2+Ce−xv = -\tfrac{e^x}{2} + Ce^{-x}. v(0)=−12v(0) = -\tfrac{1}{2} gives C=0C = 0, so y=−2e−xy = -2e^{-x}, and y(ln⁡4)=−24y(\ln 4) = -\tfrac{2}{4}.

  4. Solve y′=1+yxy' = 1 + \tfrac{y}{x} with y(1)=3y(1) = 3, then find y(e)y(e).

    Answer

    4e4e

    Full solution

    y=xln⁡x+Cxy = x\ln x + Cx with C=3C = 3. At x=ex = e: e+3ee + 3e.

  5. Solve y′=yx+xyy' = \tfrac{y}{x} + \tfrac{x}{y} with y(1)=1y(1) = 1 and y>0y > 0, then find y(e)y(e).

    Answer

    e3e\sqrt{3}

    Full solution

    As in Example 3, y2=2x2ln⁡x+Kx2y^2 = 2x^2\ln x + Kx^2. Here K=1K = 1, so y(e)2=2e2+e2=3e2y(e)^2 = 2e^2 + e^2 = 3e^2.

  6. Is y′=x+2yxy' = \tfrac{x + 2y}{x} a homogeneous equation?

    Answer

    Yes

    Full solution

    y′=1+2yxy' = 1 + 2\tfrac{y}{x} depends only on yx\tfrac{y}{x}.

  7. Is y′=x+yy' = x + y a homogeneous equation?

    Answer

    No

    Full solution

    x+yx + y cannot be written using yx\tfrac{y}{x} alone. The equation is linear instead.

  8. A student solves y′+y=y2y' + y = y^2 with v=y2v = y^2. Find the exponent of yy in the correct substitution.

    Answer

    −1-1

    Full solution

    v=y1−nv = y^{1 - n} with n=2n = 2.

Frequently asked questions

What is a Bernoulli equation?

An equation y′ + P(x)y = Q(x)yⁿ with n ≠ 0, 1. For n = 0 or 1 it is already linear.

What substitution solves a Bernoulli equation?

v = y^(1−n). It turns the equation into the linear equation v′ + (1 − n)Pv = (1 − n)Q.

What is a homogeneous first-order equation?

One that can be written y′ = F(y/x), so the right side depends only on the ratio y/x.

What substitution solves a homogeneous equation?

v = y/x, so y = vx and y′ = v + xv′. The equation becomes separable in v and x.

What to learn next