A circle: the long way, the fast way
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.
Watch this part of the concept lesson
Read the rest of this scene
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. 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. 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. 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. 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. It's the inside's derivative: the chain rule showing up, because y depends on x.