Tutorials › Calculus I › Common Mistakes in Separation

Slope Fields and Separable Equations · Tutorial 1380 of 1495

Common Mistakes in Separation

Use the conditions behind separation to spot common errors, preserve equilibrium solutions, integrate correctly, and check proposed solutions by differentiation.

Intermediate 10 min read

What You'll Learn

  • State when a differential equation can be separated and what conditions allow division.
  • Explain why dividing by a factor that can be zero may discard equilibrium solutions.
  • Keep the constant of integration when combining two indefinite integrals.
  • Choose antiderivatives correctly and test them by differentiation.
  • Use absolute values correctly when integrating a reciprocal.
  • Verify a separated solution by substituting its derivative into the original equation.

Why Separation Requires Care

Separation of variables is a direct way to solve many first-order differential equations. Its steps can look routine: rearrange, integrate both sides, and solve for the dependent variable if possible. Yet each step has conditions. Dividing by an expression that can equal zero may discard solutions, and an incorrect antiderivative or a missing constant changes the result.

The safest approach is to keep track of what is being divided by, integrate with the correct rules, and check the final answer in the original equation. These habits are especially important when a differential equation has equilibrium solutions or when a logarithm appears.

Definition: An equation \(y'=g(x)h(y)\) is called separable when its variables can be arranged so that the \(y\)-dependent factors are on one side and the \(x\)-dependent factors are on the other. Here \(y'=dy/dx\), and the functions are considered on intervals where the expressions used in the rearrangement are defined.

What a Valid Separation Step Requires

Suppose \(y'=g(x)h(y)\). Wherever \(h(y)\ne 0\), division by \(h(y)\) gives

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

Writing the separated differential form and integrating gives

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

The division is valid only where \(h(y)\ne 0\). Any value \(r\) with \(h(r)=0\) must be checked in the original equation: the constant function \(y(x)=r\) has \(y'=0\), while \(g(x)h(r)=0\), so it is an equilibrium solution. Dividing by \(h(y)\) removes that possibility from the separated calculation.

Indefinite integration also introduces constants. When two indefinite integrals are equated, their constants can be combined into one arbitrary constant, but they cannot simply be discarded. Finally, any proposed solution should be checked by differentiating it and substituting into the original differential equation.

Why the Separation Method Works

The method is justified by the chain rule. Suppose \(F\) is an antiderivative of \(1/h\) on an interval where \(h\ne 0\), and \(G\) is an antiderivative of \(g\). Thus \(F'(y)=1/h(y)\) and \(G'(x)=g(x)\). If \(y\) solves the differential equation and stays in that interval, then

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

Therefore \(F(y(x))-G(x)\) has derivative zero on the interval and is constant there. This yields \(F(y)=G(x)+C\). Conversely, differentiating this relation gives \(y'/h(y)=g(x)\); multiplying by \(h(y)\) recovers the original equation on the region where \(h(y)\ne 0\). The argument explains both why separation works and why it does not cover the points where division by \(h(y)\) is invalid.

Worked Example: Keeping the Integration Constant

Worked Example: Keeping the Integration Constant

Solve the initial-value problem \(y'=2xy\), \(y(0)=3\), and identify what goes wrong if the integration constant is omitted.

First, separate where \(y\ne 0\):

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

Integrate each side:

$$ \int \frac{1}{y}\,dy=\int 2x\,dx, \qquad \ln|y|=x^2+C. $$

Use \(y(0)=3\):

$$ \ln|3|=0^2+C, \qquad C=\ln 3. $$

Since the initial value is positive, the solution on its interval is positive. Exponentiating gives \(y=e^{x^2+\ln 3}=3e^{x^2}\). Check the initial condition and the equation:

$$ y(0)=3e^0=3, \qquad y'=3e^{x^2}(2x)=2x(3e^{x^2})=2xy. $$

If the constant is omitted, the calculation gives \(\ln|y|=x^2\), hence \(y=e^{x^2}\) or \(y=-e^{x^2}\). Neither satisfies \(y(0)=3\): their initial values are \(1\) and \(-1\). The arbitrary constant is what allows the family to fit the specified initial value.

Worked Example: Division Can Lose Equilibria

Worked Example: Division Can Lose Equilibria

Consider \(y'=y(1-y)\). Find its equilibrium solutions and solve the initial-value problem \(y(0)=\frac12\).

For a constant solution \(y(x)=r\), the derivative is zero, so the equation requires \(r(1-r)=0\). Therefore \(r=0\) or \(r=1\), giving the equilibrium solutions \(y=0\) and \(y=1\). Dividing by \(y(1-y)\) would exclude both and cannot be used to find them.

For the specified initial value, \(y\) is initially neither zero nor one, so separate on an interval where \(y(1-y)\ne 0\):

$$ \frac{dy}{y(1-y)}=dx. $$

Use the partial-fraction identity \(1/[y(1-y)]=1/y+1/(1-y)\). Then

$$ \int\left(\frac{1}{y}+\frac{1}{1-y}\right)dy =\int dx, \qquad \ln|y|-\ln|1-y|=x+C. $$

At \(x=0\), \(y=1/2\), so \(\ln|y|-\ln|1-y|=\ln(1/2)-\ln(1/2)=0\), and \(C=0\). The solution remains between zero and one, so the absolute values can be removed there. Exponentiating and solving for \(y\) gives

$$ \ln\!\left(\frac{y}{1-y}\right)=x, \qquad \frac{y}{1-y}=e^x, \qquad y=\frac{e^x}{1+e^x}. $$

To check, differentiate and substitute:

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

Also \(y(0)=1/(1+1)=1/2\), as required. The equilibria \(y=0\) and \(y=1\) are additional solutions of the original equation, not solutions to be recovered by dividing through by \(y(1-y)\).

Worked Example: Test an Antiderivative by Differentiating

Worked Example: Test an Antiderivative by Differentiating

Separate and solve implicitly \(y'=x/(1+y^2)\), with \(y(0)=0\).

Multiply by \(1+y^2\) and use \(dy=y'\,dx\):

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

Integrate term by term:

$$ \int(1+y^2)\,dy=\int x\,dx, \qquad y+\frac{y^3}{3}=\frac{x^2}{2}+C. $$

The initial condition gives \(0+0=0+C\), so \(C=0\). The implicit solution is \(y+y^3/3=x^2/2\). Check it by differentiating both sides with respect to \(x\):

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

This is the original equation, and the relation gives \(y(0)=0\). A common incorrect integration is \(\int y^2\,dy=y^2/2\). That would produce \(y+y^2/2=x^2/2\). Differentiating that relation gives \((1+y)y'=x\), or \(y'=x/(1+y)\), which is not the stated equation. Differentiation exposes the error.

Worked Example: Absolute Values and Negative Solutions

Worked Example: Absolute Values and Negative Solutions

Solve \(y'=y\) with \(y(0)=-2\), taking care with the logarithm.

For \(y\ne 0\), separation and integration give

$$ \frac{1}{y}\,dy=dx, \qquad \ln|y|=x+C. $$

Substitute the initial value: \(\ln|-2|=C\), so \(C=\ln 2\). Exponentiating yields \(|y|=2e^x\). Because \(y(0)=-2\), choose the negative branch: \(y=-2e^x\). Check the initial condition and equation:

$$ y(0)=-2e^0=-2, \qquad y'=-2e^x=y. $$

Writing \(\ln y=x+C\) instead would be invalid for this solution: the real logarithm \(\ln y\) is not defined when \(y<0\). The absolute value in \(\ln|y|\) preserves both positive and negative nonzero branches. The constant solution \(y=0\), excluded when dividing by \(y\), must also be checked in the original equation; it satisfies \(y'=y\).

A Practical Error-Checking Routine

When reviewing a separated solution, inspect each transition rather than trusting a familiar-looking formula. The following checks catch the most frequent mistakes:

1
List the excluded values.
Before dividing by a function of \(y\), identify where that function is zero. Substitute those values into the original equation to test for equilibrium solutions.
2
Integrate both sides completely.
Keep the constant of integration, combine constants only after integrating, and verify unfamiliar antiderivatives by differentiating them.
3
Respect the domain and sign.
Use \(\ln|u|\) when integrating \(1/u\) on an interval where \(u\ne 0\). If solving for a variable requires choosing a branch, use the initial condition to choose it.
4
Check the result in the original equation.
Differentiate the proposed solution, substitute the derivative and the solution into the original equation, and check any initial condition.

These checks matter because separation is a sequence of equivalent steps only under its stated conditions. A lost equilibrium, an omitted constant, or an incorrect antiderivative can produce an answer that looks plausible but does not solve the problem that was posed.

Check Your Understanding

For each question, identify the condition or check that prevents the stated error.

  1. For \(y'=y(y-3)\), which constant solutions need to be tested before dividing by \(y(y-3)\)?
  2. Why does \(\ln|y|=x+C\) generally describe more than the relation \(\ln y=x+C\)?
  3. When two indefinite integrals are equated, why may their constants be combined, but not omitted?
  4. How can differentiating an antiderivative check reveal an incorrect integration step?
  5. What two checks should be made after obtaining a solution to an initial-value problem?

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