Skip to main content
Examonaut

Topic 3 · Lesson 2 of 4

Reducing first order equations by substitution

Why substitute?

A substitution changes the variable so the equation becomes separable or linear (solvable with an integrating factor). The question always gives the substitution; your job is to differentiate it correctly and carry the algebra through.

Homogeneous equations: y = vx

An equation where dydx\frac{dy}{dx} is a function of yx\frac{y}{x} only (such as dydx=x2+y2xy\frac{dy}{dx} = \frac{x^2 + y^2}{xy}) is called homogeneous. Put y=vxy = vx, where vv is a function of xx. By the product rule,

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

The vv on both sides then cancels or simplifies, and what is left separates.

Worked example

Y = vx

Solve xdydx=y+xe−yxx\frac{dy}{dx} = y + xe^{-\frac{y}{x}}, x>0x > 0, with y=0y = 0 when x=1x = 1.

Show solution
  1. With y=vxy = vx: x(v+xdvdx)=vx+xe−vx\left(v + x\frac{dv}{dx}\right) = vx + xe^{-v}.
  2. Divide by xx and cancel vv: xdvdx=e−vx\frac{dv}{dx} = e^{-v}.
  3. Separate: ∫ev dv=∫dxx\int e^v \, dv = \int \frac{dx}{x}, so ev=ln⁡x+ce^v = \ln x + c.
  4. v=0v = 0 at x=1x = 1 gives c=1c = 1, so v=ln⁡(1+ln⁡x)v = \ln(1 + \ln x).
  5. y=vx=xln⁡(1+ln⁡x)y = vx = x\ln(1 + \ln x).

Powers of y: z = y^n

An equation like dydx+Py=Qyn\frac{dy}{dx} + Py = Qy^n (a Bernoulli equation) becomes linear with z=y1−nz = y^{1-n}. For dydx−y=exy2\frac{dy}{dx} - y = e^xy^2, put z=1yz = \frac{1}{y}:

  • dzdx=−1y2dydx\frac{dz}{dx} = -\frac{1}{y^2}\frac{dy}{dx}.
  • Divide the equation by −y2-y^2: −1y2dydx+1y=−ex-\frac{1}{y^2}\frac{dy}{dx} + \frac{1}{y} = -e^x, that is dzdx+z=−ex\frac{dz}{dx} + z = -e^x.
  • This is linear: with integrating factor exe^x, ddx(zex)=−e2x\frac{d}{dx}(ze^x) = -e^{2x}, so z=−12ex+ce−xz = -\frac{1}{2}e^x + ce^{-x} and y=1ce−x−12exy = \frac{1}{ce^{-x} - \frac{1}{2}e^x}.

When the substitution is given as z=y2z = y^2, start from dzdx=2ydydx\frac{dz}{dx} = 2y\frac{dy}{dx} and look for a way to make 2ydydx2y\frac{dy}{dx} appear, usually by multiplying the whole equation by 2y2y.

Linear substitutions: z = x - y

For dydx=1+1x−y\frac{dy}{dx} = 1 + \frac{1}{x - y}, put z=x−yz = x - y. Then dzdx=1−dydx=−1z\frac{dz}{dx} = 1 - \frac{dy}{dx} = -\frac{1}{z}, which separates: ∫z dz=−∫dx\int z \, dz = -\int dx, so 12z2=c−x\frac{1}{2}z^2 = c - x and (x−y)2=2c−2x(x - y)^2 = 2c - 2x. The same idea, with z=x+yz = x + y, works whenever dydx\frac{dy}{dx} is a function of x+yx + y.

Reducing the order: z = dy/dx

If yy itself does not appear in a second order equation, put z=dydxz = \frac{dy}{dx}, so d2ydx2=dzdx\frac{d^2y}{dx^2} = \frac{dz}{dx}. The equation becomes first order in zz; solve it, then integrate zz to find yy. You get two arbitrary constants, as a second order equation should have.

Practise this topic

Both are part of Premium.