| Study Guides
AP · General solutions via separation of variables · 14 min read · Updated 2026-05-10

General solutions via separation of variables — AP Calculus AB Study Guide

For: AP Calculus AB candidates sitting AP Calculus AB.

Covers: Identifying separable first-order differential equations, step-by-step separation of variables technique, integrating both sides to find implicit and explicit general solutions, and simplifying constants of integration for final results.

You should already know: How to compute indefinite integrals of basic functions, implicit differentiation rules, basic algebraic factoring and rearrangement.

A note on the practice questions: All worked questions in the "Practice Questions" section below are original problems written by us in the AP Calculus AB style for educational use. They are not reproductions of past College Board / Cambridge / IB papers and may differ in wording, numerical values, or context. Use them to practise the technique; cross-check with official mark schemes for grading conventions.


1. What Is General solutions via separation of variables?

Separation of variables is the primary technique AP Calculus AB uses to solve first-order ordinary differential equations (DEs). A general solution is a full family of functions that satisfies the DE, containing one arbitrary constant (matching the order of the DE) to account for all possible solutions. Per the AP Calculus AB CED, differential equations as a unit make up 6-12% of the total exam weight, and separation of variables for general solutions appears in both multiple-choice (MCQ) and free-response (FRQ) sections. The core idea of this method is that any separable DE can be rearranged to group all terms containing the dependent variable (usually ) on one side of the equation, and all terms containing the independent variable (usually or ) on the other. Once separated, we can integrate both sides with respect to their respective variables to get an equation relating and the independent variable, which can often be solved explicitly for to get the general solution. This method reverses the process of differentiation, starting from a derivative and working back to the original function.

2. Identifying Separable Differential Equations

Before you can apply separation of variables, you first need to confirm that your differential equation is actually separable. A first-order differential equation is always written in the general form: A separable DE is one where the right-hand side can be factored completely into a product of a function that depends only on and a function that depends only on , or: There are no exceptions to this rule for AP Calculus AB: if you cannot write the right-hand side in this form, the DE is not separable, and you cannot solve it with separation of variables (and AP will not ask you to solve non-separable DEs with this technique). Common simplifications that reveal hidden separability include using exponent rules to split , and factoring out common terms from sums to get a product. For example, can be factored to , which is separable.

Worked Example

Determine whether each of the following differential equations is separable: (a) (b)

  1. Start with the definition of separability: must factor to .
  2. Simplify (a) using exponent rules: . Wait, this is a sum of two products, not a single product, so it cannot be written as . Wait—wait a minute, did we make a mistake? No: even though each term is separable, their sum is not. So (a) is not separable.
  3. Check (b): is a sum, and it cannot be factored into a product of a function of only and a function of only. Any attempt to factor will leave a cross term with both and , so (b) is also not separable.
  4. Conclusion: Neither equation is separable.

Exam tip: If your DE is written as a sum of terms, check if you can factor out a common or term from the entire sum to get a product. If not, it is not separable for AP Calculus AB purposes.

3. Step-by-Step Separation of Variables Technique

Once you confirm a DE is separable, you can follow a consistent process to find the general solution. Starting from , the first step is to separate the variables: move all terms (including ) to the left side and all terms (including ) to the right side. To do this, multiply both sides by and divide both sides by (this is valid as long as ; the case where gives a constant trivial solution, which can be absorbed into the general solution later). After separation, you get: Next, integrate both sides: integrate the left side with respect to (since it has only terms and ) and the right side with respect to (since it has only terms and ). You only need to add one arbitrary constant of integration, usually on the right side, because the difference of two constants is still a single constant. The result is an implicit general solution; if possible, solve for to get an explicit general solution, which is usually what the AP exam asks for.

Worked Example

Find the general solution of , for .

  1. Confirm separability: , so it fits the separable form with and .
  2. Separate variables: Divide both sides by and multiply by , giving .
  3. Integrate both sides: Left side: . Right side: .
  4. Solve for to get explicit general solution: Multiply both sides by : . Rename the arbitrary constant , so . Take the reciprocal of both sides: . The general solution can be written as where is still an arbitrary constant.

Exam tip: You can rename your arbitrary constant at any point to simplify your final solution—AP exam graders accept any valid name for the constant, as long as it is clear it is arbitrary.

4. Simplifying General Solutions with Logarithms

One of the most common forms of separable DEs results in a logarithmic antiderivative on the side, which requires special simplification to get an explicit general solution. This occurs almost always in applied problems like exponential growth and decay, where the DE has the form . When we separate this DE, we get , and integrating gives . To solve for , we exponentiate both sides to eliminate the logarithm: , which simplifies to . We can absorb the absolute value and the constant into a new arbitrary constant , so the general solution becomes . If we allow , this also captures the trivial solution that we get when we divided by earlier, so it is included in the general solution.

Worked Example

Find the general solution of , for .

  1. Confirm separability: , which fits the separable form.
  2. Separate variables: Divide both sides by and multiply by , giving .
  3. Integrate both sides: Left side: . Right side: .
  4. Exponentiate both sides to solve for : Since , we can drop the absolute value, so . Rename , so the general solution is , where is an arbitrary constant.

Exam tip: When you have , always remember that , not —this is one of the most common student mistakes on the exam.

5. Common Pitfalls (and how to avoid them)

  • Wrong move: When solving , exponentiating to get . Why: Students misapply exponent rules, forgetting that the exponent distributes as a product, not a sum. Correct move: Always simplify as , so the constant becomes a multiplicative factor out front, not an additive term.
  • Wrong move: Adding a constant of integration to both sides of the integrated equation and keeping two separate constants in the final general solution. Why: Students are taught to add a constant to every indefinite integral, so they add one to each side and do not combine them. Correct move: Combine the two constants into a single arbitrary constant, since the difference of two constants is still one constant.
  • Wrong move: Integrating the left side (with terms) with respect to after separation. Why: Students mix up differentials after separation, forgetting which variable goes with which integral. Correct move: Always keep with terms, so the side with terms is integrated with respect to , and the side with terms is integrated with respect to .
  • Wrong move: Trying to separate by writing . Why: Students confuse addition and multiplication, and incorrectly attempt to separate non-separable DEs. Correct move: Always confirm the right-hand side is a product of a function of and a function of before attempting separation; if it is a sum, it is not separable for AP Calculus AB.
  • Wrong move: Forgetting the absolute value in , leading to only positive solutions. Why: Students memorize the antiderivative as and skip the absolute value. Correct move: Always write the absolute value, then absorb the sign into the arbitrary constant when exponentiating, so all solutions are captured.

6. Practice Questions (AP Calculus AB Style)

Question 1 (Multiple Choice)

Which of the following is the general solution to the differential equation for ? A) B) C) D)

Worked Solution: First, confirm the DE is separable: it can be written as , so it fits the separable form. Separate variables to get . Integrate the left side: . Integrate the right side using integration by parts, with , : . Combine constants: . The correct answer is D.


Question 2 (Free Response)

Consider the differential equation . (a) Is the differential equation separable? Justify your answer. (b) Use separation of variables to find the general solution to the differential equation. (c) Explain why the general solution contains one arbitrary constant.

Worked Solution: (a) Yes, the differential equation is separable. The right-hand side can be factored into , which matches the separable form , where depends only on and depends only on .

(b) Separate variables: for . Integrate both sides: . Exponentiate both sides: . Absorb the absolute value and constant into , so the general solution is for any arbitrary constant (including , which gives the trivial solution ).

(c) The differential equation is first-order, meaning it only contains the first derivative of with no higher-order derivatives. An -th order differential equation has a general solution with arbitrary constants, so a first-order DE has exactly one arbitrary constant that represents the entire family of solutions.


Question 3 (Application / Real-World Style)

A coffee shop owner is modeling the cooling of a freshly brewed cup of coffee. The rate of change of the temperature difference between the coffee and the room is proportional to the current temperature difference, where temperature difference is measured in degrees Fahrenheit, and time is measured in minutes. This follows the differential equation . Find the general solution for , and explain what the arbitrary constant represents in context.

Worked Solution: The DE is separable for (the coffee is warmer than room temperature here). Separate variables to get . Integrate both sides: (drop absolute value since ). Exponentiate: , where is a positive constant. In context, the arbitrary constant is the initial temperature difference between the coffee and the room at time , when the coffee is first brewed. The general solution is degrees Fahrenheit.

7. Quick Reference Cheatsheet

Category Formula Notes
Separable DE Definition RHS must be product of function of only and function of only
Separation Step Valid for ; constant solution exists if
Integration Step Only one arbitrary constant needed for first-order DE
Antiderivative of $\int \frac{1}{y} dy = \ln y
Exponentiation for Log Solutions $\ln y
Implicit General Solution Acceptable if cannot be solved explicitly for
Explicit General Solution Preferred by AP exam when solvable

8. What's Next

Mastering separation of variables to find general solutions is the essential prerequisite for the next core topics in Unit 7: finding particular solutions given an initial condition, which is required for all real-world differential equation problems on the AP exam. Without correctly finding the general solution first, you cannot solve for the constant of integration to get a particular solution that matches your initial condition. This topic also underpins all applied differential equation problems on the AP exam, including exponential growth and decay, Newton's law of cooling, and rate problems that require integrating to find a function from its rate of change. Next you will apply the skills you learned here to solve initial value problems and contextual application questions that commonly appear in both MCQ and FRQ sections of the exam.

Finding particular solutions to differential equations Exponential growth and decay models Slope fields and solution curves

← Back to topic

Stuck on a specific question?
Snap a photo or paste your problem — Ollie (our AI tutor) walks through it step-by-step with diagrams.
Try Ollie free →