Tutorials › Calculus I › Integrating Both Sides of a Separated Equation

Slope Fields and Separable Equations · Tutorial 1362 of 1495

Integrating Both Sides of a Separated Equation

Integrate a separated equation carefully, account for constants and restrictions, and interpret the result as a one-parameter family of curves.

Intermediate 10 min read

What You'll Learn

  • Write a separated equation in a form that can be integrated on both sides.
  • State the conditions that allow division by a function of the dependent variable.
  • Explain why the two integration constants combine into one arbitrary constant.
  • Interpret an integrated relation as a family of solution curves.
  • Check a separated relation by differentiating it.
  • Recognize when division may leave out a constant solution.

From a Separated Equation to an Integrated Relation

A separated differential equation has its \(x\)-dependent quantities on one side and its \(y\)-dependent quantities on the other. The next step is to integrate each side. This turns a differential equation into a relation involving \(x\), \(y\), and an arbitrary constant.

The constant matters: integrating both sides does not produce two independent parameters in the final family. It produces one, because only the difference between the two antiderivative constants affects the relation.

Core procedure: If \(y'=g(x)h(y)\) and \(h(y)\ne 0\) on the part of the solution being considered, separate to obtain \(\frac{1}{h(y)}\,dy=g(x)\,dx\), then integrate both sides. The resulting relation describes a family of solution curves on appropriate domains.

Integrating Both Sides

Suppose a differential equation has been separated into the form

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

Here \(dy\) and \(dx\) indicate which variable is integrated on each side. If \(H\) is an antiderivative of \(1/h\) and \(G\) is an antiderivative of \(g\), integrating gives

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

where \(C\) is an arbitrary real constant. This is an integrated relation between \(x\) and \(y\). For different values of \(C\), it generally describes different curves.

The notation \(H(y)\) means that the antiderivative \(H\), whose input is the dependent variable, is evaluated at \(y\). Likewise, \(G(x)\) is an antiderivative in the independent variable. Keeping track of which variable is being integrated helps prevent errors in both the antiderivative and the final relation.

Condition for dividing: Dividing by \(h(y)\) is valid only where \(h(y)\ne 0\). Any values where \(h(y)=0\) must be checked in the original differential equation, because division may exclude solutions that pass through or remain at those values.

Why There Is One Arbitrary Constant

One way to see why the integrated relation has a single constant is to use definite integrals along a solution. Suppose \(y'=g(x)h(y)\), and consider an interval where \(h(y)\ne 0\). Choose a point \(x_0\) on the interval and write \(y_0=y(x_0)\). Separating and integrating from the base values to \(x\) and \(y(x)\) gives

$$ \int_{y_0}^{y(x)}\frac{1}{h(u)}\,du = \int_{x_0}^{x}g(t)\,dt. $$

Let \(H\) be an antiderivative of \(1/h\), and let \(G\) be an antiderivative of \(g\). The Fundamental Theorem of Calculus turns this equality into

$$ H(y(x))-H(y_0)=G(x)-G(x_0). $$

Rearranging gives

$$ H(y(x))=G(x)+H(y_0)-G(x_0). $$

The quantities \(H(y_0)\), \(G(x_0)\), and the chosen base point are fixed for this particular solution. Their net contribution is one constant. Thus each solution has a relation of the form \(H(y)=G(x)+C\).

The same point appears if indefinite integrals are written with constants on both sides. Suppose one writes \(H(y)+C_1=G(x)+C_2\). Subtracting \(C_1\) from both sides gives \(H(y)=G(x)+(C_2-C_1)\). Since the difference \(C_2-C_1\) can be any real number, it is represented by one arbitrary constant \(C\), not two independent parameters.

Worked Examples

Worked Example: A Product of \(x\) and \(y\)

Integrate the separated equation obtained from \(y'=xy\), considering first solutions for which \(y\ne 0\).

Divide by \(y\), which is allowed on an interval where \(y\ne 0\):

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

Write the separated form and integrate each side:

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

The antiderivatives are \(\ln|y|\) and \(x^2/2\). Therefore

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

Check the relation by differentiating with respect to \(x\). On an interval where \(y\ne 0\), the chain rule gives

$$ \frac{1}{y}y'=x, \qquad y'=xy. $$

This recovers the original differential equation. The relation describes nonzero solution branches. The constant function \(y=0\) also satisfies \(y'=xy\), but it was excluded when we divided by \(y\).

Worked Example: A Polynomial in the Dependent Variable

Integrate the separated equation

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

Integrate term by term on each side:

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

so

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

To check, differentiate both sides with respect to \(x\):

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

Rearranging yields \(y'=(1+x)/(1+y^2)\), which is the differential equation represented by the separated form. The integrated relation gives a family of curves indexed by \(C\); this step does not require solving the relation explicitly for \(y\).

Worked Example: Logarithms on a Restricted Interval

Integrate the separated equation from \(y'=y/x\). Consider an interval on which \(x\ne 0\) and \(y\ne 0\), so division by both is valid:

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

Integrating gives

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

The logarithms are defined here because \(x\) and \(y\) are nonzero. Check the relation by differentiating:

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

Multiplication by \(y\) gives \(y'=y/x\), as required. The relation applies on intervals that do not include \(x=0\), and this derivation covers only branches with \(y\ne 0\). In the original equation, \(y=0\) is also a solution on any interval where \(x\ne 0\); it is not represented by a derivation that divided by \(y\).

Antiderivative Constants: A Common Pitfall

A common mistake is to treat the two constants that appear when integrating separately as two freely varying parameters in the final relation. For example, one might write

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

and conclude that the family depends independently on both \(C_1\) and \(C_2\). That overcounts the constants: rearrangement shows that only their difference appears.

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

Another error is to drop a constant altogether by treating two indefinite integrals as automatically equal. From \(\int f(y)\,dy=\int g(x)\,dx\), the correct general relation includes an arbitrary constant after the two antiderivative constants are combined. Omitting it usually removes most of the solution family.

Keep this rule: Integrating two sides produces one arbitrary constant in their relation. It is usually clearest to put that constant on one side, as in \(H(y)=G(x)+C\).

Reading the Result as a Family of Curves

The constant \(C\) labels the different relations produced by integration. For instance, \(H(y)=G(x)+2\) and \(H(y)=G(x)-1\) generally describe different curves. Each curve represents a possible solution wherever it forms a differentiable function \(y\) of \(x\) in the domain of the original equation.

The integrated relation is not automatically a claim that every choice of \(C\) gives a solution on every interval. The original equation may be undefined at some \(x\)- or \(y\)-values, and the separation step may have required \(h(y)\ne 0\). The interval and any excluded values must be consistent with the equation and with the steps used to obtain the relation.

It is also useful to distinguish integrating from choosing one particular solution. Integration gives a family with an arbitrary constant. A condition specifying a particular point on a solution curve can select a value of that constant, but no such selection is made during integration alone.

1
Check the separated form.
Identify which factors depend on \(x\) and which depend on \(y\), and note any values that cannot be divided by.
2
Integrate with respect to the correct variables.
Use \(dy\) on the side involving \(y\) and \(dx\) on the side involving \(x\).
3
Combine constants.
Move the antiderivatives into one relation and represent the net constant by a single \(C\).
4
Check the relation and restrictions.
Differentiate the relation where appropriate to recover the equation, and check values excluded by division in the original equation.

Why This Step Matters

Integration converts a differential equation, which describes how a solution changes, into a relation that connects the variables along a solution curve. That relation can make the family of possible curves easier to describe and analyze. The constant records which member of the family is under consideration.

Care with constants and restrictions is part of preserving the meaning of the original equation. A relation with no arbitrary constant may describe too little; division by a zero factor may omit a solution; and a relation can only represent solutions on intervals where its assumptions hold. These checks keep the integrated result tied to the differential equation that produced it.

Check Your Understanding

For each question, pay attention to both the integration and the conditions under which the steps are valid.

  1. If \(\frac{1}{h(y)}\,dy=g(x)\,dx\), what form does the integrated relation take?
  2. Why do two antiderivative constants reduce to one arbitrary constant?
  3. In integrating \(y'=xy\) by dividing by \(y\), what condition is needed, and what solution must be checked separately?
  4. Differentiate \(y+y^3/3=x+x^2/2+C\) to recover the corresponding differential equation.
  5. Why does an integrated relation with an arbitrary constant describe a family rather than one selected solution?

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