7.6 Finding General Solutions Using Separation of Variables

Syllabus
2020
Topic
7.6
Level

Separate Variables to Find a Family of Solutions

A first-order equation is separable when it can be written as dy/dx=f(x)g(y)dy/dx=f(x)g(y). Rearrange it so one side contains only yy and dydy and the other only xx and dxdx, then antidifferentiate both sides.

\frac{1}{g(y)},dy=f(x),dx\qquad\Longrightarrow\qquad\int\frac{1}{g(y)},dy=\int f(x),dx+C

  1. Factor the derivative rule into an xx part and a yy part.
  2. Separate the variables algebraically.
  3. Integrate both sides and use one arbitrary constant.
  4. Solve explicitly for yy when useful.
  5. Differentiate the result to verify it.

For dy/dx=xydy/dx=xy, first assume y0y\ne0 and write dy/y=xdxdy/y=x\,dx. Then lny=x2/2+C\ln|y|=x^2/2+C, so y=Cex2/2y=Ce^{x^2/2} after absorbing sign and magnitude into CC. Differentiation gives y=Cxex2/2=xyy'=Cxe^{x^2/2}=xy, confirming the family.

Dividing by g(y)g(y) can discard constant solutions where g(y)=0g(y)=0. Here division by yy temporarily excluded y=0y=0; checking the original equation shows it is also a solution, and it is included by allowing C=0C=0. Do not add unrelated constants to both sides—two antiderivative constants combine into one arbitrary constant.