Logo/
Lina Amari

Shared by Lina Amari

Log in

Make a lecture like this from your own PDF

Drop a PDF, slides or notes here. You'll sign up, then yours starts.

0:00 / 13:30

0:00 / 13:30What is a Function and Why Derivatives Matter
Differential Calculus: From Derivatives to Error Analysis
Lina Amari

Shared by Lina Amari

Summary

Think of calculus as a way to measure how a function changes. It starts with the derivative, which is just the slope of a line at a specific point. When you move to functions with multiple variables (like calculating the area of a field using length and width), you use partial derivatives. These tell you how the function changes if you tweak just one input while keeping the others frozen.

The total differential is your main tool for connecting these concepts to real-world measurements. It uses those partial derivatives to estimate how a tiny change in your inputs will affect the final result. In a practical setting, we swap "infinitesimal" changes for actual measurement uncertainties (your plus-or-minus range). By adding these up using absolute values, you calculate the absolute error, which gives you a clear range for your result.

Sometimes, though, the raw number isn't enough context. That’s where relative error comes in—it’s just the absolute error divided by your measurement, often shown as a percentage. It helps you understand if your error is actually a big deal or just a minor rounding issue. By mastering these formulas, you turn abstract math into a reliable way to handle uncertainty in science and engineering.

Full transcript

0:00The relative error is the absolute error divided by the measured value — delta f over f. Because it's a ratio, it has no units. It's usually expressed as a percentage. Here's why relative error matters. An absolute error of one meter is tiny if you're measuring a football field, but enormous if you're measuring the width of a book. The relative error captures this context. To get the relative error formula, you take the absolute error expression and divide every term by f. So delta f over f equals the absolute value of partial f over partial x times delta x, all over f, plus the same for y and z. For many common formulas, this simplifies nicely. If f is a product of variables raised to powers, the relative error becomes the sum of the relative errors of each variable, weighted by the exponents. Let's put all of this together with a concrete example — calculating the area of a rectangular field from measured dimensions.

1:04Here's the connection that makes differential calculus so useful in the real world. The total differential formula uses infinitesimal changes — d x, d y, d z. But in a lab or a field measurement, you don't have infinitesimals. You have measurement uncertainties — plus or minus some amount. The key insight: you can replace the d's with capital delta's. The absolute error delta f is approximately the absolute value of partial f over partial x times delta x, plus the absolute value of partial f over partial y times delta y, plus the absolute value of partial f over partial z times delta z. We use absolute values because errors add up — a positive error in one measurement and a negative error in another don't cancel out in the worst case. We want the maximum possible error. The absolute error has the same units as the function itself. If you're measuring area in square meters, the absolute error is also in square meters. It tells you the range: the true value is somewhere between f minus delta f and f plus delta f. But sometimes what matters more is not the absolute error, but how big the error is relative to the measurement itself.

2:30Most things in the real world don't depend on just one variable. The temperature at a point on Earth depends on latitude, longitude, altitude, and time of day. The profit a company makes depends on production cost, selling price, advertising budget, and demand. To model these situations, we need functions of several variables. A function of two variables, like f of x and y, takes two numbers as input and gives one number as output. You can visualize it as a surface in three dimensions — the height of the surface at each point is the function's value. Here are some examples. f of x, y equals 3 x squared minus 6 y cubed. That's a surface that curves differently in the x direction than in the y direction. Or f of x, y, z equals 2 x cubed plus 4 y squared minus 2 z squared plus 3 x minus 4 y z — that one lives in four dimensions, so we can't draw it, but we can still work with it mathematically. The key question is: how does this function change when you change just one of its inputs while keeping the others fixed? That's where partial derivatives come in.

3:47Now we have all the pieces to answer the big question: if a function depends on several variables, and each of those variables changes by a tiny amount, what's the total change in the function? The answer is the total differential. For a function f of x, y, z, the total differential d f is the sum of the partial derivatives, each multiplied by the differential of its variable. So d f equals partial f over partial x times d x, plus partial f over partial y times d y, plus partial f over partial z times d z. Think of it this way: each partial derivative tells you how sensitive the function is to changes in one particular variable. If the function is very steep in the x direction, then a small change in x causes a big change in f. The total differential adds up all these individual contributions. This is incredibly practical. In engineering and physics, the total differential is the foundation of error propagation — if you measure several quantities with some uncertainty, how does that uncertainty combine to affect your final result? Let's see exactly how that works.

5:06You've seen functions before — y equals f of x, where one number goes in and another comes out. But here's the question that really matters: how fast is that output changing when you nudge the input? That question — how fast something changes — is the whole reason calculus exists. A derivative tells you the instantaneous rate of change. Think about a population of bacteria: every hour, the colony doubles. But the rate at which it's growing at hour two is very different from the rate at hour six. That's not an average over the whole six hours — it's the speed right now, at this exact moment. Derivatives show up everywhere: in physics to describe velocity and acceleration, in economics to find optimal profit, in biology to model how drugs spread through the body. Before we get to the formula, I want you to picture a curve on a graph. Pick any two points on that curve, draw a straight line between them — that line's slope is the average rate of change between those two points. The derivative is what happens when those two points get so close together they're practically the same point. That's the core idea. Now let's see what it looks like.

6:24Here's the part that matters. Take a function f of x, and pick a point x. Now pick another point a little further along — x plus h. The line connecting these two points is called a secant line, and its slope is f of x plus h minus f of x, all divided by h. That's the average rate of change over an interval of length h. Now — and this is the key move in all of calculus — let h get smaller and smaller. As h approaches zero, the secant line pivots, getting closer and closer to a line that just barely touches the curve at a single point. That's the tangent line. And the slope of that tangent line is the derivative at x. Mathematically, we write this as the limit as h approaches zero of f of x plus h minus f of x over h. If that limit exists, we say f is differentiable at x, and we call that limit f prime of x. So the derivative is not just some abstract symbol — it's the slope of the tangent line. It tells you, at any point on a curve, whether the function is rising steeply, barely climbing, or heading downward. A positive derivative means the function is increasing. A negative derivative means it's decreasing. And a derivative of zero? That's a flat spot — a peak, a valley, or a pause.

7:56So we have the derivative — a number that tells you the slope at a single point. But there's another way to think about this that's incredibly useful. Instead of asking "what's the slope?", ask "if I change x by a tiny amount, how much does y change?" When the changes are small but finite, we write delta y and delta x. The ratio delta y over delta x is approximately the derivative. But when those changes become infinitesimally small — so small you can't measure them — we switch to a new notation: d y over d x. This is the differential. The differential d y is equal to f prime of x times d x. It's a linear approximation: if you know the derivative at a point, you can predict how much the function will change for a tiny step in x. Here's the subtle difference: the derivative at a point is a number. The differential at a point is a linear function — it takes a small change in x and tells you the approximate change in y. Think of the derivative as the slope, and the differential as the equation of the tangent line itself. This distinction matters because when we move to functions with multiple variables, we can't just talk about "the" derivative anymore. We need a whole new toolkit.

9:21A partial derivative is exactly what it sounds like — you take the derivative with respect to one variable, and you treat all the other variables as if they were constants. Let's work through an example. Suppose f of x, y equals 3 x squared y plus 2 x y squared. To find the partial derivative with respect to x, we treat y as a constant. The term 3 x squared y becomes 6 x y — because the derivative of x squared is 2 x, and y is just a constant multiplier. The term 2 x y squared becomes 2 y squared — because the derivative of x is 1, and y squared is constant. So the partial derivative with respect to x is 6 x y plus 2 y squared. Now the partial derivative with respect to y — treat x as constant. The term 3 x squared y becomes 3 x squared — derivative of y is 1. The term 2 x y squared becomes 4 x y — derivative of y squared is 2 y, times the constant 2 x. So the partial with respect to y is 3 x squared plus 4 x y. Notice the notation: instead of d f over d x, we write a curly d — the partial derivative symbol. It's a small but important difference. The partial derivative tells you the slope of the surface if you walk in the x-direction, keeping y fixed. And the partial with respect to y tells you the slope if you walk in the y-direction, keeping x fixed. Each variable gets its own partial derivative. A function of three variables has three partial derivatives. A function of ten variables has ten. And they all work the same way — differentiate with respect to one, treat the rest as constants.

11:21Let's work through a real example. You're measuring a rectangular field. You measure the length L as 20.3 meters, plus or minus 0.15 meters. And the width l as 12.9 meters, plus or minus 0.09 meters. The area S is a function of two variables — L times l. So S equals 20.3 times 12.9, which gives 261.87 square meters. That's our best estimate. But how confident are we in this number? To find the absolute error, we use the total differential formula. The partial derivative of S with respect to L is l — that's 12.9. The partial derivative with respect to l is L — that's 20.3. So delta S equals 12.9 times 0.15, plus 20.3 times 0.09. Let's calculate: 12.9 times 0.15 is 1.935. 20.3 times 0.09 is 1.827. Adding them gives 3.762 square meters. So the area is 261.87 plus or minus 3.76 square meters. Now the relative error: delta S over S equals 3.762 divided by 261.87, which is about 0.0144, or 1.44 percent. That's the complete picture. Starting from the simple idea of a derivative — the slope of a tangent line — we've built up to partial derivatives, the total differential, and finally to a practical tool for quantifying uncertainty in real measurements. The differential is the bridge between pure calculus and the messy, uncertain world of experimental science. And now you know how to cross it.

Ask AI about this video

Answers cite the source. Free account, no credit card.