Tutorials › Calculus I › Rational Separable Equations and Partial Fractions

Slope Fields and Separable Equations · Tutorial 1370 of 1495

Rational Separable Equations and Partial Fractions

Use partial fractions to integrate rational expressions in separable differential equations, while keeping track of equilibria and values where the equation is undefined.

Intermediate 9 min read

What You'll Learn

  • Separate a differential equation whose dependent-variable factor is rational.
  • Decompose proper rational functions with distinct or repeated linear factors.
  • Integrate partial-fraction terms, including logarithmic terms with absolute values.
  • State where an implicit solution is valid and identify excluded dependent-variable values.
  • Check a derived relation by differentiating and comparing with the original equation.
  • Distinguish equilibrium solutions from solutions obtained by dividing by a dependent-variable factor.

Why Partial Fractions Appear in Separable Equations

Some separable differential equations lead to integrals of rational functions of the dependent variable. A rational function is a quotient of polynomials. When its denominator factors into linear factors, partial fractions rewrite the quotient as a sum of simpler terms whose antiderivatives are known.

The algebra is only part of the method. A denominator zero may be a value where the differential equation is undefined, while a numerator zero may give an equilibrium solution. Dividing by a factor can also remove an equilibrium from the equation being integrated. The solution must therefore be checked against the original equation and its domain.

Key idea: Separate only on an interval where the factors being divided out are nonzero. Integrate the resulting rational function using partial fractions, then check the implicit relation on a domain where the original equation is defined.

Partial Fractions for Linear Factors

For a proper rational function, the degree of the numerator is less than the degree of the denominator. If the denominator factors into distinct real linear factors, the function can be written as a sum with one constant numerator over each factor. If a linear factor is repeated, terms are needed for every power of that factor, up to its full multiplicity.

Definition: A partial-fraction decomposition is an identity that expresses a rational function as a sum of simpler rational functions. For example, when the denominator has factors \(y-a\) and \((y-b)^2\), the form of the decomposition is \(\frac{A}{y-a}+\frac{B}{y-b}+\frac{C}{(y-b)^2}\), where \(A\), \(B\), and \(C\) are constants determined by making the two sides equal.

To find the constants, multiply both sides by the common denominator. The result is a polynomial identity, so the coefficients can be found by substituting convenient values or by matching coefficients. If the original rational function is not proper, first use polynomial division; the remainder can then be decomposed into partial fractions.

The basic antiderivatives used here are, for \(y\ne a\),

$$ \int \frac{1}{y-a}\,dy=\ln|y-a|+C, \qquad \int \frac{1}{(y-a)^2}\,dy=-\frac{1}{y-a}+C. $$

The absolute value in the logarithm matters: \(\ln|y-a|\) is defined on both intervals \(y<a\) and \(y>a\), though not at \(y=a\). Integration constants can differ on separate intervals separated by a denominator zero.

Why Separation and Integration Work

Consider an equation of the form \(y'=X(x)G(y)\). Suppose a solution stays in an interval of \(y\)-values where \(G\) is defined and nonzero. Let \(H\) be an antiderivative of \(1/G\) on that interval, so \(H'(y)=1/G(y)\). The chain rule gives a direct justification for separation:

$$ \frac{d}{dx}H(y(x)) =H'(y(x))y'(x) =\frac{1}{G(y(x))}X(x)G(y(x)) =X(x). $$

Consequently, \(H(y(x))\) differs from an antiderivative of \(X(x)\) by a constant. Partial fractions are an algebraic tool for finding \(H\) when \(1/G(y)\) is rational. This argument requires that the solution remain where the equation is defined and where division by \(G(y)\) is valid. Any constant solution with \(G(y)=0\) must be checked separately in the original equation.

Conclusion: A separated implicit relation is justified by the chain rule on each interval where the divided factors are nonzero. It does not automatically include equilibria that were removed by division, or values where the original differential equation is undefined.

Worked Example: A Simple Rational Factor

Worked Example: A Simple Rational Factor

Solve \(y'=\frac{y-1}{y+2}\) for nonconstant solutions, and identify the equilibrium and the excluded value.

The equation is undefined at \(y=-2\). The numerator vanishes at \(y=1\), so \(y(x)=1\) is an equilibrium solution: substituting it into the original equation gives \(0=0\). For nonconstant solutions with \(y\ne1\), separate variables:

$$ \frac{dy}{dx}=\frac{y-1}{y+2} \quad\Longrightarrow\quad \frac{y+2}{y-1}\,dy=dx. $$

Rewrite the rational factor by expressing its numerator as \((y-1)+3\):

$$ \frac{y+2}{y-1} =\frac{(y-1)+3}{y-1} =1+\frac{3}{y-1}. $$

Integrating both sides gives

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

To check, differentiate the implicit relation with respect to \(x\):

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

Thus \(y'=\frac{y-1}{y+2}\), as required, wherever \(y\ne1\) and \(y\ne-2\). The equilibrium \(y=1\) was not part of the divided calculation, and \(y=-2\) remains excluded because the original equation is undefined there.

Worked Example: A Separable Initial-Value Problem

Worked Example: A Separable Initial-Value Problem

Solve \(y'=x\frac{y+1}{y-2}\) with \(y(0)=0\), expressing the answer implicitly.

The original equation is undefined at \(y=2\), and \(y=-1\) is an equilibrium because the numerator is zero there. Since the initial value is \(0\), the solution is not that equilibrium. For a non-equilibrium solution, separate variables:

$$ \frac{dy}{dx}=x\frac{y+1}{y-2} \quad\Longrightarrow\quad \frac{y-2}{y+1}\,dy=x\,dx. $$

Write \(y-2=(y+1)-3\), giving

$$ \frac{y-2}{y+1} =1-\frac{3}{y+1}. $$

Now integrate, keeping the constants together:

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

Apply \(y(0)=0\). The left side is \(0-3\ln 1=0\), and the right side is \(0+C\), so \(C=0\). The implicit solution is

$$ y-3\ln|y+1|=\frac{x^2}{2}. $$

For the branch through \(y=0\), we have \(y>-1\), so the logarithm may be written as \(\ln(y+1)\). Check the relation by differentiation:

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

This recovers the original equation wherever \(y\ne2\) and \(y\ne-1\). The initial value is also satisfied, since substituting \(x=0\) and \(y=0\) gives \(0=0\). The equilibrium \(y=-1\) is not represented by this separated calculation; it must be checked in the original equation.

Worked Example: A Repeated Linear Factor

Worked Example: A Repeated Linear Factor

Solve the equation \(y'=x\frac{y(y-2)^2}{y+1}\) implicitly for non-equilibrium solutions.

The original equation is undefined at \(y=-1\). Its numerator vanishes at \(y=0\) and \(y=2\), so \(y(x)=0\) and \(y(x)=2\) are equilibrium solutions. For non-equilibrium solutions, divide by \(y(y-2)^2\) and separate:

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

Because \(y\) and \(y-2\) are repeated linear factors in the denominator, use the form

$$ \frac{y+1}{y(y-2)^2} =\frac{A}{y}+\frac{B}{y-2}+\frac{C}{(y-2)^2}. $$

Multiply by \(y(y-2)^2\):

$$ y+1=A(y-2)^2+B y(y-2)+Cy. $$

Set \(y=0\): \(1=4A\), so \(A=\frac14\). Set \(y=2\): \(3=2C\), so \(C=\frac32\). The coefficient of \(y^2\) on the right is \(A+B\), which must equal \(0\); hence \(B=-\frac14\). Substituting these values verifies the remaining coefficient: \(-4A-2B+C=-1+\frac12+\frac32=1\), matching the coefficient of \(y\) on the left.

Integrate the resulting decomposition term by term:

$$ \begin{aligned} \int\left(\frac{1}{4y}-\frac{1}{4(y-2)}+\frac{3}{2(y-2)^2}\right)dy &=\int x\,dx,\\ \frac14\ln|y|-\frac14\ln|y-2|-\frac{3}{2(y-2)} &=\frac{x^2}{2}+C. \end{aligned} $$

For a check, differentiate the left side with respect to \(y\):

$$ \frac{1}{4y}-\frac{1}{4(y-2)}+\frac{3}{2(y-2)^2} =\frac{y+1}{y(y-2)^2}. $$

Thus differentiating the implicit relation with respect to \(x\) gives \(\frac{y+1}{y(y-2)^2}y'=x\), or \(y'=x\frac{y(y-2)^2}{y+1}\), which is the original equation. The derivation applies only where \(y\ne0\), \(y\ne2\), and \(y\ne-1\). The first two excluded values are the equilibria handled separately; the last is outside the domain of the equation.

Restrictions and a Common Sign Error

The domain of the original differential equation determines where a solution can be defined. If its right-hand side has a denominator that vanishes at \(y=a\), then the equation is undefined at \(y=a\); an implicit formula does not make that value admissible. Also check whether separation divided by a numerator factor that vanishes. Such values may yield equilibrium solutions and must be tested in the original equation.

A frequent integration error occurs with a squared linear factor. The incorrect calculation \(\int (y-2)^{-2}\,dy=(y-2)^{-1}+C\) has the wrong sign. Differentiating the proposed antiderivative gives \(\frac{d}{dy}(y-2)^{-1}=-(y-2)^{-2}\), not \(+(y-2)^{-2}\). The correct result is

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

Checking an antiderivative by differentiation catches this error immediately. It is equally important to differentiate the complete implicit relation and verify that it gives the original differential equation, rather than only a transformed equation with a factor divided out.

Check Your Understanding

For each question, keep track of the domain of the original equation as well as the algebra of integration.

  1. What terms are needed in a partial-fraction decomposition when the denominator contains \((y-a)^3\)?
  2. Decompose \(\frac{2y+1}{y(y+1)}\) into partial fractions.
  3. Why must a value at which the original differential equation is undefined remain excluded even if it appears in an implicit relation?
  4. For \(y'=y(y-1)\), which constant solutions might be lost by dividing by \(y(y-1)\)?
  5. Differentiate \(-\frac{1}{y+3}\) to check the sign of the antiderivative of \(\frac{1}{(y+3)^2}\).

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