← Return to lesson

Class materials · 3.2a

Implicit Differentiation: Finding dy/dx

Lecture transcript

0:00

What if you can't even solve for y? Until now, every derivative started nice and polite: y was a function of x, handed to us as a formula, a table, or a graph. Take the derivative, move on. Then a curve like this shows up: x squared y, plus y cubed, equals ten. y is multiplied, it's cubed, it's tangled right into the equation. Could you solve that for y? Not cleanly. You really don't want to try.

0:31

Good news: you don't have to. Today, you'll find dy dx straight from the equation, without ever getting y by itself. Let's go get that five. Let's start with a curve you already know. x squared plus y squared equals twenty-five. A circle, radius five. Here's the top half... and here's the bottom half. Is this a function of x? Slide a vertical line through it, and it hits the circle twice.

1:01

It fails the vertical line test, so it's not a function. But look at the point three, four. The circle clearly has a slope there. So how do we find it, without a function? First, the long way. Solve for y: y squared is twenty-five minus x squared... so y is plus or minus a square root. Plus gives the top half: y equals the square root of twenty-five minus x squared.

1:32

Minus gives the bottom half: y equals negative root twenty-five minus x squared. One curve, two functions hiding in it. Three, four sits on the top half, so we take the top function. Then the chain rule: the outside is a square root, the inside is twenty-five minus x squared. A square root is the one-half power. So y prime is one half, times twenty-five minus x squared to the negative one half... times the inside's derivative, negative two x.

2:07

Clean it up: the negative one half power sends the root to the bottom. Negative two x over two root twenty-five minus x squared... that's negative x over root twenty-five minus x squared. At x equals three: negative three over root sixteen... negative three fourths. That's the slope of this little tangent line. It works. But we had to solve for y first, and pick the right half. And the tangled curve from the start won't let us do that cleanly.

2:40

So here's the fast way. Leave the equation alone, exactly as it is, and take d d x of both sides. x squared, no problem: two x. But how do we take d d x of y squared? Here's the thing. Near a point like three, four, we're on one half of the circle, and there, when x changes, y changes. So y isn't a number. On that half, it's a function of x; we just can't see its formula.

3:11

Think of y as a box, with some formula in x hidden inside. So y squared is the box, squared. Outside, u squared. Inside, y. That's the chain rule. Call the inside u, so u is y. The derivative of u squared is two u, times d u d x... and with u equal to y, that's two y, times dy dx. So that dy dx isn't magic.

3:42

It's the inside's derivative: the chain rule showing up, because y depends on x. Now, how do you do it by hand, every time? Differentiate each letter, and tag it with d of that letter. x squared gives two x dx. x cubed gives three x squared dx. And y squared gives two y dy. Then divide both sides by dx. Two x dx over dx: dx over dx is one, so it's just two x. Nothing left over.

4:19

But two y dy over dx is two y, dy dx. The dy dx stays. That leftover dy dx is exactly the chain rule's inside derivative. So for a term with only y in it, differentiate it as if y were the variable, then multiply by dy dx. If x and y are multiplied together, the product rule comes first. The dy dx is there because of the chain rule. To write it, you tag, then divide by dx.

4:53

Three quick examples. Keep both rules in view. The product rule: f prime g, plus f g prime. The quotient rule: f prime g, minus f g prime, all over g squared. One: y equals f of x. Tag each side: y is y to the first power, so it gives one dy, and the right side gives f prime of x dx. Divide by dx: dy dx equals f prime of x.

5:24

The derivative you already know. If y is f of t, you get one dy equals f prime of t dt. Need dy dt? Then divide by dt instead. You divide by the letter you're differentiating by. Two: x squared y, a product. f is x squared, g is y. Two x dx, times y, plus x squared, times one dy. Divide by dx: two x y, plus x squared dy dx.

5:59

Last, a quotient. Use the quotient rule we kept in view. Three: x over y. x gives one dx, and y gives one dy. So we get one dx times y, minus x times one dy, all over y squared. Divide by dx: y minus x dy dx, all over y squared. Now back to the circle, term by term. x squared gives two x.

6:31

y squared gives two y dy dx. And twenty-five, the radius squared, is a constant, so it gives zero. That's the zero on the right. Move two x to the right: two y dy dx equals negative two x. Divide by two y: negative two x over two y... negative x over y. At three, four: negative three over four. The same slope as the long way, and not a single square root.

7:05

Now the bottom half, with the same formula: negative x over y. The point three, negative four: negative three over negative four... three fourths. No half to choose. y is right there in the formula, so the formula already knows which half you're on. This is called implicit differentiation: y is never solved for, it just stays inside the equation. Explicit is the opposite: y equals a formula in x, the way derivatives usually started before today.

7:39

Quick round. Remember the rule: differentiate a y term like normal, then tag on dy dx. y cubed gives three y squared, times dy dx. Sine of y gives cosine of y, times dy dx. e to the y gives e to the y, times dy dx. x times y? Careful, that's a product: f prime g, plus f g prime. So one times y, plus x times dy dx.

8:14

And x cubed: just three x squared, no tag, because x is what we're differentiating by. dx over dx is one. Then getting dy dx alone is the same four moves, every time. One: differentiate both sides. If you tag with d's, write the line divided by dx too. Never leave a bare dy where dy dx belongs. And keep the equals sign, and whatever is on the right. Feels too small to matter, right?

8:46

It matters: without the equals sign, you don't have an equation, and you can't move or divide anything. Today every right side is a constant, so it turns into zero. Two: move every dy dx term to one side, and everything else to the other. Three: factor out dy dx. Four: divide. Four moves, every time. Remember that tangled equation from the start? It's back. A curve: x squared y, plus y cubed, equals ten.

9:21

Find dy dx at the point three, one. The plan: first, a quick habit. Check that the point is on the curve, so we know we're on the right curve. Then differentiate both sides. Plug in three, one: three squared times one, plus one cubed. Nine plus one, ten. It's on the curve. Now the first term, x squared y. It's a product. f is x squared, g is y.

9:53

Two x, times dx over dx, and dx over dx is one, times y... plus x squared, times dy dx. Now the whole left side: two x y, plus x squared dy dx, plus three y squared dy dx from y cubed. And ten gives zero. Keep that equals zero. The last three moves, move, factor, divide, are yours, so get dy dx alone before I do.

10:26

The plan: keep the dy dx terms on the left, factor out dy dx, divide, then plug in three, one. Move two x y to the right: x squared dy dx, plus three y squared dy dx, equals negative two x y. Factor out dy dx: x squared plus three y squared, times dy dx, equals negative two x y. Divide: dy dx is negative two x y, over x squared plus three y squared.

11:01

At three, one: negative two times three times one, over nine plus three. Negative six over twelve... negative one half. The same four moves work on the next curve in your workbook. Now look back at the very first move, the x squared y term. Here's the slip to watch for. Here's a first line with a piece missing: x squared dy dx, plus three y squared dy dx, equals zero.

11:33

Factor out dy dx: x squared plus three y squared, times dy dx, equals zero. At three, one, that bracket is twelve: twelve dy dx equals zero, so dy dx is zero. That's suspiciously clean. The missing piece: x squared y is a product. The product rule gives two x y, plus x squared dy dx. Put the two x y back, and you get negative one half, not zero.

12:03

And implicit differentiation is on the real exam. On the 2023 AP exam, free-response question six was built on an implicit curve. Part a, showing a formula for dy dx, was two of its nine points. The average on the whole question, all four parts, was two point seven seven out of nine. Last one, multiple choice. e to the y, plus x y, equals e. What is dy dx at the point zero, one?

12:36

The plan: differentiate both sides. Then plug in the point right away. They only want a number, so there's no need to solve for dy dx in general. In example one, plugging in early would work too; we did all four moves there so you could see each one. The two rules are right under the problem. e to the y gives e to the y, dy dx. x y is a product: y plus x dy dx. And e on the right?

13:07

It has no variable in it. It's just a number, so it gives zero. Now plug in: x is zero, y is one. e to the one, dy dx... plus one, plus zero times dy dx, equals zero. That x equals zero wipes out the whole x dy dx term. Move the one: e times dy dx equals negative one. Divide by e: dy dx is negative one over e.

13:40

So the answer is A. One more with an e to the y is in your workbook, so write every term out. So, back to the question: what if you can't even solve for y? Don't solve for y. Differentiate both sides, just as the equation stands. On the circle, that gave negative x over y, and the formula knew which half it was on. Every y term gets a dy dx because y is a hidden function of x.

14:11

Tag every letter, divide by dx: dx over dx is one, and dy dx stays. And watch the products, like x y: the product rule first, then the tag. Keep the equals sign and its right side, then move, factor, divide. So now you have a slope formula even for curves you can't solve for y. Next time we put it to work: tangent lines, and the spots where the curve goes flat, or straight up and down.

14:41

Try the curves in your workbook first. See you there.