Unit 7 · Topic 7.6 · about 30 minutes · 7 parts · 12 scored checks, 4 of them multiple choice

AP Calculus AB 7.6: Finding General Solutions Using Separation of Variables

Unit 7: 5 to 10% of the multiple-choice section

What you'll be able to do

  • Find general solutions to differential equations, by separating the variables when the equation is separable and by antidifferentiating when the rate depends on x alone.

Key vocabulary

TermWhat it meansThe exam trap
Separable differential equationA differential equation that can be written as dydx=g(x)h(y), a function of x alone times a function of y alone.Rewrite or factor the right side before you decide; some equations look mixed and are still a product, and some never become one.
Separation of variablesRewriting a separable equation as 1h(y)dy=g(x)dx and integrating each side with respect to its own variable.Moving h(y) across means dividing by it, which assumes it is not 0; keep track of what that rules out.
General solutionAn equation with an arbitrary constant C that describes a whole family of solutions of a differential equation, one for each value of C.Where the constant sits matters. Differentiate your answer to make sure every member of the family satisfies the equation.
Constant of integrationThe arbitrary constant C that comes with an antiderivative; in a general solution it is what makes the answer a family.After integrating both sides, count how many unknown numbers you really have before you write the next line.
The slope field of dy/dx = 2xy for x from -1.5 to 1.5, with four solution curves drawn through it, labeled C = -1, -0.5, 0.5 and 1. The curves labeled 0.5 and 1 sit above the x-axis, lowest at x = 0 and rising steeply on both sides; at x = 1 they reach 1.359 and 2.718. The curves labeled -0.5 and -1 are their mirror images below the axis. The x-axis itself, y = 0, is drawn in a second color and labeled C = 0: every segment on it is flat, so it is also a solution.Tap to open the picture full size

Part 1 Think first Five times as many bacteria

Make a guess before the lesson starts. Committing to an answer, even a wrong one, helps the right one stick.

Predict first

A lab tech grows bacteria in a dish. The count y, in thousands, changes at the rate dydt=0.3y, where t is in hours, and she checks that y=e0.3t fits this rule. Her partner's dish starts with 5 times as many bacteria and follows the same rule. Which function could give the partner's count?

In short. Separation of variables solves a differential equation of the form dydx=g(x)h(y) by putting every y on the side with dy and every x on the side with dx, integrating both sides, and adding one constant, which gives the general solution: the whole family of solutions.

  • Separation works when the right side is a function of x times a function of y. When the right side has no y at all, the general solution is y=∫f(x)dx.
  • Integrating both sides brings in one constant of integration. It is what turns a single solution into a family.
  • Solve for y where you can, and keep the constant where the algebra puts it: inside an exponent, it becomes a factor. Dividing by an expression in y can drop a constant solution.

Part 2 Learn it Three short ideas, each checked as you go

7a. Separable means an x part times a y part

A differential equation is separable when its right side can be written as a function of x alone times a function of y alone:

dydx=g(x)h(y).

Then every y can go to the left with dy, and every x to the right with dx. For dydx=2xy, divide both sides by y and multiply by dx:

1ydy=2xdx.

Sometimes the product is hidden. dydx=ex−y is ex⋅e−y, so it separates. dydx=xy+3y factors as y(x+3), so it separates too.

A sum of an x part and a y part is different. In dydx=x+y, no algebra turns x+y into a product g(x)h(y): dividing by y leaves xy+1, still a mix of both. Separation of variables does not solve that equation.

One case needs no separating at all. If the right side has no y in it, as in dydx=f(x), the solutions are the antiderivatives of f: y=∫f(x)dx. For dydx=6x2−cos⁡x, that is y=2x3−sin⁡x+C.

Quick check · Sort it

No calculator. Each card is a differential equation. Tap a card, then tap whether separation of variables can solve it.

Separable

Not separable

7b. Integrate both sides, with one constant

Once the variables are apart, integrate each side with respect to its own variable. Take dydx=x2y.

Multiply both sides by ydx: ydy=x2dx.

Integrate: ∫ydy=∫x2dx, so

y22+C1=x33+C2.

The two constants are not the same number, so they do not cancel. Subtract to combine them: y22=x33+C, where C=C2−C1. A constant minus a constant is just some constant, so write one C, on the side with x, from the start.

Multiplying by 2 gives y2=2x33+2C. Twice an unknown constant is still an unknown constant, so rename it: y2=2x33+C. This is a general solution: one equation for the whole family of solutions, one for each value of C. Leave the C out and you have only the one solution with C=0.

Check it by differentiating implicitly: 2ydydx=2x2, so dydx=x2y, the equation you started with.

Quick check · Multiple choice

No calculator. Which equation is the general solution of dydx=xy2?

7c. Solve for y, and watch for a lost solution

When you can, finish by solving for y. Go back to dydx=2xy, separated in the first chunk as 1ydy=2xdx. Integrating gives

ln⁡|y|=x2+C1.

Exponentiate both sides. The exponent is a sum, so ex2+C1=eC1ex2, a product:

|y|=eC1ex2,y=±eC1ex2.

The number ±eC1 is just a nonzero constant, so call it C: y=Cex2. The constant multiplies. Writing y=ex2+C treats ex2+C1 as ex2+eC1, which is false, and the result fails the equation: its derivative is 2xex2, not 2x(ex2+C).

Now look back at the first step. Dividing by y assumed y≠0. Yet y=0 is a solution, since both sides of dydx=2xy are then 0. It is the flat line labeled C=0 in the graph at the top. It comes back as C=0, so y=Cex2, for every constant C, is the general solution. Whenever you divide by an expression in y, ask whether that expression equal to 0 gives a solution.

Quick check · Spot the error

No calculator. A student solves dydx=3x2y for y. Tap the first line with a mistake.

Part 3 Watch it done Separate, integrate, then solve for y

Watch each step, then finish the last one yourself.

Find the general solution of dydx=xe−y.

  1. Step 1 · Separate

    The right side is x times e−y, so the equation is separable. Multiply both sides by eydx: eydy=xdx. Nothing was divided by an expression that can be 0, so no solution is lost.

  2. Step 2 · Integrate both sides

    ∫eydy=∫xdx gives ey=x22+C, with one constant, on the side with x.

  3. Why this step?

    Why write only one constant?

    Each side really has its own constant, ey+C1=x22+C2. Moving C1 across gives C2−C1, which is just one unknown constant. They do not cancel, because they are different numbers.

  4. Your step · Multiple choice

    No calculator. Finish it. Starting from ey=x22+C, which is the general solution of dydx=xe−y, solved for y?

Part 4 Try it New equations, same moves

Try it · Calculate

No calculator. Let y=f(x) be any solution of the differential equation dydx=3x2−4x+1. What is f(2)−f(0)?

Try it · Match

No calculator. Each differential equation is separable. Tap an equation, then its general solution.

Part 5 Explain it Write it as a free-response answer

Free response on the exam is written by hand, so do this one on paper. Nothing you type here leaves the page. When you are done, open the model answer and score yourself against each point.

Free response is 50% of the exam score. This one is shaped like Question 5, from free-response Part B (calculator not permitted).

Free-response practice · Question 5 style

No calculator. Consider the differential equation dydx=2x(y−1).

(a) Use separation of variables to find the general solution of the differential equation. Write your answer with y as a function of x.

(b) Verify that the constant function y=1 is a solution of the differential equation. Explain why the first step of your separation in part (a) leaves this solution out.

(c) A student writes the general solution as y=ex2+C. For which value of C, if any, is the student's function a solution of the differential equation? Justify your answer.

Model answer

(a) For y≠1, 1y−1dy=2xdx. Integrating both sides, ln⁡|y−1|=x2+C1. Then |y−1|=eC1ex2, so y−1=±eC1ex2, and y=1+Cex2, where C=±eC1.

(b) If y=1, then dydx=0 and 2x(y−1)=2x⋅0=0, so the two sides agree for every x. The separation divided both sides by y−1, which is 0 when y=1, so that step assumed y≠1. The solution comes back as y=1+Cex2 with C=0.

(c) If y=ex2+C, then dydx=2xex2, while 2x(y−1)=2x(ex2+C−1). These are equal for all x only when C−1=0. So the student's function is a solution only for C=1, which gives y=1+ex2, the member of the family in part (a) with constant 1.

Score your own answer. This is a self-check, not a grade. Tick each point your answer makes.

Part 6 Check yourself A mold culture's growth rule

Both case questions use this table. Read the rule you need from it.

A biologist models the mass of a mold culture growing on bread. While the mass is positive, it follows the rule in the table.

The mold model
SymbolMeaning
tDays since the biologist started timing
PMass of the culture, in grams, with P>0
dPdt0.4tP grams per day

Case question 1 · Multiple choice

No calculator. Which equation correctly separates the variables of the model, so that each side can be integrated?

Case question 2 · Calculate

No calculator. Separating and integrating, the general solution of the model can be written P=at2+C, where C is a constant. What is the value of a?

The rest stand on their own and do not use the case.

Check yourself · Put it in order

No calculator. Put the lines that solve dydx=cos⁡xy for y in order. Tap them in sequence.

Check yourself · Decide and justify

No calculator. To solve dydx=2xy, a classmate writes ln⁡|y|+C=x2+C, cancels the constants to get ln⁡|y|=x2, and concludes that the only solutions are y=ex2 and y=−ex2. Is the classmate right?

Which reason supports your answer?

Part 7 Keep it Bring back earlier ideas

Separation of variables leans on what an antiderivative is and on reading a solution as a function in a family. Pulling both back up is what keeps them.

Bring it back · Multiple choice

No calculator. In the slope field for dydx=x−y, the segments along one straight line all point along that line, so the line is a solution curve. Which line is it?

Bring it back · Calculate

No calculator. The function f is continuous for all real numbers, and F and G are both antiderivatives of f, with F(0)=3 and G(0)=7. What is F(5)−G(5)?

In three lines

  • A separable equation dy/dx = g(x)h(y) splits into a y side with dy and an x side with dx; when dy/dx = f(x), just antidifferentiate.
  • Integrate both sides and write one constant; renaming 2C or ±e^C as C keeps it one constant.
  • Solve for y where you can, put the constant where the algebra puts it, and check whether dividing by an expression in y lost a solution.

Exam strategy for this topic

  • Section I Part A, Multiple Choice (calculator not permitted): 29 questions in 62 minutes.
  • Section I Part B, Multiple Choice (graphing calculator required): 13 questions in 38 minutes.
  • Section II Part A, Free Response (graphing calculator required): 2 questions in 30 minutes.
  • Section II Part B, Free Response (calculator not permitted): 4 questions in 60 minutes.

On a free-response question, write the separated equation on its own line, then both antiderivatives with the constant, and only then solve for y. If you divide by an expression in y, say what you assumed. Check your final answer by differentiating it and substituting into the equation.

Questions students ask

How do I tell whether an equation is separable?

Try to write the right side as a function of x times a function of y. Factor out common factors and split exponents, since ex+y=exey. If the x part and the y part are stuck together by a plus or minus that will not factor, as in x+y, the equation is not separable.

Why is there only one constant when I integrate two sides?

Each side does get a constant, but they are two unknown numbers. Moving one across combines them into a single unknown constant, so writing one C on the side with x says the same thing in less ink.

Where did the absolute value go in y=Cex2?

From |y|=eC1ex2, y is either eC1ex2 or −eC1ex2. Both are a constant times ex2, so one constant C, positive or negative, covers both. Allowing C=0 adds the solution y=0.

Do I have to solve for y?

When the algebra allows it, yes, and always when a question asks for y as a function of x. An implicit answer such as y2=2x33+C still describes the family when solving would need a choice of sign you cannot yet make.

What about a starting value like y(0)=3?

A starting value picks one member of the family by fixing the constant. That is the next topic; here the goal is the whole family.

Course alignment, for teachers

AP Calculus AB topic 7.6, Unit 7: Differential Equations.

  • Skill 1.E: Apply appropriate mathematical rules or procedures, with and without technology.

This lesson maps all 2 essential knowledge statements of the topic to the part that teaches each one: 2 are checked by a scored question. The map is in the lesson file.