Tutorials › Calculus I › Separating Variables Without Losing Equivalence

Slope Fields and Separable Equations · Tutorial 1361 of 1495

Separating Variables Without Losing Equivalence

Separate variables carefully by checking every divisor and keeping track of solutions or points that an algebraic step might exclude.

Intermediate 9 min read

What You'll Learn

  • Identify when division by a function of the dependent variable is valid along a solution.
  • Recognize constant solutions that may be excluded by division.
  • Separate the variables in a product-form differential equation without dividing by an unnecessary factor.
  • State the interval and range restrictions needed for a separated equation.
  • Use the chain rule to justify the equivalence of separated equations under suitable regularity assumptions.
  • Check a separation step by reversing its algebra.

Why Careful Separation Matters

A separable differential equation often becomes easier to analyze after its \(x\)- and \(y\)-dependence are placed on opposite sides. But this algebra has a condition: whenever you divide by an expression, that expression must be nonzero at the points where the division is used.

This matters because a factor can vanish for an entire solution, or at particular points in its domain. Dividing by that factor can exclude a solution or make an equation undefined where the original equation was meaningful. A correct separation therefore records not only the resulting equation, but also the conditions under which the algebraic steps preserve equivalence.

Key principle: A separation step is equivalent to the original differential equation only where every quantity divided out is nonzero. Check those conditions before dividing, and keep track of any cases excluded by the division.

What Equivalence Means Here

Consider a differential equation on an interval \(I\), with an unknown differentiable function \(y:I\to\mathbb{R}\). Two equations are equivalent on \(I\) if they have exactly the same differentiable solutions on that interval, subject to the same stated restrictions.

For a product-form equation \(y'=g(x)h(y)\), one might divide by \(h(y)\) to obtain \(y'/h(y)=g(x)\). This rearrangement is equivalent at a point \(x\) only if \(h(y(x))\ne 0\). Thus, on an interval where \(h(y(x))\) never vanishes, the two equations have the same solutions. If \(h(y(x))=0\) somewhere, the divided equation is not defined there, even though the original equation may be.

Definition: A solution branch on an interval \(I\) is a differentiable function \(y\) satisfying the differential equation at every \(x\in I\). A separated equation obtained by division represents a solution only on intervals where each divisor remains nonzero.

A Safe Separation for the Focus Equation

Worked Example: Separating Without Dividing by a Vanishing Factor

Consider \(y'=(x+1)(y^2+1)\). The dependent-variable factor satisfies \(y^2+1\ge 1>0\) for every real \(y\). Division by this factor is therefore valid at every point of any real-valued solution.

Divide both sides by \(y^2+1\):

$$ \frac{y'}{y^2+1} = \frac{(x+1)(y^2+1)}{y^2+1} = x+1. $$

The cancellation is valid because \(y^2+1\ne 0\). Reversing the step confirms the equivalence: multiply both sides by \(y^2+1\) to recover \(y'=(x+1)(y^2+1)\).

At the point \(x=-1,\ y=2\), the original right-hand side is \((-1+1)(2^2+1)=0\cdot5=0\). The separated right-hand side is also \(-1+1=0\), and the separated left-hand side is \(y'/5\), which equals \(0\) when the original equation gives \(y'=0\). The separated equation remains defined at \(x=-1\).

Notice that no division by \(x+1\) was needed. That factor vanishes at \(x=-1\), so dividing by it would make the rearranged equation undefined there. Keeping it on the right-hand side avoids that unnecessary restriction.

Division Can Exclude a Solution

If \(h(c)=0\) for some constant \(c\), the constant function \(y(x)=c\) satisfies \(y'=g(x)h(y)\): its derivative is zero, and the right-hand side is \(g(x)h(c)=0\). Dividing by \(h(y)\) is not valid for this solution. It must be considered separately rather than assumed to be included in the divided equation.

Worked Example: A Zero Factor and a Constant Solution

Consider \(y'=xy\). Dividing by \(y\) gives \(y'/y=x\), but this division requires \(y\ne 0\). First check the excluded case: if \(y(x)=0\), then \(y'=0\) and \(xy=x\cdot0=0\), so \(y=0\) is a solution of the original equation.

For a solution branch on an interval where \(y\ne0\), division is valid:

$$ y'=xy \quad\Longleftrightarrow\quad \frac{y'}{y}=x, \qquad y\ne0. $$

To check the algebra at \(x=2,\ y=3\), the original right-hand side is \(2\cdot3=6\). If \(y'=6\), the separated left-hand side is \(6/3=2\), which equals \(x\). Multiplying the separated equation by \(y=3\) recovers \(y'=xy=6\). The constant solution \(y=0\) is not represented by this divided equation, because \(y'/y\) is undefined there.

Division does not prove that every other solution must stay away from zero on its entire domain. It says only that the displayed divided equation is valid on intervals where \(y\ne0\). Any claim about whether a solution can reach or cross a zero requires further reasoning.

Do Not Divide by a Factor You Do Not Need

Worked Example: Keeping the Independent-Variable Factor

Consider \(y'=(x-2)(y-3)\). The factor \(y-3\) can be divided out only on an interval where \(y\ne3\). The factor \(x-2\), however, need not be divided out at all.

For a branch with \(y\ne3\), divide only by \(y-3\):

$$ \frac{y'}{y-3} = \frac{(x-2)(y-3)}{y-3} = x-2. $$

Reverse the step by multiplying by \(y-3\), which gives the original equation. At \(x=4,\ y=5\), the original right-hand side is \((4-2)(5-3)=2\cdot2=4\). If \(y'=4\), the separated left-hand side is \(4/(5-3)=4/2=2\), equal to \(x-2=4-2=2\).

The excluded constant case is \(y=3\). Substitution into the original equation gives \(y'=0\) and \((x-2)(3-3)=0\), so \(y=3\) is indeed a solution. Dividing by \(x-2\) as well would be unnecessary and would make that rearrangement undefined at \(x=2\), even though the original equation is defined there.

Why the Chain Rule Supports Separation

Separation is often followed by finding antiderivatives. The relevant chain-rule justification needs a regularity condition: nonvanishing alone does not guarantee that a function has an antiderivative. Suppose \(g\) and \(h\) are continuous, \(J\) is an interval on which \(h(y)\ne0\), and \(y(x)\in J\) throughout an interval \(I\). Then \(1/h\) is continuous on \(J\), so it has an antiderivative \(H\) there. By definition, \(H'(u)=1/h(u)\) for \(u\in J\).

Theorem: Under those conditions, a differentiable function \(y:I\to J\) satisfies \(y'=g(x)h(y)\) if and only if it satisfies \(\dfrac{d}{dx}H(y(x))=g(x)\), where \(H'=1/h\) on \(J\).

Proof. Suppose first that \(y'=g(x)h(y)\). The chain rule gives

$$ \frac{d}{dx}H(y(x)) = H'(y(x))y'(x) = \frac{1}{h(y(x))}g(x)h(y(x)) = g(x). $$

The cancellation is permitted because \(h(y(x))\ne0\) on \(I\). Conversely, suppose \(\dfrac{d}{dx}H(y(x))=g(x)\). Applying the chain rule and using \(H'=1/h\) gives \(y'(x)/h(y(x))=g(x)\). Multiplication by the nonzero quantity \(h(y(x))\) yields \(y'(x)=g(x)h(y(x))\). This proves both directions on the stated interval. If \(h\) has zeros, this argument applies only on intervals where the solution’s values avoid them; solutions at the zeros must be checked in the original equation.

A Common Mistake

A tempting but invalid step for \(y'=(x+1)(y^2+1)\) is to divide both sides by \(x+1\) and write \(y'/(x+1)=y^2+1\) as an equivalent equation for every real \(x\). At \(x=-1\), the quotient \(y'/ (x+1)\) is undefined. The original equation, by contrast, is defined there and says \(y'(-1)=0\). The divided equation therefore cannot be asserted on an interval containing \(-1\).

Correction: Divide only by the factor \(y^2+1\), which is strictly positive, and keep \(x+1\) intact. Then \(y'/(y^2+1)=x+1\) is defined at \(x=-1\) as well as elsewhere.

A Reliable Check Before Separating

1
Identify every factor.
Write the equation in product form, such as \(y'=g(x)h(y)\), and note which factors could be zero.
2
Check the proposed divisor.
State where it is nonzero. If it can vanish, record the excluded case and test it in the original equation.
3
Keep the domain in view.
Do not claim an equation is valid at points where a denominator is zero. Avoid dividing by factors that do not need to be removed.
4
Reverse the algebra.
Multiply by the stated nonzero divisor to verify that the original equation follows on the same interval.

Why This Careful Bookkeeping Matters

A separated equation is useful only if its connection to the original equation is understood. Dividing by a factor that vanishes may remove a constant solution, restrict the interval under consideration, or leave an equation undefined at points where the original equation still makes sense. Stating the conditions prevents an algebraic rearrangement from being mistaken for a fully equivalent equation.

The key habit is simple: before dividing, ask where the divisor is zero. If it never vanishes, the step is safe throughout the stated domain. If it can vanish, separate the nonzero case from the excluded case and check the latter in the original differential equation. Then reverse the algebra to confirm the claimed equivalence.

Check Your Understanding

For each question, state the conditions that make the algebra valid.

  1. In \(y'=(x+1)(y^2+1)\), why can you divide by \(y^2+1\) for every real-valued solution?
  2. For \(y'=xy\), what solution must be checked separately before dividing by \(y\)?
  3. Why does dividing by \(x-2\) in \(y'=(x-2)(y-3)\) restrict where the rearranged equation is defined?
  4. What continuity assumptions ensure that \(1/h\) has an antiderivative on an interval where \(h\) is nonzero?
  5. What operation should you perform to check that a separated equation implies the original equation?

Test yourself: Calculus I final exam practice

Ready to check what you know? Work a full-length practice final, then open the complete worked solutions.

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers the full Calculus AB & BC curriculum (the core of Calculus I and II): full review, every practice question, and step-by-step solutions to each one.

QR code to download the Calc Pass app

Get the Calc Pass App

Scan to download and practice on the go, with instant scoring.

Calc Pass Volume 1: 1,114 Practice Questions book cover

Vol. 1: 1,114 Questions

The complete practice question bank, organized by AB & BC topic.

View on Amazon
Calc Pass Volume 2: Solutions Manual book cover

Vol. 2: Solutions Manual

Fully worked solutions to every question in Volume 1.

View on Amazon