AP CALCULUS AB • DIFFERENTIAL EQUATIONS

Finding General Solutions Using Separation of Variables

Transform complex differential equations into manageable integrals by isolating each variable on its own side.

Historical Context & Motivation

The study of differential equations arose from the desire to model dynamic phenomena — the motion of planets, the flow of heat, and the growth of populations — using the language of calculus. Once Newton and Leibniz independently developed the foundations of calculus in the late seventeenth century, mathematicians immediately recognized that many physical laws could be expressed as equations relating a function to its derivatives. The central challenge then became: given such an equation, how do we recover the original function? Separation of variables emerged as one of the earliest and most elegant techniques for answering this question, applicable whenever the differential equation can be algebraically rearranged so that each variable occupies its own side of the equation.

1687
Newton's Principia
Isaac Newton published the Principia Mathematica, formulating laws of motion as differential equations and solving several by implicit separation techniques.
1691
Leibniz Formalizes the Method
Gottfried Wilhelm Leibniz explicitly used the notation dy and dx as separable differentials, laying the groundwork for the algebraic manipulation of differential equations that students still use today.
1748
Euler Extends Applications
Leonhard Euler systematically applied separation of variables to exponential growth, decay, and logistic models, cementing the method's role in applied mathematics and the natural sciences.
1822
Fourier's Heat Equation
Joseph Fourier extended separation of variables to partial differential equations in his Théorie analytique de la chaleur, demonstrating the technique's power in higher dimensions.

The fundamental question that separation of variables addresses is deceptively simple: given a first-order ordinary differential equation of the form dy/dx = f(x, y), can we rearrange it so that all expressions involving y appear on one side and all expressions involving x appear on the other? If so, we reduce the problem of solving a differential equation to performing two independent integrations — a task for which we already possess a rich toolkit. This lesson develops the theory behind this technique, demonstrates its application through worked examples, and prepares you for the types of problems you will encounter on the AP Calculus AB exam.

Core Principles & Definitions

Before diving into the mechanics, we need to establish the key definitions and ideas that underpin separation of variables. A differential equation is an equation that relates a function to one or more of its derivatives. When the equation involves only ordinary derivatives (not partial derivatives), we call it an ordinary differential equation (ODE). The order of the ODE is determined by the highest derivative present. In AP Calculus AB, we focus on first-order ODEs — those involving dy/dx but no higher derivatives.

1

Separable Equation

A first-order ODE that can be written as dy/dx = g(x) · h(y), where the right side factors into a function of x alone multiplied by a function of y alone. This factorization is the key prerequisite for the method.
2

General Solution

The general solution is the family of all functions that satisfy the differential equation, expressed with an arbitrary constant C. Each value of C yields a different particular solution — a distinct curve in the xy-plane.
3

Particular Solution

When an initial condition such as y(x₀) = y₀ is provided, we substitute it to determine the specific value of C, producing a unique particular solution.
4

Implicit vs. Explicit Solutions

After integrating both sides, the result may leave y entangled with x (an implicit solution). If we can isolate y as a function of x, we obtain an explicit solution. Both forms are acceptable on the AP exam.
KEY TAKEAWAY
Think of separation of variables like sorting laundry: you need all the 'y items' in one basket and all the 'x items' in another before you can process (integrate) each pile independently. If the equation mixes x and y in a way that prevents this sorting — for instance, dy/dx = x + y — then the equation is not separable, and you must use a different technique entirely.

Visual Explanation — The Separation Process

The following diagram illustrates the complete workflow of separation of variables, from the original differential equation to the general solution. Study each stage carefully — the AP exam frequently tests whether you can execute every step, especially the correct placement of the constant of integration.

The workflow proceeds from top to bottom: identify the separable form (violet), algebraically separate variables (cyan), integrate both sides (pink), write the general solution with a single constant C (amber), and optionally solve explicitly for y (green). Note that only one constant of integration is needed — the two constants from each integral are combined into a single C.

A critical detail visible in the diagram is the transition from Step 2 to Step 3. When you integrate the left side with respect to y, you obtain an antiderivative F(y) + C₁, and integrating the right side with respect to x yields G(x) + C₂. Since both C₁ and C₂ are arbitrary constants, their difference C₂ − C₁ is itself an arbitrary constant, which we simply write as C. This is why the general solution contains exactly one constant of integration — writing two separate constants is redundant and a common point deduction on free-response questions.

Mathematical Framework

Let us formalize the separation of variables procedure. We begin with a first-order ODE that can be expressed in a specific multiplicative form, and we derive the integral equation that represents the general solution.

SEPARABLE FORM
dy/dx = g(x) · h(y)
Here g(x) is a continuous function of x alone and h(y) is a continuous function of y alone. The equation is separable precisely because the right-hand side factors into this product.
SEPARATION STEP
(1 / h(y)) dy = g(x) dx
We divide both sides by h(y) and multiply both sides by dx, treating dy/dx as a ratio of differentials. This is valid provided h(y) ≠ 0. Any value of y where h(y) = 0 may yield a singular solution that should be checked separately.
INTEGRATION
∫ (1 / h(y)) dy = ∫ g(x) dx + C
Integrate both sides independently. The left side is an antiderivative with respect to y, and the right side is an antiderivative with respect to x. A single arbitrary constant C represents the entire family of solutions.
GENERAL SOLUTION (IMPLICIT)
F(y) = G(x) + C
Where F(y) = ∫ (1/h(y)) dy and G(x) = ∫ g(x) dx. This implicit relation defines the general solution. If F is invertible, we can write y = F⁻¹(G(x) + C) for the explicit general solution.
⚠️ Singular Solutions
When you divide by h(y), any constant y-value that makes h(y) = 0 is a potential equilibrium solution (also called a singular solution). For example, in dy/dx = xy, the function y = 0 satisfies the equation but might not be captured by the general solution. Always check whether such constant solutions exist and note them when required.

Common Separable Equation Types on the AP Exam

The AP Calculus AB exam features several recurring forms of separable differential equations. Recognizing these patterns quickly will save valuable time on test day. The table below catalogs the most common types, their separated forms, and the resulting general solutions. Study the second column carefully — your ability to arrive at the correct separated form is where most errors occur.

Common separable equation types tested on the AP Calculus AB exam
Equation TypeSeparated FormGeneral Solution
Exponential Growth/Decay: dy/dx = ky(1/y) dy = k dxy = Cekx
Product form: dy/dx = x · y²y⁻² dy = x dx−1/y = x²/2 + C
Quotient form: dy/dx = x/yy dy = x dxy²/2 = x²/2 + C
Trigonometric: dy/dx = cos(x)/sin(y)sin(y) dy = cos(x) dx−cos(y) = sin(x) + C
Logistic-related: dy/dx = y(1 − y)[1/(y(1−y))] dy = dxln|y/(1−y)| = x + C
The equation dy/dx = −x/y separates to y dy = −x dx, yielding x² + y² = C. Each value of C produces a circle of radius √C. The green segment shows the slope field direction at one point, confirming dy/dx = −x/y is perpendicular to the radius — consistent with circular geometry.

This diagram reveals a fundamental insight: the general solution of a separable ODE describes not one curve but an entire family of curves parameterized by C. Each particular value of C selects one member of the family. In the example above, the family consists of concentric circles — a beautiful geometric consequence of the algebraic structure of the equation. On the AP exam, you may be asked to sketch several members of such a solution family or to identify which member passes through a given initial point.

Worked Example

Let us solve a complete example that mirrors the complexity of an AP free-response question. We will find the general solution and then determine a particular solution using an initial condition.

Solve: dy/dx = 2x · (y + 1), then find the particular solution satisfying y(0) = 3.
1
Step 1 — Verify SeparabilityThe right-hand side is 2x · (y + 1), which is already expressed as a product of g(x) = 2x (a function of x alone) and h(y) = y + 1 (a function of y alone). The equation is separable.
2
Step 2 — Separate VariablesDivide both sides by (y + 1), assuming y ≠ −1, and multiply both sides by dx:
dy / (y + 1) = 2x dx
3
Step 3 — Integrate Both SidesThe left side: ∫ 1/(y + 1) dy = ln|y + 1|. The right side: ∫ 2x dx = x². We include a single constant of integration C on the right:
ln|y + 1| = x² + C
4
Step 4 — Solve for y (Explicit Form)Exponentiate both sides: |y + 1| = e^(x² + C) = e^C · e^(x²). Since e^C is an arbitrary positive constant, we write it as A (where A > 0), and absorbing the absolute value sign, we allow A to be any nonzero constant:
y + 1 = Ae^(x²), so y = Ae^(x²) − 1
5
Step 5 — Check the Singular SolutionWe divided by (y + 1) in Step 2, so y = −1 is a potential singular solution. Substituting y = −1 into the original equation: dy/dx = 0 and 2x(−1 + 1) = 0 ✓. The constant function y = −1 satisfies the ODE and corresponds to A = 0 in the general solution, so it is already included when we allow A = 0.
General Solution: y = Ae^(x²) − 1, where A is any real constant
6
Step 6 — Apply Initial Condition y(0) = 3Substitute x = 0, y = 3: 3 = Ae^(0) − 1 = A − 1, so A = 4.
Particular Solution: y = 4e^(x²) − 1
💡 AP Tip: Constant Placement
On the AP exam, you can place +C on either side of the equation — just pick one side and stick with it. Do not write +C on both sides, as this is redundant and may cost you a point on the free-response rubric.

Strengths, Limitations & Common Errors

Separation of variables is a powerful technique, but it has clear boundaries. Understanding when the method applies — and when it fails — is essential for efficient problem-solving on the AP exam.

Strengths and limitations of separation of variables
StrengthsLimitations
Converts a differential equation into two standard integration problems — leveraging your existing antiderivative skills.Only works when dy/dx can be factored as g(x) · h(y). Many important ODEs (e.g., dy/dx = x + y) are not separable.
Produces a general solution with an explicit arbitrary constant, making it straightforward to apply initial conditions.The resulting integrals may not have closed-form antiderivatives (e.g., ∫ e^(x²) dx), leaving the solution in integral form.
Naturally handles exponential growth/decay, logistic-type, and many physics-based models tested on the AP exam.Division by h(y) can introduce domain restrictions or cause you to miss equilibrium (singular) solutions if not careful.
The procedure is algorithmic — once you recognize separability, the steps are mechanical and systematic.Applies only to first-order ODEs; higher-order equations require different methods (beyond AB scope).

Common Student Errors

  • Forgetting the constant of integration: This is the single most frequent error. Without +C, you have a single curve, not the general solution. On free-response questions, omitting C typically costs 1 point.
  • Writing +C on both sides: Two arbitrary constants are redundant. Combine them into one.
  • Incorrect separation of non-separable equations: For example, dy/dx = x + y cannot be separated because the right side does not factor into g(x) · h(y). Attempting to separate it produces an incorrect solution.
  • Ignoring domain restrictions: When dividing by an expression involving y, remember to check where that expression equals zero. Equilibrium solutions like y = 0 in dy/dx = xy are often missed.
  • Dropping absolute values prematurely: After integrating to get ln|y|, students sometimes write y = e^(...) without considering the ± sign. Always account for this before applying initial conditions.
KEY TAKEAWAY
Separation of variables is like a specialized tool in a mechanic's toolkit — it does one job exceptionally well (solving separable first-order ODEs) but cannot be forced onto every problem. Before applying it, always verify that the equation is separable by attempting the factorization dy/dx = g(x) · h(y). If you cannot achieve this form, you need a different approach, such as the integrating factor method studied in later courses.

Connection to Advanced Theory

While separation of variables is sufficient for a large class of first-order equations encountered in AP Calculus AB, the broader landscape of differential equations is far richer. Understanding where separation of variables fits within this larger framework will deepen your appreciation for the method and prepare you for future coursework in differential equations, physics, and engineering.

Separation of variables in the broader differential equations landscape
FeatureSeparation of Variables (AB)Advanced Methods (BC & Beyond)
Equation typeFirst-order, dy/dx = g(x)·h(y)First-order linear, higher-order, PDEs, systems
Core techniqueAlgebraic separation then integrationIntegrating factors, characteristic equations, Laplace transforms, Fourier methods
Solution formExplicit or implicit, one arbitrary constantMay involve infinite series, special functions, or n arbitrary constants for nth-order equations
Typical applicationsExponential growth/decay, cooling, simple population modelsVibrations, circuits, fluid dynamics, quantum mechanics, heat conduction

In AP Calculus BC, you will encounter Euler's method for numerical approximation and logistic differential equations in more depth. A college-level ordinary differential equations course introduces integrating factors for first-order linear equations, characteristic equations for higher-order constant-coefficient equations, and ultimately Laplace transforms that convert differential equations into algebraic ones. Remarkably, the idea of separation of variables extends even to partial differential equations: Fourier's method decomposes problems in heat conduction and wave propagation into separable components, each solved by the same fundamental principle you are learning now.

Practice Problems

1
Which of the following differential equations is separable?
2
Find the general solution of dy/dx = 3x²y.
3
Find the general solution of dy/dx = (2x + 1)/(3y²). Express your answer as an explicit equation for y in terms of x.
PROBLEM 4APPLIED
A chemical reaction obeys the rate law dC/dt = −kC², where C(t) is the concentration of a reactant (in mol/L), t is time (in seconds), and k > 0 is the rate constant. At time t = 0, the concentration is C₀. (a) Use separation of variables to find C(t) in terms of C₀, k, and t. (b) Determine the time at which the concentration drops to half its initial value. (c) Explain why, unlike first-order decay, the half-life depends on the initial concentration.
PROBLEM 5CRITICAL THINKING
Consider the differential equation dy/dx = y² − 4. (a) Identify all equilibrium (constant) solutions. (b) Use separation of variables and partial fractions to find the general solution. (c) Discuss the behavior of solutions as x → ∞ for initial values y(0) = 0, y(0) = 3, and y(0) = −3.

Lesson Summary

Separation of variables is a technique for solving first-order ODEs of the form dy/dx = g(x) · h(y). The method proceeds by algebraically isolating all y-expressions on one side and all x-expressions on the other, then integrating both sides independently. The result is a general solution containing a single arbitrary constant C, which represents an infinite family of curves. Applying an initial condition determines a unique value of C, yielding a particular solution.

Key steps to remember: (1) verify the equation is separable by factoring the right side, (2) separate and integrate with a single + C, (3) check for singular/equilibrium solutions that may have been excluded when dividing, and (4) solve explicitly for y when possible. This technique is foundational — it underpins exponential growth and decay models, population dynamics, and numerous applied problems you will encounter on the AP Calculus AB exam.

Varsity Tutors • AP Calculus AB • Finding General Solutions Using Separation of Variables