Skip to content
  • Open the math solver
  • Ask the AI tutor
  • Find an AP course
  • Create a quiz
  • Open the calculator
  • Graphing Calculator
  • Browse all calculators
  • Read math guides
↑ ↓Enter to open · Esc to close
Solve a problem
Differential EquationsDifferential EquationsCollege

Separable Equations

Separate variables, integrate both sides and apply the initial condition.

A differential equation relates a function to its derivatives. It is separable when it can be written dydx=g(x)h(y)\frac{dy}{dx} = g(x)h(y), so that all the yy terms can be moved to one side and all the xx terms to the other: dyh(y)=g(x) dx\frac{dy}{h(y)} = g(x)\,dx. Integrating both sides then gives the solution, with one constant of integration.

Separable equations model exponential growth and decay (dydt=ky\frac{dy}{dt} = ky), Newton's law of cooling and logistic population growth. An initial condition such as y(0)=5y(0) = 5 fixes the constant and picks out one particular solution from the family.

Key terms

Separable form
The right side factors into a function of x times a function of y.
dydx=g(x)h(y)\frac{dy}{dx} = g(x)h(y)

Key ideas

  • Divide by h(y)h(y) only where h(y)≠0h(y) \ne 0; constant solutions h(y)=0h(y) = 0 may need to be added back.
  • One constant CC is enough after integrating both sides.
  • Solve for yy explicitly when possible, then apply the initial condition.
  • dydt=ky\frac{dy}{dt} = ky has solution y=y0ekty = y_0 e^{kt}.

Worked example

Solve dydx=2xy\frac{dy}{dx} = 2xy with y(0)=3y(0) = 3.

  1. Separate: dyy=2x dx\frac{dy}{y} = 2x\,dx.
  2. Integrate: ln⁡∣y∣=x2+C\ln|y| = x^2 + C.
  3. Exponentiate: y=Aex2y = Ae^{x^2}.
  4. Initial condition: 3=A3 = A, so y=3ex2y = 3e^{x^2}.

Answer: y=3ex2y = 3e^{x^2}

Common mistakes

  • Adding a constant to each side and keeping two constants.
  • Forgetting the absolute value inside the logarithm.
  • Applying the initial condition before integrating.

Practice questions

Try each one, then open the answer. Numerical answers on this page are verified by an automated calculation check.

  1. 1.For y=3ex2y = 3e^{x^2}, find y(1)y(1) to two decimals.

    Show answer

    8.158.15

  2. 2.A quantity obeys dydt=0.1y\frac{dy}{dt} = 0.1y with y(0)=50y(0) = 50. Find y(10)y(10) to one decimal.

    Show answer

    135.9135.9

  3. 3.A substance decays with k=−ln⁡2/5k = -\ln 2 / 5. What fraction remains after 10 years?

    Show answer

    14\frac{1}{4}

More in Differential Equations