Tutorials › Calculus I › Recognizing Separable Equations

Slope Fields and Separable Equations · Tutorial 1359 of 1495

Recognizing Separable Equations

Learn to recognize separable differential equations, rewrite them into product form when valid, and identify equations whose dependence on \(x\) and \(y\) cannot be separated.

Intermediate 9 min read

What You'll Learn

  • Identify the product form that defines a separable first-order differential equation.
  • Distinguish equations already written in separable form from those needing algebraic rearrangement.
  • Track restrictions introduced by division when rewriting an equation.
  • Use a product identity to test whether a slope function can be factored.
  • Recognize when a sum or other expression does not separate into an \(x\)-factor and a \(y\)-factor.

Recognizing the Product Structure

A first-order differential equation describes a relationship between an independent variable \(x\), a dependent variable \(y\), and the derivative \(y'=\frac{dy}{dx}\). In the notation established in the earlier material on first-order differential equation notation, an equation can be written as \(y'=F(x,y)\), where \(F\) gives the slope at each point in its domain.

A useful feature to look for is whether this slope can be expressed as a product: one factor depending only on \(x\), and another depending only on \(y\). Recognizing that structure identifies a separable equation. At this stage, the goal is only to recognize and, when needed, rearrange the equation into that form. We will not solve it here.

Definition: A first-order differential equation is separable on a domain if it can be written as $$ y'=f(x)g(y), $$ where \(f\) depends only on \(x\) and \(g\) depends only on \(y\). It is directly separable when this product form is already visible in the equation. If algebraic rearrangement is needed to obtain the form, the equation is separable by rearrangement on the points where that rearrangement is valid.

The factors need not be complicated. For example, \(x^2\) is an \(x\)-only factor, while \(1+y^2\) is a \(y\)-only factor. By contrast, a sum such as \(x+y\) does not display a product of an \(x\)-only factor and a \(y\)-only factor. A sum might sometimes be rewritten by factoring, but it is not separable merely because it contains both variables.

Directly Separable Equations

In a directly separable equation, the derivative is already expressed as a product with the required dependence. Recognizing the factors is a matter of checking that each factor contains only its indicated variable. The same expression can have many equivalent factorizations; the important property is that at least one valid factorization exists on the domain under consideration.

Worked Example: Identifying a Direct Product

Consider the equation

$$ y'=x^2(1+y^2). $$

The right-hand side has the factor \(x^2\), which depends only on \(x\), and the factor \(1+y^2\), which depends only on \(y\). Set \(f(x)=x^2\) and \(g(y)=1+y^2\). Then

$$ f(x)g(y)=x^2(1+y^2)=y'. $$

Thus the equation is directly separable. Checking the product by multiplying the chosen factors recovers exactly the original right-hand side, so no rearrangement or domain restriction is needed.

It is not necessary for both factors to be nonconstant. For instance, an equation \(y'=3x\) is also a product-form equation: take \(f(x)=3x\) and \(g(y)=1\). This observation is useful, but it does not make every expression separable. The dependence on the variables still has to factor into a product.

Rearranging into Product Form

Some equations place \(y'\) alongside a coefficient that depends on \(x\), \(y\), or both. Algebra may isolate \(y'\) and expose a product. When doing this, keep track of any value that must be excluded in order to divide. A rearranged equation is equivalent to the original only where the algebraic operation used is valid.

Worked Example: Isolating the Derivative

Consider the equation

$$ (y-3)y'=2x+1. $$

To put this in the form \(y'=f(x)g(y)\), divide by \(y-3\). This division is valid only when \(y\ne 3\). On that restricted domain,

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

Choose \(f(x)=2x+1\) and \(g(y)=\frac{1}{y-3}\). Multiplying gives

$$ f(x)g(y)=(2x+1)\frac{1}{y-3} =\frac{2x+1}{y-3}. $$

Multiplying this expression by \(y-3\) recovers \(2x+1\), as in the original equation. The equation is separable by rearrangement where \(y\ne 3\). This calculation does not establish an equivalent equation at \(y=3\), because division by zero is not allowed.

The restriction matters even when the final expression looks familiar. For example, if the coefficient of \(y'\) is \(x+1\), dividing by it excludes \(x=-1\). That exclusion is a restriction on the points where the rearranged equation represents the original one; it should not be silently discarded.

Worked Example: A Coefficient Depending on Both Variables

Consider

$$ (1+y^2)y'=x. $$

To isolate the derivative, divide by \(1+y^2\):

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

The factors are \(f(x)=x\) and \(g(y)=\frac{1}{1+y^2}\). The denominator is never zero for real \(y\), since \(1+y^2\ge 1\). Therefore this division is valid for every real \(y\). As a check, multiplying the factors gives

$$ f(x)g(y)=x\frac{1}{1+y^2} =\frac{x}{1+y^2}, $$

and multiplying by \(1+y^2\) returns the original right-hand side \(x\). Thus this equation is separable by rearrangement, without excluding any real \(y\)-value.

A Test for Whether a Product Factorization Is Possible

When the right-hand side is not obviously a product, a simple identity can help test it. Suppose \(F(x,y)=f(x)g(y)\). For any two \(x\)-values \(x_1,x_2\) and two \(y\)-values \(y_1,y_2\) in the domain, multiplying the opposite corners gives equal results:

$$ F(x_1,y_1)F(x_2,y_2) = f(x_1)g(y_1)f(x_2)g(y_2) = F(x_1,y_2)F(x_2,y_1). $$

This equality is a necessary condition for a product factorization. On a rectangular domain, it is also sufficient when \(F\) is nowhere zero. The nonzero condition lets us define a factor using division by a fixed value of \(F\).

Theorem: Let \(F\) be defined and nowhere zero on a Cartesian product \(I\times J\). Then \(F(x,y)\) can be written as \(f(x)g(y)\) on \(I\times J\) if and only if $$ F(x_1,y_1)F(x_2,y_2)=F(x_1,y_2)F(x_2,y_1) $$ for every \(x_1,x_2\in I\) and \(y_1,y_2\in J\).

Here is the proof. If \(F=f(x)g(y)\), the equality follows by multiplying the factors in either order, as shown above. For the converse, choose fixed \(x_0\in I\) and \(y_0\in J\), and define

$$ f(x)=F(x,y_0), \qquad g(y)=\frac{F(x_0,y)}{F(x_0,y_0)}. $$

The denominator is nonzero because \(F\) is nowhere zero. Apply the assumed identity with \(x_1=x\), \(x_2=x_0\), \(y_1=y\), and \(y_2=y_0\). It gives

$$ F(x,y)F(x_0,y_0)=F(x,y_0)F(x_0,y). $$

Dividing by \(F(x_0,y_0)\), which is nonzero, yields

$$ F(x,y)=F(x,y_0)\frac{F(x_0,y)}{F(x_0,y_0)} =f(x)g(y). $$

This proves both directions. If \(F\) has zeros, the identity remains necessary, but this particular converse requires extra care; the nonzero condition is part of the theorem.

Recognizing a Nonseparable Right-Hand Side

The test can rule out a product form by finding just one choice of four points where the identity fails. The following calculation is a concrete way to distinguish a sum that mixes the variables from a separable product.

Worked Example: Testing a Sum of Variables

Consider

$$ y'=x+y, $$

so \(F(x,y)=x+y\). Use \(x_1=0\), \(x_2=1\), \(y_1=0\), and \(y_2=1\). Evaluate the four values:

$$ F(0,0)=0+0=0,\qquad F(1,1)=1+1=2, $$ $$ F(0,1)=0+1=1,\qquad F(1,0)=1+0=1. $$

The products from opposite corners are

$$ F(0,0)F(1,1)=0\cdot 2=0, \qquad F(0,1)F(1,0)=1\cdot 1=1. $$

Since \(0\ne 1\), the necessary identity fails. Therefore \(x+y\) cannot be written as \(f(x)g(y)\) on a domain containing these four points. The check is the unequal pair of products just computed; no proposed factors can reproduce all four values.

This test should be applied on the domain in question. If the equation is defined only on a smaller region, the four selected points must lie in that region. Failure at valid points proves that a product factorization is impossible there. Passing a few numerical checks, however, does not establish factorability; the identity in the theorem must hold for all relevant choices.

Common Pitfall: Dividing Without Checking

A frequent mistake is to divide by a factor that might be zero, then treat the resulting equation as equivalent everywhere. For instance, from \((y-3)y'=2x+1\), division by \(y-3\) creates an expression defined only when \(y\ne 3\). Writing the rearranged equation as if it also applied at \(y=3\) is not valid: the denominator is zero there. The correction is to state the restriction and remember that the rearrangement represents the original equation only on that restricted domain.

A related mistake is to call an equation separable just because its right-hand side contains an \(x\)-term and a \(y\)-term. The expression \(x+y\) has both variables, but the opposite-corner test shows that it does not factor as required. Separation is about a product of single-variable factors, not merely about variables appearing in the same formula.

A Recognition Checklist

When you are given a first-order equation, use the following process before attempting any further method:

1
Identify the slope expression.
Write the equation in terms of \(y'\) and its right-hand side, if possible.
2
Look for single-variable factors.
Check whether the slope is already a product of a function of \(x\) and a function of \(y\).
3
Rearrange only when valid.
If isolating \(y'\) requires division, identify every value that makes the divisor zero.
4
Check the proposed product.
Multiply the factors back together and compare with the original slope expression on the stated domain.
5
Reject unsupported factorizations.
If the product test fails at valid points, the right-hand side is not separable on a domain containing those points.

Recognizing this structure matters because it tells you which method may be appropriate next, before doing any solving. Just as importantly, noticing a domain restriction prevents a rearrangement from being mistaken for a universally equivalent equation. The key question is precise: can the slope be expressed as an \(x\)-only factor times a \(y\)-only factor, and on what domain is that expression valid?

Check Your Understanding

For each question, focus on the product structure and any restrictions introduced by rearrangement.

  1. Is \(y'=(x-2)(y+4)\) directly separable? Identify suitable factors.
  2. Rewrite \((x+1)y'=y^2\) in product form where valid. Which \(x\)-value must be excluded by the division?
  3. Why is \(y'=x+y\) not separable on a domain containing the four points \((0,0),(1,1),(0,1),(1,0)\)?
  4. For \(y'=x/(1+y^2)\), does the denominator impose a restriction on real \(y\)? Explain.
  5. State the opposite-corner identity that every product \(F(x,y)=f(x)g(y)\) must satisfy.

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