Tutorials › AP Statistics › Integrating Separated Equations

Separable Equations and Growth · Tutorial 562 of 999

Integrating Separated Equations

Turn a separated differential equation into an implicit family of solution curves by integrating both sides and keeping track of constants and domains.

Intermediate 10 min read

What You'll Learn

  • Integrate each side of a separated equation with respect to its own variable
  • Combine the constants from two antiderivatives into one arbitrary constant
  • Interpret an implicit equation as a family of solution curves
  • Check an implicit solution by differentiating it
  • Keep track of domain restrictions introduced during separation and integration
  • Recognize why an arbitrary constant is needed for a general family of solutions

From Separation to a Family of Curves

After variables have been separated, the differential equation has one group of terms involving \(y\) and \(dy\), and another involving \(x\) and \(dx\). The next step is to integrate each side. The result is usually not one curve but a family of curves, indexed by an arbitrary constant.

For example, if separation gives \(A(y)\,dy=B(x)\,dx\), integrating both sides produces an equation relating \(y\) and \(x\). Sometimes that equation can be rearranged to write \(y\) explicitly as a function of \(x\). Sometimes keeping it implicit is simpler and fully sufficient.

Key idea: Integrating a separated equation gives a relation between \(x\) and \(y\). Include an arbitrary constant, and check the resulting relation against the original differential equation on the domain where the separation was valid.

The General Integration Pattern

Suppose a differential equation is separated on a domain where the division used in separation is valid, giving

$$ A(y)\,dy=B(x)\,dx. $$

Let \(H\) be an antiderivative of \(A\), so \(H'(y)=A(y)\), and let \(G\) be an antiderivative of \(B\), so \(G'(x)=B(x)\). Integrating the two sides gives

$$ H(y)+C_1=G(x)+C_2. $$

The two constants can be combined into one: set \(C=C_2-C_1\). The family can then be written as

$$ H(y)=G(x)+C. $$

There is no requirement to isolate \(y\). The equation \(H(y)=G(x)+C\) is an implicit description of the solution family. If it is convenient to solve for \(y\), that can be done; otherwise, the relation itself can be checked and used.

Why the Integrated Relation Works

The reason integration produces a solution relation is the chain rule. Suppose separation gives \(A(y)\,dy=B(x)\,dx\), or, for a differentiable function \(y=y(x)\),

$$ A(y)y'=B(x). $$

For antiderivatives \(H'=A\) and \(G'=B\), the chain rule gives

$$ \frac{d}{dx}\bigl(H(y(x))\bigr) =H'(y(x))y'(x) =A(y)y' =B(x) =G'(x). $$

Therefore the derivative of \(H(y(x))-G(x)\) is zero. On any connected interval on which the solution is defined, a differentiable function with zero derivative is constant. Hence

$$ H(y(x))-G(x)=C, $$

which is the integrated relation. Conversely, differentiating that relation gives \(A(y)y'=B(x)\). This checks the differential equation wherever the relation is differentiable and the original separation is valid.

Why the constant appears: Integration determines a function only up to an additive constant. That constant allows the equation to represent a family of solution curves, rather than a single curve.

Worked Examples

Worked Example: An Implicit Cubic Relation

Integrate the separated equation

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

An antiderivative of \(1+y^2\) with respect to \(y\) is \(y+\frac{y^3}{3}\), since

$$ \frac{d}{dy}\left(y+\frac{y^3}{3}\right)=1+y^2. $$

An antiderivative of \(1+x^2\) with respect to \(x\) is \(x+\frac{x^3}{3}\), since

$$ \frac{d}{dx}\left(x+\frac{x^3}{3}\right)=1+x^2. $$

Including the arbitrary constant gives the implicit family

$$ y+\frac{y^3}{3}=x+\frac{x^3}{3}+C. $$

There is no need to solve this cubic equation for \(y\). To check the result, differentiate both sides with respect to \(x\):

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

Since \(1+y^2\) is positive for every real \(y\), divide by it to obtain

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

which is the differential equation corresponding to the separated equation. The implicit relation is therefore a valid way to describe the family.

Worked Example: A Logarithm in an Implicit Solution

Consider the separated equation

$$ \left(1+\frac{1}{y}\right)dy=dx, \qquad y>0. $$

The restriction \(y>0\) makes \(1/y\) defined and allows the antiderivative of \(1/y\) to be written as \(\ln y\). Integrate each side:

$$ \int \left(1+\frac{1}{y}\right)dy = \int 1\,dx. $$

The left antiderivative is \(y+\ln y\), because its derivative is \(1+1/y\). The right antiderivative is \(x\). Including the arbitrary constant gives

$$ y+\ln y=x+C. $$

This relation is a useful implicit form; isolating \(y\) is not necessary. Check it by differentiating:

$$ \left(1+\frac{1}{y}\right)y'=1. $$

Because \(y>0\), the factor \(1+1/y\) is nonzero. Solving for \(y'\) gives

$$ y'=\frac{1}{1+1/y}=\frac{y}{1+y}. $$

Thus the implicit relation differentiates to the differential equation \(y'=y/(1+y)\) on the stated domain.

Worked Example: Combining Two Antiderivative Constants

Suppose separation gives

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

Integrate the left side with respect to \(y\) and the right side with respect to \(x\):

$$ \frac{y^2}{2}+C_1=\ln|x|+C_2. $$

Subtract \(C_1\) from both sides and define \(C=C_2-C_1\). Then

$$ \frac{y^2}{2}=\ln|x|+C. $$

To check the relation, differentiate on an interval where \(x\ne 0\):

$$ yy'=\frac{1}{x}. $$

Since the separated equation is \(y\,dy=(1/x)\,dx\), this is exactly its derivative form. In particular, the check does not require choosing a sign and writing \(y\) as a square root. The integrated relation is the solution form, on intervals where the original equation and separation are valid.

Constants and Domains

The constant \(C\) is arbitrary: different values generally describe different solution curves. Do not replace it with a particular number unless there is information that determines that number. Finding a value from an initial condition is a separate step.

The domain also matters. Separation may require dividing by a factor involving \(x\) or \(y\). If that factor is zero, the separated equation may not represent the original differential equation there. An antiderivative can introduce further domain restrictions: for example, \(1/x\) is defined only for \(x\ne 0\), and \(\ln|x|\) describes antiderivatives separately on the intervals \(x<0\) and \(x>0\). Keep the domain conditions from the separation step when interpreting the integrated relation.

A useful check is to differentiate the proposed relation and compare the result with the differential equation before separation. If a factor was divided out, also remember that the check applies only where that factor is nonzero. Any cases excluded by the division must be considered against the original equation, not silently added to or removed from the integrated family.

Common Pitfall: Dropping the Constant or Misusing the Logarithm

A frequent error is to integrate correctly but omit the arbitrary constant. For example, from \(y\,dy=(1/x)\,dx\), writing only

$$ \frac{y^2}{2}=\ln|x| $$

leaves out the family of possible vertical shifts in the integrated relation. Differentiating this equation gives \(yy'=1/x\), but it represents only the particular case \(C=0\), not the general family. The general integrated relation is

$$ \frac{y^2}{2}=\ln|x|+C. $$

Another error is to write \(\int (1/x)\,dx=\ln x\) without accounting for negative \(x\). The real-valued antiderivative on either interval that avoids zero is \(\ln|x|\), since

$$ \frac{d}{dx}\ln|x|=\frac{1}{x} \qquad (x\ne 0). $$

The absolute value is not decoration: it records that the antiderivative is valid on both sides of zero, while the equation still has separate domains on \(x<0\) and \(x>0\).

What an Implicit Solution Tells You

An implicit relation can be a complete and convenient answer. It records how \(x\) and \(y\) are related without requiring a formula with \(y\) alone on one side. To verify such an answer, differentiate it using the chain rule and check that the result matches the original differential equation on the relevant domain.

Implicit form is particularly useful when rearranging the relation would require unnecessary algebra, or when the resulting expression cannot be written using the elementary functions being used. The cubic relation in the first example illustrates the practical point: its verification is direct, even though explicitly solving a cubic for \(y\) would add work without improving the description of the family.

Takeaway: Integrate both sides with respect to their own variables, combine the additive constants into one arbitrary constant, and keep the result implicit whenever that is the clearest form. Then differentiate to check it and respect the domain where separation was valid.

Check Your Understanding

For each question, pay attention to the antiderivatives, the arbitrary constant, and the domain.

  1. Integrate \(y^2\,dy=2x\,dx\) and write the result with one arbitrary constant.
  2. Why can the two constants in \(H(y)+C_1=G(x)+C_2\) be replaced by one constant?
  3. Differentiate the relation \(y+\frac{y^3}{3}=x+C\) and state the resulting equation for \(y'\).
  4. What domain restriction must be kept when integrating \(\frac{1}{x}\,dx\)?
  5. Why can an implicit relation be a sufficient description of a solution family even when \(y\) has not been isolated?

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