Skip to content
    Calculus

    How to Solve Separable Differential Equations

    Why do rabbit populations, savings and cooling coffee all follow the same curve? Because each one changes at a rate that depends on how much there is. This guide shows how to solve that kind of equation by separating the variables, with a full rabbit example.

    Math Solver Academic Editorial Board5 min read

    Key takeaways

    • A differential equation is separable if dy/dx = g(x)·h(y).
    • Move all y's to one side, all x's to the other, then integrate both sides.
    • dy/dx = ky has the solution y = y₀·eᵏˣ.
    • The constant multiplies: y = A·eᵏˣ, not eᵏˣ + C.
    In this guide
    1. 01What is a separable differential equation?
    2. 02Why do separable equations matter?
    3. 03The formula
    4. 04How to solve a separable ODE step by step
    5. 05Common mistakes to avoid
    6. 06Tips and tricks
    7. 07Where you'll use it in real life
    8. 08Quick summary
    9. 09Worked example
    10. 10Frequently asked questions

    What is a separable differential equation?

    A differential equation is an equation with a derivative in it, such as dy/dx = 2y. It describes change: 'the growth rate depends on how much there is'. Solving it means finding the function y(x) itself.

    It is separable if you can move all the y's to one side and all the x's to the other: (something with y) dy = (something with x) dx. Then you integrate each side on its own. This calculator solves the most important example, dy/dx = ky: the rate of change is proportional to the amount.

    Why do separable equations matter?

    The rule 'the more there is, the faster it changes' is everywhere. More rabbits have more babies. A bigger balance earns more interest. Hotter coffee cools faster. All of these start as dy/dx = ky, and separation of variables solves them in a few lines.

    The result is the exponential curve, one of the most important shapes in science.

    With k = 0.05 per month, a population doubles about every 13.9 months, whether it starts with 200 rabbits or 2 million.

    The formula

    dy/dx = k·y ⟹ y(x) = y₀ · eᵏˣ
    SymbolWhat it meansExample
    yThe quantity that changesnumber of rabbits
    xThe input, often time10 months
    kThe rate constant: k > 0 is growth, k < 0 is decay0.05 per month
    y₀The starting value, y(0)200
    eEuler's number, see the exponential calculator2.71828

    How to solve a separable ODE step by step

    1. 1Separate. Divide by y and multiply by dx: dy / y = k dx.
    2. 2Integrate both sides. ∫ dy/y = ∫ k dx gives ln|y| = kx + C.
    3. 3Solve for y. Raise e to both sides: y = A·eᵏˣ, where A is a constant.
    4. 4Use the initial condition. At x = 0, y = A, so A = y₀.
    5. 5Evaluate. Put in your x: y(x) = y₀·eᵏˣ.

    Now try your own growth or decay problem. Enter k, the starting value and x in the calculator below.

    Try it yourself

    Pre-filled with the example — change any value.

    🧮
    Calculus
    University

    Separable ODE: dy/dx = ky

    Solve separable ODE dy/dx = ky with initial condition y(0) = y₀. Evaluate at x.

    dy/dx = ky → y = C·eᵏˣ

    f'(x) slope
    Tangent Line dy/dx
    120
    0.120
    0.120

    💡 Example

    Reference
    Inputs:k=2, y0=1, x=1
    Result:7.389
    Open the full Separable ODE: dy/dx = ky calculator

    Common mistakes to avoid

    • Forgetting the constant C. Add it right after integrating, or you lose the family of solutions.
    • Treating dy/dx = ky + x as separable. You cannot split y and x apart there. Use the first-order linear ODE calculator instead.
    • Dividing by y without checking y = 0. y = 0 is also a solution of dy/dx = ky.
    • Mixing time units. If k is per month, x must be in months.

    Tips and tricks

    • Doubling time: for growth, it is ln 2 ÷ k ≈ 0.693 ÷ k.
    • Check your answer: differentiate y₀eᵏˣ and you get k·y₀eᵏˣ = ky. It works.
    • Half-life and doubling problems: the exponential growth and decay calculator does these directly.

    Where you'll use it in real life

    • Biology: population growth and bacteria in a lab.
    • Finance: continuously compounded interest.
    • Medicine: how a drug level in the blood falls over time.
    • Physics: radioactive decay and Newton's law of cooling.

    Quick summary

    To solve a separable equation, put all the y's on one side and all the x's on the other, integrate both sides and use the initial condition. For dy/dx = ky this gives y = y₀·eᵏˣ. Use the calculator above to see every step for your own numbers.

    Worked example

    A town has 200 rabbits, and the population grows at a rate proportional to its size with k = 0.05 per month, so dy/dx = 0.05y. How many rabbits will there be after 10 months? Use k = 0.05, y₀ = 200 and x = 10.

    1. 01ODE: dy/dx = 0.05y, y(0) = 200
    2. 02Separate variables: dy/y = 0.05dx
    3. 03Integrate both sides: ln|y| = 0.05x + C
    4. 04Apply initial condition y(0) = 200: C = ln(200)
    5. 05Solution: y(x) = 200·e^(0.05x)
    6. 06At x = 10: y = 200 × e^(0.5)
    7. 07= 200 × 1.6487
    8. 08= 329.7443

    These numbers are pre-filled in the calculator above.

    Frequently asked questions

    How do I know if a differential equation is separable?

    Check whether dy/dx can be written as a function of x times a function of y, like g(x)·h(y). If so, you can separate it into dy/h(y) = g(x) dx.

    What is the solution of dy/dx = 2y with y(0) = 1?

    y = e²ˣ. At x = 1, that gives e² ≈ 7.389.

    What does the initial condition do?

    Integration gives a whole family of solutions with an unknown constant. The initial condition, such as y(0) = 200, picks the one solution that starts at the right value.

    What happens if k is negative?

    Then the quantity decays towards 0 instead of growing. For example, with k = −0.5 and y₀ = 100, y(2) = 100·e⁻¹ ≈ 36.8.

    #Calculus#University#Separable ODE: dy/dx = ky
    Updated

    Keep reading

    Sponsored ToolsAd

    More tools on Ytools →
    Calcu.click — 25+ Free Smart Calculators preview

    Calcu.click — 25+ Free Smart Calculators

    Brand new calculation platform with 0ms reactive math, 100% client-side privacy, and dedicated subdomains. Fast calculators for EMI, SIP, Mortgage, Income Tax, BMI, Age, Percentage, and more.

    25+ CalculatorsFinanceHealth0ms Real-TimeFree
    Keyboard Arena preview

    Keyboard Arena

    Master touch typing with real-time WPM speed tests, mechanical switch audio, A-Z finger biomechanics drills, 40+ structured lessons, and competitive arcade games.

    Typing TestWPMTouch Typing
    Flutter Log Explorer preview

    Flutter Log Explorer

    Real-time structured log viewer and search explorer for Flutter & Dart. Zero-config capture from Debug Adapter (DAP) & Dart VM Service with smart classification and filters.

    FlutterDartVS Code ExtensionOpen VSX