A separable differential equation is one you can split into an xx part and a yy part, integrate each side, and solve. It is usually the first type students learn, and the calculation is short, but the care lives in where you divide and what conditions that division requires. Here is the formula, why it works, and a full worked solution.

The Setup And Its Symbols

A differential equation contains an unknown function yy and its derivative dydx\frac{dy}{dx}, and the solution is a function, not a single number. For example, equations like

dydx=2xordydx=2xy\frac{dy}{dx} = 2x \qquad\text{or}\qquad \frac{dy}{dx} = 2xy

are differential equations. What we want is a function yy that satisfies the equation. For instance, y=x2+Cy = x^2 + C satisfies dydx=2x\frac{dy}{dx} = 2x, and an initial condition fixes CC to give one specific solution.

A separable equation has the form

dydx=g(x)h(y)\frac{dy}{dx} = g(x)h(y)

so that it can be rewritten as

1h(y)dy=g(x)dx\frac{1}{h(y)}\,dy = g(x)\,dx

and integrated side by side.

Why Separation Works

The method rests on a single idea: if you can get everything involving yy onto one side and everything involving xx onto the other, then integrating both sides with respect to their own variables undoes the derivative. Writing 1h(y)dy=g(x)dx\frac{1}{h(y)}\,dy = g(x)\,dx is shorthand for that move, and 1h(y)dy=g(x)dx\int \frac{1}{h(y)}\,dy = \int g(x)\,dx recovers a relationship between yy and xx up to a constant. The catch is the division: rewriting requires dividing by h(y)h(y), which is only valid where h(y)0h(y) \ne 0. Each yy with h(y)=0h(y)=0 gives a constant solution that the division step quietly drops, so those have to be checked separately.

The Procedure For Separable Equations

  1. Confirm the equation is in the form dydx=g(x)h(y)\frac{dy}{dx} = g(x)h(y).
  2. Separate the yy part and the xx part.
  3. Integrate both sides.
  4. Simplify exponents or logarithms to express yy.
  5. Use the initial condition to determine the constant of integration.

More important than calculation speed is staying aware of where you divided and under what conditions that transformation is valid.

Worked Example: dydx=2xy, y(0)=3\frac{dy}{dx} = 2xy,\ y(0)=3

The right side is 2xy2x \cdot y, so this is separable. Given y(0)=3y(0)=3, we can assume y0y \ne 0 at least near x=0x=0. In that range, dividing by yy gives

1ydydx=2x1ydy=2xdx\frac{1}{y}\frac{dy}{dx} = 2x \qquad\Longrightarrow\qquad \frac{1}{y}\,dy = 2x\,dx

Integrate both sides:

1ydy=2xdxlny=x2+C\int \frac{1}{y}\,dy = \int 2x\,dx \qquad\Longrightarrow\qquad \ln|y| = x^2 + C

Convert to exponential form:

y=ex2+C=Aex2|y| = e^{x^2 + C} = Ae^{x^2}

Absorbing the sign of the constant, y=Cex2y = Ce^{x^2}. Applying y(0)=3y(0)=3:

3=Ce0=Cy=3ex23 = Ce^0 = C \qquad\Longrightarrow\qquad y = 3e^{x^2}

The takeaway is not the calculation but whether the variables could be separated and what the condition for dividing by yy was. Note that y=0y=0 is also a solution of dydx=2xy\frac{dy}{dx}=2xy, but it does not satisfy y(0)=3y(0)=3.

Direct Practice With A Check

Solve the following with the same procedure:

dydx=3xy,y(0)=2\frac{dy}{dx} = 3xy,\quad y(0)=2

Separate yy to the left and xx to the right, integrate, and use the initial condition. Self-check: you should reach lny=32x2+C\ln|y| = \tfrac{3}{2}x^2 + C, then y=2e32x2y = 2e^{\frac{3}{2}x^2}, and substituting x=0x=0 must return y=2y=2. Each time you try another problem, verify where you divided and whether any solution was lost.

Calculation Traps

  1. Applying these steps to an equation that is not separable.
  2. Forgetting the constant of integration CC after integrating both sides.
  3. Being sloppy with absolute values or constant absorption when converting lny\ln|y| to yy.
  4. Dividing by yy or h(y)h(y) without checking whether those values could be 00.
  5. Stopping at the general solution without using the initial condition to find the specific one.

The fourth is the most dangerous: even with clean calculations you might miss a valid solution. Whenever you divide, double-check whether a solution exists when that term is 00.

Where Differential Equations Are Used

They appear whenever we know the law governing a change and want the original function back: finding position from velocity, building growth and decay models, or tracking electric current or chemical concentration. Not every differential equation is separable, though. First-order linear, homogeneous, and second-order equations each call for different tools, which is why identifying the type comes before the calculation.

One Last Verification Habit

Mastering separable equations means mastering the verification steps as much as the integration. Before you call a problem done, confirm the constant is determined, the absolute value was handled cleanly, and no constant solution was dropped along the way.

Frequently Asked Questions

What is a differential equation?
A differential equation is an equation containing an unknown function y and its derivative dy/dx. The solution is a function rather than a single number. For example, y equals x squared plus C satisfies dy/dx equals 2x, and if an initial condition is given, the constant C can be pinned down to one specific solution.
What is the first step when solving a differential equation?
Identify the type of the equation before doing anything else. Not every differential equation can be solved with the same steps, and skipping this identification often leads to applying a method that does not fit and getting stuck. Separable equations, where x and y parts can be split, are usually the first type students learn.
How do you solve a separable differential equation?
Check that the equation has the form dy/dx equals g of x times h of y, separate the y terms from the x terms, integrate both sides, simplify exponents or logarithms to express y, and finally use the initial condition to determine the constant of integration. The guide works through dy/dx equals 2xy with y of 0 equal to 3.
Why do you have to check for constant solutions when separating variables?
Separating variables involves dividing by the function h of y. Division is only valid when that expression is nonzero, so you must separately check the case where h of y equals zero. Skipping this check can make you miss constant solutions that satisfy the original equation.

Need help with a problem?

Upload your question and get a verified, step-by-step solution in seconds.

Open GPAI Solver →