Skip to main content

7.6 Finding General Solutions Using Separation of Variables

add to ChatGPT
Verified for the 2027 examUpdated September 2026Fiveable Content Team
Fiveable

♾️AP Calculus AB/BC Unit 7 Review

QR code for AP Calculus AB/BC practice questions

7.6 Finding General Solutions Using Separation of Variables

Separation of variables is a method for solving certain differential equations by moving all the yy terms to one side and all the xx terms to the other, then integrating both sides. This gives you a general solution: a family of functions that differ only by a constant of integration CC. For AP Calculus, include the constant of integration before using any initial condition.

Differential equations make up about 6 to 12 percent of the AB exam and 6 to 9 percent of the BC exam. Separation of variables is the method that gets you from an equation to the function that solves it, and it sets up later work with exponential models and, on BC, logistic models.

Separable Equations and the Constant of Integration

  • A separable differential equation can be written as dydx=g(x)h(y)\frac{dy}{dx} = g(x)h(y), where one factor depends only on xx and the other only on yy.
  • Solve by separating variables, integrating both sides, and adding a single constant of integration.
  • Always include +C+C. Leaving it out limits how many points you can earn.
  • The general solution is a family of functions, not a single curve, because CC can take infinitely many values.
  • Not every differential equation separates. If xx and yy terms cannot be split apart, this method does not apply.
  • Check a solution by differentiating it and substituting back into the original equation.

Solving Differential Equations

A solution to a differential equation is a continuous function that satisfies the equation. There can be infinitely many solutions, and together they form a family of curves. If you want to review how to confirm a function is a solution, see Verifying Solutions to Differential Equations.

Going the other direction, from an equation to a solution, is harder. Some differential equations like 2xy′+y=3x22xy' + y = 3x^2 are difficult to solve and are beyond this course. But one important type, separable differential equations, is well within reach.

Separable Differential Equations

Separable differential equations are first-order equations whose variables can be split so that each side involves only one variable. They are usually written as

dydx=g(x)h(y)\frac{dy}{dx} = g(x)h(y)

where g(x)g(x) depends only on xx and h(y)h(y) depends only on yy.

The strategy is to integrate both sides to eliminate the derivative:

  1. Separate variables: Rearrange so all yy terms (including dydy) are on one side and all xx terms (including dxdx) are on the other.
  2. Integrate both sides: Antidifferentiate each side with respect to its own variable. Add the constant of integration.
  3. Solve for yy: If possible, write yy explicitly. Sometimes the answer stays in implicit form.

Finding the constant CC from an initial condition is the next step, covered in Finding Particular Solutions Using Initial Conditions.

Worked Practice Problems

Practice Problem #1

dydx=2xy\frac{dy}{dx} = \frac{2x}{y}

Separate the variables:

y dy=2x dxy \, dy = 2x \, dx

Integrate both sides:

∫y dy=∫2x dx\int y \, dy = \int 2x \, dx

This gives, with CC as the constant of integration:

12y2=x2+C\frac{1}{2}y^2 = x^2 + C

Solve for yy explicitly:

y2=2x2+2Cy^2 = 2x^2 + 2C y=±2x2+2Cy = \pm \sqrt{2x^2 + 2C}

So the general solution is

y=±2x2+2Cy = \pm \sqrt{2x^2 + 2C}

The constant CC gets pinned down later if an initial condition is given.

Practice Problem #2

dydx+xy=y2\frac{dy}{dx} + xy = y^2

Move xyxy to the right side:

dydx=y2−xy\frac{dy}{dx} = y^2 - xy

This one cannot be separated. There is no way to split the right side into a product of a function of xx times a function of yy, so separation of variables does not apply. Recognizing this quickly saves you time on the exam.

Practice Problem #3

dydx=x2y\frac{dy}{dx} = x^2y

Separate the variables:

dyy=x2 dx\frac{dy}{y} = x^2 \,dx

Integrate both sides:

∫1y dy=∫x2 dx\int \frac{1}{y} \,dy = \int x^2 \,dx

This gives:

ln⁡∣y∣=13x3+C\ln|y| = \frac{1}{3}x^3 + C

Solve for yy:

∣y∣=e13x3+C=eC⋅e13x3|y| = e^{\frac{1}{3}x^3 + C} = e^{C}\cdot e^{\frac{1}{3}x^3}

Since eCe^C is just another positive constant, rename it CC:

∣y∣=Ce13x3|y| = Ce^{\frac{1}{3}x^3}

Accounting for the absolute value gives two cases, which combine into:

y=± Ce13x3y = \pm \,Ce^{\frac{1}{3}x^3}

This is the general solution. Notice it is an exponential function, recognizable because the rate of change depends on the dependent variable yy, the same behavior that makes exe^x its own derivative.

Solving Separable Equations Step by Step

Problem Solving:

  • Confirm the equation is separable before starting. If you cannot write it as g(x)h(y)g(x)h(y), switch strategies.
  • Keep your separation clean: every yy and dydy on one side, every xx and dxdx on the other.
  • Antidifferentiate carefully. A fraction like 1y\frac{1}{y} integrates to ln⁡∣y∣\ln|y|, but not every fraction gives a logarithm.
  • Write +C+C the moment you integrate. It is easy to forget and hard to recover later.

Free Response:

  • Show the separation step and the integration step clearly. Skipping work makes it hard for readers to follow your method.
  • When solving for yy, keep track of ±\pm and absolute values so your general solution is complete.
  • If the problem later gives an initial condition, you will use it to solve for CC (see Topic 7.7).

Common Trap:

  • Assuming every differential equation with a fraction has a logarithmic solution. Some do, many do not. Match the antiderivative to the actual function.

Common Misconceptions

  • Misconception: Every differential equation is separable.
    Actually: Many are not. If you cannot split the variables into a product form, this method will not work, and that is a valid thing to state.
  • Misconception: The constant of integration is optional.
    Actually: Dropping CC changes a whole family of solutions into a single curve and costs points. Always include it.
  • Misconception: All fractions integrate to a logarithm.
    Actually: Only 1y\frac{1}{y}-type forms give ln⁡∣y∣\ln|y|. Use the power rule or other antiderivatives when the function calls for it.
  • Misconception: A general solution is one function.
    Actually: It is an entire family of functions parameterized by CC. A single function comes only after applying an initial condition.
  • Misconception: You can combine two constants into something complicated.
    Actually: When you have a constant on each side after integrating, merge them into one CC. Tracking two separate constants is unnecessary.

Practice Questions for 7.6

1 of 10

Shown above is a slope field for a differential equation of the form dydx=xky\frac{dy}{dx} = \frac{x}{ky}, where kk is a constant.

Based on the slope field, which of the following expressions represents the correct mathematical setup to find the general solution?

A.

∫2y dy=∫x dx\int 2y \, dy = \int x \, dx

B.

∫−y dy=∫x dx\int -y \, dy = \int x \, dx

C.

∫y dy=∫x dx\int y \, dy = \int x \, dx

D.

∫y dy=∫2x dx\int y \, dy = \int 2x \, dx

Vocabulary

The following words are mentioned explicitly in the AP® course framework for this topic.

Term

Definition

antidifferentiation

The process of finding a function whose derivative is a given function; the reverse operation of differentiation, also known as integration.

differential equation

An equation that relates a function to its derivatives, describing how a quantity changes in relation to one or more variables.

general solution

The complete family of solutions to a differential equation, containing arbitrary constants that represent all possible particular solutions.

separation of variables

A method for solving differential equations by rearranging the equation so that all terms involving one variable are on one side and all terms involving the other variable are on the other side.

See Fiveable more often in Google

Mark Fiveable as a preferred source and Google is more likely to show you our guides in Top Stories, with a "preferred" badge in AI Mode and AI Overviews.

Prefer us on Google