Skip to main content
United StatesCalculusSyllabus dot point

How do you solve a separable differential equation for its general solution?

Topic 7.6 Finding General Solutions Using Separation of Variables: solve a separable differential equation for the general solution.

A focused answer to AP Calculus AB Topic 7.6, solving separable differential equations by separating variables and integrating both sides to find the general solution, with worked examples and the constant of integration.

Generated by Claude Opus 4.89 min answer

Reviewed by: AI editorial process; not yet individually human-reviewed

Have a quick question? Jump to the Q&A page

Jump to a section
  1. What this topic is asking
  2. The method
  3. A worked general solution
  4. Handling the constant correctly
  5. Why separation is the only AB solving tool
  6. Recognizing separable form
  7. Integrating each side correctly

What this topic is asking

The College Board (Topic 7.6) gives the AB technique for solving differential equations: separation of variables. When dydx\frac{dy}{dx} can be written as a product of a function of xx and a function of yy, you separate the variables to opposite sides and integrate each.

The method

A worked general solution

Handling the constant correctly

A single constant of integration captures the whole family. Although both integrals technically produce a constant, you combine them into one +C+C on the side with the xx-integral. When the yy-integral yields a logarithm, as in dydx=ky\frac{dy}{dx} = ky giving lny=kx+C1\ln|y| = kx + C_1, you exponentiate to solve for yy, and the constant transforms: y=eC1ekx|y| = e^{C_1}e^{kx}, so y=Cekxy = Ce^{kx} with C=±eC1C = \pm e^{C_1} now an arbitrary nonzero constant (and C=0C = 0 recovers the equilibrium y=0y = 0). Tracking how the constant changes through exponentiation is a frequent source of error and a frequent source of marks.

Why separation is the only AB solving tool

On AP Calculus AB, separation of variables is the only analytic method for solving differential equations; integrating factors and other techniques are out of scope. So every solvable AB differential equation is separable, and the first step is always to check that the right side factors into an xx-part times a yy-part. If it does not factor (for example dydx=x+y\frac{dy}{dx} = x + y), AB does not ask you to solve it analytically; you analyze it with a slope field instead. Recognizing separability quickly, then separating and integrating cleanly, with one constant and an explicit solve for yy when asked, is the whole skill.

Recognizing separable form

A differential equation is separable when the right side can be written as a product (or quotient) of a function of xx and a function of yy. So dydx=xy2\frac{dy}{dx} = xy^2, dydx=xy\frac{dy}{dx} = \frac{x}{y}, and dydx=ycosx\frac{dy}{dx} = y\cos x are all separable, while dydx=x+y\frac{dy}{dx} = x + y and dydx=x2+y2\frac{dy}{dx} = x^2 + y^2 are not, because the right side is a sum that does not factor. The quick test is to try to gather all yy's with dydy on one side and all xx's with dxdx on the other; if a stray mixed term blocks the separation, the equation is not separable. Making this check before attempting to integrate saves you from a dead end and tells you when to switch to a slope-field analysis instead.

Integrating each side correctly

Both sides of a separated equation are integrals you must evaluate with the Unit 6 toolkit: basic rules, rewriting, and substitution. The yy-side often needs care, for instance 1ydy=lny\int \frac{1}{y}\,dy = \ln|y| rather than a power-rule result, and 1y2dy=1y\int \frac{1}{y^2}\,dy = -\frac{1}{y}. Errors in these antiderivatives propagate into a wrong general solution even when the separation step is correct. After integrating, combine the two constants of integration into one, conventionally placed on the xx-side, and only then solve for yy. Treating each side as an ordinary integration problem, with the same accuracy you would bring to a standalone integral, is what makes separation reliable.

Exam-style practice questions

Practice questions written in the style of College Board exam questions on this dot point, with worked answer explainers. The year tag is the paper they imitate, not the source.

AP 2022 (style)1 marksSection I (multiple choice, no calculator). The general solution of dydx=xy\frac{dy}{dx} = \frac{x}{y} is (A) y=x2+Cy = x^2 + C (B) y2=x2+Cy^2 = x^2 + C (C) y=lnx+Cy = \ln x + C (D) y=Cexy = Ce^x
Show worked answer →

The correct answer is (B), y2=x2+Cy^2 = x^2 + C.

Separate: ydy=xdxy\,dy = x\,dx. Integrate: y22=x22+C1\frac{y^2}{2} = \frac{x^2}{2} + C_1, so y2=x2+Cy^2 = x^2 + C (absorbing the constant).

AP 2023 (style)4 marksSection II (free response, no calculator). Find the general solution of dydx=2xy\frac{dy}{dx} = 2xy, expressing yy explicitly.
Show worked answer →

A 4-point separation question.

(2 points) Separate: 1ydy=2xdx\frac{1}{y}\,dy = 2x\,dx. Integrate: lny=x2+C1\ln|y| = x^2 + C_1.
(2 points) Exponentiate: y=ex2+C1=eC1ex2|y| = e^{x^2 + C_1} = e^{C_1}e^{x^2}. Writing C=±eC1C = \pm e^{C_1}, the general solution is y=Cex2y = Ce^{x^2}.

Related dot points

Sources & how we know this