Calculus

Separable Differential Equations: How to Solve Them, With Examples

Solve dy/dx = f(x)g(y) by putting every y on one side and every x on the other, then integrating both sides. See a separability test table, the lost-solution trap when you divide by y, where the initial condition goes, the interval of validity, and full Newton's cooling and logistic examples.

Frequently asked questions

How do you know if a differential equation is separable?

Try to write dy/dx as a function of x alone times a function of y alone. If you can, it is separable. Factoring often reveals it: xy + x becomes x(y + 1), and e^(x + y) becomes eˣ · eʸ. If x and y are joined by addition that no factoring removes, as in dy/dx = x + y, it is not separable.

Why do you only add one constant of integration?

Integrating both sides does produce two constants, one on each side, but you can subtract one from the other and combine them into a single C. Writing C on both sides is not wrong, just untidy, because the two always merge. Put the one constant on the x side so it is ready when you solve for y.

Why do you lose solutions when you divide by y?

Dividing by g(y) is only allowed where g(y) is not zero. Any value of y that makes g(y) = 0 gives a constant solution, because a horizontal line has slope zero and the right side is zero too. The separated formula often cannot produce that line for any C. For dy/dx = y², the solution y = 0 is missing from y = −1/(x + C).

When do you plug in the initial condition?

You can plug it in as soon as the integration is done, before solving for y. That is usually the easiest moment, because the equation is still simple. For y dy = x dx with y(0) = 3, the line y²/2 = x²/2 + C gives C = 9/2 at once. The initial condition also tells you which sign to take when you solve for y with a square root.

Is it okay to leave the answer in implicit form?

Often yes. An implicit answer such as y² = x² + 9 is a correct solution, and many textbook and exam problems accept it unless they ask for y explicitly. When you do solve for y, use the initial condition to choose the branch. Here y(0) = 3 is positive, so y = √(x² + 9), not the negative root.

Try these solvers

Algebra12 min read

Exponential Growth and Decay: Formulas and Real-World Examples

Learn exponential growth and decay from scratch. Covers the general formula, discrete and continuous forms, doubling time, half-life, compound interest, and real-world applications.

Calculus9 min read

U-Substitution in Integration: Step-by-Step Method

U-substitution is the most important integration technique after basic antiderivatives. Learn the step-by-step method, how to choose the right u, and work through examples for both indefinite and definite integrals.

Calculus12 min read

Partial Fractions Decomposition: How to Split Rational Expressions

Master partial fractions decomposition with this complete guide. Learn to split complex rational expressions into simple fractions for easier integration and algebra.

Stuck on your own problem?

Snap a photo in Solver AI for iPhone and iPad and see every step, so you can do the next one yourself.