Tutorials › AP Calculus › Separable Equations with Rational Factors

Separable Equations and Growth · Tutorial 575 of 999

Separable Equations with Rational Factors

Separate and integrate rational factors, then use initial data and domain conditions to identify a solution curve.

Intermediate 9 min read

What You'll Learn

  • Recognize when an equation has separate factors in the independent and dependent variables
  • Separate variables while keeping track of where the equation is defined
  • Integrate rational expressions that lead to polynomial, logarithmic, or inverse-tangent terms
  • Use an initial condition to determine the constant of integration
  • Interpret an implicit solution and select the appropriate branch when possible
  • Check a proposed solution by differentiating it and substituting into the equation

From Separation to Integration

A separable differential equation can often be written as a product of a function of \(x\) and a function of \(y\). When those factors are rational expressions, separating the variables produces integrals that may involve polynomials, logarithms, or inverse tangent functions.

The main steps are familiar from earlier material on separating variables and using initial conditions: arrange all \(y\)-dependent factors with \(dy\), all \(x\)-dependent factors with \(dx\), integrate both sides, and use the given point to determine the constant. The details that matter are the domain of the rational expressions and the accuracy of each antiderivative.

Definition: A differential equation is separable on a domain if it can be written in the form \(dy/dx=g(x)h(y)\), where the equation is defined, so the \(x\)-dependent and \(y\)-dependent factors can be placed on opposite sides before integration.

For example, if \(dy/dx=g(x)h(y)\) and \(h(y)\ne 0\) on the part of the solution being considered, separation gives

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

The condition matters: dividing by \(h(y)\) is legitimate only where it is nonzero. In the examples below, we keep track of the expressions that must remain defined. A solution may be left in implicit form if solving explicitly for \(y\) would be difficult or unnecessary.

Why the Separation Method Works

Separation is a way to turn a differential equation into an equality of accumulated changes. The justification is the chain rule. Suppose integration produces a relation

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

where \(H'(y)=1/h(y)\) and \(G'(x)=g(x)\). Differentiating both sides with respect to \(x\) gives

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

Multiplying by \(h(y)\) recovers \(dy/dx=g(x)h(y)\). Thus, wherever the functions and derivatives are defined and the separation steps are valid, the integrated relation satisfies the original differential equation.

The reverse direction follows by separating the original equation and integrating on an interval where the integrands are defined. A solution curve through an initial point must therefore satisfy the integrated relation, with its constant determined by that point.

Worked Example: A Polynomial Antiderivative

Worked Example: A Polynomial Antiderivative

Solve \(dy/dx=x/(1+y^2)\) with \(y(0)=1\).

The denominator \(1+y^2\) is positive for every real \(y\), so the equation is defined for all real \(y\). Multiply by \(1+y^2\) and by \(dx\):

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

Integrate both sides:

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

Use the initial condition \(x=0,\ y=1\):

$$ 1+\frac{1^3}{3}=\frac{0^2}{2}+C, \qquad C=\frac{4}{3}. $$

The particular solution is therefore described implicitly by

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

To check, differentiate the relation:

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

At \(x=0,\ y=1\), the implicit relation gives \(1+1/3=4/3\), so it also satisfies the initial condition. The implicit equation is a precise description of the solution curve; a simple explicit formula for \(y\) is not needed.

Rational Integrals Can Produce Inverse Tangents

A common rational expression in these equations is \(1/(1+u^2)\). Its antiderivative is \(\arctan u\), since the derivative of \(\arctan u\) is \(1/(1+u^2)\). The separated integrals need not both be polynomials.

Worked Example: An Inverse-Tangent Antiderivative

Solve \(dy/dx=1/[(1+x^2)(1+y^2)]\) with \(y(0)=0\).

Both denominator factors are positive for real inputs, so this equation is defined for every real \(x\) and \(y\). Multiply by \(1+y^2\) and by \(dx\):

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

Integrate:

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

Apply \(y(0)=0\), using \(\arctan 0=0\):

$$ 0+\frac{0^3}{3}=\arctan 0+C, \qquad C=0. $$

The solution curve is given implicitly by

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

Differentiate the equation:

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

This is the original equation, and substituting \(x=0,\ y=0\) into the implicit relation gives \(0=0\). Both checks hold. For each fixed \(x\), the left side \(y+y^3/3\) is strictly increasing in \(y\), because its derivative is \(1+y^2>0\). Consequently this relation specifies one real \(y\) for each real \(x\).

Logarithms and the Domain of a Solution

If a separated rational factor has the form \(1/(x+a)\), its antiderivative is \(\ln|x+a|\), on an interval that does not contain \(x=-a\). The absolute value is essential when the domain includes values on either side of the zero; any one solution interval must still avoid that point.

Worked Example: A Logarithmic Antiderivative

Solve \(dy/dx=(1+y^2)/(x+1)\) with \(y(0)=0\), and describe the interval containing \(x=0\) on which the resulting formula is defined.

The original equation is undefined at \(x=-1\). On an interval not containing \(-1\), separate:

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

Integrate the two rational expressions:

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

At \(x=0,\ y=0\), we have \(\arctan 0=0\) and \(\ln|0+1|=0\), so \(C=0\). Since the solution interval contains \(0\), it lies on the side \(x>-1\), where \(|x+1|=x+1\). Thus

$$ \arctan y=\ln(x+1), \qquad y=\tan(\ln(x+1)). $$

The tangent formula is defined when its input is strictly between consecutive vertical asymptotes. For the branch containing \(x=0\), require

$$ -\frac{\pi}{2}<\ln(x+1)<\frac{\pi}{2}, \qquad e^{-\pi/2}<x+1<e^{\pi/2}. $$

Therefore the interval containing \(0\) is \(e^{-\pi/2}-1<x<e^{\pi/2}-1\). Check by differentiating:

$$ \frac{dy}{dx} = \sec^2(\ln(x+1))\frac{1}{x+1} = \frac{1+\tan^2(\ln(x+1))}{x+1} = \frac{1+y^2}{x+1}. $$

At \(x=0\), the formula gives \(y=\tan(0)=0\). It satisfies both the equation and the initial condition on the stated interval.

When an Explicit Branch Is Useful

Sometimes an integrated relation can be rearranged to give \(y\) explicitly. The initial condition then helps select the branch that passes through the required point. The equation and the initial value should both be checked after rearranging.

Worked Example: Selecting a Square-Root Branch

Solve \(dy/dx=x/(y+2)\) with \(y(0)=0\).

The differential equation is defined only where \(y\ne -2\). Multiply by \(y+2\) and by \(dx\), on an interval where this condition holds:

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

Integrating gives

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

The initial condition yields \(0=C\). Multiply by \(2\) and complete the square:

$$ y^2+4y=x^2, \qquad (y+2)^2=x^2+4. $$

Taking square roots gives two algebraic branches. The condition \(y(0)=0\) requires \(y+2=2>0\) at \(x=0\), so the required branch is

$$ y=-2+\sqrt{x^2+4}. $$

For every real \(x\), \(\sqrt{x^2+4}>0\), so \(y+2=\sqrt{x^2+4}\ne0\); the branch remains within the domain of the original equation. Differentiate and compare with the right side:

$$ \frac{dy}{dx}=\frac{x}{\sqrt{x^2+4}}, \qquad \frac{x}{y+2}=\frac{x}{\sqrt{x^2+4}}. $$

The derivative matches the equation, and at \(x=0\) the explicit formula gives \(y=-2+2=0\). Both checks are complete.

A Common Integration Mistake

A frequent error is to separate correctly but integrate the \(y\)-side incorrectly. For the equation \(dy/dx=x/(1+y^2)\), separation gives \((1+y^2)\,dy=x\,dx\). A wrong calculation might claim

$$ \int(1+y^2)\,dy=\frac{y^2}{2}+y. $$

That is incorrect: differentiating \(y^2/2+y\) gives \(y+1\), not \(1+y^2\). The correct antiderivative is

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

A reliable check is to differentiate each antiderivative with respect to its own variable before using the initial condition. Then differentiate the final implicit relation with respect to \(x\) and confirm that it recovers the original differential equation.

A Practical Solution Process

For a separable equation with rational factors, use this sequence of checks:

1
Record where the equation is defined.
Identify denominator zeros and other restrictions before rearranging.
2
Separate the variables.
Place all \(y\)-dependent factors with \(dy\), and all \(x\)-dependent factors with \(dx\), without dividing by an expression that could be zero on the solution being considered.
3
Integrate both sides.
Use appropriate antiderivatives, including logarithms or inverse tangent where required.
4
Use the initial value.
Substitute the given point into the integrated relation to determine the constant.
5
Check the result.
Differentiate the relation or explicit formula, compare it with the equation, and verify the initial condition and domain.

The essential idea is that integration produces a relationship between \(x\) and \(y\), while the initial condition fixes which member of that family is intended. Rational factors make this process a useful application of antiderivatives; domain restrictions and accurate differentiation ensure that the resulting curve really solves the stated initial-value problem.

Check Your Understanding

For each question, keep track of both the integration and the domain of the resulting curve.

  1. Separate and integrate \(dy/dx=x/(1+y^2)\), and state the antiderivative on the \(y\)-side.
  2. For \(dy/dx=1/[(1+x^2)(1+y^2)]\) with \(y(0)=1\), find the implicit solution relation.
  3. Why must an interval of solution for \(dy/dx=(1+y^2)/(x+1)\) avoid \(x=-1\)?
  4. For \(dy/dx=x/(y+2)\) with \(y(0)=0\), which square-root branch satisfies the initial condition?
  5. What two checks should be made after using an initial condition to find a solution?

Test yourself: AP Calculus practice exams

Ready to check what you know? Work an AP-style practice exam, then open the full solutions.

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