Chapter 14: Differentiation in Several Variables
Welcome to Last Minute Lecture.
This free chapter overview is designed to help students review and understand key concepts.
These summaries supplement not replaced the original textbook and may not be redistributed or resold.
For complete coverage, always consult the official text.
Imagine you're standing on the side of this massive, totally uneven mountain, and you are completely blindfolded.
Oh, that sounds like a terrible hiking trip.
Right.
But your task is to reach the absolute highest peak of this mountain.
The catch is, the only information you have to guide you is what you can physically feel right beneath the soles of your boots.
Okay, so just feeling the slope under my feet.
Exactly.
And so how do you know which way to step?
I mean, if we were relying on the rules of single variable calculus, this would be an incredibly strange, artificially constrained scenario, you know.
Absolutely.
In that 1D world, you're essentially walking on a tightrope stretched across the whole landscape.
Yeah, you only have two choices, really.
You can step forward or you can step backward.
Your altitude changes, sure, but your dimensional freedom is totally locked.
It's just a binary choice.
It really forces this severe tunnel vision.
The tightrope dictates your path completely, and all you have to do is monitor the single variable of your progression along it.
Right, exactly.
But the moment you take off that blindfold and step off the wire onto the actual grassy slope of the mountain, that tunnel vision just shatters.
You suddenly have 360 degrees of infinite possibility.
I mean, you can step north, south, east, west, or, you know, it's some microscopic fraction of a degree anywhere in between.
And honestly, that explosion of freedom is exactly what makes the jump into multi -variable calculus so terrifying for a lot of students.
Oh, for sure.
We spend years getting really comfortable on that tightrope.
We do.
But today, you know, for you listening, we are going to build the mathematical compass that allows you to actually navigate that open meadow.
We're diving into Chapter 14 of Calculus Early Transcendentals.
Yeah, specifically focusing on differentiation and several variables.
Right.
And our mission in this deep dive is to construct a sturdy, intuitive bridge for you.
We're going to take the instincts you built in a one -dimensional space and stretch them into three dimensions.
And we aren't here to just, like, read formulas at you.
We're going to really look under the hood and explain the mechanical gears of why these rules actually govern 3D space.
Absolutely.
So to start, the foundational friction of this transition really begins with a simple question.
What happens to the output of a function when it is no longer tethered to a single number line?
Well, in your standard calculus toolkit, you know, you input an X and out pops a Y.
You plot that on a flat piece of paper and you get a nice curve.
Standard stuff.
Right.
But the moment we introduce a function of two variables, which we write as F of XY,
that piece of paper just becomes inadequate.
Because, I mean, the input itself requires two dimensions just to even exist, right?
Exactly.
Your input is now an entire coordinate pair.
It's an XY location sitting flat on the ground.
So, like, if you just think of the floor of the room you're in right now as the XY plane.
Yeah, that's a perfect way to visualize it.
For every unique spot on that floor, the function calculates a specific height, which is a Z value.
Okay, so it gives you an altitude.
Right.
And when you synthesize all those calculated heights together,
the result is no longer a thin curve.
It's this sweeping,
vast, three -dimensional surface hovering above your floor.
We've officially entered R3, right?
The realm of three -dimensional real space.
We have.
And, you know, this isn't just some exercise in drawing cool shapes either.
The source material grounds this immediately in physical reality.
Yeah, they use the density of seawater as their primary example of why we desperately need multivariable functions in the first place.
Which is super important.
Seawater density, which scientists denote with the Greek letter rho, you know, looks like a curvy P.
It drives the mass of global ocean currents.
And those regulate the entire planet's climate.
So, if density only depended on temperature, we'd just be back on the tightrope.
But it doesn't.
The ocean is way more complex than a single variable.
Density is this intersecting grid that relies on the water's temperature, t, but also heavily on its salinity.
The salt content, s.
Exactly.
You cannot accurately determine the density without locking in both of those coordinates.
So the function is rho of s, t.
And what's really fascinating about this specific example in the text is that there's no, like, clean, elegant algebraic equation to model it.
Yeah, scientists can't just plug s and t into a neat little polynomial and get the answer.
The natural world rarely conforms to simple polynomials like that.
So they have to build empirical grids, right?
They determine the values experimentally.
Precisely.
If the salinity is perfectly stable at, say, 32 parts per thousand and the temperature is 10 degrees Celsius, the table dictates a density of 1 .0246 kilograms per cubic meter.
But the very moment you alter the temperature by even a single degree.
Or the salinity by a fractional part, yeah.
That density completely shifts.
So the output is entirely dependent on the interaction of the two inputs.
Right.
So if we have these incredibly complex wavy 3D surfaces hovering in mathematical space, how do we wrap our heads around them?
I mean, we can't easily draw a 3D hologram on a 2D piece of paper.
Well, that's where the text leans on two major visual mechanics to solve the problem.
Traces and level curves.
I want to look at the mechanism of why we actually do this.
So let's look at traces first.
To understand the trace, you kind of have to understand the limitation of the human brain, right?
And our foundational calculus tools.
We are exceptionally good at analyzing 1D curves.
Sure.
We've had lots of practice.
Exactly.
So when faced with a 3D surface, our instinct is to artificially force the math back into a 1D state.
And we do this by completely freezing one of the variables.
So we declare that the x coordinate is no longer allowed to change.
We lock it at a constant value, x equals a.
Right.
And if we go back to your mountain analogy, locking x equals a is like taking a giant perfectly vertical sheet of glass and just dropping it straight down out of the sky.
Oh, so it slices right through the mountain.
Yes.
You are completely ignoring the rest of the landscape.
You are only looking at the exact line where the grass touches the glass.
And that intersection creates a one dimensional curve.
That is the trace.
Exactly.
By freezing x, you've temporarily eliminated a dimension.
You can now trace that exact curve using the single variable calculus you already know.
And obviously, I assume you can reverse the process, right?
Freezing y equals b, dropping the glass from a different angle, and analyzing that resulting vertical slice.
You absolutely can.
It's basically a way to cheat the dimensionality.
I love that.
But what if instead of dropping the glass vertically, we hover it horizontally?
What if we don't freeze the inputs, but we freeze the output, the height z?
So that mechanic creates what we call a level curve.
We set z equal to c, where c is a specific constant altitude.
So we are interrogating the function, asking it to reveal every single x, y combination on the ground floor that will result in a hike to an altitude of exactly c.
Oh, this is where the math perfectly overlays with, like, anyone who has ever used a topographic map for hiking.
It really is.
A contour map is nothing more than a collection of level curves projected flat onto the ground.
Right.
You take your horizontal slice at 100 meters, another slice at 200 meters, another at 300 meters, and you draw all those intersecting rings on a flat piece of paper.
And the spacing of those lines is a massive data source for you.
It acts as a two -dimensional cipher for three -dimensional steepness.
Let's consider the geometric translation of that.
If you're looking at your flat map and the contour lines for 100, 110, and 120 meters are crammed so closely together, they are almost touching.
What does that physical reality look like on the mountain?
Well, it means I only have to move my foot a couple of inches forward on the map to suddenly gain 20 meters of altitude.
That is a sheer cliff face.
Right.
And conversely, if you have to walk across three inches of the map just to hit the next contour line, you're wandering up a very gentle rolling incline.
So we can visualize the entire 3D geometry without ever actually needing a 3D rendering.
Exactly.
The source material drives this home with an algebraic example, the elliptic paraboloid.
It's f of xy equals x squared plus three y squared.
Okay, a big bowl shape.
Yeah, a bowl.
So when you said z to a constant c, the resulting equation x squared plus three y squared equals c forms an ellipse.
Oh, I see.
Thus, the contour map of this 3D bowl shape is simply a series of concentric ellipses.
As a c increases, the ellipses get tighter and tighter together.
Proving mathematically that the sides of the bowl gets deeper the further you move from the center.
That makes so much sense.
It's super elegant.
Okay, so visualizing the landscape with slices and maps is a great start.
But, you know, calculus demands movement.
We need to analyze what happens as we move toward a specific point.
And that immediately plunges us into the concept of limits and continuity.
Now, I definitely remember the limit from 1D calculus.
You check the left side of the point, you check the right side.
If the function heads toward the exact same a value from both sides, congratulations, you have a limit.
Right, that's the tightrope logic.
Check front, check back.
The issue is, when you enter the multivariable meadow, the concept of front and back loses all meaning entirely.
Right, because our target is now a coordinate, A B, sitting on the flat plane.
How many ways can you walk toward a specific spot in an open meadow?
Infinitely many.
I mean, you can approach from the north, the south, a 17 degree angle.
You can walk in a spiraling circle that slowly tightens until you reach the center.
This is what we call the 360 degree problem.
And the fundamental redefinition of the limit in multivariable space requires an exhausting standard, doesn't it?
It really does.
For the limit to exist and equal a number L, the height of the function must approach L regardless of the path you take.
It must approach L from every single one of those infinitely many directions simultaneously.
It seems like an impossible standard to actually prove.
It's tough.
The text introduces a geometric mechanism to define this called the punctured open disc.
That sounds like something that requires a trip to the mechanic, honestly.
Yeah.
But let's break down the physical reality of it.
We are evaluating a target point P, right?
Yeah.
We draw a flat circle on the XY plane around point P.
We give it a tiny radius R.
We call the interior of this boundary the open disc.
Okay.
But to evaluate a limit, we must extract the center point P from the circle.
We puncture it.
We remove the destination itself.
Because the limit only cares about the journey.
The function might not even exist at point P.
There could literally be a physical hole in the mountain at that exact coordinate.
Exactly.
By mathematically puncturing the disc, we guarantee that we are only ever evaluating the terrain immediately surrounding our target, never the target itself.
Okay.
So the formal definition posits that if we can force the surface altitude to get as close to our limit L as we desire, simply by shrinking the radius R of our punctured disc, then the limit definitively exists.
Right.
Proving that mathematically is really rigorous.
But proving a limit doesn't exist, however, is a fascinating exercise in exposing the deceptive nature of 3D geometry.
Let's do this.
I really want to test this logic because I feel like the textbook throws a massive curve ball here with what I call the two -path pitfall.
The two -path pitfall.
I like that.
The rule is if you can find just two different paths that lead to two different heights as you approach the point, the limit explodes.
It does not exist.
Right.
So let's take the algebraic example they provide.
We want to find the limit as the point x, y approaches the origin, zero, zero, zero.
And the function is f of x, y equals x squared times y over x to the fourth plus y squared.
So a standard rational function, where would you begin your approach?
I would start with the easiest paths, right?
The straight lines.
I can represent any straight line passing through the origin with the algebra y equals mx.
Where m is whatever slope you want.
Right.
So I take that function and every time I see a y, I replace it with mx.
The top is x squared times mx, giving me mx cubed.
And the bottom, x to the fourth plus y squared becomes x to the fourth plus mx squared, which expands to x to the fourth plus m squared x squared.
Exactly.
So my new fraction, exclusively for straight line hikers, is mx cubed over x to the fourth plus m squared x squared.
And then you simplify.
Right.
I can factor an x squared out of the bottom and cancel it with the top.
That leaves me with mx on top over x squared plus m squared.
Good.
Now let x slide to zero.
The numerator goes to zero.
The denominator goes to m squared.
Zero divided by m squared is zero.
So no matter what slope m I choose, north, south, east, 35 degrees, the limit is zero.
You've checked an infinite number of straight paths.
So the limit is zero.
Right.
And you have just triggered the trap.
The limit is absolutely not zero.
Wait, how is that possible?
I just approached it from literally every straight angle on the compass.
You checked every straight angle.
But remember, you are in the matter.
You are artificially restricting your movement.
What happens if you abandon the straight line?
What do you mean?
What happens if you walk toward the origin along the curve of a parabola?
A parabola?
Why on earth would I do that?
Because the terrain demands it.
Let's trace the path where y equals x squared.
Take your original function, x squared y over x to the fourth plus y squared, and substitute x squared in for every y.
Okay, let's see.
The top is x squared times the new y, which is x squared.
So the numerator becomes x to the fourth.
Right.
The denominator is x to the fourth plus x squared squared, which is x to the fourth plus x to the fourth.
That's 2x to the fourth.
So your fraction is now x to the fourth over 2x to the fourth.
Wait, the x to the fourth variables perfectly cancel each other out.
I'm left with exactly one half.
Yes, you are.
The limit isn't zero.
It's one half.
My mind is slightly blown here.
The geometric absurdity of what this implies is wild.
It really highlights the danger.
You have a mountain.
You walk toward the peak in a straight line from any direction, and it smoothly guides you down to an altitude of zero.
But if you walk toward that exact same point along a curved path, the math suddenly says you are standing at an altitude of one half.
The surface is torn.
It is a catastrophic discontinuity.
It appears completely unbroken to anyone walking a straight line, but it harbors a severe, sheer cliff that you only fall off if you approach it with the precise curvature of a parabola.
This is exactly why the multivariable limit requires such an exhausting standard.
You just cannot trust linear intuition in a curved space.
You really can't.
So if the algebra is constantly trying to deceive us, how do we ever safely prove a limit actually does exist?
Well, when you encounter circular symmetry, specifically terms like x squared plus y squared in your denominator, you just abandon the xy grid entirely.
You use the mathematical tractor beam polar coordinates.
Oh, right.
Converting x, y into r cosine theta, r sine theta.
Precisely.
By defining your position based solely on your radius r, which is your distance from the center and your angle theta, you simplify the limit immensely.
Because to approach the origin, you don't need to check paths anymore.
You just force the radius r to shrink to zero.
It completely overrides the angle theta.
The text demonstrates how this substitution often allows you to trap your messy function between two simpler functions that clearly head to zero.
Invoking the squeeze theorem to conclusively prove the limit exists.
Exactly.
Okay, so once we successfully navigate the limit, we establish continuity, right?
A continuous surface has no tiers, no holes, no hidden parabolic cliffs.
Right, and knowing the surface is intact is the absolute prerequisite for the next leap, because now we're going to know how steep the mountain is.
Which brings us to partial derivatives.
But immediately we hit a wall on a 3D surface asking what is the slope is a structurally meaningless question.
It is a question without a reference frame.
I mean, if you stand on the side of a hill and face the peak, your slope is a steep positive number.
But if you pivot 90 degrees and look along the side of the ridge, the slope is zero.
And if you turn completely around, the slope is a steep negative.
A single point on a multivariable surface contains infinite slopes.
So we have to break it down.
We isolate the two fundamental axes of our map.
The x direction, which is east and west, and the way direction, north and south.
Right, and the source text introduces the primary mechanic for calculating these, and it requires a bit of a mental shift.
If you want to take the partial derivative with respect to x, you have to pretend that the variable y isn't a variable at all.
You treat it as a static number.
A constant.
Exactly.
And to remind you to do this, the notation actually changes.
We stop using the standard upright day from single variable calculus.
Oh, we adopt that curly, rounded day to set the partial symbol.
I think it's called a day later.
Well, written as partial.
Yeah, the partial symbol.
When you see partial f over partial x, it is a command.
It tells you to lock y in a box, treat it like the number 5 or pi, and only differentiate the x terms.
Let's run a quick mechanical check on that just to be sure.
The text uses the function f of x, y equals x squared times y to the fifth.
Okay, let's break that down.
If I want the partial derivative with respect to x, which we shorthand as f sub x, I look at y to the fifth and mentally lock it down.
It's just a coefficient.
Right, it just sits there.
The derivative of x squared is 2x, the y to the fifth just comes along for the right.
So f sub x is 2xy to the fifth.
Perfect.
And if I reverse it to find f sub y, the x squared gets locked down.
The derivative of y to the fifth is 5y to the fourth.
So f sub y is 5x squared y to the fourth.
The mechanics are simple, yeah.
But what is the physical reality we just calculated?
We return to the glass sheet from our traces.
Yeah.
The partial derivative f sub x is the exact slope of the tangent line resting on the trace curve created when you slice the mountain parallel to the x -axis.
It is the rate of change if you force yourself to walk purely east or west, refusing to deviate even an inch north or south.
We are totally isolating the cross -sections.
Now, there's a property the text introduces here regarding higher -order derivatives that feels almost like mathematical magic to me.
Oh, Clarot's theorem.
Yeah.
If I have my new x -slope function f sub x, I could take the derivative of that function with respect to y.
A mixed partial derivative f sub xy.
Right.
So you're measuring how your eastward slope twists and changes as you take a step north.
And conversely, you could calculate f sub yx.
You could find the northward slope first and then measure how it changes as you step east.
The immediate assumption for most people is that taking completely different paths through the derivative process would yield different results.
But Alexis Clarot's theorem proves that they don't.
As long as the functions are continuous, the mixed partials f sub xy and f sub yx are always identical.
The order of operations is completely irrelevant.
Slicing the mountain in opposite sequences ultimately reveals the exact same underlying interactive geometry.
It's this beautiful built -in symmetry.
But calculating an isolated x -slope and an isolated east slope still leaves us with a pretty fractured view of the terrain.
You are describing the limitation of the cross -section, right?
Knowing the slope of two perpendicular lines does not fully describe the shape of the ground beneath your feet.
No.
We need to graduate from the tangent line to the tangent plane.
We need to look at differentiability and linear approximation.
OK.
So in 1D calculus, if you take a curvy line and zoom in close enough on a microscope, it flattens out into a straight tangent line.
Right.
And in our 3D meadow, if you get on your hands and knees and zoom in on a single grassy coordinate,
the wavy mountain stops looking like a curve and starts looking like a flat tilted floor.
That flat floor is the tangent plane.
It is the two -dimensional approximation of a three -dimensional curvature at a single point.
And we can construct its exact algebraic scaffolding using the partial derivatives we just learned.
My favorite physical analogy for this is balancing
a piece of stiff cardboard against the side of the hill.
Oh, that's a great visual.
Yeah.
The exact coordinate where the cardboard touches the grass is our point PAB.
If you let the cardboard settle so it balances perfectly flush against the curve,
its tilt will automatically align with the x -slope and the y -slope at that exact spot.
The equation for this tangent plane perfectly mirrors that physical balancing act.
The new approximated height, z, is equal to the starting altitude, f of AB, plus the steepness of the x -slope multiplied by how far you stepped in the x -direction.
That's f sub x of AB times x minus A.
Plus the steepness of the y -slope multiplied by how far you stepped in the y -direction.
Which is f sub y of AB times y minus B.
Exactly.
The resulting equation, z equals f of AB plus f times x minus A, plus f sub y times y minus B, forms a plane.
And the utility of this plane is immense.
It basically provides a computational cheat code called linear approximation.
Because the tangent plane equation is completely linear.
There are no exponents, no messy sines or cosines, just simple multiplication and addition.
So if I need to know the altitude, a really complex function at a messy coordinate that is sitting very close to my nice clean point P.
You don't bother plugging the messy coordinate into the horrible primary function.
I just plug it into the cardboard equation.
As long as I don't wander too far from the point of contact, the flat cardboard is a highly accurate stand -in for the curved grass.
This logic powers the mechanism of differentials, denoted in the text as df equals f sub x times dx plus f sub y times dy.
The differential is basically a rapid estimation tool.
If you take a tiny microscopic step east, which is dx, and you multiply that step by the eastern steepness, f sub x, you get your altitude change for that axis.
You do the exact same for your northern step, dy, and northern steepness, f sub y.
Add those two separate altitude shifts together and you have df, the total estimated change in your elevation.
It's incredibly elegant.
We assemble the full picture by summing the isolated parts.
But this creates an agonizing friction point.
What if my goal isn't to walk purely north or purely east?
Ah, the arbitrary path.
Right.
What if I look at my compass and decide I want to hike exactly northwest?
What if I want to strike out at a highly specific 33 degree angle across the meadow?
How do these two perpendicular slopes help me find the steepness of an arbitrary path?
You're seeking the directional derivative.
And to solve this, the mathematics provides the true hero of Chapter 14.
The gradient vector.
Yes, the gradients.
I love the gradient.
It feels like the moment multivariable calculus fully comes online and just flexes its power.
Before we look at how it solves the pathing problem, the text offers some great historical trivia about the symbol for the gradient.
Oh, the nabla.
Yes, and that's an upside down triangle.
It's called del or nabla.
The history of mathematical notation is rarely dull.
It really isn't.
The physicist P .G.
Tate started using that symbol heavily in the 1800s.
He jokingly named it nabla because the inverted triangle shape reminded him of an ancient Assyrian harp.
That is quite the reference.
It was such a niche joke that James Clerk Maxwell, the famous physicist, used to mock him in letters asking if he was still harping on that nabla.
Wow.
But joke or not, the symbol stuck.
So what does the harp actually hold mathematically?
Well, the gradient vector is deceptively simple in its construction.
It is nothing more than a 2D vector where the first component is your x -partial derivative and the second component is your y -partial derivative.
So nabla f equals the vector f sub x, f sub y.
Exactly.
It is basically a mathematical basket that holds your two fundamental slopes.
But why is dropping them into a vector format so revolutionary?
Because of the mechanical power of the dot product.
Let's return to your desire to hike at a 33 degree angle.
We define that 33 degree direction using a unit vector, an arrow of length 1 pointing exactly where you want to go.
To find the slope of the mountain in that specific direction, the text reveals you do not need to construct a horrific new limit definition.
Thank goodness for that.
You simply take the dot product of the gradient vector and your direction vector.
So the directional derivative d sub u of f equals nabla f dot u.
Let's consider the physical reality of what the dot product is doing here.
The dot product projects one vector onto another.
It takes your fundamental x -slope and your fundamental y -slope and it mathematically interrogates them.
Yes.
It asks how much of your steepness aligns with this new 33 degree path.
It chemically mixes the two perpendicular slopes in the exact right geometric proportions to output a single number.
The exact steepness of the paths you chose.
It is a breathtakingly efficient computation.
But the gradient vector, nabla f, possesses intrinsic physical properties that are even more vital than it's used as a mere calculation tool.
Oh, definitely.
Let's place the gradient back onto our topographic contour map.
If you are standing at a specific point on the map and you draw your gradient vector nabla f on the ground, where does the arrow point?
It points toward the absolute steepest descent.
The gradient vector is a magical mathematical compass that inherently seeks out the fastest route up the mountain.
Exactly.
You don't have to test a million different angles to find the steepest path.
You just calculate the gradient, look at where the arrow is pointing, and walk.
And its orientation on the map is not a coincidence either.
If you look at the contour curves, the gradient vector is always perfectly perpendicular orthogonal to the level curves.
Which makes perfect physical sense.
If you want to increase your altitude as rapidly as possible, you don't want to walk along a contour line.
That keeps your elevation completely flat.
You want to cut across the contour lines at the sharpest, most direct angle possible.
You want to cross them at a 90 degree angle.
The gradient is the path of maximum increase.
Consequently, if you walk in the exact opposite direction, the negative gradient negative nable of s, you take the path of steepest descent.
This is the exact path a drop of water takes when it flows down the side of a mountain.
Gravity forces water to perfectly obey the negative gradient.
It's incredible how the pure algebra maps flawlessly onto fluid dynamics.
But let's introduce a new friction point.
Up to this moment, we have assumed that we are the ones picking our xy coordinates.
We stand on a spot and we measure the slopes.
But what happens when our position is being dictated by an outside force, like time?
This introduces layers of dependency, pulling us into the multivariable chain rules.
In single variable calculus, the chain rule was just peeling an onion, outside derivative multiplied by the inside derivative.
How does the chain rule function when we are moving across a 3D surface?
Let's use an analogy.
Let's build a mechanical gear system.
A physical linkage is an excellent way to conceptualize this.
Let's say our surface f of xy represents the shifting temperature of a large metal plate.
And you have a robotic sensor moving across this plate.
The sensor's path is dictated by a timer, t.
So at any given second t, the timer forces the sensor to be at a specific x and y coordinate.
So the path is a vector function r of t equals the vector x of t, y of t.
Exactly.
As the sensor is dragged across the plate, the temperature it reads is constantly wildly fluctuating because it's passing through hot and cold zones.
We want to know how fast is the temperature changing for the sensor at one specific moment in time.
We want the derivative of f with respect to t.
The text provides a formula that links directly back to the hero we just discussed.
The rate of temperature change is equal to the dot product of the gradient vector of the plate and the velocity vector of the sensor.
Oh, so d over dt of r of t equals nabla f dot r prime of t.
Yes.
Think about the gears turning here.
Nabla f tells you where the heat is spiking the fastest on the plate.
And r prime of t, the velocity, tells you how fast the sensor is moving and in what direction.
The dot product meshes these two realities together perfectly.
If the sensor is moving incredibly fast straight into the hottest zone on the plate, the vectors align, the dot product is huge, and the temperature spikes rapidly.
But if the sensor happens to be moving perfectly along a path where the temperature is uniform, like a level curve, its velocity vector is running parallel to the contour line.
And we know the gradient is perpendicular to contour lines.
Which means the velocity vector and the gradient vector are perfectly perpendicular to each other.
And the dot product of two perpendicular vectors is zero.
The math dictates the temperature change is zero, perfectly matching the physical reality that the sensor isn't getting any hotter or colder.
That's so cool.
But the textbook ramps up the complexity here.
What if the x and y coordinates of our sensor aren't just controlled by a single timer gear t?
What if x is controlled by two separate gears, s and t, and y is also controlled by those same two gears, s and t?
This is the exact moment a student usually drowns in an algebraic nightmare.
You are trying to track how turning the s gear slightly rotates both the x and y gears, which simultaneously mesh together to turn the massive f gear at the top.
Keeping the partial derivatives organized purely through equations is chaotic.
Which is why the text introduces a visual scaffolding system.
Tree diagrams.
You don't just calculate, you map the supply chain of the variables.
Let's walk through how to actually build one of those.
You start at the top of your page with the primary output, f.
This is the top gear.
You draw branches downward to the variables that f directly relies upon.
So in this case, f connects to an x node and a y node.
Then you look at the x node, what turns the x gear.
The variables s and t.
So you draw two branches down from x to a bottom layer containing s and t.
You do the exact same thing for the y node, branching down to s and t.
Now you have constructed a visual flow of dependency.
Top layer f, middle layer x and y, bottom layer s and t.
Okay, so suppose you want to calculate the partial derivative of the entire system with respect to s.
The diagram explicitly dictates the required mathematics.
Yes, you must start at the top node f and trace every possible pathway down through the branches that eventually terminates at an s.
Let's trace it.
Path one goes down the left side.
From f down to x and then from x down to s.
As I move down a branch, I take the partial derivative.
So the first leg is partial f over partial x.
And the second leg is partial x over partial s.
The rule is to multiply along a single path.
So path one generates the product.
Partial f over partial x times partial x over partial s.
But you are not finished because the s gear also drives the right side of the machine.
Path two travels from f down to y and then from y down to s.
That pathway generates partial f over partial y times partial y over partial s.
To find the total systemic change caused by s, the final rule is to add the different pathways together.
You add path one to path two.
The tree diagram ensures you never lose a variable in the chaotic machinery.
You just draw the branches, multiply down the lines and add across the bottom.
It really turns a terrifying multi -variable chain rule into a simple visual tracing exercise.
Before we leave the chain rule, we have to highlight the shortcut the text derives from it.
Implicit differentiation.
Oh, this is a lifesaver.
Sometimes a surface is not handed to you cleanly as z equals f of x, y.
Sometimes the variables are tangled in a massive algebraic knot, all equal to zero.
Like an implicit equation, something awful like x squared plus y squared minus z squared plus 12x minus 8z minus 4 equals zero.
If someone asked me to find the partial derivative partial z over partial x from that mess, my instinct is to use algebra to isolate z on one side of the equal sign.
But looking at that equation, isolating z requires completing the square, extracting massive square roots, and generally suffering through a miserable algebraic slog.
The implicit differentiation formula from the text offers an easy button.
You do not need to untangle the knot.
Let's label the entire messy equation as a single function.
Big F of x, y, z equals zero.
The formula proves that partial z over partial x is mathematically identical to taking the negative partial derivative of the entire equation with respect to x, divided by the partial derivative of the entire equation with respect to z.
It's just negative big F sub x divided by big F sub z.
You treat the tangled mess as one solid object.
Find the x -slope.
Find the z -slope, throw a negative sign in front, and divide them.
You bypass the algebraic suffering entirely.
It is such a powerful tool, and it actually brings us to a crucial pivot point.
Let's survey the mathematical arsenal we have built so far.
We understand the 3D grid.
We know how to navigate the 360 -degree limit without falling off a torn surface.
We can freeze variables to find cross -section slopes.
We can approximate the curve with flat tangent planes.
We possess the gradient compass to find the steepest paths, and we have the gear mechanics to track variables moving over time.
We have mapped the terrain, but what is the ultimate objective?
The objective is conquest.
We want to find the absolute highest peaks and the lowest valleys on the map, which brings us to optimization in several variables, finding the maximums and minimums.
The underlying logic is a beautiful expansion of single -variable calculus, isn't it?
In a 1D world, to find the top of a hill, you look for the spot where the tangent line goes perfectly horizontal.
Where the slope equals zero, you hunt for critical points.
The concept is identical in 3D, but with an added dimension of strictness.
We don't just need one slope to be zero.
We need the entire tangent plane, our flat piece of cardboard, to rest perfectly horizontally on the surface.
If it tilts even a fraction of a degree north or east, you are not at the true peak.
Therefore, the mathematical requirement is that all first -order partial derivatives must simultaneously equal zero.
f sub x equals zero, and d f sub y equals zero.
Or, using the terminology of the gradient, the entire gradient vector must be the zero vector.
You solve a system of equations to locate the specific x, y coordinates where the ground flattens out.
But just because the ground is flat beneath your booth doesn't mean you've reached the summit.
The flat spot could be a local maximum, a true peak, or it could be a local minimum, the dead bottom of a bowl -shaped crater.
Or, because we are operating in three dimensions, we face a third geometric reality that doesn't exist on the 1D tightrope.
Oh, the saddle point.
The mountain pass.
Picture standing on the center of a riding saddle.
It's flat right under your feet, but if you look left and right, the leather curves upwards.
And if you look forward and backward, the leather curves downwards.
It is simultaneously a valley in one direction and a peak in another.
It's a critical point, but it's neither a true max nor a min.
So how do we mathematically interrogate our flat spot to determine which of these three shapes it is?
We must analyze how the surface is bending.
This requires the second derivatives.
The text introduces the second derivative test for functions of two variables.
Which relies on a specific formula called the discriminant, denoted by a capital D.
Let's unpack the mechanics of this formula, because it looks like a random jumble of letters at first glance.
D equals f x x times f sub y y minus f sub x y squared.
What is this actually measuring?
It is measuring a battle of curvatures.
f sub x represents the pure curvature along the x -axis.
Is it curving upwards like a smile, meaning it's positive, or curving downwards like a frown?
Negative.
And f sub y y measures the pure curvature along the y -axis.
The term f sub x y squared represents the mixed curvature, the twist of the surface.
So the formula D multiplies the two pure perpendicular curvatures together, and then subtracts the squared twist.
The text lays out four possible outcomes based on the resulting number.
Let's walk through the geometry of each one.
Okay, outcome one.
You calculate your formula and get D greater than zero.
A positive discriminant means the pure curvatures, the x -bend and y -bend, are strong enough to overpower the twisting force.
Furthermore, because their product is positive, they must possess the same sign.
They are either both smiling or both frowning.
The surface curves in uniform harmony.
To determine which one it is, you just check one of the pure curvatures, usually f sub x x.
If D is greater than zero and D f sub x x is a positive number, the x -axis is smiling upwards.
Since the curvatures are in harmony, the whole surface is smiling upwards.
A flat spot curving upwards in all directions is a bool.
You found a local minimum.
Outcome two operates on the exact same logic.
What if D is greater than zero but f sub x x is a negative number?
If f sub x x is negative, the x -axis is frowning downwards.
The harmony of a positive D means the entire surface is frowning downwards in all directions.
A flat spot curving down everywhere is a dome.
You have found a local maximum.
A peak.
Now for the clash.
Outcome three.
You calculate your formula and find D is less than zero.
A negative discriminant.
A negative product implies that the pure curvatures have opposite signs.
The x -axis is smiling upwards but the y -axis is frowning downwards.
The curvatures are fighting each other.
And we know exactly what shape that creates.
The saddle point.
If D is negative, the test is instantly over.
You don't need to check f sub x x.
You are sitting in a saddle.
Which leaves the most frustrating outcome.
Outcome four.
What if D equals exactly zero?
The test breaks.
The math simply shrugs at shoulders.
The surface could be a peak, a valley, a saddle, or something entirely bizarre.
It is a massive blind spot in the second derivative test.
We will return to that blind spot in a moment.
But there is one final task the chapter outlines.
We know how to find local peaks and valleys.
But what if we are restricted to a specific fenced -in boundary on the map?
How do we find the absolute extreme, the undisputed highest and lowest elevations within that specific territory?
This is the equivalent of asking what is the absolute highest elevation within the borders of Colorado.
I'm not looking for any random peak.
I want the king peak, and my search area is strictly fenced in.
The procedure here involves a comparative sweep.
First, you use the gradient and the discriminant to hunt down every single local peak and valley that happens to exist inside the fence.
You log their altitude.
You can't stop there because of the geometry of the fence itself.
Imagine a flat, tilted concrete slab sitting inside a circular fence.
The slab has no internal peaks.
It's perfectly flat, so the gradient never equals zero.
But the highest physical point on that slab is obviously going to be wherever the tilted concrete touches the highest point of the boundary fence.
Precisely.
So the second mandatory step is to mathematically watch the perimeter.
You parameterize the boundary line itself, substitute it into your function, and reduce the entire 3D problem into a single variable maximization problem just along the fence line.
You find the highest and lowest points on the fence.
Then the final step is a simple ultimate showdown.
You take the list of altitudes from your internal peaks and you compare them to the list of extreme altitudes from the boundary fence.
The single largest number is your absolute maximum.
The single smallest number is your absolute minimum.
You have officially mapped, analyzed, and conquered the 3D landscape.
It is a profound sequence of logic.
It really is.
To zoom out and look at the massive architectural bridge we've just built from 1D to 3D, we learned to map the terrain with traces and contour lines.
We confronted the terrifying reality of the 360 -degree limit and the two -path pitfall.
We learned to isolate slopes using the mechanical process of partial derivatives.
We upgraded those slopes into flat tangent planes to approximate the curvature.
We packed the slopes into the gradient vector, creating a compass that automatically seeks the steepest descent.
We built mechanical tree diagrams to track the chain rules of shifting variables.
And finally, we pitted curvatures against each other in the discriminant formula to crown the highest peaks and identify the saddle points.
A comprehensive toolkit for multidimensional reality.
But before we conclude, I want to pivot back to that blind spot we encountered.
I want to leave you with a conceptual mystery that stems directly from the text.
Ooh, yes.
Outcome four.
The inconclusive test where the discriminant d equals zero.
Consider the geometric reality of a zero discriminant.
The second derivative test fails because the surface is unimaginably flat at that specific coordinate.
It is flatter than a standard parabola.
Its curvature is being driven by higher order mathematical terms like an X to the fourth or a Y to the sixth curve.
Yet despite presenting as microscopically flat, it could still be harboring a subtle peak, a shallow valley, or even a bizarre monkey saddle with three distinct downward dips for the legs and tail.
The second derivative machinery we spent all this time building is completely blind to it.
It can't detect the shape at all.
Exactly.
So the puzzle for you to mull over is this.
If the second derivative test fails because the terrain is too flat, what kind of mathematical architecture would you have to invent to unlock the true geometry of a zero discriminant point?
What would a third derivative test in multivariable space even look like?
How many mixed partial derivatives would you have to calculate and balance against each other to see the unseen?
That is a staggering thought to end on.
It perfectly illustrates that even when you think you have conquered the mountain, there is always another dimension of complexity, another layer of calculus waiting to be explored.
There really is.
Thank you so much for joining us on this extensive deep dive through differentiation in several variables.
From everyone on the Last Minute Lecture team, we wish you the absolute best in applying these concepts, visualizing the hidden geometry, and conquering your studies.
Keep exploring the meadow.
β This audio and summary are simplified educational interpretations and are not a substitute for the original text.
Using this chapter to study? Last Minute Lecture is free and student-run. If it helped, consider supporting the project.
Support LML β₯Related Chapters
- Applications of DifferentiationCalculus: Early Transcendentals
- Defining and Measuring VariablesResearch Methods for the Behavioral Sciences
- Developmental GeneticsConcepts of Genetics
- Differential Calculus of Vector FieldsThe Feynman Lectures on Physics Volume 2
- Differential Gene Expression: Mechanisms of Cell DifferentiationDevelopmental Biology
- DifferentiationCalculus: Early Transcendentals