Differential Calculus


Differential Calculus

Anna
Corey, I've got a puzzle for you. A car's position is given by p of t equals t squared. What's its exact speed at exactly t equals two seconds?

Corey
Speed is distance over time, but over zero time? That's division by zero. That's the whole problem with instantaneous rates, isn't it?

Anna
Exactly. And the tool we use to sneak up on that answer is called a limit. We can't measure over zero time, but we can over shrinking intervals and watch what the average speed approaches.

Corey
Right, like between t equals 2 and t equals 3 the average speed is 5 meters per second. But if we squeeze to 2 to 2.1, it's 4.1. Then 2 to 2.01 gives 4.01. It's clearly heading toward 4.

Anna
Exactly. That's the limit—the value the average speed gets arbitrarily close to as the interval shrinks to zero. In our case, the limit is 4. And geometrically, that's the slope of the tangent line at that point on the curve.

Corey
So we formalize that as the limit as h approaches zero of f of x plus h minus f of x all over h. That's the derivative. A new function that gives the instantaneous rate of change at every point.

Anna
Right. And our first concrete example: for f of x equals x squared, we plug it into that limit definition. Expand, cancel the x squared terms, factor out an h, cancel, and then let h go to zero. We get f prime of x equals 2x.

Corey
So that means the velocity of our car is v of t equals 2t, and at t equals 2 it's 4 meters per second. That matches our table. So the limit definition is the foundation.

Anna
Now we can build a library of derivatives from that foundation. A constant? Slope is zero. A line mx? Slope m. The function e to the x is its own derivative. The natural log of x gives 1 over x. Sine becomes cosine, and cosine becomes negative sine.

Corey
And each one makes intuitive sense. For e to the x, the slope at any point equals the function value there. For sine, the slope follows the cosine wave. It's all connected.

Anna
Now, real functions aren't always simple. We need rules. The power rule: derivative of x to the n is n times x to the n minus one. The constant multiple rule: constants come along for the ride. And the sum rule: just differentiate term by term.

Corey
So for something like p of t equals 4t cubed minus 5t squared plus 7t plus 10, we can do it in seconds. 4t cubed gives 12t squared, minus 5t squared gives 10t, plus 7t gives 7, and the constant disappears. Done.

Anna
But what about multiplication? You can't just differentiate each part. That's where the product rule comes in: derivative of the first times the second, plus the first times derivative of the second. For h of x equals x squared times sine x, we get 2x sine x plus x squared cosine x.

Corey
And for division, the quotient rule. I like the mnemonic: low d high minus high d low over the square of what's below. For e to the x over x cubed, we get e to the x times x minus 3 all over x to the fourth.

Anna
We can even prove one of our library derivatives. Tangent x is sine over cosine. Apply the quotient rule, use the Pythagorean identity, and bam: derivative is secant squared x. No magic.

Corey
Now the master key: the chain rule. When you have a function inside another, like sine of x squared, you differentiate the outer leaving the inner, then multiply by the derivative of the inner. So sine of x squared becomes cosine of x squared times 2x.

Anna
For something like x cubed plus 5x to the seventh, it's 7 times that quantity to the sixth times 3x squared plus 5. The chain rule lets us handle compositions beautifully.

Corey
But what about implicit equations like x squared plus y squared equals 25? We can't solve for y easily. That's where implicit differentiation comes in. Just differentiate term by term, and when you hit a y term, multiply by dy dx because of the chain rule.

Anna
So for the circle, we get 2x plus 2y dy dx equals 0, which gives dy dx equals negative x over y. That formula gives the correct slope at every point: flat at the top, vertical at the sides.

Corey
And now a victory lap: deriving the derivative of arc sine of x. Write it as y equals arc sine x, so sine y equals x. Implicit differentiation gives cosine y dy dx equals 1, so dy dx equals 1 over cosine y.

Anna
But we need it in terms of x. Draw a right triangle: sine y is x over 1, so opposite is x, hypotenuse is 1. That makes adjacent the square root of 1 minus x squared. Cosine y is that over 1, so dy dx is 1 over root 1 minus x squared. We just derived it!

Corey
Look at that! From a simple car example, we built the entire toolbox: basic rules, product, quotient, chain, implicit differentiation. Every single rule follows logically from the limit definition.

Anna
That's the promise fulfilled. You didn't memorize a table. You built it from first principles. And now you have the complete toolkit for differential calculus. Next up: integral calculus, the other half of the story.

Corey
But this is the foundation. Derivatives are the language of change, and now you speak it fluently. Go use it!

Ask anything
We've read this whole study set, so questions about it get the best answers.