← Return to lesson

Class materials · 7.6

Finding General Solutions Using Separation of Variables

Lecture transcript

0:00

By the end, you'll take a differential equation with y stuck on the right side, separate the variables, and get its whole family of solutions. Let's go get that five. Here's d y d x equals x squared over y squared. To find y, we want to integrate. But y is sitting on the right side, and we don't know y yet. You can't integrate it like a constant. So how do we get past that? One. Every y goes with d y, every x goes with d x.

0:34

Think of the equal sign as a border. Multiply both sides by y squared d x. Now every y is on the left, with d y, and every x is on the right, with d x. Now each side has only one variable, so integrate the left with respect to y and the right with respect to x. That gives y cubed over three equals x cubed over three, plus C. But you've heard it a hundred times: d y d x is not a fraction.

1:07

So why are we allowed to split it? Let's check. Take the derivative with respect to x of y cubed over three. y depends on x, so the chain rule gives y squared times d y d x, and the equation says that's x squared. Both sides match. The chain rule backs us up. Now test a real curve. With C equal to zero, y cubed equals x cubed, so y equals x. The equation divides by y, so y can't be zero: the origin is out.

1:41

Check the point one, one: the line's slope is one, and the equation gives one squared over one squared, which is one. At negative one, negative one, the line's slope is one again, and the equation gives one again. It works. Get each variable on its own side first, then integrate each side. That move is called separation of variables. On one 2023 AP free-response part worth four points, an answer that never separated the variables earned zero of the four.

2:14

Not one point. Now, two. With the same equation, d y d x equals x squared over y squared, here's why we write only one plus C. Strictly, each integral brings its own constant: y cubed over three plus C one, equals x cubed over three plus C two. Two sides, two constants. Move C one over, and you get C two minus C one. An unknown minus an unknown is still just one unknown constant.

2:49

So write one C, on one side, the moment you integrate. Multiply by three: y cubed equals x cubed plus three C. Three times some constant is still some constant, so we keep calling it C. Take the cube root: y equals the cube root of x cubed plus C. With C still in it, it's called the general solution. Set C equal to zero and the curve is the line y equals x. Set C equal to eight, and since the cube root of eight is two, the curve passes through zero comma two.

3:25

Every value of C draws one curve. Put them all together, and you're looking at the whole family of solutions. Alright, three. When separating leaves one over y, d y, the answer has a natural log. The equation is d y d x equals y cosine x. Divide by y, for y not zero, and multiply by d x: one over y, d y, equals cosine x, d x.

3:55

Integrating gives the natural log of the absolute value of y equals sine x, plus C. Keep those absolute value bars. Raise e to both sides. The sum in the exponent splits into a product: the absolute value of y is e to the C, times e to the sine x. Drop the bars, and you get plus or minus e to the C. That's a new nonzero constant, so give it a new name: A. We divided by y, so the case y equals zero dropped out.

4:28

Check it in the original equation. Left side, the derivative of zero is zero; right side, zero times cosine x is zero. They match, so y equals zero is a solution too. Now let A be zero in our answer: zero times e to the sine x is zero. So y equals A e to the sine x already has it. Nothing got left behind. With A equals one, we get the basic wave. A equals two stretches it to twice the height, and A equals negative one flips it below the axis.

5:03

Same three steps as before: separate, integrate, one constant. The natural log just comes from integrating one over y. Four. Before you separate, look for a product. Take d y d x equals x y plus three x. Factor out the x: x times the quantity y plus three. Now it splits: d y over y plus three equals x d x, for y not negative three.

5:34

But d y d x equals x plus y is a sum. Multiplying and dividing never gets y alone with d y, so it can't be separated. Moving y over with a minus sign isn't separating. And that's okay: not every differential equation separates. Example one. Find the general solution of the differential equation d y d x equals two x over cosine y. You may leave it in implicit form.

6:05

For this one: separate the variables, integrate each side, and write plus C on the line where the integral signs disappear. Multiply both sides by cosine y d x: cosine y d y equals two x d x. Check the border: only y on the left, only x on the right. The left side is integrated with respect to y, and the right side with respect to x. That gives sine y equals x squared plus C.

6:35

Each side could carry its own constant, but their difference is still one constant, so a single C does the job. So, sine y equals x squared plus C is the general solution, in implicit form. The question allows that, so we're done. Alright. Separate a few more in your workbook, and get each letter on its own side before you integrate anything. Here's a common mistake: integrating with respect to x while cosine y is still on the right.

7:07

As x changes, y changes too, so cosine y is not a constant. This answer leaves cosine y on the right and integrates with respect to x, as if y were a constant. But y changes as x changes. On that 2023 AP part, an answer with no separation earned zero points. Do this instead: first write cosine y d y equals two x d x. Then integrate the left side with respect to y and the right side with respect to x.

7:42

Example two. Which is the general solution of d y d x equals e to the quantity x minus y? The plan: rewrite e to the x minus y as a quotient, separate, integrate, and then solve for y. e to the x minus y is e to the x over e to the y: subtracting exponents means dividing, so it's a hidden product. Multiply by e to the y d x: e to the y d y equals e to the x d x.

8:14

Integrating gives e to the y equals e to the x plus C, and the C goes in now, before any natural log, so later it stays inside. Take the natural log of the whole right side: y equals the natural log of the quantity e to the x plus C. The C stays trapped inside; you can't pull it out. So, the answer is B. Okay. The next one in your workbook starts the same way: split it, then separate.

8:46

So that's how we integrate with y in the way: we separate first. First, every y goes with d y, and every x goes with d x. Integrate each side, and add one C, right on that line. Each value of C picks out one curve, and the whole family of those curves is called the general solution. Look for a product, not a sum, before you separate. And on the exam, show that separation line first. On that 2023 part, no separation meant zero.

9:20

A handful from your workbook makes separating automatic, and every one has a video. If one doesn't click, ask me in the comments. Next up, seven point seven: one point picks your curve out of that family.