Partial Derivatives
How do we differentiate a function with multiple inputs? We will learn several ways to do this throughout the course. But all methods rely on one fundamental idea: the partial derivative.
11.1Partial Derivatives
If we take a function
What does this derivative mean? Well, we are measuring the slope in the
What happens if we instead look at the slice where
Thus, whatever
The only thing confusing here is that unless we know what we are doing, it's hard to tell what the prime means. So we should probably not use this notation when there's more than one variable.
In fact, to signify that we are taking the derivative of a multivariable function, it is customary to write the
Definition 11.1 ($x$-Partial Derivative). If
A partial derivative is therefore an ordinary one-variable derivative of a slice. Computationally, we hold every other input fixed and use the familiar rules of single-variable calculus.
Partial derivatives are ubiquitous in the sciences, and because they are used in so many fields, there are several common notations for them. I will use these notations interchangeably in class; the most common ones appear below for reference.
Definition 11.2 (Notations for Partial Differentiation). The partial derivative of
The last notation takes some getting used to at first: the subscript represents differentiation! But because of its conciseness, it is very commonly used when performing calculations.
For a quick example with three variables, let
Holding the other two variables constant in turn gives
In single variable calculus there was just a single first derivative:
Definition 11.3 (The Gradient Vector). Given a multivariable function
The symbol
11.2Second Derivatives
Higher order partial derivatives are no more difficult: each time you take the derivative, you just treat all other variables as constants.
For instance, the second partial
But you can also take partials with respect to different variables.
Definition 11.4. A higher partial derivative is just the result of taking the partial derivative more than once (perhaps with respect to different variables). When doing this, one needs to be careful with notation: the "derivative notations" are all read like function composition
both mean do the z partial, then the y partial, then the x partial.
The subscript notation is read from inside out:
is equivalent to the expression above: differentiate first with respect to
Theorem 11.5 (Equality of Mixed Partials). If the mixed partial derivatives are continuous in a neighborhood of a point, their order may be exchanged at that point:
This works with higher order derivatives as well
Just like we packaged all of the first partial derivatives together into one nice object, the Gradient, we do the same with the second partials:
Definition 11.6 (The Hessian (Matrix of 2nd Derivatives)). Given a twice differentiable function
The Laplacian is another way of collecting second-order information. It keeps only the non-mixed second partial derivatives and adds them.
Definition 11.7 (The Laplacian). The Laplacian operator is the sum of the non-mixed second order partial derivatives. It is sometimes written as
In higher dimensions, we add one second partial derivative for each input variable.
One way to imagine what the Laplacian is measuring is a net sum of coordinate-direction concavities: it adds up the concavity in both the
while
A positive Laplacian means that these coordinate-direction concavities have a positive sum. It does not by itself mean that the function is convex: one direction may curve downward while another curves upward more strongly.
For now,
11.3Partial Differential Equations
Partial derivatives are the language in which much of modern science is written. We saw in the last portion of the course that vector valued differential equations are the right language to describe the motion of single particles: but what about quantities that depend on more than one variable?
A first example is simply waves on a string: when a guitar string is pulled taut, if you try to pluck it away from rest it pulls back on you - the farther you pull it away, the harder it pulls back.
The amount a string curves away from its straight line equilibrium is captured (roughly) by its concavity. And so one simple model of string motion would say the bigger the concavity the faster it wants to "snap back". Said more precisely:
The acceleration of the string is proportional to its concavity.
Writing this in math - if the string's displacement at position
where the positive constant
In two dimensions, a wave equation measures the displacement of a circular membrane, like a drumhead or the interior speaker of an earbud. Here we have to account for displacements in both the
This same wave equation in three dimensions describes the propagation of electromagnetic waves - or light! This was a triumph of 19th century physics, where James Clerk Maxwell derived a wave equation from his equations for the electromagnetic field.
Similar partial differential equations occur throughout physics and engineering. Quantum mechanics, heat flow, fluid motion, elasticity, and acoustics all replace the evolution of a few coordinates with the evolution of fields depending on space and time.
Partial derivatives tell us how a scalar field changes while one input varies. In the next chapter, we combine those derivatives to construct the best linear and quadratic approximations near a point.