Tutorials › AP Calculus › Solving Separable Differential-Equation FRQs

Analytical and BC Free Responses · Tutorial 957 of 999

Solving Separable Differential-Equation FRQs

Practice a clear, verifiable method for solving separable differential equations and presenting the full solution family.

Advanced 10 min read

What You'll Learn

  • Recognize a separable differential equation and state where separation is valid
  • Separate the variables without losing the differential notation
  • Integrate both sides and combine arbitrary constants correctly
  • Present a solution implicitly or solve for the dependent variable when possible
  • Identify equilibrium solutions that division may omit
  • Check a proposed solution by differentiating and substituting

What a Separable Differential Equation Asks You to Do

A differential equation describes a relationship between an unknown function and one or more of its derivatives. A separable differential equation is one whose variables can be arranged so that expressions involving the dependent variable are on one side and expressions involving the independent variable are on the other.

For AP free-response questions, solving the equation is only part of the task. A complete response should show the separation, integrate both sides, include the arbitrary constant, and state the solution clearly. The result may be an implicit relation or, when algebra permits, an explicit formula for the dependent variable.

Definition: A first-order differential equation is separable if it can be written as \( \frac{dy}{dx}=f(x)g(y) \) on a domain where the functions involved are defined. Wherever \(g(y)\ne 0\), it can be rearranged as \( \frac{1}{g(y)}\,dy=f(x)\,dx \).

The condition \(g(y)\ne 0\) matters: dividing by \(g(y)\) is not valid when \(g(y)=0\). Any constant solutions arising from those values must be checked separately. Also, the equation itself may be undefined at some values of \(y\), which restricts where a solution can be valid.

A Reliable Solution Format

When solving a separable equation, keep the algebra and the domain conditions visible. A well-organized solution can follow these steps:

1
Identify the factors.
Write the derivative as a product of a function of \(x\) and a function of \(y\), if possible.
2
Check for excluded values.
Find values where the equation is undefined and values where dividing by \(g(y)\) would divide by zero.
3
Separate and integrate.
Put the \(y\)-expression with \(dy\), the \(x\)-expression with \(dx\), and integrate both sides.
4
State the solution family.
Include an arbitrary constant and give an implicit relation or solve for \(y\) when appropriate. Add any constant solutions excluded by division.
5
Verify.
Differentiate the result and confirm that it satisfies the original differential equation on its stated domain.

Writing \(dy\) and \(dx\) in the separated equation is useful bookkeeping. It signals which variable is being integrated on each side; the justification comes from the chain rule, not from treating differentials as ordinary numbers.

Why Separation Works

Suppose \(y(x)\) satisfies \(y'=f(x)g(y)\) on an interval where \(g(y(x))\ne 0\). Choose antiderivatives \(F\) and \(G\) such that \(F'(x)=f(x)\) and \(G'(y)=1/g(y)\). The chain rule gives:

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

Since \(G(y(x))\) and \(F(x)\) have the same derivative on the interval, they differ by a constant. Therefore \(G(y)=F(x)+C\). This proves why integrating the separated equation produces a solution relation. Conversely, differentiating such a relation recovers the original differential equation wherever the derivatives exist and the divisions used in the derivation are valid.

Theorem: For \(y'=f(x)g(y)\), every solution on an interval where \(g(y)\ne 0\) satisfies \( \int \frac{1}{g(y)}\,dy=\int f(x)\,dx+C \). Values \(y_0\) with \(g(y_0)=0\) must be checked in the original equation, because constant functions \(y(x)=y_0\) may be solutions omitted by division.

Worked Example: An Explicit Family of Solutions

Worked Example: An Explicit Family of Solutions

Solve \( \frac{dy}{dx}=\frac{x}{y+1} \), giving an explicit form where possible.

The equation is defined only when \(y\ne -1\). Multiply both sides by \(y+1\), which is nonzero on any interval where a solution is defined:

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

Write the variables on their respective sides and integrate:

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

Multiply by \(2\), absorbing the factor of \(2\) into the arbitrary constant, and complete the square:

$$ y^2+2y=x^2+C_1 $$ $$ (y+1)^2=x^2+C_2. $$

Thus an implicit general solution is \( (y+1)^2=x^2+C_2 \). Where \(x^2+C_2>0\), this can be written explicitly as

$$ y=-1\pm\sqrt{x^2+C_2}. $$

To check, differentiate the implicit relation on an interval where \(y\ne -1\):

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

This is the original equation. The explicit branches also satisfy it wherever the square root is positive and the derivative exists. The excluded value \(y=-1\) is not a solution because the original equation is undefined there.

Implicit Solutions Are Complete Answers

After integration, it is not always possible—or useful—to isolate \(y\). An equation relating \(x\) and \(y\) can be a valid implicit general solution if it accurately describes the solution family. If you do isolate \(y\), check whether algebra introduces separate branches and whether the resulting formulas remain in the domain of the original equation.

Worked Example: An Implicit Solution

Solve \( \frac{dy}{dx}=\frac{x}{1+y^2} \) and verify the implicit result.

The denominator \(1+y^2\) is positive for every real \(y\), so separation does not exclude any real \(y\)-values:

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

Integrate each side term by term:

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

This implicit relation is the general solution. To verify it, differentiate both sides with respect to \(x\), using the chain rule on the left:

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

The final equation is the original differential equation. No division by a factor that can equal zero was required, so this separation has not omitted an equilibrium solution.

Check for Solutions Lost by Division

When the equation contains a factor depending on \(y\), dividing by that factor can remove a valid constant solution. A function \(y(x)=k\) is constant when \(y'=0\). Substituting it into \(y'=f(x)g(y)\) shows that it is a solution if \(f(x)g(k)=0\) for every \(x\) in the interval. In particular, if \(g(k)=0\), the constant function \(y=k\) satisfies the equation.

Worked Example: Finding Equilibrium Solutions

Solve \( \frac{dy}{dx}=(x+1)(y^2-4) \), including any constant solutions omitted during separation.

First find values that make the \(y\)-factor zero:

$$ y^2-4=0 \qquad\Longrightarrow\qquad y=2\ \text{or}\ y=-2. $$

Substitution into the original equation shows that \(y(x)=2\) and \(y(x)=-2\) are both constant solutions: in each case, \(y'=0\) and the right-hand side is also \(0\).

For nonconstant solutions with \(y\ne 2\) and \(y\ne -2\), separate variables:

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

Factor the denominator and use partial fractions:

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

Integrating gives:

$$ \frac{1}{4}\ln|y-2|-\frac{1}{4}\ln|y+2| =\frac{x^2}{2}+x+C $$ $$ \frac{1}{4}\ln\left|\frac{y-2}{y+2}\right| =\frac{x^2}{2}+x+C. $$

To check this implicit solution, differentiate both sides:

$$ \frac{1}{4}\left(\frac{1}{y-2}-\frac{1}{y+2}\right)\frac{dy}{dx} =x+1. $$

The difference in parentheses simplifies to \(4/(y^2-4)\). Therefore

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

as required. This logarithmic family applies where \(y\ne \pm2\); the two constant solutions found before division must be listed separately.

A Common Pitfall: Reporting Only the Divided Equation

A tempting but incomplete response to the previous example is to divide by \(y^2-4\), integrate, and report only the logarithmic relation. The division is valid only for \(y\ne 2\) and \(y\ne -2\), so that relation does not include the constant solutions.

Common mistake: “Dividing by \(y^2-4\) gives the general solution, so there are no other solutions.” This conclusion is wrong: it overlooks the values that made the divisor zero.

The correction is to test those values in the original equation before or immediately after dividing. At \(y=2\), the right-hand side is \((x+1)(4-4)=0\), matching the derivative of the constant function. At \(y=-2\), it is \((x+1)(4-4)=0\) as well. Both constants therefore belong in the answer.

Presenting the Answer in an FRQ

A free-response solution should make the mathematical logic easy to follow. Show the separated equation before integrating, keep the arbitrary constant in the integrated relation, and state whether the answer is implicit or explicit. If you divided by an expression involving \(y\), identify the values excluded by that division and check whether they give constant solutions.

Finally, verify the result by differentiating. This check is especially useful for implicit answers: apply the chain rule to the \(y\)-terms, then rearrange until the original differential equation appears. State any domain restrictions needed for that differentiation or for the original equation to be defined.

Check Your Understanding

For each question, show enough work to make the separation and the role of any excluded values clear.

  1. Separate and integrate \( \frac{dy}{dx}=x(1+y^2) \). Give an implicit general solution.
  2. For \( \frac{dy}{dx}=y(y-3) \), which constant solutions might be omitted if you divide by the \(y\)-dependent factor?
  3. Why is an implicit relation an acceptable solution when it cannot easily be solved for \(y\)?
  4. What condition must hold before dividing both sides by \(g(y)\) in an equation \(y'=f(x)g(y)\)?
  5. How can differentiating an implicit solution check that it satisfies the original differential equation?

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