Math · Introduction to Calculus · Grade 9-12 · 5 min read

Separation of Variables

⚡ In one breath

Separation of variables solves a first-order DE of the form dydx=f(x)g(y)\frac{dy}{dx}=f(x)g(y) by rewriting it as dyg(y)=f(x)dx\frac{dy}{g(y)}=f(x)\,dx and integrating both sides in their own variable.

📐 The formula

dydx=f(x)g(y)dyg(y)=f(x)dx+C\frac{dy}{dx} = f(x)g(y) \Rightarrow \int \frac{dy}{g(y)} = \int f(x)\,dx + C

Orient

The one-line idea, why it matters, and the intuition.

Section 1

Quick Answer

Separation of variables solves a first-order DE of the form dydx=f(x)g(y)\frac{dy}{dx}=f(x)g(y) by rewriting it as dyg(y)=f(x)dx\frac{dy}{g(y)}=f(x)\,dx and integrating both sides in their own variable. Use it when the rate factors cleanly into a function of xx alone times a function of yy alone. The cue is being able to get all the yy's (with dydy) on one side and all the xx's (with dxdx) on the other. Before calculating, ask: Can I rewrite the DE so one side has only yy and dydy, the other only xx and dxdx?

Section 2

Why This Matters

It is the first general technique for actually SOLVING a DE in closed form, and it solves the workhorse models — exponential growth/decay dydt=ky\frac{dy}{dt}=ky, logistic growth, Newton's cooling. Recognizing the separable FORM is the deciding step; if the variables won't separate, you need a different method. Recognizing it by "Can I rewrite the DE so one side has only yy and dydy, the other only xx and dxdx?" — rather than by familiar numbers — is what lets a student tell it apart from slope fields and integrating factor method and plain antiderivative in a mixed problem set.

Section 3

Intuitive Explanation

A messy desk with xx-papers and yy-papers mixed in dydx=xy\frac{dy}{dx}=xy; you sweep all yy-papers (and dydy) to the left as dyy\frac{dy}{y} and all xx-papers (and dxdx) to the right as xdxx\,dx, then integrate each pile. This is the clean version of the idea because the visible structure matches the concept before any formula or procedure is chosen.

Trying to separate a DE like dydx=x+y\frac{dy}{dx}=x+y where the right side is a SUM, not a product — addition can't be split onto opposite sides; separation needs a factored product f(x)g(y)f(x)g(y). That contrast matters because many wrong answers come from recognizing a surface feature, such as a familiar number or word, instead of the actual task.

A useful way to slow down is to name the signal words and then test them. Words like **dydx=f(x)g(y)\frac{dy}{dx}=f(x)g(y)**, **separable**, **move yy-terms with dydy**, **dydt=ky\frac{dy}{dt}=ky**, **integrate both sides** are helpful clues, but they are not enough by themselves. They must point to the same structure as the mental model: If dydx\frac{dy}{dx} factors into an xx-part times a yy-part, separate them onto opposite sides and integrate each.

The recognition test is simple: Can I rewrite the DE so one side has only yy and dydy, the other only xx and dxdx? If yes, separation of variables is probably the right tool; if not, compare with Slope fields or Integrating factor method or Plain antiderivative before calculating.

Core idea

If dydx\frac{dy}{dx} factors into an xx-part times a yy-part, separate them onto opposite sides and integrate each.

Recognize

The cues that signal this concept and how to distinguish it from look-alikes.

Section 4

When to Use

Use Separation of Variables when a first-order DE's right side factors as a function of xx times a function of yy, so the variables can be moved to opposite sides. Strong signals include **dydx=f(x)g(y)\frac{dy}{dx}=f(x)g(y)**, **separable**, **move yy-terms with dydy**, **dydt=ky\frac{dy}{dt}=ky**, **integrate both sides**. The safest workflow is to read the final question first, identify what kind of answer it wants, and then test the structure. Do not use separation of variables just because familiar numbers appear; first decide whether the situation answers "Can I rewrite the DE so one side has only yy and dydy, the other only xx and dxdx?" with yes.

✨ Pro tip

Ask: Can I rewrite the DE so one side has only yy and dydy, the other only xx and dxdx?

Section 5

How to Recognize It

Before using Separation of Variables, check the structure of the problem, not just the vocabulary. These questions force the same recognition move from several angles: the task, the signal words, the nearest confusion, and the thing that would make the concept fail.

  1. Can I rewrite the DE so one side has only yy and dydy, the other only xx and dxdx?

    If yes, the problem matches separation of variables. If no, pause before applying the procedure, because the same numbers may belong to a different idea.

  2. Which words signal the structure?

    Look for dydx=f(x)g(y)\frac{dy}{dx}=f(x)g(y), separable, move yy-terms with dydy, dydt=ky\frac{dy}{dt}=ky. These words are useful only after the situation matches them; a keyword without structure is not proof.

  3. What is the nearest confusion?

    Slope fields is the common trap here: A GRAPHICAL view of the same first-order DE; separation gives the exact formula. Compare the desired final answer before choosing a method.

  4. What answer form should I expect?

    The answer should fit this mental model: If dydx\frac{dy}{dx} factors into an xx-part times a yy-part, separate them onto opposite sides and integrate each. If the expected answer sounds more like slope fields, use the comparison table before solving.

  5. What would make this NOT Separation of Variables?

    Trying to separate a DE like dydx=x+y\frac{dy}{dx}=x+y where the right side is a SUM, not a product — addition can't be split onto opposite sides; separation needs a factored product f(x)g(y)f(x)g(y). This tells you when to switch tools instead of forcing the concept.

Section 6

Separation of Variables vs Common Confusions

The hard part is recognizing when the task is really about separation of variables instead of a nearby idea. Read the final answer the problem wants, then ask which row describes the structure before you start calculating.

Separation of Variables

Meaning
Use this when a first-order DE's right side factors as a function of xx times a function of yy, so the variables can be moved to opposite sides. The deciding question is: Can I rewrite the DE so one side has only yy and dydy, the other only xx and dxdx?
Key test
Can I rewrite the DE so one side has only $y$ and $dy$, the other only $x$ and $dx$?
Formula
dydx=f(x)g(y)dyg(y)=f(x)dx+C\frac{dy}{dx} = f(x)g(y) \Rightarrow \int \frac{dy}{g(y)} = \int f(x)\,dx + C
Example
Solve dydx=xy\frac{dy}{dx}=xy with y(0)=2y(0)=2.

Slope fields

Meaning
A GRAPHICAL view of the same first-order DE; separation gives the exact formula.
Key test
Use slope fields when you only need qualitative behavior or can't separate.
Formula
segments of slope f(x,y)f(x,y)
Example
direction field of dydx=xy\frac{dy}{dx}=xy

Integrating factor method

Meaning
Solves LINEAR first-order DEs dydx+P(x)y=Q(x)\frac{dy}{dx}+P(x)y=Q(x) that don't separate.
Key test
Use when the equation is linear but not a clean product.
Formula
μ=ePdx\mu=e^{\int P\,dx}
Example
dydx+y=x\frac{dy}{dx}+y=x

Plain antiderivative

Meaning
The special case dydx=f(x)\frac{dy}{dx}=f(x) where g(y)=1g(y)=1; just integrate the xx-side.
Key test
Use when the rate depends on $x$ only, no $y$ on the right.
Formula
y=f(x)dxy=\int f(x)\,dx
Example
dydx=2x\frac{dy}{dx}=2x

Apply

Worked examples and the mistakes most students make.

Section 7

Formula & Notation

dydx=f(x)g(y)dyg(y)=f(x)dx+C\frac{dy}{dx} = f(x)g(y) \Rightarrow \int \frac{dy}{g(y)} = \int f(x)\,dx + C
If dydx=f(x)g(y)\frac{dy}{dx} = f(x) \cdot g(y) and g(y)0g(y) \neq 0, then 1g(y)dy=f(x)dx+C\int \frac{1}{g(y)}\,dy = \int f(x)\,dx + C. Let G(y)=1g(y)dyG(y) = \int \frac{1}{g(y)}\,dy and F(x)=f(x)dxF(x) = \int f(x)\,dx; then G(y)=F(x)+CG(y) = F(x) + C defines yy implicitly. Equilibrium solutions: g(y0)=0    y=y0g(y_0) = 0 \implies y = y_0 is a constant solution.

How to read it: dyg(y)=f(x)dx\frac{dy}{g(y)} = f(x)\,dx — all yy-terms on the left with dydy, all xx-terms on the right with dxdx. +C+C appears on one side only.

Section 8

Worked Examples

Example 1 — Solve a separable DE

Easy

Problem

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

Solution

  1. The right side factors as xyx\cdot y (function of xx times function of yy), so it is separable.

    Name the structure before touching arithmetic — that is what makes the right method obvious.

  2. Ask the recognition question: Can I rewrite the DE so one side has only yy and dydy, the other only xx and dxdx?

    If the answer is yes, the concept applies; the cue, not a keyword, decides the method.

  3. Separate: dyy=xdx\frac{dy}{y}=x\,dx, then integrate both sides.

    The rule is chosen only after the structure matches, so the steps mean something.

  4. lny=x22+Cy=Aex2/2\ln|y|=\tfrac{x^2}{2}+C\Rightarrow y=Ae^{x^2/2}; apply y(0)=2y(0)=2 to get A=2A=2.

    Keep units, shape, or answer form tied to the story so the work does not become symbol pushing.

  5. Check the answer against the original question.

    It should fit the mental model — sort y-stuff left, x-stuff right, integrate both. If it does not, revisit the recognition step before changing the arithmetic.

Answer

y=2ex2/2y=2e^{x^2/2}

Takeaway: Factor the rate into xx- and yy-parts, separate, integrate each side, then fix the constant with the initial condition.

Example 2 — Won't separate

Standard

Problem

Can you solve dydx=x+y\frac{dy}{dx}=x+y by separation of variables?

Solution

  1. Notice why this looks like the same concept.

    Nearby language or numbers can tempt you toward sort y-stuff left, x-stuff right, integrate both.

  2. The right side is a SUM of xx and yy, which cannot be written as a product f(x)g(y)f(x)g(y).

    Spotting what actually changed is what separates this from the concept it resembles.

  3. Recognize it's linear, not separable, and switch to the integrating-factor method.

    The nearby idea may share numbers but answers a different question, so it needs a different move.

  4. State the result in the language of the actual task.

    Not separable — use an integrating factor instead. Name it for what the problem really asked, not the concept you first expected.

  5. Say the contrast in one sentence.

    Separation requires a product form; a sum like x+yx+y blocks it and signals a different method.

Answer

Not separable — use an integrating factor instead

Takeaway: Separation requires a product form; a sum like x+yx+y blocks it and signals a different method.

Example 3 — Spot the trap: Sort y-stuff left, x-stuff right, integrate both

Application

Problem

A student starts with this idea: "Trying to separate a non-product right side" What should they check before accepting that reasoning?

Solution

  1. Pause before the first move.

    The first move is a decision, not a calculation — does the situation really match sort y-stuff left, x-stuff right, integrate both.

  2. Run the recognition test: Can I rewrite the DE so one side has only yy and dydy, the other only xx and dxdx?

    This is the single check that the trap skips.

  3. dydx=x+y\frac{dy}{dx}=x+y won't separate; check it factors as f(x)g(y)f(x)g(y) first.

    Stating the safer rule turns the mistake into a checkable step instead of a vague "be careful."

  4. Compare with the nearest confusion, Slope fields.

    A GRAPHICAL view of the same first-order DE; separation gives the exact formula.

  5. State the corrected decision and reuse it.

    Using the concept only when the structure matches leaves a process the student can repeat on a new problem.

Answer

dydx=x+y\frac{dy}{dx}=x+y won't separate; check it factors as f(x)g(y)f(x)g(y) first.

Takeaway: The recognition step prevents the common trap: Trying to separate a non-product right side

Section 9

Common Mistakes

Common slip-up

Trying to separate a non-product right side

The right idea

dydx=x+y\frac{dy}{dx}=x+y won't separate; check it factors as f(x)g(y)f(x)g(y) first.

Common slip-up

Forgetting the constant of integration

The right idea

add +C+C after integrating (on one side), then use any initial condition to find it.

Common slip-up

Mishandling the dydy/dxdx

The right idea

move dxdx to the right and divide by g(y)g(y) properly; don't drop the differentials.

Practice

Try it, then see where this concept fits in the path.

Section 10

Mini Practice

Try these on your own. Tap Reveal when you want to check.

  1. What clue tells you this is a Separation of Variables situation: Solve dydx=xy\frac{dy}{dx}=xy with y(0)=2y(0)=2.

    Hint: Can I rewrite the DE so one side has only yy and dydy, the other only xx and dxdx?

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

    Hint: Separate: dyy=xdx\frac{dy}{y}=x\,dx, then integrate both sides.

  3. Why is this a contrast case instead of Separation of Variables: Can you solve dydx=x+y\frac{dy}{dx}=x+y by separation of variables?

    Hint: The right side is a SUM of xx and yy, which cannot be written as a product f(x)g(y)f(x)g(y).

  4. Fix this thinking: Trying to separate a non-product right side

    Hint: Name the recognition cue before choosing a rule.

  5. Which is the better fit here: Separation of Variables or Slope fields? Explain the deciding difference.

    Hint: For Separation of Variables, ask: Can I rewrite the DE so one side has only yy and dydy, the other only xx and dxdx?

  6. Write one sentence that would remind a classmate how to recognize Separation of Variables.

    Hint: Use the mental model "Sort y-stuff left, x-stuff right, integrate both." and one signal word.

Want the full set?

50 practice questions for this concept — free to try, every one with a complete worked solution showing the why, not just the answer.

Section 11

Frequently Asked Questions

How do I know when to use Separation of Variables?

Use Separation of Variables when a first-order DE's right side factors as a function of xx times a function of yy, so the variables can be moved to opposite sides. Do not start from the numbers alone; first name the structure of the situation. The fastest check is: Can I rewrite the DE so one side has only yy and dydy, the other only xx and dxdx? If the answer is yes and the wording matches cues like dydx=f(x)g(y)\frac{dy}{dx}=f(x)g(y), separable, move yy-terms with dydy, then separation of variables is probably the right tool.

What is Separation of Variables most often confused with?

Separation of Variables is often confused with Slope fields. Slope fields means A GRAPHICAL view of the same first-order DE; separation gives the exact formula. The difference is not just vocabulary; it changes the action you take. For separation of variables, the key test is "Can I rewrite the DE so one side has only yy and dydy, the other only xx and dxdx?" For slope fields, the better cue is: Use slope fields when you only need qualitative behavior or can't separate.

What is the fastest recognition cue for Separation of Variables?

Look for dydx=f(x)g(y)\frac{dy}{dx}=f(x)g(y), separable, move yy-terms with dydy, dydt=ky\frac{dy}{dt}=ky, but treat those words as clues, not proof. A word problem can contain a familiar keyword and still ask for a different idea. After noticing the cue, ask the recognition question: Can I rewrite the DE so one side has only yy and dydy, the other only xx and dxdx? That question protects you from using a memorized procedure in the wrong place.

What mistake should I avoid with Separation of Variables?

Avoid this thinking: "Trying to separate a non-product right side" That mistake usually happens when the student jumps to a rule before checking the situation. The safer version is: dydx=x+y\frac{dy}{dx}=x+y won't separate; check it factors as f(x)g(y)f(x)g(y) first. A good habit is to say the mental model out loud first: "Sort y-stuff left, x-stuff right, integrate both." Then choose the calculation or representation.

How can I tell this apart from Integrating factor method?

Integrating factor method is the better fit when the task is about this: Solves LINEAR first-order DEs dydx+P(x)y=Q(x)\frac{dy}{dx}+P(x)y=Q(x) that don't separate. Separation of Variables is the better fit when a first-order DE's right side factors as a function of xx times a function of yy, so the variables can be moved to opposite sides. If both ideas seem possible, compare what the problem wants as the final answer. The desired output often reveals whether you should use separation of variables or switch to the nearby concept.

Why does Separation of Variables matter?

It is the first general technique for actually SOLVING a DE in closed form, and it solves the workhorse models — exponential growth/decay dydt=ky\frac{dy}{dt}=ky, logistic growth, Newton's cooling. Recognizing the separable FORM is the deciding step; if the variables won't separate, you need a different method. The practical value is recognition: once you can spot separation of variables, you can choose a method before calculating. That makes later topics easier because you are not memorizing isolated tricks; you are recognizing the same structure when it appears in a new representation.

Section 12

Learning Path

Separation of Variables

You are here

Next →

You're at the end!
Before this, students should be comfortable with Introduction to Differential Equations and Integral. This page focuses on the recognition cue: Can I rewrite the DE so one side has only $y$ and $dy$, the other only $x$ and $dx$? That cue is the bridge between earlier skills and later problem solving: students first learn to identify the structure, then they learn which calculation, diagram, graph, or proof move belongs to it. After this, students can use separation of variables as a tool in larger problems.

Section 13

See Also