Separation of Variables: The Safe Rewrite Step

By Vegard Gjerde Based on Masterful Learning 10 min read Published
separable-variable-separation-rewrite differential-equations math learning-strategies

Separation of Variables Rewrite moves a separable first-order equation from y=g(x)h(y)y^{\prime}=g(x)h(y) to 1h(y)dy=g(x)dx\frac{1}{h(y)}\,dy=g(x)\,dx on a branch where h(y)0h(y)\neq 0. Before dividing by h(y)h(y), check whether h(y)=0h(y)=0 gives equilibrium solutions that must be recorded separately.

Unisium hero image titled Separable Variable Separation Rewrite showing the principle equation and a conditions card.
The separation rewrite y=g(x)h(y)1h(y)dy=g(x)dxy^{\prime}=g(x)h(y) \Rightarrow \frac{1}{h(y)}\,dy=g(x)\,dx is valid on a branch where h(y)0h(y)\neq 0, with equilibrium solutions checked separately.

On this page: The Principle | Conditions | Failure Modes | EE Questions | Retrieval Practice | Practice Ground | Solve a Problem | Related Guides | FAQ


The Principle

The move: rewrite a separable equation into separated differential form so every yy-dependent factor sits with dydy and every xx-dependent factor sits with dxdx.

What stays true: on any interval where h(y(x))0h(y(x))\neq 0, the separated equation describes the same non-equilibrium solution branch as the original equation.

Pattern:

y=g(x)h(y)1h(y)dy=g(x)dxy^{\prime}=g(x)h(y) \quad \longrightarrow \quad \frac{1}{h(y)}\,dy=g(x)\,dx

Here yy^{\prime} means dydx\frac{dy}{dx}, so the rewrite moves from derivative form to separated differential form, ready for integration.

CompleteIncomplete
y=x(y3)y^{\prime}=x(y-3) gives the equilibrium branch y=3y=3, and on y3y\neq 3: 1y3dy=xdx\frac{1}{y-3}\,dy=x\,dxy=x(y3)1y3dy=xdxy^{\prime}=x(y-3) \longrightarrow \frac{1}{y-3}\,dy=x\,dx presented as the whole solution set, without checking y=3y=3

The complete column says which branch is being solved. The incomplete column treats division by h(y)h(y) as harmless everywhere, which can erase an equilibrium solution.


Conditions of Applicability

Condition: h(y)0h(y)\neq 0; separable product form; equilibrium branch handled separately

Before applying, check: first confirm separable equation product form, then find zeros of h(y)h(y) before dividing by it.

If the condition is violated: dividing by h(y)h(y) can delete constant solutions where h(y)=0h(y)=0, or apply the solver route to an equation that is not separable.

  • The equation must already be in first-order explicit product form y=g(x)h(y)y^{\prime}=g(x)h(y).
  • On the branch you rewrite, h(y(x))h(y(x)) must stay nonzero.
  • Any constant solution y=cy=c with h(c)=0h(c)=0 belongs to a separate equilibrium branch, connected to Scalar Equilibrium Solution Condition.

In practice, the separated equation describes a solution branch on an interval where the chosen solution does not cross a zero of h(y)h(y).

Want the complete framework behind this guide? Read Masterful Learning.


Common Failure Modes

Failure mode: divide by h(y)h(y) without checking whether h(y)=0h(y)=0 has constant solutions -> an equilibrium branch disappears from the answer.

Debug: set h(y)=0h(y)=0 before separating variables, record each equilibrium solution, then solve the non-equilibrium branch.

Failure mode: treat a right-hand side such as x+yx+y as separable because it contains both variables -> the variables cannot be separated by this rewrite.

Debug: ask whether the right-hand side is an xx-only factor times a yy-only factor, not a sum or mixed expression.


Elaborative Encoding

Use these questions to build deep understanding. (See Elaborative Encoding for the full method.)

Within the Principle

  • Why does the reciprocal factor 1/h(y)1/h(y) belong on the dydy side after rewriting y=dydxy^{\prime}=\frac{dy}{dx}?
  • What does the phrase “non-equilibrium branch” mean when h(y)=0h(y)=0 has roots?

For the Principle

  • What exact check must happen before dividing by h(y)h(y)?
  • How would the rewrite fail if y=x+yy^{\prime}=x+y were treated as if it had product form?

Between Principles

Generate an Example

  • Create one separable equation with an equilibrium branch and one near-miss equation that cannot use the separation rewrite.

Retrieval Practice

Answer from memory, then click to reveal and check. (See Retrieval Practice for the full method.)

State the move in one sentence: _____Rewrite a separable first-order equation into separated differential form by dividing by the nonzero y-factor and pairing it with dy.
Write the canonical pattern: _____y=g(x)h(y)1h(y)dy=g(x)dxy^{\prime}=g(x)h(y) \Rightarrow \frac{1}{h(y)}\,dy=g(x)\,dx
State the canonical condition: _____h(y)0;separable product form;equilibrium branch handled separatelyh(y)\neq 0;\, \text{separable product form};\, \text{equilibrium branch handled separately}

Practice Ground

Use these exercises to build move-selection fluency. (See Self-Explanation for how to learn from worked examples.)

Procedure Walkthrough

Starting from y=x(y3)y^{\prime}=x(y-3), reach separated differential form while keeping the equilibrium branch visible.

StepExpressionOperation
0y=x(y3)y^{\prime}=x(y-3)Start from separable product form with g(x)=xg(x)=x and h(y)=y3h(y)=y-3.
1y=3y=3Check the equilibrium branch from h(y)=0h(y)=0.
2y3,y=x(y3)y\neq 3,\quad y^{\prime}=x(y-3)Restrict to a non-equilibrium branch before division.
3y3,1y3dy=xdxy\neq 3,\quad \frac{1}{y-3}\,dy=x\,dxDivide by the nonzero yy-factor and separate variables.

Drills

Forward Step

Apply the separation rewrite once. State any equilibrium branch first.

y=2x(y+1)y^{\prime}=2x(y+1)
Reveal

Equilibrium branch: y=1y=-1.

On y1y\neq -1:

1y+1dy=2xdx\frac{1}{y+1}\,dy=2x\,dx

Apply the separation rewrite once. State any equilibrium branch first.

y=exy2y^{\prime}=e^x y^2
Reveal

Equilibrium branch: y=0y=0.

On y0y\neq 0:

1y2dy=exdx\frac{1}{y^2}\,dy=e^x\,dx

Which equation is eligible for the separation rewrite?

A. y=x(y4)y^{\prime}=x(y-4)
B. y=x+y4y^{\prime}=x+y-4

Reveal

A is eligible because the right-hand side is an xx-only factor times a yy-only factor. Its equilibrium branch is y=4y=4, and the rewrite on y4y\neq 4 is

1y4dy=xdx\frac{1}{y-4}\,dy=x\,dx

B is not eligible because x+y4x+y-4 is a sum, not separable product form.


A student proposes the rewrite below. Is it valid as written?

y=x(y2)1y2dy=xdxy^{\prime}=x(y-2) \quad \longrightarrow \quad \frac{1}{y-2}\,dy=x\,dx
Reveal

It is incomplete as written. The non-equilibrium rewrite is valid only on y2y\neq 2, and the equilibrium branch y=2y=2 must be handled separately.


Goal Micro-Chain

Reach separated differential form from the start equation.

y=(x2+1)sinyy^{\prime}=(x^2+1)\sin y
Reveal
StepExpressionMove
0y=(x2+1)sinyy^{\prime}=(x^2+1)\sin yIdentify g(x)=x2+1g(x)=x^2+1 and h(y)=sinyh(y)=\sin y.
1y=kπy=k\pi for any integer kkRecord equilibrium branches from siny=0\sin y=0.
2siny0\sin y\neq 0Work on a non-equilibrium branch.
31sinydy=(x2+1)dx\frac{1}{\sin y}\,dy=(x^2+1)\,dxDivide by the nonzero yy-factor.

Reach separated differential form from the start equation.

y=x1+x2(1y)y^{\prime}=\frac{x}{1+x^2}(1-y)
Reveal
StepExpressionMove
0y=x1+x2(1y)y^{\prime}=\frac{x}{1+x^2}(1-y)Identify g(x)=x1+x2g(x)=\frac{x}{1+x^2} and h(y)=1yh(y)=1-y.
1y=1y=1Record the equilibrium branch.
2y1y\neq 1Work on a branch where 1y1-y is nonzero.
311ydy=x1+x2dx\frac{1}{1-y}\,dy=\frac{x}{1+x^2}\,dxSeparate variables.

Reject or complete the route choice.

y=xy+yy^{\prime}=xy+y
Reveal

First factor the right-hand side:

y=y(x+1)y^{\prime}=y(x+1)

Now the equation has separable product form with g(x)=x+1g(x)=x+1 and h(y)=yh(y)=y. The equilibrium branch is y=0y=0, and on y0y\neq 0:

1ydy=(x+1)dx\frac{1}{y}\,dy=(x+1)\,dx

Reject or complete the route choice.

y=xy+1y^{\prime}=xy+1
Reveal

Reject this route. The right-hand side is not an xx-only factor times a yy-only factor, so the separation rewrite is not licensed.


Transition Identification

Where did the separation rewrite occur?

y=3x(y2+1)1y2+1dy=3xdxy^{\prime}=3x(y^2+1) \quad \longrightarrow \quad \frac{1}{y^2+1}\,dy=3x\,dx
Reveal

The rewrite occurs in the single transition. Since y2+1y^2+1 is never zero for real yy, no real equilibrium branch comes from the yy-factor.


What is missing from this worked chain?

y=(x1)(y+5)1y+5dy=(x1)dxy^{\prime}=(x-1)(y+5) \quad \longrightarrow \quad \frac{1}{y+5}\,dy=(x-1)\,dx
Reveal

The chain omitted the equilibrium branch y=5y=-5 and the branch condition y5y\neq -5 before division.


Solve a Problem

Apply what you’ve learned with Problem Solving.

Problem: Starting from y=x2(y6)y^{\prime}=x^2(y-6), reach separated differential form and preserve every branch that must be considered.

Full solution
StepExpressionMove
0y=x2(y6)y^{\prime}=x^2(y-6)Start from separable product form with g(x)=x2g(x)=x^2 and h(y)=y6h(y)=y-6.
1y=6y=6Record the equilibrium branch from h(y)=0h(y)=0.
2y6,y=x2(y6)y\neq 6,\quad y^{\prime}=x^2(y-6)Work on a non-equilibrium branch before division.
3y6,1y6dy=x2dxy\neq 6,\quad \frac{1}{y-6}\,dy=x^2\,dxDivide by the nonzero yy-factor and separate variables.
41y6dy=x2dx\int \frac{1}{y-6}\,dy=\int x^2\,dxThe result is ready for integration on the non-equilibrium branch.


FAQ

What is separation of variables in differential equations?

Separation of variables is the rewrite from y=g(x)h(y)y^{\prime}=g(x)h(y) to 1h(y)dy=g(x)dx\frac{1}{h(y)}\,dy=g(x)\,dx on a branch where h(y)0h(y)\neq 0. In Unisium, this specific step is treated as Separable Variable Separation Rewrite: the move that makes a separable equation ready for integration while keeping equilibrium branches visible.

When is the separation rewrite valid?

It is valid when the equation has separable product form, the branch being solved has h(y)0h(y)\neq 0, and any equilibrium solution from h(y)=0h(y)=0 has already been handled separately.

Why do I have to check equilibrium solutions first?

Dividing by h(y)h(y) is not legal on a branch where h(y)=0h(y)=0. If h(c)=0h(c)=0, then y=cy=c may be a constant solution, and that branch can vanish if you divide by h(y)h(y) too early.

Is recognizing separable product form the same as separating variables?

No. Recognizing product form tells you the equation has the shape y=g(x)h(y)y^{\prime}=g(x)h(y). Separating variables is the later rewrite that moves from that shape to 1h(y)dy=g(x)dx\frac{1}{h(y)}\,dy=g(x)\,dx after the branch check.

Does this rewrite solve the differential equation?

No. It prepares the equation for integration. After the rewrite, you still integrate both sides and handle constants, intervals, and any initial condition.


How This Fits in Unisium

Within the differential equations subdomain, Unisium treats this as a route-selection move: first recognize separable product form, then decide whether the division by h(y)h(y) is legal on the branch you are solving. The Unisium Study System pairs that condition check with retrieval practice, self-explanation, and compact problem-solving chains so the rewrite becomes fluent without hiding the equilibrium branch.

Ready to practice differential equations with structure? Check access and join the Unisium waitlist or explore the complete framework in Masterful Learning.

Masterful Learning book cover

Masterful Learning

The book behind these guides: a study system for physics, math, & programming built on retrieval, connection, explanation, and problem solving.

Ready to apply this strategy?

Unisium turns these evidence-based techniques into guided study sessions for math and physics. Unisium is currently in early access. See pricing, availability, and join the waitlist.

Check Unisium Access and Pricing Read More Guides

Already have access? Sign in