Tutorials › AP Statistics › Separating Variables Without Losing Domain Conditions

Separable Equations and Growth · Tutorial 561 of 999

Separating Variables Without Losing Domain Conditions

Separate variables carefully by recording where each factor is defined and which values are excluded by division or logarithms.

Intermediate 9 min read

What You'll Learn

  • Rewrite a separable differential equation with its y-dependent factor beside dy and its x-dependent factor beside dx.
  • Distinguish the original domain of an equation from additional restrictions created by division.
  • Check whether dividing by a factor omits constant solutions.
  • Apply the domain rules for logarithms, including the role of absolute values.
  • Verify that a separated equation is equivalent to the original equation on the stated domain.

Why Domain Conditions Matter When Separating

Separating variables is an algebraic rearrangement of a differential equation. The goal is to place expressions involving \(y\) with \(dy\) and expressions involving \(x\) with \(dx\). But rearranging may require dividing by an expression that can equal zero, or working with a logarithm whose argument must be positive.

Those restrictions matter because the rearranged equation may describe only part of the original equation’s solution set. A value excluded by division might still give a valid constant solution. A logarithm may restrict which values are allowed even before any rearrangement takes place.

Key takeaway: Record the original domain first. Then, whenever you divide or use a logarithm, state the additional restrictions. Check excluded values in the original differential equation rather than assuming they are invalid solutions.

What Separation Means

A first-order differential equation is separable when it can be written in the form \(y'=g(x)h(y)\), where \(g\) depends only on \(x\) and \(h\) depends only on \(y\). On an interval where \(h(y)\ne 0\), divide by \(h(y)\) and write the separated equation as

$$ \frac{1}{h(y)}\,dy=g(x)\,dx. $$

This notation places the \(y\)-dependent factor beside \(dy\) and the \(x\)-dependent factor beside \(dx\). The notation is a useful shorthand for a chain-rule relationship; it does not mean that \(dx\) and \(dy\) are ordinary numbers that can be rearranged without conditions.

The condition \(h(y)\ne 0\) is essential for this division. If \(h(c)=0\), then the constant function \(y(x)=c\) satisfies the original equation wherever the equation is defined: its derivative is zero, and \(g(x)h(c)=0\). Such a solution is not included in the division by \(h(y)\), so it must be checked separately.

Why the Rearrangement Works

The chain rule explains the method. Suppose \(y\) is a differentiable solution on an interval and \(h(y(x))\ne 0\) throughout that interval. Define a function \(H\) on the relevant \(y\)-values by requiring \(H'(y)=1/h(y)\). Then

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

Thus, division by \(h(y)\) is precisely the step that makes the chain rule produce a \(y\)-only factor differentiated through \(y(x)\). The argument applies only where the quotient is defined. It justifies separation on such an interval, not at values where \(h(y)=0\).

In practice, keep three questions in view:

  • Where is the original differential equation defined?
  • What values are excluded by the division used to separate it?
  • Do any excluded values give solutions of the original equation?

Worked Examples: Tracking Restrictions

Worked Example: Dividing by a Factor That Can Be Zero

Separate the equation \(y'=x(y-2)\), keeping track of the value excluded by division.

Step 1: Identify the original domain. The expression \(x(y-2)\) is defined for every real \(x\) and \(y\), so the equation has no domain restriction from its formula.

Step 2: Divide only where permitted. If \(y\ne 2\), divide both sides by \(y-2\):

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

Using differential notation to place the factors, this is

$$ \frac{1}{y-2}\,dy=x\,dx, \qquad y\ne 2. $$

Step 3: Check the excluded value in the original equation. If \(y(x)=2\), then \(y'=0\) and \(x(y-2)=x(0)=0\). Hence \(y(x)=2\) satisfies the original equation.

Check: On any interval where \(y\ne2\), multiplying the separated equation by \(y-2\) gives \(y'=x(y-2)\), the original equation. The constant solution \(y=2\) is valid but is not represented by the divided equation.

Worked Example: A Rational Factor with Two Kinds of Exclusion

Separate \(y'=\dfrac{xy}{y^2-4}\) and distinguish the equation’s original domain from the restriction added by division.

Step 1: State where the original equation is defined. Its denominator must be nonzero:

$$ y^2-4\ne0 \quad\Longleftrightarrow\quad (y-2)(y+2)\ne0 \quad\Longleftrightarrow\quad y\ne2,\; y\ne-2. $$

Step 2: Separate on values where division by \(y\) is allowed. For \(y\ne0\), multiply the equation by \((y^2-4)/y\):

$$ \frac{y^2-4}{y}\,y'=x, \qquad\text{so}\qquad \frac{y^2-4}{y}\,dy=x\,dx. $$

The separated equation is being used where \(y\ne-2\), \(y\ne2\), and \(y\ne0\). The first two restrictions come from the original equation; the last comes from the division.

Step 3: Check the value excluded only by division. At \(y=0\), the original denominator is \(0^2-4=-4\), which is nonzero. The constant function \(y(x)=0\) has derivative zero, while the right-hand side of the original equation is \(x(0)/(-4)=0\). Therefore \(y=0\) is a solution of the original equation.

Check: Where \(y\ne0,\pm2\), multiplying \(\dfrac{y^2-4}{y}y'=x\) by \(\dfrac{y}{y^2-4}\) recovers \(y'=xy/(y^2-4)\). The equation itself excludes \(y=\pm2\); division additionally excludes \(y=0\), even though that value gives a valid constant solution.

Worked Example: A Logarithm in the Original Equation

Separate \(y'=\dfrac{\ln y}{x}\), and record the restrictions from both the logarithm and the division.

Step 1: Find the original domain. The natural logarithm \(\ln y\) is defined only for \(y>0\), and the denominator requires \(x\ne0\). Thus the original equation is defined only where \(y>0\) and \(x\ne0\).

Step 2: Divide by the \(y\)-dependent factor. To put the \(y\)-factor with \(dy\), divide by \(\ln y\). This requires \(\ln y\ne0\), or \(y\ne1\):

$$ \frac{y'}{\ln y}=\frac{1}{x} \quad\Longrightarrow\quad \frac{1}{\ln y}\,dy=\frac{1}{x}\,dx, \qquad y>0,\; x\ne0,\; y\ne1. $$

Step 3: Check the excluded value. At \(y=1\), the original right-hand side is \(\ln(1)/x=0\) for \(x\ne0\). The constant function \(y(x)=1\) therefore satisfies the original equation on intervals that do not contain \(x=0\).

Check: For \(y>0\), \(y\ne1\), and \(x\ne0\), multiplying the separated equation by \(\ln y\) recovers \(y'=\ln(y)/x\). The restriction \(y>0\) comes from the original logarithm; \(y\ne1\) is added by division. The constant \(y=1\) solution must be checked in the original equation.

Worked Example: A Denominator That Never Vanishes

Separate \(y'=\dfrac{x+1}{y^2+1}\) and determine whether division introduces an exclusion.

Step 1: Check the denominator. Since \(y^2\ge0\) for real \(y\), \(y^2+1\ge1>0\). The original equation is defined for every real \(x\) and \(y\).

Step 2: Multiply by the denominator. Because \(y^2+1\) is never zero, the rearrangement is valid for every real \(y\):

$$ (y^2+1)y'=x+1, \qquad (y^2+1)\,dy=(x+1)\,dx. $$

Check: Dividing the separated equation by \(y^2+1\), which is positive and nonzero, gives \(y'=(x+1)/(y^2+1)\). No real \(y\)-value was lost, and no extra domain restriction was introduced.

Logarithms and Their Domains

Logarithmic expressions need the same care as denominators. For real numbers, \(\ln u\) is defined only when \(u>0\). The expression \(\ln|u|\) is defined only when \(u\ne0\): the absolute value permits either sign of \(u\), but it does not permit \(u=0\).

This distinction is useful when a logarithm appears while manipulating an equation. For example, if \(y\ne0\), then \(\ln(y^2)=2\ln|y|\), because \(y^2>0\) for either sign of \(y\). Replacing this with \(2\ln y\) would be invalid for negative \(y\), since \(\ln y\) is not defined there. Conversely, writing \(\ln|y|\) does not restore the value \(y=0\), where the logarithm remains undefined.

When a differential equation already contains a logarithm, as in the third example, its domain restriction must be stated before separating. If a later algebraic step introduces another logarithm, check that logarithm’s argument separately; do not assume it has the same domain as the original equation.

A Reliable Separation Checklist

1
Record the original domain.
Check denominators, logarithms, square roots, and any other expressions that restrict \(x\) or \(y\).
2
Separate only where each operation is valid.
Before dividing by a factor, state that it is nonzero. Keep the separated equation’s restrictions visible.
3
Check excluded values.
Substitute a value excluded only by division into the original equation to see whether it gives a constant solution.
4
Verify the rearrangement.
On the stated domain, reverse the algebra to confirm that the separated equation is equivalent to the original one.

Common Mistake: Treating the Separated Equation as the Whole Answer

A frequent error is to divide by a factor that can be zero and then forget the value that was excluded. For instance, starting with \(y'=x(y-2)\), a student may write \(\dfrac{1}{y-2}\,dy=x\,dx\) and conclude that \(y=2\) is not a solution because the separated expression is undefined there. That conclusion confuses the domain of the rearranged equation with the domain of the original one.

The correction is to state that the separated equation holds only where \(y\ne2\), then substitute \(y=2\) into the original equation. Since both sides are zero, \(y=2\) is a valid constant solution. The same habit applies to logarithms: replacing \(\ln y\) by \(\ln|y|\) is not a valid way to broaden an equation whose original logarithm requires \(y>0\).

Practical rule: Separation preserves equivalence only on values where every operation used is defined. Any excluded values should be tested in the original equation, not discarded automatically.

Check Your Understanding

For each question, state the relevant domain restrictions and explain whether division may omit a constant solution.

  1. Separate \(y'=x(y+3)\). Which value must be excluded during division, and does it satisfy the original equation as a constant solution?
  2. For \(y'=y/(x-1)\), identify the original restriction on \(x\). What additional restriction appears if you divide by \(y\)?
  3. For \(y'=\ln(y-2)\), what values of \(y\) are allowed by the original equation? What value makes the right-hand side zero?
  4. Why is \(\ln|y|\) defined for negative \(y\) but not for \(y=0\)?
  5. In \(y'=(x+2)/(y^2+4)\), does separating require excluding any real \(y\)-values? Justify your answer.

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers all of AP Calculus AB & BC: 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